2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
[official-gcc.git] / gcc / ChangeLog
blob7b5548afee76ab05fec30d8a5e2ea489d41ba7c0
1 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3         * genemit.c: Include dumpfile.h.
4         (gen_split): Print name of splitter function to dump file.
6 2014-09-01  Richard Biener  <rguenther@suse.de>
8         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
9         Use stack auto_vecs for constraint expressions.
10         (find_func_aliases_for_call): Likewise.
11         (find_func_aliases): Likewise.
12         (find_func_clobbers): Likewise.
14 2014-09-01  Richard Biener  <rguenther@suse.de>
16         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
17         operands vector in most cases.  Remove redundant code.
19 2014-09-01  Olivier Hainque  <hainque@adacore.com>
21         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
22         $WIND_BASE instead of designating a harcoded arbitrary home dir.
23         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
25 2014-09-01  Richard Biener  <rguenther@suse.de>
27         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
28         copy_reference_ops_from_call, vn_nary_op_compute_hash,
29         vn_reference_compute_hash, vn_reference_insert): Remove.
30         (vn_reference_lookup_call): New function.
31         * tree-ssa-sccvn.c (vn_reference_compute_hash,
32         copy_reference_ops_from_ref, copy_reference_ops_from_call,
33         vn_reference_insert, vn_nary_op_compute_hash): Make static.
34         (create_reference_ops_from_call): Remove.
35         (vn_reference_lookup_3): Properly update shared_lookup_references.
36         (vn_reference_lookup_pieces): Assert that we updated
37         shared_lookup_references properly.
38         (vn_reference_lookup): Likewise.
39         (vn_reference_lookup_call): New function.
40         (visit_reference_op_call): Use it.  Avoid re-building the
41         reference ops.
42         (visit_reference_op_load): Remove redundant lookup.
43         (visit_reference_op_store): Perform special tail-merging work
44         only when possibly doing tail-merging.
45         (visit_use): Likewise.
46         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
48 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
50         PR target/62025
51         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
52         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
53         (find_inc): Revert 2014-08-13 change.
55 2014-09-01  Marek Polacek  <polacek@redhat.com>
57         PR middle-end/61903
58         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
59         Change the type of V to unsigned HOST_WIDE_INT.
61 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
63         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
64         the size of byte markers.
65         (do_shift_rotate): Fix confusion between host, target and marker byte
66         size.
67         (verify_symbolic_number_p): Likewise.
68         (find_bswap_or_nop_1): Likewise.
69         (find_bswap_or_nop): Likewise.
71 2014-09-01  Olivier Hainque  <hainque@adacore.com>
73         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
74         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
76 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
78         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
79         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
80         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
82 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
84         PR sanitizer/61897
85         PR sanitizer/62140
86         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
87         (build_check_stmt): Likewise.
88         (instrument_strlen_call): Likewise.
89         (asan_expand_check_ifn): Likewise and fix types.
90         (maybe_cast_to_ptrmode): New function.
92 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
94         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
96 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
98         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
100 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
102         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
103         prefix to function labels when generating fast indirect calls.
105 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
107         PR bootstrap/62304
109         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
110         param back from rtx_insn * to rtx.  Rename param from "label" to
111         "label_or_return", reintroducing "label" as an rtx_insn * after
112         we've ensured it's not a RETURN.
113         (first_active_target_insn): Likewise for return type and param;
114         add a checked cast to rtx_insn * once we've ensured "insn" is not
115         a RETURN.
116         (steal_delay_list_from_target): Convert param "pnew_thread" back
117         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
118         with JUMP_LABEL.
119         (own_thread_p): Convert param "thread" back from an rtx_insn * to
120         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
121         cast once we've established we're not dealing with a RETURN,
122         renaming subsequent uses of "thread" to "thread_insn".
123         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
124         to JUMP_LABEL.
125         (follow_jumps): Convert return type and param "label" from
126         rtx_insn * back to rtx.  Move initialization of "value" to after
127         the handling for ANY_RETURN_P, adding a checked cast there to
128         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
129         rename to "this_label_or_return", reintroducing "this_label" as
130         an rtx_insn * once we've handled the case where it could be an
131         ANY_RETURN_P.
132         (fill_slots_from_thread): Rename param "thread" to
133         "thread_or_return", converting from an rtx_insn * back to an rtx.
134         Reintroduce name "thread" as an rtx_insn * local with a checked
135         cast once we've handled the case of it being an ANY_RETURN_P.
136         Convert local "new_thread" from an rtx_insn * back to an rtx.
137         Add a checked cast when assigning to "trial" from "new_thread".
138         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
139         checked cast to rtx_insn * from "new_thread" when invoking
140         get_label_before.
141         (fill_eager_delay_slots): Convert locals "target_label",
142         "insn_at_target" from rtx_insn * back to rtx.
143         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
144         (relax_delay_slots): Convert locals "trial", "target_label" from
145         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
146         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
147         invoking update_block.
148         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
149         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
151         * resource.h (mark_target_live_regs): Undo erroneous conversion
152         of second param of r214693, converting it back from rtx_insn * to
153         rtx, since it could be a RETURN.
155         * resource.c (find_dead_or_set_registers): Similarly, convert
156         param "jump_target" back from an rtx_insn ** to an rtx *, as we
157         could be writing back a RETURN.  Rename local rtx_insn * "next" to
158         "next_insn", and introduce "lab_or_return" as a local rtx,
159         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
160         (mark_target_live_regs): Undo erroneous conversion
161         of second param of r214693, converting it back from rtx_insn * to
162         rtx, since it could be a RETURN.  Rename it from "target" to
163         "target_maybe_return", reintroducing the name "target" as a local
164         rtx_insn * with a checked cast, after we've handled the case of
165         ANY_RETURN_P.
167 2014-08-29  DJ Delorie  <dj@redhat.com>
169         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
170         pointer size up to a power of two.
171         * defaults.h (DWARF2_ADDR_SIZE): Round up.
172         (POINTER_SIZE_UNITS): New, rounded up value.
173         * dwarf2asm.c (size_of_encoded_value): Use it.
174         (dw2_output_indirect_constant_1): Likewise.
175         * expmed.c (init_expmed_one_conv): We now know the sizes of
176         partial int modes.
177         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
178         * optabs.c (expand_float): Use precision, not size.
179         (expand_fix): Likewise.
180         * simplify-rtx (simplify_unary_operation_1): Likewise.
181         * tree-dfa.c (get_ref_base_and_extent): Likewise.
182         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
183         (default_assemble_integer) Likewise.
184         (dump_tm_clone_pairs): Likewise.
185         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
186         * var-tracking.c (adjust_mems): Allow partial-int modes also.
187         (prepare_call_arguments): Likewise.
188         * stor-layout.c (finalize_type_size): Preserve precision.
189         (layout_type): Use precision, not size.
191         * expr.c (convert_move): If the target has an explicit converter,
192         use it.
194 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
196         * gdbinit.in: Skip various inline functions in rtl.h when
197         stepping.
199 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
201         PR bootstrap/62301
202         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
204 2014-08-29  Richard Biener  <rguenther@suse.de>
206         PR tree-optimization/62291
207         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
208         exactly the vector size needed and use quick_push.
209         (phi_translate_1): Adjust comment.
210         (valid_in_sets): Remove block argument and remove pointless
211         checking of NAMEs.
212         (dependent_clean): Adjust for removal of block argument.
213         (clean): Likewise.
214         (compute_antic_aux): Likewise.
215         (compute_partial_antic_aux): Likewise.
217 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
218             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
219             Anna Tikhonova  <anna.tikhonova@intel.com>
220             Ilya Tocar  <ilya.tocar@intel.com>
221             Andrey Turetskiy  <andrey.turetskiy@intel.com>
222             Ilya Verbin  <ilya.verbin@intel.com>
223             Kirill Yukhin  <kirill.yukhin@intel.com>
224             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
226         * config/i386/sse.md
227         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
228         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
229         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
230         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
232 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
233             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
234             Anna Tikhonova  <anna.tikhonova@intel.com>
235             Ilya Tocar  <ilya.tocar@intel.com>
236             Andrey Turetskiy  <andrey.turetskiy@intel.com>
237             Ilya Verbin  <ilya.verbin@intel.com>
238             Kirill Yukhin  <kirill.yukhin@intel.com>
239             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
241         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
242         * config/i386/sse.md
243         (define_mode_iterator VI4_128_8_256): New.
244         (define_mode_iterator VI2_128_4_256): Ditto.
245         (define_mode_iterator PMOV_DST_MODE): Rename into
246         (define_mode_iterator PMOV_DST_MODE_1): this.
247         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
248         Use PMOV_DST_MODE_1 mode iterator.
249         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
250         Ditto.
251         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
252         Ditto.
253         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
254         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
255         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
256         (define_mode_iterator PMOV_DST_MODE_2): New.
257         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
258         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
259         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
260         Ditto.
261         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
262         (define_mode_attr pmov_dst_3): Ditto.
263         (define_mode_attr pmov_dst_zeroed_3): Ditto.
264         (define_mode_attr pmov_suff_3): Ditto.
265         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
266         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
267         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
268         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
269         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
270         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
271         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
272         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
273         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
274         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
275         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
276         (define_mode_attr pmov_dst_4): Ditto.
277         (define_mode_attr pmov_dst_zeroed_4): Ditto.
278         (define_mode_attr pmov_suff_4): Ditto.
279         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
280         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
281         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
282         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
283         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
284         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
285         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
286         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
287         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
288         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
289         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
291 2014-08-29  Richard Biener  <rguenther@suse.de>
293         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
294         NON_LVALUE_EXPR in gimple.
296 2014-08-29  Richard Biener  <rguenther@suse.de>
298         PR middle-end/62292
299         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
300         from previous refactoring.
301         (gimple_fold_builtin_strncpy): Likewise.
303 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
305         PR bootstrap/62300
306         * function.c (assign_parm_setup_reg): Remove erroneous checked
307         cast to rtx_insn * on result of gen_extend_insn in favor of
308         introducing a new local rtx "pat".
310 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
312         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
313         to silence warning.
314         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
316 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
318         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
319         (next_insn): Likewise.
320         * emit-rtl.c (next_insn): Likewise.
321         (previous_insn): Likewise.
322         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
323         "insn" and "next" from rtx to rtx_insn *.
324         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
325         "insn", "insn1", "vliw_start",  "prologue_end_note",
326         "last_insn_in_packet".
328 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
330         * shrink-wrap.h (active_insn_between): Strengthen both params from
331         rtx to rtx_insn *.
332         * function.c (active_insn_between): Likewise.
334 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
336         * genattr.c (main): When writing out insn-attr.h, strengthen param
337         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
338         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
339         writing out the definition of dfa_clear_single_insn_cache to the
340         generated insn-automata.c
342 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
344         * resource.h (clear_hashed_info_for_insn): Strengthen param from
345         rtx to rtx_insn *.
346         (incr_ticks_for_insn): Likewise.
347         (init_resource_info): Likewise.
349         * resource.c (init_resource_info): Likewise.
350         (clear_hashed_info_for_insn): Likewise.
351         (incr_ticks_for_insn): Likewise.
353         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
354         rtx to rtx_insn *.
355         (steal_delay_list_from_target): Use methods of "seq".
356         (try_merge_delay_insns): Use methods of "merged_insns".
357         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
358         (reorg_redirect_jump): Likewise for param "jump".
360 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
362         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
363         rtx to rtx_insn *.
364         * config/s390/s390.c (s390_split_branches): Eliminate top-level
365         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
366         "set_insn".
367         (s390_mainpool_finish): In three places, split out a local rtx
368         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
369         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
370          and split another local rtx "insn" out into rtx "pat" and
371         rtx_insn * "insn".
372         * config/sh/sh.c (output_branchy_insn): Rather than working
373         directly on operands[9], introduce local rtx_code_label *
374         variables named "lab" in two places, working on them, and then
375         assigning them to operands[9], so that the intervening operations
376         are known by the type system to be on insns.
378 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
380         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
381         const rtx_insn *.
383         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
384         in invocation of INSN_HAS_LOCATION.
386 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
388         * config/rs6000/altivec.h (vec_xl): New #define.
389         (vec_xst): Likewise.
390         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
391         (XXSPLTD_V2DI): Likewise.
392         (DIV_V2DI): Likewise.
393         (UDIV_V2DI): Likewise.
394         (MUL_V2DI): Likewise.
395         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
396         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
397         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
398         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
399         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
400         (UNSPEC_VSX_DIVSD): Likewise.
401         (UNSPEC_VSX_DIVUD): Likewise.
402         (UNSPEC_VSX_MULSD): Likewise.
403         (vsx_mul_v2di): New insn-and-split.
404         (vsx_div_v2di): Likewise.
405         (vsx_udiv_v2di): Likewise.
406         (vsx_xxspltd_<mode>): New insn.
408 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
410         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
411         NEXT_INSN.
412         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
413         (NEXT_INSN): Likewise.
414         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
415         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
416         const rtx_insn *.
417         (no_labels_between_p): Likewise for both params.
419         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
420         cast when using NEXT_INSN on operands[2].
421         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
422         "insn" from rtx to rtx_insn *, adding a checked cast.
423         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
424         rtx_insn *.
425         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
426         for third param.
427         (arc_text_label): Likewise for param "insn".
428         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
429         "insn".
430         (arc_ccfsm_record_condition): Likewise for param "jump".
431         (arc_text_label): Likewise for local "label".
432         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
433         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
434         a method for typesafety.  Add a checked cast.
435         * config/arc/constraints.md (Clb): Add a checked cast when getting
436         the CODE_LABEL from a LABEL_REF.
437         * config/arm/arm.c (require_pic_register): Strengthen locals
438         "seq", "insn" from rtx to rtx_insn *.
439         (create_fix_barrier): Likewise for locals "selected", "next".
440         (thumb1_reorg): Likewise for locals "prev", "insn".
441         (arm_expand_prologue): Likewise for local "last".
442         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
443         operands[0].
444         (thumb2_output_casesi): Likewise for operands[2].
445         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
446         strengthen local "insn" from rtx to rtx_insn *.
447         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
448         type and param "insn".
449         (find_prev_insn_start): Likewise.
450         (hwloop_optimize): Likewise for locals "insn", "last_insn",
451         "prev".
452         (gen_one_bundle): Likewise for loal "t".
453         (find_load): Likewise for param "insn".
454         (workaround_speculation): Likewise for locals "insn", "next",
455         "target", "next_tgt".
456         * config/c6x/c6x.c (assign_reservations): Likewise for both params
457         and for locals "insn", "within", "last".
458         (count_unit_reqs): Likewise for params "head", "tail" and local
459         "insn".
460         (try_rename_operands): Likewise for params "head", "tail".
461         (reshuffle_units): Likewise for locals "head", "tail", "insn".
462         (struct c6x_sched_context): Likewise for fields
463         "last_scheduled_insn", "last_scheduled_iter0".
464         (init_sched_state): Replace NULL_RTX with NULL.
465         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
466         to rtx_insn *.
467         (undo_split_delayed_nonbranch): Likewise for param and for local
468         "prev".
469         (conditionalize_after_sched): Likewise for local "insn".
470         (bb_earliest_end_cycle): Likewise.
471         (filter_insns_above): Likewise for locals "insn", "next".
472         (hwloop_optimize): Remove redundant checked cast.
473         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
474         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
475         NULL_RTX with NULL.
476         (cris_simple_epilogue): Likewise.
477         (cris_expand_prologue): Likewise.
478         (cris_expand_epilogue): Likewise.
479         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
480         local "insn" from rtx to rtx_insn *.
481         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
482         (struct frv_packet_group): Likewise for the elements within array
483         fields "insns", "sorted", and for field "nop".
484         (frv_packet): Likewise for the elements within array field
485         "insns".
486         (frv_add_insn_to_packet): Likewise for param "insn".
487         (frv_insert_nop_in_packet): Likewise for param "insn" and local
488         "last".
489         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
490         (frv_sort_insn_group_1): Likewise for local "insn".
491         (frv_optimize_membar_local): Likewise.
492         (frv_align_label): Likewise for locals "x", "last", "barrier",
493         "label".
494         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
495         local.
496         (ia64_sched_init): Likewise for local "insn".
497         (scheduled_good_insn): Likewise for param "last".
498         (struct _ia64_sched_context): Likewise for field
499         "last_scheduled_insn".
500         (ia64_init_sched_context): Replace NULL_RTX with NULL.
501         (struct bundle_state): Likewise for field "insn".
502         (issue_nops_and_insn): Likewise for param "insn".
503         (get_next_important_insn): Likewise for return type and both
504         params.
505         (ia64_add_bundle_selector_before): Likewise for param "insn".
506         (bundling): Likewise for params "prev_head_insn", "tail" and
507         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
508         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
509         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
510         Strengthen final param from rtx to rtx_insn *.
511         (iq2000_move_1word): Likewise for second param.
512         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
513         param "cur_insn" and local "next_insn".
514         (iq2000_move_1word): Likewise for param "insn".
515         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
516         casts when using NEXT_INSN on operands[1].
517         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
518         "insn" from rtx to rtx_insn *.
519         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
520         "x", introducing local rtx_insn * "insn" for when working with the
521         CODE_LABEL of the LABEL_REF.
522         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
523         rtx_insn *.
524         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
525         param.
526         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
527         type.
528         (conditionalize_block): Likewise for return type and param.
529         (mcore_is_dead): Likewise for param "first" and local "insn".
530         (emit_new_cond_insn): Likewise for return type.
531         (conditionalize_block): Likewise for return type, param, and
532         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
533         "newinsn".
534         (conditionalize_optimization): Likewise for local "insn".
535         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
536         using NEXT_INSN.
537         * config/microblaze/microblaze.md: Add checked casts when using
538         NEXT_INSN.
539         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
540         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
541         and rtx_insn * "insn".
542         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
543         checked cast when using NEXT_INSN on operands[2].
544         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
545         local "insn" from rtx to rtx_insn *.
546         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
547         Likewise.
548         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
549         Add a checked cast when using NEXT_INSN on operands[1].
550         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
551         rtx to rtx_insn *.
552         (pa_output_cbranch): Likewise for final param.
553         (pa_output_lbranch): Likewise for second param.
554         (pa_output_bb): Likewise for third param.
555         (pa_output_bvb): Likewise.
556         (pa_output_dbra): Likewise for second param.
557         (pa_output_movb): Likewise.
558         (pa_output_parallel_movb): Likewise.
559         (pa_output_parallel_addb): Likewise.
560         (pa_output_millicode_call): Likewise for first param.
561         (pa_output_mul_insn): Likewise for second param.
562         (pa_output_div_insn): Likewise for third param.
563         (pa_output_mod_insn): Likewise for second param.
564         (pa_jump_in_call_delay): Likewise for param.
565         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
566         (pa_output_div_insn): Likewise.
567         (pa_output_mod_insn): Likewise.
568         (pa_output_cbranch): Likewise.
569         (pa_output_lbranch): Likewise.
570         (pa_output_bb): Likewise.
571         (pa_output_bvb): Likewise.
572         (pa_output_dbra): Likewise.
573         (pa_output_movb): Likewise.
574         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
575         to simplify and for typesafety.
576         (pa_output_call): Use method of rtx_sequence *.
577         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
578         (pa_jump_in_call_delay): Likewise.
579         (pa_output_parallel_movb): Likewise.
580         (pa_output_parallel_addb): Likewise.
581         (pa_following_call): Likewise.
582         (pa_combine_instructions): Likewise for locals "anchor",
583         "floater".
584         (pa_can_combine_p): Likewise for params "anchor", "floater" and
585         locals "start", "end".
586         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
587         param "insn" and local "local_insn".
588         (picochip_final_prescan_insn): Likewise for local "local_insn".
589         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
590         local "insn".
591         (uses_TOC): Likewise.
592         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
593         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
594         splitting out to more tightly-scoped locals, 3 as rtx and one as
595         rtx_insn *.
596         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
597         to rtx_insn *.
598         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
599         where needed.
600         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
601         to rtx_insn *.
602         (fixup_addr_diff_vecs): Likewise.
603         (reg_unused_after): Likewise for param 2.
604         (sh_can_redirect_branch): Likewise for both params.
605         (check_use_sfunc_addr): Likewise for param 1.
606         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
607         (find_barrier): Likewise for local "last_got".
608         (gen_block_redirect): Likewise for return type, param "jump" and
609         locals "prev", "scan", "next", "insn".
610         (struct far_branch): Likewise for fields "near_label",
611         "insert_place", "far_label".
612         (gen_far_branch): Likewise for local "jump".
613         (fixup_addr_diff_vecs): Likewise for param "first" and locals
614         "insn", "prev".
615         (barrier_align): Likewise for param and for locals "prev", "x".
616         Introduce local rtx_sequence * "prev_seq" and use insn method for
617         typesafety and clarity.
618         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
619         (get_dest_uid): Likewise for local "dest".
620         (split_branches): Likewise for locals "next", "beyond", "label",
621         "block", "far_label".  Add checked casts when assigning to
622         bp->far_label and "far_label".
623         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
624         (sequence_insn_p): Likewise.
625         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
626         more loop-scoped rtx "insn" when walking LABEL_REFS.
627         (sh_can_redirect_branch): Strengthen both params from rtx to
628         rtx_insn *.
629         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
630         new local rtx_sequence * "seq" via a dyn_cast, and use a method
631         for clarity and typesafety.
632         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
633         "insn" from rtx to rtx_insn *.
634         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
635         when using NEXT_INSN on the CODE_LABEL in operands[2].
636         (define_insn "casesi_worker_2"): Likewise.
637         (define_insn "casesi_shift_media"): Likewise.
638         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
639         operands[3].
640         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
641         Strengthen field "insn" from rtx to rtx_insn *.
642         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
643         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
644         param "start_insn" and local "start_insn".
645         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
646         field "insn".
647         (find_set_of_reg_bb): Likewise for param "insn".
648         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
649         (trace_reg_uses): Likewise for param "start_insn".
650         (sh_treg_combine::cbranch_trace): Likewise for field
651         "cbranch_insn".
652         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
653         param "insn".
654         (sh_treg_combine::record_set_of_reg): Likewise for param
655         "start_insn" and local "i".
656         (sh_treg_combine::can_remove_cstore): Likewise for local
657         "prev_insn".
658         (sh_treg_combine::try_optimize_cbranch): Likewise for param
659         "insn".
660         (sh_treg_combine::execute): Likewise for local "i".
661         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
662         param.
663         (sparc_check_64): Likewise for second param.
664         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
665         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
666         dyn_cast, using its insn method for typesafety and clarity.
667         (empty_delay_slot): Strengthen param "insn" from rtx to
668         rtx_insn *.
669         (set_extends): Likewise.
670         (sparc_check_64): Likewise.
671         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
672         for locals "seq", "last_insn".
673         (combine_bnp): Likewise for param "insn".
674         (xstormy16_reorg): Likewise for local "insn".
675         * config/v850/v850.c (substitute_ep_register): Likewise for params
676         "first_insn", "last_insn" and local "insn".
677         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
678         elements of "regs" array, and local "insn".
679         * except.c (emit_note_eh_region_end): Likewise for param "insn".
680         * final.c (final_sequence): Strengthen this global from rtx to
681         rtx_sequence *.
682         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
683         rtx_insn *.
684         (final_scan_insn): Update assignment to "final_sequence" to be
685         from "seq", the cast version of "body", for type-safety.
686         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
687         "insns" from rtx to rtx_insn *.
688         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
689         * genattr.c (main): When writing out generated insn-attr.h,
690         strengthen params 1 and 3 of eligible_for_delay,
691         eligible_for_annul_true, eligible_for_annul_false from rtx to
692         rtx_insn *.
693         * genattrtab.c (write_eligible_delay): Likewise when writing out
694         generated insn-attrtab.c; also local "insn" the generated
695         functions.
696         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
697         to rtx_insn *.
698         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
699         "start_label" from rtx to rtx_insn *.
700         * ira.c (decrease_live_ranges_number): Likewise for local "p".
701         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
702         "insns" and local "insn".
703         (validate_equiv_mem): Likewise for param "start" and local "insn".
704         (memref_used_between_p): Likewise for params "start", "end" and
705         local "insn".
706         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
707         final param.
708         * loop-doloop.c (doloop_optimize): Within region guarded by
709         INSN_P (doloop_pat), introduce a new local rtx_insn *
710         "doloop_insn" via a checked cast, and use it for typesafety,
711         eventually writing the value back into doloop_pat.
712         * output.h (final_sequence): Strengthen this global from rtx to
713         rtx_sequence *.
714         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
715         reintroducing "insn" as an rtx_insn * via a checked cast.
716         Strengthen param "attempt" and local "new_insn"from rtx to
717         rtx_insn *.
718         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
719         to rtx_insn *.
720         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
721         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
722         "p" in favor of more tightly-scoped replacements, sometimes rtx
723         and sometimes rtx_insn *, as appropriate.
724         (delete_output_reload): Eliminate top-level rtx "i1", splitting
725         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
726         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
727         local "trial" from rtx to rtx_insn *.
728         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
729         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
730         rtx_sequence * and use methods for clarity and typesafety.
731         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
732         rtx to rtx_insn *.  Strenghten local "li" from rtx to
733         rtx_insn_list * and use its methods for clarity and typesafety.
734         (steal_delay_list_from_target): Strengthen param "insn" from rtx
735         to rtx_insn *.
736         (steal_delay_list_from_fallthrough): Likewise.
737         (try_merge_delay_insns): Likewise for param "thread" and locals
738         "trial", "next_trial", "delay_insn".
739         (redundant_insn): Likewise for param "target" and local "trial".
740         (own_thread_p): Likewise for param "thread" and locals
741         "active_insn", "insn".
742         (get_label_before): Likewise for param "insn".
743         (fill_simple_delay_slots): Likewise for local "new_label"; use
744         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
745         (label_before_next_insn): Strengthen return type and local "insn"
746         from rtx to rtx_insn *.
747         (relax_delay_slots): Likewise for locals "other", "tmp".
748         (make_return_insns): Likewise for param "first" and locals "insn",
749         "jump_insn", "prev".  Move declaration of "pat" to its assignment
750         and strengthen from rtx to rtx_sequence *.  Use its methods for
751         clarity and typesafety.
752         * rtlanal.c (no_labels_between_p): Strengthen params from
753         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
754         rtx_insn *.
755         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
756         from const_rtx to const rtx_insn *.
757         (reg_set_between_p): Rename param "from_insn" to
758         "uncast_from_insn", and reintroduce "from_insn" as a
759         const rtx_insn * via a checked cast.
760         (modified_between_p): Likewise for param "start" as "uncast_start".
761         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
762         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
763         "tmp", head" from rtx to rtx_insn *.
764         (recompute_rev_top_order): Likewise for local "insn".
765         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
766         * store-motion.c (build_store_vectors): Likewise for local "insn".
767         Strengthen local "st" from rtx to rtx_insn_list * and use methods
768         for clarity and typesafety.
769         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
770         rtx to rtx_insn *.
771         (computation_cost): Likewise for local "seq".
772         (get_address_cost): Likewise.
774 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
776         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
777         const rtx_insn *.
778         (label_is_jump_target_p): Likewise for second param.
780         * rtlanal.c (tablejump_p): Likewise for param "insn".
781         (label_is_jump_target_p): Likewise for param "jump_insn".
783 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
785         * rtl.h (find_first_parameter_load): Strengthen return type and
786         both params from rtx to rtx_insn *.
787         * rtlanal.c (find_first_parameter_load): Strengthen return type,
788         both params and locals "before", "first_set" from rtx to
789         rtx_insn *.  Remove now-redundant cast.
790         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
792 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
794         * rtl.h (find_last_value): Delete.
795         * rtlanal.c (find_last_value): Delete.
797 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
799         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
800         from rtx to rtx_insn *.
801         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
802         rtx "note" with new local rtx_insn * "new_head" when calculating
803         head insn of new basic block.
804         * combine.c (combine_split_insns): Strengthen return type and local
805         "ret" from rtx to rtx_insn *.
806         (likely_spilled_retval_p): Likewise for locals "use" and "p".
807         (try_combine): Eliminate local "m_split", splitting into new
808         locals "m_split_insn" and "m_split_pat".
809         (find_split_point): Strengthen local "seq" from rtx into
810         rtx_insn *.
811         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
812         locals "label", "branch".
813         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
814         for local "insn".
815         (define_expand "umulsi3_highpart"): Likewise for local "insn".
816         * dse.c (note_add_store_info): Likewise for fields "first",
817         "current".
818         (note_add_store): Likewise for local "insn".
819         (emit_inc_dec_insn_before): Likewise for locals "insn",
820         "new_insn", "cur".
821         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
822         (replace_read): Likewise for locals "insns", "this_insn".
823         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
824         (notice_eh_throw): Likewise for param "insn".
825         (before_next_cfi_note): Likewise for return type, param, and local
826         "prev".
827         (connect_traces): Likewise for local "note".
828         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
829         (verify_rtl_sharing): Likewise.
830         (unshare_all_rtl_in_chain): Likewise for param "insn".
831         (get_first_nonnote_insn): Likewise for local "insn".
832         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
833         "seq" and use its methods to clarify things.
834         (next_insn): Strengthen return type from rtx to rtx_insn *.
835         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
836         local rtx_insn * using a checked cast, dropping a checked cast
837         made redundant by this change.  Use a cast to and method of
838         rtx_sequence to clarify the code.
839         (previous_insn): Rename param "insn" to "uncast_insn" and
840         reintroduce "insn" as a local rtx_insn * using a checked cast,
841         dropping a checked cast made redundant by this change.  Use a cast
842         to and method of rtx_sequence to clarify the code.
843         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
844         reintroduce "insn" as a local rtx_insn * using a checked cast,
845         dropping a checked cast made redundant by this change.
846         (next_nonnote_insn_bb): Likewise.
847         (prev_nonnote_insn): Likewise.
848         (prev_nonnote_insn_bb): Likewise.
849         (next_nondebug_insn): Likewise.
850         (prev_nondebug_insn): Likewise.
851         (next_nonnote_nondebug_insn): Likewise.
852         (prev_nonnote_nondebug_insn): Likewise.
853         (next_real_insn): Likewise.
854         (prev_real_insn): Likewise.
855         (next_active_insn): Likewise.
856         (prev_active_insn): Likewise.
857         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
858         clarity.
859         (prev_cc0_setter): Likewise.
860         (try_split): Rename param "trial" to "uncast_trial" and
861         reintroduce "insn" as a local rtx_insn * using a checked cast,
862         dropping checked casts made redundant by this change.
863         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
864         rtx to rtx_insn *.
865         (remove_insn): Rename param "insn" to "uncast_insn" and
866         reintroduce "insn" as a local rtx_insn * using a checked cast.
867         (emit_pattern_after_setloc): Likewise for param "after", as
868         "uncast_after".
869         (emit_pattern_after): Likewise.  Strengthen local "prev" from
870         rtx to rtx_insn *.
871         (emit_pattern_before_setloc): Rename param "before" to
872         "uncast_before" and reintroduce "before" as a local rtx_insn *
873         using a checked cast.  Strengthen locals "first", "last" from
874         rtx to rtx_insn *.
875         (emit_pattern_before): Likewise rename/cast param "before" to
876         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
877         * except.c (copy_reg_eh_region_note_forward): Strengthen param
878         "first" and local "insn" from rtx to rtx_insn *.
879         (copy_reg_eh_region_note_backward): Likewise for param "last"
880         and local "insn".
881         * expr.c (fixup_args_size_notes): Rename param "last" to
882         "uncast_last" and reintroduce "last" as a local rtx_insn *
883         using a checked cast.  Strengthen local "insn" from rtx to
884         rtx_insn *.
885         * function.c (set_insn_locations): Strengthen param "insn" from
886         rtx to rtx_insn *.
887         (record_insns): Likewise for param "insns" and local "tmp".
888         (active_insn_between): Rename param "tail" to
889         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
890         using a checked cast.
891         (thread_prologue_and_epilogue_insns): Split out top-level local
892         rtx "seq" into three different rtx_insn * locals.  Strengthen
893         local "prologue_seq" from rtx to rtx_insn *.
894         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
895         from rtx to rtx_insn *.
896         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
897         (priority): Likewise for locals "prev_first", "twin".
898         (setup_insn_max_reg_pressure): Likewise for param "after".
899         (sched_setup_bb_reg_pressure_info): Likewise.
900         (no_real_insns_p): Strengthen params from const_rtx to
901         const rtx_insn *.
902         (schedule_block): Strengthen local "next_tail" from rtx to
903         rtx_insn *.
904         * ifcvt.c (find_active_insn_before): Strengthen return type and
905         param "insn" from rtx to rtx_insn *.
906         (find_active_insn_after): Likewise.
907         (cond_exec_process_insns): Likewise for param "start" and local "insn".
908         (cond_exec_process_if_block): Likewise for locals "then_start",
909         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
910         (noce_process_if_block): Likewise for local "jump".
911         (merge_if_block): Likewise for two locals named "end".
912         (cond_exec_find_if_block): Likewise for local "last_insn".
913         * jump.c (delete_related_insns): Rename param "insn" to
914         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
915         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
916         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
917         NULL.
918         (split_reg): Likewise.
919         * lra.c (lra_process_new_insns): Likewise.
920         * modulo-sched.c (permute_partial_schedule): Strengthen param
921         "last" from rtx to rtx_insn *.
922         * optabs.c (add_equal_note): Likewise for param "insns" and local
923         "last_insn".
924         (expand_binop_directly): Add checked casts to rtx_insn * within
925         NEXT_INSN (pat) uses.
926         (expand_unop_direct): Likewise.
927         (maybe_emit_unop_insn): Likewise.
928         * recog.c (peep2_attempt): Strengthen locals "last",
929         "before_try", "x" from rtx to rtx_insn *.
930         * reorg.c (optimize_skip): Strengthen return type and local
931         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
932         and locals "trial", "next_trial" from rtx to rtx_insn *.
933         * resource.c (next_insn_no_annul): Strengthen return type and
934         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
935         rtx_sequence to clarify the code.
936         (mark_referenced_resources): Add a checked cast to rtx_insn *
937         within PREV_INSN (x).
938         (find_dead_or_set_registers): Strengthen return type, param
939         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
940         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
941         to rtx_insn **.
942         (mark_target_live_regs): Strengthen params "insns" and "target",
943         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
944         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
945         the code.
946         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
947         from rtx to rtx_insn *.
948         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
949         from rtx to rtx_insn *.
950         (copy_reg_eh_region_note_backward): Likewise.
951         (unshare_all_rtl_in_chain): Likewise for sole param.
952         (dump_rtl_slim): Strengthen second and third params from const_rtx
953         to const rtx_insn *.
954         * sched-deps.c (sched_free_deps): Strengthen params "head" and
955         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
956         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
957         "next_tail" from rtx to rtx_insn *.
958         (begin_move_insn): Likewise for local "next".
959         * sched-int.h (sched_free_deps): Likewise for first and second
960         params.
961         (no_real_insns_p): Strengthen both params from const_rtx to
962         const rtx_insn *.
963         (sched_setup_bb_reg_pressure_info): Strengthen second params from
964         rtx to rtx_insn *.
965         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
966         "next_tail".
967         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
968         and locals "insn", "tail" from const_rtx to const rtx_insn *.
969         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
970         rtx_insn *.
971         (debug_rtl_slim): Strengthen params "first" and "last" from
972         const_rtx to const rtx_insn *.
973         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
974         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
975         (convert_to_simple_return): Likewise for param "returnjump".
976         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
977         "prologue_seq".
978         (convert_to_simple_return): Likewise for param "returnjump".
979         * valtrack.c (propagate_for_debug): Likewise for params
980         "insn", "last".
981         * valtrack.h (propagate_for_debug): Likewise for second param.
983 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
985         * output.h (insn_current_reference_address): Strengthen param
986         from rtx to rtx_insn *.
987         * final.c (insn_current_reference_address): Likewise.
989 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
991         * basic-block.h (inside_basic_block_p): Strengthen param from
992         const_rtx to const rtx_insn *.
993         * cfgbuild.c (inside_basic_block_p): Likewise.
995 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
997         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
998         rtx_insn *.
999         (get_trace_info): Likewise for param "insn".
1000         (save_point_p): Likewise.
1001         (maybe_record_trace_start): Likewise for both params.
1002         (maybe_record_trace_start_abnormal): Likewise.
1003         (create_trace_edges): Likewise for sole param and for three of the
1004         locals named "lab".
1005         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
1006         to rtx_insn *, and update a call to pat->element to pat->insn.
1008 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1010         * function.h (struct expr_status): Convert field "x_forced_labels"
1011         from rtx_expr_list * to rtx_insn_list *.
1013         * cfgbuild.c (make_edges): Convert local "x" from an
1014         rtx_expr_list * to an rtx_insn_list *, replacing use of
1015         "element" method with "insn" method.
1016         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1017         * except.c (sjlj_emit_dispatch_table): Replace use of
1018         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
1019         forced_labels.
1020         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
1021         rtx_expr_list * to an rtx_insn_list *, replacing use of
1022         "element" method with "insn" method.
1023         * reload1.c (set_initial_label_offsets): Likewise for local "x".
1024         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
1025         rtx_insn *, adding a checked cast.  Replace use of
1026         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
1027         forced_labels.
1028         (expand_label): Likewise for local "label_r".
1030 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1032         * function.h (struct rtl_data): Convert field
1033         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
1034         rtx_insn_list *.
1035         * rtl.h (remove_node_from_insn_list): New prototype.
1037         * builtins.c (expand_builtin): When prepending to
1038         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
1039         gen_rtx_EXPR_LIST.
1040         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
1041         to rtx_insn_list *, and use its "insn" method rather than
1042         "element" method.
1043         * cfgrtl.c (delete_insn): Use new function
1044         remove_node_from_insn_list rather than
1045         remove_node_from_expr_list.
1046         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
1047         to rtx_insn_list *, and use its "insn" method rather than
1048         "element" method.
1049         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1050         * reload1.c (set_initial_label_offsets): Likewise for local "x".
1051         * rtlanal.c (remove_node_from_insn_list): New function, adapted
1052         from remove_node_from_expr_list.
1053         * stmt.c (expand_label): When prepending to
1054         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
1055         gen_rtx_EXPR_LIST.
1057 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1059         * function.h (struct rtl_data): Strengthen fields "x_return_label"
1060         and "x_naked_return_label" from rtx to rtx_code_label *.
1062 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1064         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
1065         (SET_NEXT_INSN): Likewise.
1066         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
1068         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
1069         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
1070         to split out the SEQUENCE from local "bundle", strengthening the
1071         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
1072         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
1073         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
1074         and the type of the elements of the "slot" array from rtx to
1075         rtx_insn *.
1076         (reorg_split_calls): Likewise for locals "insn" and "next", and
1077         the type of the elements of the "slot" array.
1079         * config/frv/frv.c (frv_nops): Likewise for the elements of this
1080         array.
1081         (frv_function_prologue): Likewise for locals "insn", "next",
1082         "last_call".
1083         (frv_register_nop): Introduce a local "nop_insn" to be the
1084         rtx_insn * containing rtx "nop".
1086         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
1087         used as an insn and sometimes as a pattern, so rename it to
1088         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
1089         using it where dealing with the core insn.
1091         * config/picochip/picochip.c (reorder_var_tracking_notes):
1092         Strengthen locals "insn", "next", "last_insn", "queue",
1093         "next_queue", "prev" from rtx to rtx_insn *.
1095         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
1096         the second param is an rtx_insn ** rather than an rtx **.
1097         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
1098         from rtx to rtx_sequence *, and introduce local named "sequence",
1099         using methods of rtx_sequence to clarify the code.
1100         (remove_insn): Introduce local rtx_sequence * named "sequence" and
1101         use its methods.
1102         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
1103         Rename param "after" to "uncast_after", reintroducing "after" as a
1104         local rtx_insn * with a checked cast.
1105         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
1106         reintroducing "after" as a local rtx_insn * with a checked cast.
1107         Strengthen local "last" from rtx to rtx_insn * and remove the
1108         now-redundant checked casts.
1109         (copy_delay_slot_insn): Strengthen return type and param from rtx
1110         to rtx_insn *.
1112         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
1113         "last" from rtx to rtx_insn *.
1115 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1117         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
1118         param from rtx to rtx_insn *.
1120         * emit-rtl.c (copy_delay_slot_insn): Likewise.
1122         * reorg.c (skip_consecutive_labels): Strengthen return type, param
1123         and local "insn" from rtx to rtx_insn *.
1124         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
1125         (unfilled_slots_next): Likewise.
1126         (function_return_label): Strengthen from rtx to rtx_code_label *.
1127         (function_simple_return_label): Likewise.
1128         (first_active_target_insn): Strengthen return type and param from
1129         rtx to rtx_insn *.
1130         (find_end_label): Strengthen return type from rtx to
1131         rtx_code_label *; strengthen locals as appropriate.
1132         (emit_delay_sequence): Strengthen return type, param "insn" and
1133         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
1134         and local "li" from rtx to rtx_insn_list *, using methods of
1135         rtx_insn_list for clarity and typesafety.
1136         (add_to_delay_list): Strengthen return type and param "insn" from
1137         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
1138         rtx_insn_list * and use methods of rtx_insn_list.
1139         (delete_from_delay_slot): Strengthen return type, param "insn",
1140         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
1141         Strengthen local "seq" from rtx to rtx_sequence *, and local
1142         "delay_list" from rtx to rtx_insn_list *, using methods of
1143         rtx_sequence for clarity and type-safety.
1144         (delete_scheduled_jump): Add checked cast when invoking
1145         delete_from_delay_slot.  Strengthen local "trial" from rtx to
1146         rtx_insn *.
1147         (optimize_skip): Strengthen return type and local "delay_list"
1148         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
1149         rtx_insn *.
1150         (steal_delay_list_from_target): Strengthen return type, param
1151         "delay_list" and local "new_delay_list" from rtx to
1152         rtx_insn_list *.  Strengthen param "seq" from rtx to
1153         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
1154         rtx_insn **.
1155         Split out local "temp" into multiple more-tightly scoped locals:
1156         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
1157         of rtx_insn_list and rtx_sequence for clarity and typesafety.
1158         Strengthen locals named "trial" from rtx to rtx_insn *.
1159         (steal_delay_list_from_fallthrough): Strengthen return type and
1160         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
1161         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
1162         Strengthen local "trial" from rtx to rtx_insn *.
1163         (try_merge_delay_insns): Strength local "merged_insns" from rtx
1164         to rtx_insn_list * and use its methods.  Strengthen local "pat"
1165         from rtx to rtx_sequence * and use its methods.  Strengthen locals
1166         "dtrial" and "new_rtx" from rtx to rtx_insn *.
1167         (get_label_before): Strengthen return type and local "label" from
1168         rtx to rtx_insn *.
1169         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
1170         "next_trial", "next", prev".  Strengthen local "delay_list" from
1171         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
1172         rtx_insn **.
1173         (follow_jumps): Strengthen return type, param "label" and locals
1174         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
1175         (fill_slots_from_thread): Strengthen return type, param
1176         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
1177         "insn", "thread", "opposite_thread" and locals "new_thread",
1178         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
1179         "sequence" from a checked cast to rtx_sequence so that we can call
1180         steal_delay_list_from_target and steal_delay_list_from_fallthrough
1181         with an rtx_sequence *.
1182         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
1183         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
1184         Strengthen local "delay_list" from rtx to rtx_insn_list *.
1185         (relax_delay_slots): Strengthen param "first" and locals "insn",
1186         "next", "trial", "delay_insn", "target_label" from rtx to
1187         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
1188         Introduce a local "trial_seq" for PATTERN (trial) of type
1189         rtx_sequence *, in both cases using methods of rtx_sequence.
1190         (dbr_schedule): Strengthen param "first" and locals "insn",
1191         "next", "epilogue_insn" from rtx to rtx_insn *.
1193 2014-08-28  Richard Biener  <rguenther@suse.de>
1195         PR tree-optimization/62283
1196         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1197         Do not peel loops for alignment where the vector loop likely
1198         doesn't run at least VF times.
1200 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
1202         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
1203         important_candidates.  Consider all important candidates if
1204         IVS doesn't give any result.  Remove check on ivs->upto.
1205         (try_add_cand_for): Call iv_ca_add_use only once.
1207 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1208             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1209             Anna Tikhonova  <anna.tikhonova@intel.com>
1210             Ilya Tocar  <ilya.tocar@intel.com>
1211             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1212             Ilya Verbin  <ilya.verbin@intel.com>
1213             Kirill Yukhin  <kirill.yukhin@intel.com>
1214             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1216         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
1217         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
1218         masking.
1219         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
1220         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1221         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1222         (define_insn "*mul<mode>3"): Add EVEX version.
1224 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1225             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1226             Anna Tikhonova  <anna.tikhonova@intel.com>
1227             Ilya Tocar  <ilya.tocar@intel.com>
1228             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1229             Ilya Verbin  <ilya.verbin@intel.com>
1230             Kirill Yukhin  <kirill.yukhin@intel.com>
1231             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1233         * config/i386/sse.md
1234         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
1235         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
1236         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
1237         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
1238         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
1239         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
1240         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
1241         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
1242         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
1243         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
1244         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
1245         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
1246         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
1247         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
1248         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
1249         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
1251 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1252             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1253             Anna Tikhonova  <anna.tikhonova@intel.com>
1254             Ilya Tocar  <ilya.tocar@intel.com>
1255             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1256             Ilya Verbin  <ilya.verbin@intel.com>
1257             Kirill Yukhin  <kirill.yukhin@intel.com>
1258             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1260         * config/i386/sse.md
1261         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
1262         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
1263         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
1265 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1266             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1267             Anna Tikhonova  <anna.tikhonova@intel.com>
1268             Ilya Tocar  <ilya.tocar@intel.com>
1269             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1270             Ilya Verbin  <ilya.verbin@intel.com>
1271             Kirill Yukhin  <kirill.yukhin@intel.com>
1272             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1274         * config/i386/sse.md
1275         (define_mode_iterator VI128_256): New.
1276         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1278 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1279             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1280             Anna Tikhonova  <anna.tikhonova@intel.com>
1281             Ilya Tocar  <ilya.tocar@intel.com>
1282             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1283             Ilya Verbin  <ilya.verbin@intel.com>
1284             Kirill Yukhin  <kirill.yukhin@intel.com>
1285             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1287         * config/i386/sse.md
1288         (define_mode_iterator VI8_256_512): New.
1289         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
1290         Ditto.
1291         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
1292         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
1293         Ditto.
1294         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
1296 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1298         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
1299         pointer to the cumulative reloc value and return the value for
1300         this reloc instead.
1301         (compute_reloc_for_rtx): Take a const_rtx.  Call
1302         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
1303         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
1304         for_each_rtx for the CONST case.
1306 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1308         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
1309         (mark_constants_in_pattern): ...this new function to iterate over
1310         all the subrtxes.
1311         (mark_constants): Update accordingly.
1313 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1315         * varasm.c: Include rtl-iter.h.
1316         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
1317         Remove the pointer to the cumulative hashval_t and just return
1318         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
1319         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1320         Accumulate the hashval_ts here instead of const_rtx_hash_1.
1322 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1324         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
1325         Give real type of data parameter.  Remove return value.
1326         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
1327         to iterate over subrtxes.
1329 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1331         * var-tracking.c (use_narrower_mode_test): Turn from being a
1332         for_each_rtx callback to being a function that examines each
1333         subrtx itself.
1334         (adjust_mems): Update accordingly.
1336 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1338         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
1339         callback to being a function that examines each subrtx itself.
1340         Remove handling of null rtxes.
1341         (add_uses): Update accordingly.
1343 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1345         * var-tracking.c: Include rtl-iter.h.
1346         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
1347         to being a function that examines each subrtx itself.
1348         (use_type): Update accordingly.
1350 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1352         * store-motion.c: Include rtl-iter.h.
1353         (extract_mentioned_regs_1): Delete.
1354         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
1355         for_each_rtx to iterate over subrtxes.
1357 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1359         * sel-sched.c: Include rtl-iter.h
1360         (count_occurrences_1): Delete.
1361         (count_occurrences_equiv): Turn rtxes into const_rtxes.
1362         Use FOR_EACH_SUBRTX rather than for_each_rtx.
1364 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1366         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
1367         * rtlanal.c (tls_referenced_p_1): Delete.
1368         (tls_referenced_p): Take a const_rtx rather than an rtx.
1369         Use FOR_EACH_SUBRTX rather than for_each_rtx.
1371 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1373         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
1374         (for_each_inc_dec): Take an rtx rather than an rtx *.
1375         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
1376         (cselib_record_sets): Likewise.
1377         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
1378         (check_for_inc_dec): Likewise.
1379         * rtlanal.c (for_each_inc_dec_ops): Delete.
1380         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
1381         rather than a pointer to the memory address.  Replace
1382         for_each_inc_dec_ops argument with separate function and data
1383         arguments.  Abort on non-autoinc addresses.
1384         (for_each_inc_dec_find_mem): Delete.
1385         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
1386         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
1388 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1390         * rtl.h (find_all_hard_regs): Declare.
1391         * rtlanal.c (find_all_hard_regs): New function.
1392         (record_hard_reg_uses_1): Delete.
1393         (record_hard_reg_uses): Use find_all_hard_regs.
1395 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1397         * rtl.h (replace_label_data): Delete.
1398         (replace_label): Take the old label, new label and update-nuses flag
1399         as direct arguments.  Return void.
1400         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
1401         * rtlanal.c (replace_label): Update interface as above.  Handle
1402         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
1403         iterator.  Use FOR_EACH_SUBRTX_PTR.
1405 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1407         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
1408         with const_rtx parameters.
1409         * varasm.c (get_pool_constant): Likewise.
1410         * rtlanal.c (rtx_referenced_p_1): Delete.
1411         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1412         Assert that the rtx we're looking for is nonnull.  Allow searches
1413         for constant pool SYMBOL_REFs.
1415 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1417         * reload1.c: Include rtl-iter.h.
1418         (note_reg_elim_costly): Turn from being a for_each_rtx callback
1419         to being a function that examines each subrtx itself.
1420         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
1422 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1424         * regcprop.c (cprop_find_used_regs_1): Delete.
1425         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1427 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1429         * regcprop.c: Include rtl-iter.h.
1430         (kill_value): Take a const_rtx.
1431         (kill_autoinc_value): Turn from being a for_each_rtx callback
1432         to being a function that examines each subrtx itself.
1433         (copyprop_hardreg_forward_1): Update accordingly.
1435 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1437         * reg-stack.c: Include rtl-iter.h.
1438         (subst_stack_regs_in_debug_insn): Delete.
1439         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
1440         instead of for_each_rtx.
1442 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1444         * lower-subreg.c (find_decomposable_subregs): Turn from being
1445         a for_each_rtx callback to being a function that examines each
1446         subrtx itself.  Remove handling of null rtxes.
1447         (decompose_multiword_subregs): Update accordingly.
1449 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1451         * lower-subreg.c (adjust_decomposed_uses): Delete.
1452         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
1453         Remove handling of null rtxes.
1455 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1457         * lower-subreg.c: Include rtl-iter.h.
1458         (resolve_subreg_use): Turn from being a for_each_rtx callback
1459         to being a function that examines each subrtx itself.  Remove
1460         handling of null rtxes.
1461         (resolve_reg_notes, resolve_simple_move): Update accordingly.
1462         (decompose_multiword_subregs): Likewise.
1464 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1466         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
1467         to being a function that examines each subrtx itself.
1468         (simplify_using_condition, simplify_using_initial_values): Update
1469         accordingly.
1471 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1473         * loop-iv.c: Include rtl-iter.h.
1474         (find_single_def_src): New function.
1475         (replace_single_def_regs): Turn from being a for_each_rtx callback
1476         to being a function that examines each subrtx itself.
1477         (replace_in_expr, simplify_using_initial_values): Update accordingly.
1479 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1481         * jump.c (eh_returnjump_p_1): Delete.
1482         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1483         Remove handling of null rtxes.
1485 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1487         * jump.c: Include rtl-iter.h.
1488         (returnjump_p_1): Delete.
1489         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1490         Remove handling of null rtxes.
1492 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1494         * ira.c: Include rtl-iter.h.
1495         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
1496         to being a function that examines each subrtx itself.  Remove
1497         handling of null rtxes.
1498         (update_equiv_regs): Update call accordingly.
1500 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1502         * fwprop.c: Include rtl-iter.h.
1503         (varying_mem_p): Turn from being a for_each_rtx callback to being
1504         a function that examines each subrtx itself.
1505         (propagate_rtx): Update accordingly.
1507 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1509         * function.c: Include rtl-iter.h
1510         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
1511         callback to being a function that examines each subrtx itself.
1512         Return the changed flag.
1513         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
1514         (instantiate_virtual_regs): Update calls accordingly.
1516 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1518         * final.c: Include rtl-iter.h.
1519         (mark_symbol_ref_as_used): Delete.
1520         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
1521         for_each_rtx.
1523 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1525         * emit-rtl.c: Include rtl-iter.h.
1526         (find_auto_inc): Turn from being a for_each_rtx callback to being
1527         a function that examines each subrtx itself.  Assume the first operand
1528         to an RTX_AUTOINC is the automodified register.
1529         (try_split): Update call accordingly.
1531 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1533         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
1534         Return a bool, inverting the result so that 0/false means "not ok".
1535         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
1536         subrtxes of a CONST.
1537         (mem_loc_descriptor, add_const_value_attribute)
1538         (resolve_addr_in_expr): Update calls accordingly.
1540 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1542         * dwarf2out.c: Include rtl-iter.h.
1543         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
1544         Remove unused data parameter.  Return a bool, inverting the result
1545         so that 0/false means "not ok".
1546         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
1547         instead of for_each_rtx.
1549 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1551         * dse.c: Include rtl-iter.h.
1552         (check_mem_read_rtx): Change void * parameter to real type.
1553         Remove return value.
1554         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
1555         for_each_rtx.  Don't handle null rtxes.
1557 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1559         * df-problems.c: Include rtl-iter.h.
1560         (find_memory): Turn from being a for_each_rtx callback to being
1561         a function that examines each subrtx itself.  Continue to look for
1562         volatile references even after a nonvolatile one has been found.
1563         (can_move_insns_across): Update calls accordingly.
1565 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1567         * ddg.c (walk_mems_2, walk_mems_1): Delete.
1568         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
1569         to iterate over subrtxes.  Return a bool rather than an int.
1571 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1573         * ddg.c: Include rtl-iter.h.
1574         (mark_mem_use_1): Rename to...
1575         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
1576         instead of for_each_rtx.
1577         (mem_read_insn_p): Update accordingly.
1579 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1581         * cse.c (change_cc_mode_args): Delete.
1582         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
1583         a function that examines each subrtx itself.  Take the fields of
1584         change_cc_mode_args as argument and return void.
1585         (cse_change_cc_mode_insn): Update calls accordingly.
1587 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1589         * cse.c (is_dead_reg): Change argument to const_rtx.
1590         (dead_debug_insn_data): Delete.
1591         (is_dead_debug_insn): Expand commentary.  Turn from being a
1592         for_each_rtx callback to being a function that examines
1593         each subrtx itself.  Take the fields of dead_debug_insn_data
1594         as argument.
1595         (delete_trivially_dead_insns): Update call accordingly.
1597 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1599         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
1600         being a for_each_rtx callback to being a function that examines
1601         each subrtx itself.
1602         (cse_extended_basic_block): Update call accordingly.
1604 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1606         * cse.c (check_dependence_data): Delete.
1607         (check_dependence): Change from being a for_each_rtx callback to being
1608         a function that examines all subrtxes itself.  Don't handle null rtxes.
1609         (invalidate): Update call accordingly.
1611 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1613         * cse.c: Include rtl-iter.h.
1614         (approx_reg_cost_1): Delete.
1615         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1616         Don't handle null rtxes.
1618 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1620         * cfgcleanup.c: Include rtl-iter.h.
1621         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
1622         to being a function that examines each subrtx itself.
1623         (thread_jump): Update accordingly.
1625 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1627         * combine-stack-adj.c: Include rtl-iter.h.
1628         (record_stack_refs_data): Delete.
1629         (record_stack_refs): Turn from being a for_each_rtx callback
1630         to being a function that examines each subrtx itself.
1631         Take a pointer to the reflist.  Invert sense of return value
1632         so that true means success and false means failure.  Don't
1633         handle null rtxes.
1634         (combine_stack_adjustments_for_block): Update accordingly.
1636 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1638         * combine.c (record_truncated_value): Turn from being a for_each_rtx
1639         callback to a function that takes an rtx and returns a bool
1640         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
1641         for_each_rtx.
1643 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1645         * combine.c: Include rtl-iter.h.
1646         (unmentioned_reg_p_1): Delete.
1647         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
1648         Don't handle null rtxes.
1650 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1652         * calls.c: Include rtl-iter.h.
1653         (internal_arg_pointer_based_exp_1): Delete.
1654         (internal_arg_pointer_based_exp): Take a const_rtx.
1655         Use FOR_EACH_SUBRTX to iterate over subrtxes.
1657 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1659         * caller-save.c: Include rtl-iter.h.
1660         (add_used_regs_1): Delete.
1661         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
1662         to iterate over subrtxes.  Assert that any remaining pseudos
1663         have been spilled.
1665 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1667         * bt-load.c: Include rtl-iter.h.
1668         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
1669         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
1670         to iterate over subrtxes.
1671         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
1672         find_btr_use rather than btr_referenced_p.
1674 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1676         * alias.c: Include rtl-iter.h.
1677         (refs_newer_value_cb): Delete.
1678         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1680 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1682         * rtl-iter.h: New file.
1683         * rtlanal.c: Include it.
1684         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
1685         (generic_subrtx_iterator <T>::add_single_to_queue)
1686         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
1687         (generic_subrtx_iterator <T>::free_array): New functions.
1688         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
1689         (generic_subrtx_iterator <const_rtx_accessor>)
1690         (generic_subrtx_iterator <rtx_var_accessor>
1691         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
1692         (setup_reg_subrtx_bounds): New function.
1693         (init_rtlanal): Call it.
1695 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
1697         PR target/62261
1698         * config/sh/sh.md (ashlsi3): Handle negative shift count for
1699         TARGET_SHMEDIA.
1700         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
1702 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
1704         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
1706 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1708         * rtl.h (JUMP_LABEL_AS_INSN): New.
1710 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1712         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
1713         rtx_expr_list **.
1714         (alloc_EXPR_LIST): Strengthen return type from rtx to
1715         rtx_expr_list *.
1716         (remove_free_EXPR_LIST_node): Likewise for param.
1717         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
1718         from rtx to rtx_expr_list *.
1719         * sched-int.h (struct deps_desc): Strengthen fields
1720         "pending_read_mems" and "pending_write_mems" from rtx to
1721         rtx_expr_list *.
1723         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
1724         rtx to rtx_expr_list *.
1725         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
1726         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
1727         rtx_expr_list **.
1728         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
1729         from rtx to rtx_expr_list *.
1730         * loop-iv.c (simplify_using_initial_values): Strengthen local
1731         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
1732         "pnote_next" from rtx * to rtx_expr_list **.
1733         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
1734         param "exprp" from rtx * to rtx_expr_list **.
1735         (add_insn_mem_dependence): Strengthen local "mem_list" from
1736         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
1737         to rtx_expr_list *.
1738         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
1739         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
1740         param "old_mems_p" from rtx * to rtx_expr_list **.
1741         * var-tracking.c (struct adjust_mem_data): Strengthen field
1742         "side_effects" from rtx to rtx_expr_list *.
1743         (adjust_insn): Replace NULL_RTX with NULL when assigning to
1744         rtx_expr_list *.
1745         (prepare_call_arguments): Likewise.
1747 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1749         * function.h (struct rtl_data): Strengthen field
1750         "x_stack_slot_list" from rtx to rtx_expr_list *.
1752         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
1753         when assigning to stack_slot_list.
1755 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1757         * function.h (struct rtl_data): Strengthen field
1758         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
1759         * rtl.h (remove_node_from_expr_list): Strengthen second param from
1760         rtx * to rtx_expr_list **.
1762         * cfgbuild.c (make_edges): In loop over
1763         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
1764         rtx_expr_list *, and use methods of the latter class to clarify
1765         the code.
1766         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
1767         rtx_expr_list *, and use methods of the latter class to clarify
1768         the code.
1769         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1770         * reload1.c (set_initial_label_offsets): Likewise for local "x".
1771         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
1772         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
1773         to rtx_expr_list *.  Use methods of the latter class to clarify
1774         the code.
1776 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1778         * function.h (struct expr_status): Strengthen field
1779         "x_forced_labels" from rtx to rtx_expr_list *.
1781         * cfgbuild.c (make_edges): Split local "x" into two locals,
1782         strengthening one from rtx to rtx_expr_list *, and using methods
1783         of said class.
1784         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
1785         loop over forced_labels, introduce strengthen it from rtx to
1786         rtx_expr_list *, using methods to clarify the code.
1787         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
1788         to rtx_expr_list *, using methods of said class to clarify the
1789         code.
1790         * reload1.c (set_initial_label_offsets): Split local "x" into two
1791         per-loop variables, strengthening the first from rtx to
1792         rtx_expr_list * and using methods.
1794 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1796         * coretypes.h (class rtx_expr_list): Add forward declaration.
1797         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
1798         * gengenrtl.c (special_rtx): Add EXPR_LIST.
1799         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
1800         invariant: GET_CODE (X) == EXPR_LIST.
1801         (is_a_helper <rtx_expr_list *>::test): New.
1802         (rtx_expr_list::next): New.
1803         (rtx_expr_list::element): New.
1804         (gen_rtx_EXPR_LIST): New.
1806 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1808         * varasm.c (mark_constants): Convert a GET_CODE check into a
1809         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
1810         Use methods of rtx_sequence to clarify the code.
1812 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1814         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
1815         local "seq" via a checked cast, and use methods of rtx_sequence
1816         to simplify the code.
1818 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1820         * resource.c (mark_referenced_resources): Strengthen local
1821         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
1822         using methods of rtx_sequence to clarify the code.
1823         (find_dead_or_set_registers): Within the switch statement, convert
1824         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
1825         the JUMP_P handling, introduce another local "seq", adding a
1826         checked cast to rtx_sequence *.  In both cases, use methods of
1827         rtx_sequence to clarify the code.
1828         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
1829         via a checked cast, and use methods of rtx_sequence to simplify
1830         the code.
1832 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1834         * reorg.c (redundant_insn): In two places in the function, replace
1835         a check of GET_CODE with a dyn_cast, introducing local "seq", and
1836         usings methods of rtx_sequence to clarify the code.
1838 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1840         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
1841         local "seq" with a checked cast, and use methods of rtx_sequence
1842         to clarify the code.
1844 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1846         * function.c (contains): Introduce local "seq" for PATTERN (insn),
1847         with a checked cast, in the region for where we know it's a
1848         SEQUENCE.  Use methods of rtx_sequence.
1850 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1852         * final.c (get_attr_length_1): Replace GET_CODE check with a
1853         dyn_cast, introducing local "seq" and the use of methods of
1854         rtx_sequence.
1855         (shorten_branches): Likewise, introducing local "body_seq".
1856         Strengthen local "inner_insn" from rtx to rtx_insn *.
1857         (reemit_insn_block_notes): Replace GET_CODE check with a
1858         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
1859         Use methods of rtx_sequence.
1860         (final_scan_insn): Likewise, introducing local "seq" for when
1861         "body" is known to be a SEQUENCE, using its methods.
1863 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1865         * except.c (can_throw_external): Strengthen local "seq" from rtx
1866         to rtx_sequence *.  Use methods of rtx_sequence.
1867         (insn_nothrow_p): Likewise.
1869 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1871         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
1872         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
1873         Use methods of rtx_sequence.
1874         (scan_trace): Likewise for local "pat".
1876 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1878         * coretypes.h (class rtx_sequence): Add forward declaration.
1879         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
1880         invariant: GET_CODE (X) == SEQUENCE.
1881         (is_a_helper <rtx_sequence *>::test): New.
1882         (is_a_helper <const rtx_sequence *>::test): New.
1883         (rtx_sequence::len): New.
1884         (rtx_sequence::element): New.
1885         (rtx_sequence::insn): New.
1887 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1889         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
1890         rtx_insn_list **.
1891         (alloc_INSN_LIST): Strengthen return type from rtx to
1892         rtx_insn_list *.
1893         (copy_INSN_LIST): Likewise for return type and param.
1894         (concat_INSN_LIST): Likewise for both params and return type.
1895         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
1896         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
1897         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
1898         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
1900         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
1901         "implicit_sets", "control_uses", "clobbers" from rtx to
1902         rtx_insn_list *.
1903         (struct deps_desc): Likewise for fields "pending_read_insns",
1904         "pending_write_insns", "pending_jump_insns",
1905         "last_pending_memory_flush", "last_function_call",
1906         "last_function_call_may_noreturn", "sched_before_next_call",
1907         "sched_before_next_jump".
1908         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
1909         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
1911         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
1912         from rtx to rtx_insn_list *.
1913         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
1914         rtx_insn_list *.
1916         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
1917         to rtx_insn_list **.
1918         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
1919         rtx_insn_list *.
1920         (queue_insn): Likewise for local "link".
1921         (struct haifa_saved_data): Strengthen field "insn_queue" from
1922         rtx * to rtx_insn_list **.
1923         (save_backtrack_point): Update allocation of save->insn_queue to
1924         reflect the strengthening of elements from rtx to rtx_insn_list *.
1925         (queue_to_ready): Strengthen local "link" from rtx to
1926         rtx_insn_list *; use methods "next" and "insn" when traversing the
1927         list.
1928         (early_queue_to_ready): Likewise for locals "link", "next_link",
1929         "prev_link".
1930         (schedule_block): Update allocation of insn_queue to reflect the
1931         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
1932         local "link" from rtx to rtx_insn_list *, and use methods when
1933         working it.
1934         (add_to_speculative_block): Strengthen locals "twins" and
1935         "next_node" from rtx to rtx_insn_list *, and use methods when
1936         working with them.  Strengthen local "twin" from rtx to
1937         rtx_insn *, eliminating a checked cast.
1938         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
1939         from rtx to rtx_insn_list *, and use methods when working with
1940         them.
1942         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
1943         from rtx to rtx_insn_list *, adding a checked cast.
1944         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
1945         rtx_insn_list **.
1946         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
1947         "newlink" from rtx to rtx_insn_list *.  Strengthen local
1948         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
1949         from rtx to rtx_insn *.
1950         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
1951         from rtx to rtx_insn_list *.  Use methods of the latter class.
1952         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
1953         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
1954         (remove_free_INSN_LIST_node): Strengthen return type and local
1955         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
1956         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
1957         rtx_insn_list *, using "insn" method.
1959         * sched-deps.c (add_dependence_list):  Strengthen param "list"
1960         from rtx to rtx_insn_list *, and use methods when working with it.
1961         (add_dependence_list_and_free):  Strengthen param "listp" from
1962         rtx * to rtx_insn_list **.
1963         (remove_from_dependence_list): Strenghten param "listp" from rtx *
1964         to rtx_insn_list **, and use methods when working with *listp.
1965         (remove_from_both_dependence_lists): Strengthen param "listp" from
1966         rtx * to rtx_insn_list **
1967         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
1968         to rtx_insn_list **.  Eliminate local "link", in favor of two new
1969         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
1970         respectively.
1971         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
1972         by introducing local "cond_deps".
1973         (remove_from_deps): Strengthen param "insn" from rtx to
1974         rtx_insn *.
1976         * sched-rgn.c (concat_insn_mem_list): Strengthen param
1977         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
1978         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
1979         Use methods of rtx_insn_list.
1981         * store-motion.c (struct st_expr): Strengthen fields
1982         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
1983         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
1984         rtx_insn_list *.
1985         (find_moveable_store): Split out "tmp" into multiple more-tightly
1986         scoped locals.  Use methods of rtx_insn_list *.
1987         (compute_store_table): Strengthen local "tmp" from rtx to
1988         rtx_insn *.  Use methods of rtx_insn_list *.
1990 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
1992         * coretypes.h (class rtx_insn_list): Add forward declaration.
1993         * rtl.h (class rtx_insn_list): New subclass of rtx_def
1994         (is_a_helper <rtx_insn_list *>::test): New.
1995         (rtx_insn_list::next): New.
1996         (rtx_insn_list::insn): New.
1997         (gen_rtx_INSN_LIST): Add prototype.
1998         * emit-rtl.c (gen_rtx_INSN_LIST): New.
1999         * gengenrtl.c (special_rtx): Add INSN_LIST.
2001 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2003         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
2004         "prev" from rtx to rtx_insn *.
2006 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2008         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
2009         functions.  Require merely an rtx for now, not an rtx_insn *.
2010         (BLOCK_FOR_INSN): Likewise.
2011         (INSN_LOCATION): Likewise.
2012         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
2014 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2016         * rtl.h (PATTERN): Convert this macro into a pair of inline
2017         functions, for now, requiring const_rtx and rtx.
2019 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2021         * target.def (unwind_emit): Strengthen param "insn" from rtx to
2022         rtx_insn *.
2023         (final_postscan_insn): Likewise.
2024         (adjust_cost): Likewise.
2025         (adjust_priority): Likewise.
2026         (variable_issue): Likewise.
2027         (macro_fusion_pair_p): Likewise.
2028         (dfa_post_cycle_insn): Likewise.
2029         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
2030         (first_cycle_multipass_issue): Likewise.
2031         (dfa_new_cycle): Likewise.
2032         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
2033         (speculate_insn): Likewise for param "insn".
2034         (gen_spec_check): Likewise for params "insn" and "label".
2035         (get_insn_spec_ds): Likewise for param "insn".
2036         (get_insn_checked_ds): Likewise.
2037         (dispatch_do): Likewise.
2038         (dispatch): Likewise.
2039         (cannot_copy_insn_p): Likewise.
2040         (invalid_within_doloop): Likewise.
2041         (legitimate_combined_insn): Likewise.
2042         (needed): Likewise.
2043         (after): Likewise.
2045         * doc/tm.texi: Automatically updated to reflect changes to
2046         target.def.
2048         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
2049         working with insn.
2050         (schedule_block): Likewise.
2051         (sched_init): Likewise.
2052         (sched_speculate_insn): Strengthen param "insn" from rtx to
2053         rtx_insn *.
2054         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
2055         working with insn.
2056         * hooks.c (hook_bool_rtx_true): Rename to...
2057         hook_bool_rtx_insn_true): ...this, and strengthen first param from
2058         rtx to rtx_insn *.
2059         (hook_constcharptr_const_rtx_null): Rename to...
2060         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
2061         first param from const_rtx to const rtx_insn *.
2062         (hook_bool_rtx_int_false): Rename to...
2063         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
2064         param from rtx to rtx_insn *.
2065         (hook_void_rtx_int): Rename to...
2066         (hook_void_rtx_insn_int): ...this, and strengthen first param from
2067         rtx to rtx_insn *.
2069         * hooks.h (hook_bool_rtx_true): Rename to...
2070         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
2071         rtx to rtx_insn *.
2072         (hook_bool_rtx_int_false): Rename to...
2073         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
2074         param from rtx to rtx_insn *.
2075         (hook_void_rtx_int): Rename to...
2076         (hook_void_rtx_insn_int): ...this, and strengthen first param from
2077         rtx to rtx_insn *.
2078         (hook_constcharptr_const_rtx_null): Rename to...
2079         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
2080         first param from const_rtx to const rtx_insn *.
2082         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
2083         and local "prev" from rtx to rtx_insn *.
2085         * sched-int.h (sched_speculate_insn): Strengthen first param from
2086         rtx to rtx_insn *.
2088         * sel-sched.c (create_speculation_check): Likewise for local "label".
2089         * targhooks.c (default_invalid_within_doloop): Strengthen param
2090         "insn" from const_rtx to const rtx_insn *.
2091         * targhooks.h (default_invalid_within_doloop): Strengthen param
2092         from const_rtx to const rtx_insn *.
2094         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
2095         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
2097         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
2098         "insn".
2099         (arc_invalid_within_doloop): Likewise, with const.
2101         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
2102         (arm_cannot_copy_insn_p): Likewise for param "insn".
2103         (arm_unwind_emit): Likewise.
2105         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
2106         "dep_insn".
2108         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
2109         (c6x_variable_issue): Likewise.  Removed now-redundant checked
2110         cast.
2111         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
2113         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
2114         Likewise for param "insn".
2115         (epiphany_mode_after): Likewise.
2116         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
2117         params "insn", "dep_insn".
2118         (epiphany_mode_needed): Likewise for param "insn".
2119         (epiphany_mode_after): Likewise.
2121         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
2122         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2123         (ix86_avx_u128_mode_needed): Likewise.
2124         (ix86_i387_mode_needed): Likewise.
2125         (ix86_mode_needed): Likewise.
2126         (ix86_avx_u128_mode_after): Likewise.
2127         (ix86_mode_after): Likewise.
2128         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
2129         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
2130         (ix86_adjust_priority): Likewise for param "insn".
2131         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
2132         (do_dispatch): Likewise.
2133         (has_dispatch): Likewise.
2134         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
2136         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
2137         reflect renaming of default hook implementation from
2138         hook_constcharptr_const_rtx_null to
2139         hook_constcharptr_const_rtx_insn_null.
2140         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
2141         rtx to rtx_insn *.
2142         (ia64_variable_issue): Likewise for param "insn".
2143         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
2144         (ia64_dfa_new_cycle): Likewise.
2145         (ia64_get_insn_spec_ds): Likewise.
2146         (ia64_get_insn_checked_ds): Likewise.
2147         (ia64_speculate_insn): Likewise.
2148         (ia64_gen_spec_check): Likewise for params "insn", "label".
2149         (ia64_asm_unwind_emit): Likewise for param "insn".
2151         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
2153         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
2154         "insn", "def_insn".
2155         (m68k_sched_variable_issue): Likewise for param "insn".
2157         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
2158         "def_insn".
2160         * config/microblaze/microblaze.c (microblaze_adjust_cost):
2161         Likewise for params "insn", "dep".
2163         * config/mips/mips.c (mips_adjust_cost): Likewise.
2164         (mips_variable_issue): Likewise for param "insn".
2165         (mips_final_postscan_insn): Likewise.
2167         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
2168         for params "insn", "dep".
2170         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
2171         "dep_insn".
2172         (pa_adjust_priority): Likewise for param "insn".
2174         * config/picochip/picochip.c (picochip_sched_adjust_cost):
2175         Likewise for params "insn", "dep_insn".
2177         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
2178         param "insn".
2179         (rs6000_variable_issue): Likewise.
2180         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
2181         (rs6000_debug_adjust_cost): Likewise.
2182         (rs6000_adjust_priority): Likewise for param "insn".
2183         (rs6000_use_sched_lookahead_guard): Likewise.
2184         (get_next_active_insn): Likewise for return type and both params.
2185         (redefine_groups): Likewise for params "prev_head_insn", "tail"
2186         and locals "insn", "next_insn".
2187         (pad_groups): Likewise.
2189         * config/s390/s390.c (s390_adjust_priority): Likewise for param
2190         "insn".
2191         (s390_cannot_copy_insn_p): Likewise.
2192         (s390_sched_variable_issue): Likewise for third param, eliminating
2193         checked cast.
2194         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
2195         default hook implementation from hook_constcharptr_const_rtx_null
2196         to hook_constcharptr_const_rtx_insn_null.
2198         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
2199         from rtx to rtx_insn *.
2200         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
2201         (sh_variable_issue): Likewise for param "insn".
2202         (sh_dfa_new_cycle): Likewise.
2203         (sh_mode_needed): Likewise.
2204         (sh_mode_after): Likewise.
2206         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
2207         params "insn", "dep_insn".
2208         (hypersparc_adjust_cost): Likewise.
2209         (sparc_adjust_cost): Likewise.
2211         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
2212         param, eliminated checked cast.
2213         (spu_sched_adjust_cost): Likewise for first and third params.
2215         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
2216         params "insn" and "dep_insn" from rtx to rtx_insn *.
2218         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
2220 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2222         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
2223         (set_is_load_p): ...this, updating to work on a SET pattern rather
2224         than an insn.
2225         (is_store_insn): Rename to...
2226         (set_is_store_p): ...this, updating to work on a SET pattern
2227         rather than an insn.
2228         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
2229         top of function to where it is needed.  Rewrite the bogus
2230         condition that checks for "insn" and "dep" being PARALLEL to
2231         instead use single_set, introducing locals "insn_set" and
2232         "dep_set".  Given that we only ever returned "cost" for a non-pair
2233         of SETs, bail out early if we don't have a pair of SET.
2234         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
2235         use the new locals "insn_set" and "dep_set", and update calls to
2236         is_load_insn and is_store_insn to be calls to set_is_load_p and
2237         set_is_store_p.
2239 2014-08-27  Guozhi Wei  <carrot@google.com>
2241         PR target/62262
2242         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
2243         amount before using it.
2245 2014-08-27  Richard Biener  <rguenther@suse.de>
2247         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
2248         get_maxval_strlen inside a more useful API.
2249         (gimple_fold_builtin_with_strlen): Remove and fold into ...
2250         (gimple_fold_builtin): ... caller.
2251         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
2252         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
2253         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
2254         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
2255         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
2256         gimple_fold_builtin_sprintf): Adjust to compute maxval
2257         themselves.
2259 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
2261         PR other/62248
2262         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
2264 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2265             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2266             Anna Tikhonova  <anna.tikhonova@intel.com>
2267             Ilya Tocar  <ilya.tocar@intel.com>
2268             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2269             Ilya Verbin  <ilya.verbin@intel.com>
2270             Kirill Yukhin  <kirill.yukhin@intel.com>
2271             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2273         * config/i386/sse.md
2274         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
2275         Use `concat_tg_mode' attribute to determine asm register size.
2277 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2278             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2279             Anna Tikhonova  <anna.tikhonova@intel.com>
2280             Ilya Tocar  <ilya.tocar@intel.com>
2281             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2282             Ilya Verbin  <ilya.verbin@intel.com>
2283             Kirill Yukhin  <kirill.yukhin@intel.com>
2284             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2286         * config/i386/sse.md
2287         (define_mode_iterator VI48_AVX512VL): New.
2288         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
2289         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
2290         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
2291         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2292         with VI1): Change mode iterator.
2293         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2294         with VI_ULOADSTORE_BW_AVX512VL): New.
2295         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2296         with VI_ULOADSTORE_F_AVX512VL): Ditto.
2297         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2298         with VI1): Change mode iterator.
2299         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2300         with VI_ULOADSTORE_BW_AVX512VL): New.
2301         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2302         with VI_ULOADSTORE_F_AVX512VL): Ditto.
2303         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2304         with VI1): Change mode iterator.
2305         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2306         with VI_ULOADSTORE_BW_AVX512VL): New.
2307         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2308         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
2309         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
2310         (define_insn "<avx512>_storedqu<mode>_mask" with
2311         VI48_AVX512VL): New.
2312         (define_insn "<avx512>_storedqu<mode>_mask" with
2313         VI12_AVX512VL): Ditto.
2315 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2316             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2317             Anna Tikhonova  <anna.tikhonova@intel.com>
2318             Ilya Tocar  <ilya.tocar@intel.com>
2319             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2320             Ilya Verbin  <ilya.verbin@intel.com>
2321             Kirill Yukhin  <kirill.yukhin@intel.com>
2322             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2324         * config/i386/sse.md
2325         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
2326         (define_mode_iterator VI48_AVX512BW): New.
2327         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
2328         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2329         with VI48_AVX2_48_AVX512F): New.
2330         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2331         with VI2_AVX512VL): Ditto.
2333 2014-08-27  Richard Biener  <rguenther@suse.de>
2335         PR middle-end/62239
2336         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
2337         (fold_builtin_3): Do not fold strcat_chk here.
2338         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
2339         from builtins.c.
2340         (gimple_fold_builtin): Fold strcat_chk here.
2342 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
2344         * dwarf2out.h (dwarf2out_decl): Remove prototype.
2345         * dwarf2out.c (dwarf2out_decl): Make static.
2347 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
2349         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
2351 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2353         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
2354         from rtx to rtx_insn *.
2355         (cselib_lookup_from_insn): Likewise for final param.
2356         (cselib_subst_to_values_from_insn): Likewise.
2357         (cselib_add_permanent_equiv): Likewise.
2359         * cselib.c (cselib_current_insn): Likewise for this variable.
2360         (cselib_subst_to_values_from_insn): Likewise for param "insn".
2361         (cselib_lookup_from_insn): Likewise.
2362         (cselib_add_permanent_equiv): Likewise for param "insn" and local
2363         "save_cselib_current_insn".
2364         (cselib_process_insn): Replace use of NULL_RTX with NULL.
2366         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
2367         from rtx to rtx_insn *.
2369 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2371         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
2372         rtx_insn *.
2374 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2376         * df.h (df_dump_insn_problem_function): Strengthen first param of
2377         this callback from const_rtx to const rtx_insn *.
2378         (struct df_insn_info): Strengthen field "insn" from rtx to
2379         rtx_insn *.
2380         (DF_REF_INSN): Eliminate this function, reinstating the older
2381         macro definition.
2382         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
2383         (df_reg_defined): Likewise.
2384         (df_find_use): Likewise.
2385         (df_reg_used): Likewise.
2386         (df_dump_insn_top): Strengthen param 1 from const_rtx to
2387         const rtx_insn *.
2388         (df_dump_insn_bottom): Likewise.
2389         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
2390         (df_insn_debug_regno): Likewise.
2391         (debug_df_insn): Likewise.
2392         (df_rd_simulate_one_insn): Likewise for param 2.
2393         (df_word_lr_simulate_defs): Likewise for param 1.
2394         (df_word_lr_simulate_uses): Likewise.
2395         (df_md_simulate_one_insn): Likewise for param 2.
2396         (df_simulate_find_noclobber_defs): Likewise for param 1.
2397         (df_simulate_find_defs): Likewise.
2398         (df_simulate_defs): Likewise.
2399         (df_simulate_uses): Likewise.
2400         (df_simulate_one_insn_backwards): Likewise for param 2.
2401         (df_simulate_one_insn_forwards): Likewise.
2402         (df_uses_create): Likewise for param 2.
2403         (df_insn_create_insn_record): Likewise for param 1.
2404         (df_insn_delete): Likewise.
2405         (df_insn_rescan): Likewise.
2406         (df_insn_rescan_debug_internal): Likewise.
2407         (df_insn_change_bb): Likewise.
2408         (df_notes_rescan): Likewise.
2409         * rtl.h (remove_death): Likewise for param 2.
2410         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
2411         const rtx_insn *.
2412         * sched-int.h (reemit_notes): Strengthen param from rtx to
2413         rtx_insn *.
2414         * valtrack.h (propagate_for_debug): Likewise for param 1.
2416         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
2417         local "tmp_rtx" from const_rtx to const rtx_insn *.
2418         * combine.c (remove_death): Strengthen param "insn" from rtx to
2419         rtx_insn *.
2420         (move_deaths): Likewise for local "where_dead".
2421         * cse.c (delete_trivially_dead_insns): Introduce local
2422         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
2423         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
2424         rtx_insn *.
2425         (df_reg_defined): Likewise.
2426         (df_find_use): Likewise.
2427         (df_reg_used): Likewise.
2428         (df_dump_insn_problem_data): Strengthen param "insn" from
2429         const_rtx to const rtx_insn *.
2430         (df_dump_insn_top): Likewise.
2431         (df_dump_insn_bottom): Likewise.
2432         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
2433         (df_insn_debug_regno): Likewise.
2434         (debug_df_insn): Likewise.
2435         (DF_REF_INSN): Delete.
2436         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
2437         from rtx to rtx_insn *.
2438         (df_chain_insn_top_dump): Strengthen param "insn" from
2439         const_rtx to const rtx_insn *.
2440         (df_chain_insn_bottom_dump): Likewise.
2441         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
2442         rtx_insn *.
2443         (df_word_lr_simulate_uses): Likewise.
2444         (df_print_note): Likewise.
2445         (df_remove_dead_and_unused_notes): Likewise.
2446         (df_set_unused_notes_for_mw): Likewise.
2447         (df_set_dead_notes_for_mw): Likewise.
2448         (df_create_unused_note): Likewise.
2449         (df_simulate_find_defs): Likewise.
2450         (df_simulate_find_uses): Likewise.
2451         (df_simulate_find_noclobber_defs): Likewise.
2452         (df_simulate_defs): Likewise.
2453         (df_simulate_uses): Likewise.
2454         (df_simulate_one_insn_backwards): Likewise.
2455         (df_simulate_one_insn_forwards): Likewise.
2456         (df_md_simulate_one_insn): Likewise.
2457         * df-scan.c (df_uses_create): Likewise.
2458         (df_insn_create_insn_record): Likewise.
2459         (df_insn_delete): Likewise.
2460         (df_insn_rescan): Likewise.
2461         (df_insn_rescan_debug_internal): Likewise.
2462         (df_insn_change_bb): Likewise.
2463         (df_notes_rescan): Likewise.
2464         (df_refs_add_to_chains): Likewise.
2465         (df_insn_refs_verify): Likewise.
2466         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
2467         when invoking df_insn_delete.
2468         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
2469         (set_unique_reg_note): Add checked cast.
2470         * final.c (cleanup_subreg_operands): Likewise.
2471         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
2472         "insn" from rtx to rtx_insn *.
2473         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
2474         "last" from rtx to rtx_insn *.
2475         * ira-emit.c (change_regs_in_insn): New function.
2476         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
2477         Invoke change_regs_in_insn rather than change_regs.
2478         * ira.c (update_equiv_regs): Strengthen locals "insn",
2479         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
2480         for_each_rtx_in_insn rather than for_each_rtx.
2481         * recog.c (confirm_change_group): Add checked casts.
2482         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
2483         Add checked cast.
2484         (peep2_fill_buffer): Add checked cast.
2485         * rtlanal.c (remove_note): Likewise.
2486         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
2487         locals "next" "end" from rtx to rtx_insn *.
2489 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2491         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
2492         to rtx_insn *.
2493         (struct reg_use_data): Likewise for field "insn".
2494         (insn_cost): Likewise for param.
2495         (real_insn_for_shadow): Likewise for return type and param.
2496         (increase_insn_priority): Likewise for param 1.
2497         (debug_dependencies): Likewise for both params.
2499         * haifa-sched.c (insn_delay): Likewise for param "insn".
2500         (real_insn_for_shadow): Likewise for return type and param "insn".
2501         (update_insn_after_change): Likewise for param "insn".
2502         (recompute_todo_spec): Likewise for param "next" and locals "pro",
2503         "other".
2504         (insn_cost): Likewise for param "insn".
2505         (increase_insn_priority): Likewise.
2506         (calculate_reg_deaths): Likewise.
2507         (setup_insn_reg_pressure_info): Likewise.
2508         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
2509         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
2510         (model_recompute): Likewise.
2511         (must_restore_pattern_p): Likewise for param "next".
2512         (model_excess_cost): Likewise for param "insn".
2513         (queue_remove): Likewise.
2514         (adjust_priority): Likewise for param "prev".
2515         (update_register_pressure): Likewise for param "insn".
2516         (setup_insn_max_reg_pressure): Likewise for local "insn".
2517         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
2518         (model_add_to_schedule): Likewise.
2519         (model_reset_queue_indices): Likewise for local "insn".
2520         (unschedule_insns_until): Strengthen local "recompute_vec" from
2521         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
2522         "con" from rtx to rtx_insn *.
2523         (restore_last_backtrack_point): Likewise for both locals "x". Add
2524         checked casts.
2525         (estimate_insn_tick): Likewise for param "insn".
2526         (commit_schedule): Likewise for params "prev_head", "tail" and
2527         local "x".
2528         (verify_shadows): Likewise for locals "i1", "i2".
2529         (dump_insn_stream): Likewise for params "head", "tail" and locals
2530         "next_tail", "insn".
2531         (schedule_block): Likewise for locals "insn", "x".  Add a checked
2532         cast.
2533         (fix_inter_tick): Likewise for params "head", "tail".
2534         (create_check_block_twin): Likewise for local "jump".
2535         (haifa_change_pattern): Likewise for param "insn".
2536         (haifa_speculate_insn): Likewise.
2537         (dump_new_block_header): Likewise for params "head", "tail".
2538         (fix_jump_move): Likewise for param "jump".
2539         (move_block_after_check): Likewise.
2540         (sched_init_insn_luid): Likewise for param "insn".
2541         (sched_init_luids): Likewise for local "insn".
2542         (insn_luid): Likewise for param "insn".
2543         (init_h_i_d): Likewise.
2544         (haifa_init_h_i_d): Likewise for local "insn".
2545         (haifa_init_insn): Likewise for param "insn".
2546         * sched-deps.c (add_dependence): Likewise for local "real_pro",
2547         "other".
2548         (create_insn_reg_use): Likewise for param "insn".
2549         (setup_insn_reg_uses): Likewise.  Add a checked cast.
2550         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
2551         "tail" from rtx to rtx_insn *.
2552         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
2553         "insn", "next_tail".
2555 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2557         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
2558         from rtx to rtx_insn *.
2559         (model_add_to_schedule): Likewise for locals "start", "end",
2560         "iter".
2562 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2564         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
2565         rtx_insn *.
2566         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
2567         "to" and locals "insn", "next", "copy".  Remove now-redundant
2568         checked cast.
2570 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2572         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
2573         rtx_insn * and param 4 from rtx * to rtx_insn **.
2574         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
2575         param 2 from rtx * to rtx_insn **.
2577         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
2578         rtx_insn * and final param from rtx * to rtx_insn **.
2580         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
2581         from rtx to rtx_insn *.
2582         (try_head_merge_bb): Likewise for both locals named "move_upto".
2583         * df-problems.c (can_move_insns_across): Likewise for params
2584         "from", "to", "across_from", "across_to" and locals "insn",
2585         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
2586         rtx_insn **.
2587         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
2588         from rtx to rtx_insn *.
2589         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
2590         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
2591         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
2592         rtx_insn *.
2593         (noce_try_abs): Likewise.
2594         (noce_get_condition): Likewise for param "jump".  Strengthen param
2595         "earliest" from rtx * to rtx_insn **.
2596         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
2597         rtx_insn *.
2598         (find_cond_trap): Likewise.
2599         (dead_or_predicable): Likewise for local "earliest".
2600         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
2601         checked cast.
2602         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
2603         and local "prev".  Strengthen param "earliest" from rtx * to
2604         rtx_insn **.
2605         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
2606         Strengthen param "earliest" from rtx * to rtx_insn **.
2608 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2610         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
2611         "to" and local "insn" from rtx to rtx_insn *.
2613 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2615         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
2616         from rtx to rtx_insn *.
2617         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
2618         (code_motion_path_driver): Likewise for local "last_insn".
2619         (simplify_changed_insns): Likewise for local "insn".
2621 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2623         * rtl.h (push_to_sequence): Strengthen param from rtx to
2624         rtx_insn *.
2625         (push_to_sequence2): Likewise for both params.
2626         (delete_insns_since): Likewise for param.
2627         (reorder_insns_nobb): Likewise for all three params.
2628         (set_new_first_and_last_insn): Likewise for both params.
2630         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
2631         rtx_insn *.  Remove now-redundant cast.
2632         (set_last_insn): Likewise.
2634         * builtins.c (expand_builtin_return): Strengthen local
2635         "call_fusage" from rtx to rtx_insn *.
2636         * cfgrtl.c (create_basic_block_structure): Likewise for local
2637         "after".
2638         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
2639         "first", "last" and local "insn".
2640         (delete_insns_since): Likewise for param "from".
2641         (reorder_insns_nobb): Likewise for params "from", "to", "after"
2642         and local "x".
2643         (push_to_sequence): Likewise for param "first" and local "last".
2644         (push_to_sequence2): Likewise for params "first" and "last".
2645         * lra.c (emit_add3_insn): Likewise for local "last".
2646         (lra_emit_add): Likewise.
2647         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
2648         "last_insn".
2649         (process_address_1): Likewise for locals "insn", last".
2650         * modulo-sched.c (ps_first_note): Likewise for return type.
2651         * optabs.c (expand_binop_directly): Likewise for param "last".
2653 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2655         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
2656         to rtx_insn*.
2657         * emit-rtl.c (get_last_insn_anywhere): Likewise.
2659 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2661         * function.h (struct sequence_stack): Strengthen fields "first"
2662         and "last" from rtx to rtx_insn *.
2663         (struct emit_status): Likewise for fields "x_first_insn" and
2664         "x_last_insn".
2666         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
2667         (set_first_insn): Add checked cast.
2668         (get_last_insn): Remove now-redundant checked cast.
2669         (set_last_insn): Add checked cast.
2671         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
2672         "saved_first" and "saved_last" from rtx to rtx_insn *.
2674 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2676         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
2677         (unlink_insn_chain): Strengthen both params from rtx to
2678         rtx_insn *.
2680         * cfgrtl.c (cfg_layout_function_header): Likewise for this
2681         variable.
2682         (unlink_insn_chain): Likewise for params "first" and "last".
2683         Remove now-redundant checked cast.
2684         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
2685         (fixup_reorder_chain): Strengthen local "insn" from rtx to
2686         rtx_insn *.
2687         * emit-rtl.c (link_insn_into_chain): Likewise for all three
2688         params.
2689         (add_insn): Likewise for param "insn" and local "prev".
2690         (add_insn_after_nobb): Likewise for both params and local "next".
2691         (add_insn_before_nobb): Likewise for both params and local "prev".
2692         (add_insn_after): Rename param "after" to "uncast_after",
2693         introducing local "after" with another checked cast.
2694         (add_insn_before): Rename params "insn" and "before", giving them
2695         "uncast_" prefixes, adding the old names back using checked casts.
2696         (emit_note_after): Likewise for param "after".
2697         (emit_note_before): Likewise for param "before".
2698         (emit_label): Add a checked cast.
2700 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2702         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
2703         "insn" from rtx to rtx_insn *.
2705         * cselib.c (cselib_record_sets_hook): Likewise.
2707         * var-tracking.c (add_with_sets): Likewise, renaming back from
2708         "uncast_insn" to "insn" and eliminating the checked cast from rtx
2709         to rtx_insn *.
2711 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2713         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
2714         and "header_" from rtx to rtx_insn *.
2715         (struct basic_block_d): Likewise for field "head_" within "x"
2716         field of union basic_block_il_dependent.
2717         (BB_HEAD): Drop function...
2718         (SET_BB_HEAD): ...and this function in favor of...
2719         (BB_HEAD): ...reinstate macro.
2720         (BB_END): Drop function...
2721         (SET_BB_END): ...and this function in favor of...
2722         (BB_END): ...reinstate macro.
2723         (BB_HEADER): Drop function...
2724         (SET_BB_HEADER): ...and this function in favor of...
2725         (BB_HEADER): ...reinstate macro.
2727         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
2728         (fix_crossing_unconditional_branches): Likewise.
2729         * caller-save.c (save_call_clobbered_regs): Likewise.
2730         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
2731         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
2732         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
2733         (merge_blocks_move_successor_nojumps): Likewise.
2734         (outgoing_edges_match): Update use of for_each_rtx to
2735         for_each_rtx_in_insn.
2736         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
2737         (expand_gimple_cond): Likewise.
2738         (expand_gimple_tailcall): Likewise.
2739         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
2740         SET_BB_END.
2741         (construct_exit_block): Drop use of SET_BB_END.
2742         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
2743         rtx_insn *.
2744         (delete_insn): Rename param "insn" to "uncast_insn", introducing
2745         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
2746         SET_BB_HEAD and SET_BB_END.
2747         (create_basic_block_structure): Drop use of SET_BB_HEAD and
2748         SET_BB_END.
2749         (rtl_delete_block): Drop use of SET_BB_HEAD.
2750         (rtl_split_block): Drop use of SET_BB_END.
2751         (emit_nop_for_unique_locus_between): Likewise.
2752         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
2753         (block_label): Drop use of SET_BB_HEAD.
2754         (fixup_abnormal_edges): Drop use of SET_BB_END.
2755         (record_effective_endpoints): Drop use of SET_BB_HEADER.
2756         (relink_block_chain): Likewise.
2757         (fixup_reorder_chain): Drop use of SET_BB_END.
2758         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
2759         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
2760         rtx_insn **.  Drop use of SET_BB_HEADER.
2761         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
2762         SET_BB_HEAD.
2763         (BB_HEAD): Delete this function.
2764         (SET_BB_HEAD): Likewise.
2765         (BB_END): Likewise.
2766         (SET_BB_END): Likewise.
2767         (BB_HEADER): Likewise.
2768         (SET_BB_HEADER): Likewise.
2769         * emit-rtl.c (add_insn_after):  Rename param "insn" to
2770         "uncast_insn", adding a new local "insn" and a checked cast to
2771         rtx_insn *.  Drop use of SET_BB_END.
2772         (remove_insn): Strengthen locals "next" and "prev" from rtx to
2773         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
2774         (reorder_insns): Drop use of SET_BB_END.
2775         (emit_insn_after_1): Strengthen param "first" and locals "last",
2776         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
2777         (emit_pattern_after_noloc): Add checked cast.
2778         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
2779         (restore_other_notes): Likewise.
2780         (move_insn): Likewise.
2781         (sched_extend_bb): Likewise.
2782         (fix_jump_move): Likewise.
2783         * ifcvt.c (noce_process_if_block): Likewise.
2784         (dead_or_predicable): Likewise.
2785         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
2786         * reg-stack.c (change_stack): Drop use of SET_BB_END.
2787         * sel-sched-ir.c (sel_move_insn): Likewise.
2788         * sel-sched.c (move_nop_to_previous_block): Likewise.
2790         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
2791         SET_BB_END.
2792         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
2794 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2796         * basic-block.h (create_basic_block_structure): Strengthen params
2797         1 "head" and 2 "end" from rtx to rtx_insn *.
2798         * cfgrtl.c (create_basic_block_structure): Likewise.
2799         (rtl_create_basic_block): Update casts from void * to rtx to
2800         rtx_insn *, so that we can pass them as rtx_insn * to
2801         create_basic_block_structure.
2802         * sel-sched-ir.c (sel_create_basic_block): Likewise.
2804 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2806         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
2807         rtx_insn **.
2808         (check_for_inc_dec): Strengthen param "insn" from rtx to
2809         rtx_insn *.
2811         * cselib.h (cselib_process_insn): Likewise.
2813         * cselib.c (cselib_record_sets): Likewise.
2814         (cselib_process_insn): Likewise.
2816         * dse.c (struct insn_info): Likewise for field "insn".
2817         (check_for_inc_dec_1): Likewise for local "insn".
2818         (check_for_inc_dec): Likewise for param "insn".
2819         (scan_insn): Likewise.
2820         (dse_step1): Likewise for local "insn".
2822         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
2823         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
2825 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2827         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
2828         from rtx to rtx_insn *.
2829         (DEP_PRO): Delete this function and...
2830         (SET_DEP_PRO): ...this function in favor of...
2831         (DEP_PRO): ...reinstate this macro.
2832         (DEP_CON): Delete this function and...
2833         (SET_DEP_CON): ...this function in favor of...
2834         (DEP_CON): ...reinstate this old macro.
2835         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
2836         (init_dep): Likewise.
2837         (set_priorities): Likewise for both params.
2838         (sd_copy_back_deps): Likewise for params 1 and 2.
2840         * haifa-sched.c (priority): Likewise for param "insn" and local
2841         "next".
2842         (set_priorities): Likewise for params "head" and "tail" and local
2843         "insn".
2844         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
2845         local "consumer".
2846         (add_to_speculative_block): Add a checked cast.
2847         (create_check_block_twin): Drop use of SET_DEP_CON.
2848         (add_jump_dependencies): Strengthen params "insn" and "jump" from
2849         rtx to rtx_insn *.
2851         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
2852         Drop use of SET_DEP_PRO
2853         (init_dep): Strengthen params "pro" and "con" from rtx to
2854         rtx_insn *.
2855         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
2856         use of SET_DEP_CON.
2857         (DEP_PRO): Delete.
2858         (DEP_CON): Delete.
2859         (SET_DEP_PRO): Delete.
2860         (SET_DEP_CON): Delete.
2862 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2864         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
2865         from rtx to rtx_insn *.
2866         (VINSN_INSN_RTX): Eliminate rvalue function and...
2867         (SET_VINSN_INSN): ...lvalue function in favor of...
2868         (VINSN_INSN_RTX): reinstate this old macro.
2870         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
2871         in favor of VINSN_INSN_RTX.
2872         (VINSN_INSN_RTX): Delete this function.
2873         (SET_VINSN_INSN_RTX): Likewise.
2875 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2877         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
2878         (BND_TO): Delete this function and...
2879         (SET_BND_TO): ...this functions in favor of...
2880         (BND_TO): ...reinstating this macro.
2881         (struct _fence): Strengthen field "executing_insns" from
2882         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
2883         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
2884         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
2885         and param "insn" from rtx to insn_t.
2886         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
2887         rtx_insn *.
2889         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
2890         vec<rtx_insn *> .
2891         (rtx_vec_t): Likewise.
2892         (struct sched_deps_info_def): Strengthen param of "start_insn"
2893         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
2894         "note_mem_dep" callback and first param of "note_dep" callback.
2896         * haifa-sched.c (add_to_speculative_block): Strengthen param
2897         "insn" from rtx to rtx_insn *.
2898         (clear_priorities): Likewise.
2899         (calc_priorities): Likewise for local "insn".
2901         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
2902         Remove redundant checked cast.
2903         (haifa_note_mem_dep): Likewise for param "pending_insn".
2904         (haifa_note_dep): Likewise for param "elem".
2905         (note_mem_dep): Likewise for param "e".
2906         (sched_analyze_1): Add checked casts.
2907         (sched_analyze_2): Likewise.
2909         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
2910         from rtx to rtx_insn *.
2911         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
2912         from vec<rtx> * to vec<rtx_insn *> *.
2914         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
2915         scaffolding.
2916         (flist_add): Strengthen param "executing_insns" from
2917         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
2918         (advance_deps_context): Remove now-redundant checked cast.
2919         (init_fences): Replace uses of NULL_RTX with NULL.
2920         (merge_fences): Strengthen params "last_scheduled_insn" and
2921         "sched_next" from rtx to rtx_insn * and "executing_insns" from
2922         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
2923         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
2924         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
2925         an instruction, rather than doing double-duty as a pattern.
2926         (return_nop_to_pool): Update for change of insn_t.
2927         (deps_init_id): Remove now-redundant checked cast.
2928         (struct sched_scan_info_def): Strengthen param of "init_insn"
2929         callback from rtx to insn_t.
2930         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
2931         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
2932         NULL.
2933         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
2934         "end" from rtx to rtx_insn *.
2935         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
2936         (rtx insn_rtx, bool force_unique_p)
2937         (BND_TO): Delete function.
2938         (SET_BND_TO): Delete function.
2940         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
2941         rtx to rtx_insn *.
2942         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
2943         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
2944         rtx to rtx_insn *.
2945         (undo_transformations): Likewise for param "insn".
2946         (update_liveness_on_insn): Likewise.
2947         (compute_live_below_insn): Likewise for param "insn" and local
2948         "succ".
2949         (update_data_sets): Likewise for param "insn".
2950         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
2951         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
2952         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
2953         rtx_insn *.
2954         (move_cond_jump): Likewise for param "insn".
2955         (move_cond_jump): Drop use of SET_BND_TO.
2956         (compute_av_set_on_boundaries): Likewise.
2957         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
2958         (update_and_record_unavailable_insns): Strengthen local "bb_end"
2959         from rtx to rtx_insn *.
2960         (maybe_emit_renaming_copy): Likewise for param "insn".
2961         (maybe_emit_speculative_check): Likewise.
2962         (handle_emitting_transformations): Likewise.
2963         (remove_insn_from_stream): Likewise.
2964         (code_motion_process_successors): Strengthen local "succ" from rtx
2965         to insn_t.
2967 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2969         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
2970         ilist_t, not _xlist_t;
2971         (ILIST_INSN): Define in terms of new union field "insn".
2972         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
2973         _XLIST_NEXT.
2974         (struct _list_node): Add new field "insn" to the union, of type
2975         insn_t.
2976         (ilist_add): Replace macro with an inline function, requiring an
2977         insn_t.
2978         (ilist_remove): Define this macro directly in terms of
2979         _list_remove, rather than indirectly via _xlist_remove.
2980         (ilist_clear): Likewise, in terms of _list_clear rather than
2981         _xlist_clear.
2982         (ilist_is_in_p): Replace macro with an inline function, requiring
2983         an insn_t.
2984         (_list_iter_cond_insn): New function.
2985         (ilist_iter_remove): Define this macro directly in terms of
2986         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
2987         (ilist_iterator): Define directly in terms of _list_iterator
2988         rather than indirectly through _xlist_iterator.
2989         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
2990         than in terms of _FOR_EACH_X.
2991         (FOR_EACH_INSN_1): Likewise.
2993 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
2995         PR target/60606
2996         PR target/61330
2997         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
2998         DECL_HARD_REGISTER and return for invalid register specifications.
2999         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
3000         DECL_HARD_REGISTER, call expand_one_error_var.
3001         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
3002         CC_REGNUM with non-MODE_CC modes.
3003         (arm_regno_class): Return NO_REGS for PC_REGNUM.
3005 2014-08-26  Marek Polacek  <polacek@redhat.com>
3007         PR c/61271
3008         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
3010 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
3012         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
3013         qi cost; add di cost.
3014         (cortexa57_addrcost_table): Likewise.
3016 2014-08-26  Marek Polacek  <polacek@redhat.com>
3018         PR c/61271
3019         * expr.c (is_aligning_offset): Remove logical not.
3021 2014-08-26  Marek Polacek  <polacek@redhat.com>
3023         PR c/61271
3024         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
3025         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
3027 2014-08-26  Richard Biener  <rguenther@suse.de>
3029         PR tree-optimization/62175
3030         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
3031         expand possibly trapping operations.
3033 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3035         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
3036         "insn" from rtx to rtx_insn *.
3037         (permute_load): Likewise for param "insn".
3038         (permute_store): Likewise.
3039         (handle_special_swappables): Likewise for local "insn".
3040         (replace_swap_with_copy): Likewise for locals "insn" and
3041         "new_insn".
3042         (rs6000_analyze_swaps): Likewise for local "insn".
3044 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3046         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
3047         to rtx_insn *.
3049 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3051         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
3052         "note_list" from rtx to rtx_insn *.
3053         (BB_NOTE_LIST): Replace this function and...
3054         (SET_BB_NOTE_LIST): ...this function with...
3055         (BB_NOTE_LIST): ...the former macro implementation.
3057         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
3058         local "from_start" from rtx to rtx_insn *.  Strengthen param
3059         "to_endp" from rtx * to rtx_insn **.
3061         * haifa-sched.c (concat_note_lists): Likewise.
3062         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
3063         BB_NOTE_LIST.
3064         (sel_restore_notes): Likewise.
3065         (move_bb_info): Likewise.
3066         (BB_NOTE_LIST): Delete this function.
3067         (SET_BB_NOTE_LIST): Delete this function.
3068         * sel-sched.c (create_block_for_bookkeeping): Eliminate
3069         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
3071 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3073         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
3074         from rtx * to rtx_insn **.
3075         (reorder2): Likewise.
3076         (dependencies_evaluation_hook): Strengthen params "head", "tail"
3077         from rtx to rtx_insn *.
3079         * doc/tm.texi: Update mechanically for above change to target.def.
3081         * sched-int.h (note_list): Strengthen this variable from rtx to
3082         rtx_insn *.
3083         (remove_notes): Likewise for both params.
3084         (restore_other_notes): Likewise for return type and first param.
3085         (struct ready_list): Strengthen field "vec" from rtx * to
3086         rtx_insn **.
3087         (struct dep_replacement): Strenghten field "insn" from rtx to
3088         rtx_insn *.
3089         (struct deps_desc): Likewise for fields "last_debug_insn",
3090         "last_args_size".
3091         (struct haifa_sched_info): Likewise for callback field
3092         "can_schedule_ready_p"'s param, for first param of "new_ready"
3093         callback field, for both params of "rank" callback field, for
3094         first field of "print_insn" callback field (with a const), for
3095         both params of "contributes_to_priority" callback, for param
3096         of "insn_finishes_block_p" callback, for fields "prev_head",
3097         "next_tail", "head", "tail", for first param of "add_remove_insn"
3098         callback, for first param of "begin_schedule_ready" callback, for
3099         both params of "begin_move_insn" callback, and for second param
3100         of "advance_target_bb" callback.
3101         (add_dependence): Likewise for params 1 and 2.
3102         (sched_analyze): Likewise for params 2 and 3.
3103         (deps_analyze_insn): Likewise for param 2.
3104         (ready_element): Likewise for return type.
3105         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3106         (try_ready): Strenghten param from rtx to rtx_insn *.
3107         (sched_emit_insn): Likewise for return type.
3108         (record_delay_slot_pair): Likewise for params 1 and 2.
3109         (add_delay_dependencies): Likewise for param.
3110         (contributes_to_priority): Likewise for both params.
3111         (find_modifiable_mems): Likewise.
3113         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
3114         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
3115         "first_older_only_insn" from rtx to rtx_insn *.
3116         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
3117         rtx_insn **.
3119         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
3120         "last_scheduled_iter0" from rtx to rtx_insn *.
3121         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
3122         (c6x_sched_reorder_1): Strengthen param "ready" and locals
3123         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
3124         "insn" from rtx to rtx_insn *.
3125         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
3126         rtx_insn **.
3127         (c6x_sched_reorder2): Strengthen param "ready" and locals
3128         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
3129         "insn" from rtx to rtx_insn *.
3130         (c6x_variable_issue):  Add a checked cast when assigning from insn
3131         to ss.last_scheduled_iter0.
3132         (split_delayed_branch): Strengthen param "insn" and local "i1"
3133         from rtx to rtx_insn *.
3134         (split_delayed_nonbranch): Likewise.
3135         (undo_split_delayed_nonbranch): Likewise for local "insn".
3136         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
3137         "entry_after", "end_packet", "head_insn", "tail_insn",
3138         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
3139         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
3140         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
3141         but add a checked cast on loop->start_label.  Consolidate calls to
3142         avoid assigning result of gen_spkernel to "insn", now an
3143         rtx_insn *.
3145         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
3146         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
3147         rtx to rtx_insn *.
3148         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
3149         rtx_insn **.  Strengthen locals "top", "next" from rtx to
3150         rtx_insn *.
3151         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
3152         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
3153         (add_parameter_dependencies): Strengthen params "call", "head" and
3154         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
3155         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
3156         (add_dependee_for_func_arg): Likewise for param "arg" and local
3157         "insn".
3158         (ix86_dependencies_evaluation_hook): Likewise for params "head",
3159         "tail" and locals "insn", "first_arg".
3161         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
3162         for params "head", "tail" and locals "insn", "next", "next_tail".
3163         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
3164         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
3165         "insn", "lowest", "highest" from rtx to rtx_insn *.
3166         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
3167         rtx_insn **.
3168         (ia64_sched_reorder2): Likewise.
3170         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
3171         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
3172         from rtx * to rtx_insn **.
3173         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
3174         rtx_insn **.
3175         (mep_print_sched_insn): Strengthen param "insn" from rtx to
3176         rtx_insn *.
3177         (mep_sched_reorder): Strengthen param "ready" from rtx * to
3178         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
3179         to rtx_insn *.
3181         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
3182         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
3183         to rtx_insn *.
3184         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
3185         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
3186         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
3187         rtx_insn **.
3188         (vr4130_reorder): Likewise.
3189         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
3190         rtx to rtx_insn *.
3191         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
3192         rtx_insn **.
3193         (mips_sched_reorder): Likewise.
3194         (mips_sched_reorder2): Likewise.
3196         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
3198         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
3199         Strengthen local "tmp" from rtx to rtx_insn *.
3200         (rs6000_sched_reorder2): Likewise.
3202         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
3203         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
3204         (s390_sched_reorder): Strengthen param "ready" from rtx * to
3205         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
3207         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
3208         "tmp2" from rtx to rtx_insn *.
3209         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
3210         Strengthen local "insn" from rtx to rtx_insn *.
3211         (ready_reorder): Strengthen param "ready" from rtx * to
3212         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
3213         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
3214         (sh_reorder2): Likewise.
3216         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
3217         local "insn" from rtx to rtx_insn *.
3219         * haifa-sched.c (note_list): Strengthen this variable from rtx to
3220         rtx_insn *.
3221         (scheduled_insns): Strengthen this variable from vec<rtx> to
3222         vec<rtx_insn *>.
3223         (set_modulo_params): Likewise for locals "i1", "i2".
3224         (record_delay_slot_pair): Likewise for params "i1", "i2".
3225         (add_delay_dependencies): Likewise for param "insn".
3226         (cond_clobbered_p): Likewise.
3227         (recompute_todo_spec): Likewise for local "prev".
3228         (last_scheduled_insn): Likewise for this variable.
3229         (nonscheduled_insns_begin): Likewise.
3230         (model_set_excess_costs): Strengthen param "insns" from rtx * to
3231         rtx_insn **.
3232         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
3233         rtx_insn *.
3234         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
3235         Strengthen local "insn" from rtx to rtx_insn *.
3236         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
3237         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3238         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
3239         (ready_remove_first): Likewise for return type and local "t".
3240         (ready_element): Likewise for return type.
3241         (ready_remove): Likewise for return type and local "t".
3242         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
3243         (check_clobbered_conditions): Strengthen local "x" from rtx to
3244         rtx_insn *, adding a checked cast.
3245         (schedule_insn): Likewise for param "insn".
3246         (remove_notes): Likewise for params "head", "tail" and locals
3247         "next_tail", "insn", "next".
3248         (struct haifa_saved_data): Likewise for fields
3249         "last_scheduled_insn", "nonscheduled_insns_begin".
3250         (save_backtrack_point): Update for change to field "vec" of
3251         struct ready_list.
3252         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
3253         rtx_insn **.
3254         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
3255         from rtx to rtx_insn *
3256         (resolve_dependencies): Strengthen param "insn" from rtx to
3257         rtx_insn *
3258         (restore_other_notes): Likewise for return type, for param "head"
3259         and local "note_head".
3260         (undo_all_replacements): Likewise for local "insn".
3261         (first_nonscheduled_insn): Likewise for return type and local "insn".
3262         (queue_to_ready): Likewise for local "insn", adding checked casts.
3263         (early_queue_to_ready): Likewise for local "insn".
3264         (debug_ready_list_1): Strengthen local "p" from rtx * to
3265         rtx_insn **.
3266         (move_insn): Strengthen param "insn" and local "note" from rtx to
3267         rtx_insn *
3268         (insn_finishes_cycle_p): Likewise for param "insn".
3269         (max_issue): Likewise for local "insn".
3270         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
3271         to rtx_insn **.
3272         (commit_schedule): Strengthen param "prev_head" and local "insn"
3273         from rtx to rtx_insn *
3274         (prune_ready_list): Likewise for local "insn".
3275         (schedule_block): Likewise for locals "prev_head", "head", "tail",
3276         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
3277         (set_priorities): Likewise for local "prev_head".
3278         (try_ready): Likewise for param "next".
3279         (fix_tick_ready): Likewise.
3280         (change_queue_index): Likewise.
3281         (sched_extend_ready_list): Update for change to field "vec" of
3282         struct ready_list.
3283         (generate_recovery_code): Strengthen param "insn" from rtx to
3284         rtx_insn *.
3285         (begin_speculative_block): Likewise.
3286         (create_check_block_twin): Likewise for param "insn" and locals
3287         "label", "check", "twin".  Introduce local "check_pat" to avoid
3288         "check" being used as a plain rtx before being used as an insn.
3289         (fix_recovery_deps): Add a checked cast to rtx_insn * when
3290         extracting elements from ready_list.
3291         (sched_remove_insn): Strengthen param "insn" from rtx to
3292         rtx_insn *.
3293         (sched_emit_insn): Likewise for return type.
3294         (ready_remove_first_dispatch): Likewise for return type and local
3295         "insn".
3297         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
3299         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
3300         const rtx_insn *.
3302         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
3303         from rtx to rtx_insn *.
3304         (add_dependence_list): Likewise for param "insn".  Add a checked
3305         cast.
3306         (add_dependence_list_and_free): Strengthen param "insn" from rtx
3307         to rtx_insn *.  Strengthen param "list_p" from rtx * to
3308         rtx_insn **.
3309         (chain_to_prev_insn): Strengthen param "insn" and locals
3310         "prec_nonnote", "i" from rtx to rtx_insn *.
3311         (flush_pending_lists): Likewise for param "insn".
3312         (cur_insn): Likewise for this variable.
3313         (haifa_start_insn): Add a checked cast.
3314         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
3315         (sched_analyze_reg): Likewise for param "insn".
3316         (sched_analyze_1): Likewise.
3317         (sched_analyze_2): Likewise.  Add checked casts.
3318         (sched_analyze_insn): Likewise.  Also for local "prev".
3319         (deps_analyze_insn): Likewise for param "insn".
3320         (sched_analyze): Likewise for params "head", "tail" and local "insn".
3321         (add_dependence_1): Likewise for params "insn", "elem".
3322         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
3323         (parse_add_or_inc): Likewise for param "insn".
3324         (find_inc): Likewise for local "inc_cand".
3325         (find_modifiable_mems): Likewise for params "head", "tail" and
3326         locals "insn", "next_tail".
3328         * sched-ebb.c (init_ready_list): Likewise for local "insn".
3329         (begin_schedule_ready): Likewise for param "insn".
3330         (begin_move_insn): Likewise for params "insn" and "last".
3331         (ebb_print_insn): Strengthen param "insn" from const_rtx to
3332         const rtx_insn *.
3333         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
3334         (ebb_contributes_to_priority): Likewise for params "next", "insn".
3335         (ebb_add_remove_insn): Likewise for param "insn".
3336         (advance_target_bb): Likewise.
3338         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
3339         "insn".
3340         (check_live): Likewise for param "insn".
3341         (init_ready_list): Likewise for local "insn".
3342         (can_schedule_ready_p): Likewise for param "insn".
3343         (begin_schedule_ready): Likewise.
3344         (new_ready): Likewise for param "next".
3345         (rgn_print_insn): Likewise for param "insn".
3346         (rgn_rank): Likewise for params "insn1", "insn2".
3347         (contributes_to_priority): Likewise for params "next", "insn".
3348         (rgn_insn_finishes_block_p): Likewise for param "insn".
3349         (add_branch_dependences): Likewise for params "head", "tail" and
3350         locals "insn", "last".
3351         (rgn_add_remove_insn): Likewise for param "insn".
3352         (advance_target_bb): Likewise.
3354         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
3355         const_rtx to const rtx_insn *.
3357         * sel-sched-dump.h (sel_print_insn): Likewise.
3359         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
3360         (deps_init_id): Likewise.
3362         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
3363         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
3364         rtx_insn **.
3366 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3368         * output.h (final_start_function): Strengthen param 1 from rtx to
3369         rtx_insn *.
3371         * final.c (final_start_function): Likewise, renaming back from
3372         "uncast_first" to "first", and dropping the checked cast from rtx
3373         to rtx_insn *.
3375 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3377         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
3378         * final.c (final): Likewise.  Rename param back from
3379         "uncast_first" to "first" and eliminate the checked cast from rtx
3380         to rtx_insn *.
3382 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3384         * output.h (shorten_branches): Strengthen param from rtx to
3385         rtx_insn *.
3387         * final.c (shorten_branches): Likewise, renaming param back from
3388         "uncast_first" to "first", and dropping the checked cast from rtx
3389         to rtx_insn *.
3391         * genattr.c (gen_attr): Likewise when writing out the prototype of
3392         shorten_branches.
3394 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3396         * sched-int.h (struct haifa_sched_info): Strengthen fields
3397         "prev_head" and "next_tail" from rtx to rtx_insn *.
3399 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3401         * rtl.h (rtx_jump_table_data::get_labels): New method.
3402         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
3403         with use of the new rtx_jump_table_data::get_labels method.
3404         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
3405         to rtx_jump_table_data *.  Simplify by using get_labels method.
3406         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
3407         a dyn_cast, introducing local "table", using it to replace
3408         label-lookup logic with a get_labels method call.
3409         (patch_jump_insn): Simplify using get_labels method.
3410         * dwarf2cfi.c (create_trace_edges): Likewise.
3411         * rtlanal.c (label_is_jump_target_p): Likewise.
3413 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3415         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
3416         to rtx_insn *.
3418         * emit-rtl.c (unshare_all_rtl_1): Likewise.
3419         (unshare_all_rtl_again): Likewise, also for local "p".
3421 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3423         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
3424         to rtx_insn *.
3425         * cfgrtl.c (delete_insn_and_edges): Likewise.
3427 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3429         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
3430         from rtx to rtx_insn *.
3432         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
3434 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3436         * function.c (thread_prologue_and_epilogue_insns): Likewise for
3437         locals "returnjump", "epilogue_end", "insn", "next".
3439         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
3440         "returnjump" from rtx * to rtx_insn **.
3441         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
3443 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3445         * basic-block.h (struct edge_def). Strengthen "r" within
3446         union edge_def_insns from rtx to rtx_insn *.
3448         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
3449         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
3450         rtx_insn *.
3451         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
3452         from rtx to rtx_insn *.
3453         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
3454         rtx_insn *.
3455         * postreload-gcse.c (reg_killed_on_edge): Likewise.
3456         (reg_used_on_edge): Likewise.
3457         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
3458         (gt_pch_nx): New overload for rtx_insn *&.
3459         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
3460         from rtx to rtx_insn *.
3462 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3464         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
3465         from rtx to rtx_insn *.
3466         (BB_FOOTER): Replace function with access macro.
3467         (SET_BB_FOOTER): Delete.
3469         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
3470         with BB_FOOTER.
3471         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3472         (emit_barrier_after_bb): Likewise.
3473         (record_effective_endpoints): Likewise.
3474         (relink_block_chain): Likewise.
3475         (fixup_fallthru_exit_predecessor): Likewise.
3476         (cfg_layout_duplicate_bb): Likewise.
3477         (cfg_layout_split_block): Likewise.
3478         (cfg_layout_delete_block): Likewise.
3479         (cfg_layout_merge_blocks): Likewise.
3480         (BB_FOOTER): Delete function.
3481         (SET_BB_FOOTER): Delete function.
3482         * combine.c (update_cfg_for_uncondjump): Replace uses of
3483         SET_BB_FOOTER with BB_FOOTER.
3485 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3487         * except.h (struct eh_landing_pad_d): Strengthen field
3488         "landing_pad" from rtx to rtx_code_label *.
3490         * except.c (sjlj_emit_dispatch_table): Likewise for param
3491         "dispatch_label"
3492         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
3494 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3496         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
3497         first param from rtx to rtx_insn *.
3498         * config/xtensa/xtensa.c (struct machine_function): Likewise for
3499         field "set_frame_ptr_insn".
3500         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
3501         "csend" from rtx to rtx_code_label *.
3502         (xtensa_expand_atomic): Likewise for local "csloop".
3503         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
3504         rtx_insn *.
3505         (xtensa_call_tls_desc): Likewise for return type and locals
3506         "call_insn", "insns".
3507         (xtensa_legitimize_tls_address): Likewise for local "insns".
3508         (xtensa_expand_prologue): Likewise for locals "insn", "first".
3510 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3512         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
3513         first param from rtx to rtx_insn *.
3514         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
3515         "insn".
3517 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3519         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
3520         Strengthen param 1 from rtx to rtx_insn *.
3521         (tilepro_output_cbranch): Likewise.
3522         (tilepro_adjust_insn_length): Likewise.
3523         (tilepro_final_prescan_insn): Likewise for sole param.
3525         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
3526         Likewise for local "last".
3527         (cbranch_predicted_p): Likewise for param "insn".
3528         (tilepro_output_simple_cbranch_with_opcode): Likewise.
3529         (tilepro_output_cbranch_with_opcode): Likewise.
3530         (tilepro_output_cbranch): Likewise.
3531         (frame_emit_load): Likewise for return type and locals "seq",
3532         "insn".
3533         (emit_sp_adjust): Likewise for return type and local "insn".
3534         (tilepro_expand_epilogue): Likewise for locals "last_insn",
3535         "insn".
3536         (tilepro_adjust_insn_length): Likewise for param "insn".
3537         (next_insn_to_bundle): Likewise for return type and params
3538         "r", "end".
3539         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
3540         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
3541         local "new_insns".
3542         (match_addli_pcrel): Likewise for param "insn".
3543         (replace_addli_pcrel): Likewise.
3544         (match_auli_pcrel): Likewise.
3545         (replace_auli_pcrel): Likewise.
3546         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
3547         "next_insn".
3548         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3549         "queue", "next_queue", "prev".
3550         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
3551         (tilepro_final_prescan_insn): Likewise for param "insn".
3553 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3555         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
3556         Strengthen param 1 from rtx to rtx_insn *.
3557         (tilegx_output_cbranch): Likewise.
3558         (tilegx_adjust_insn_length): Likewise.
3559         (tilegx_final_prescan_insn): Likewise for sole param.
3561         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
3562         or local "last".
3563         (cbranch_predicted_p): Likewise for param "insn".
3564         (tilegx_output_simple_cbranch_with_opcode): Likewise.
3565         (tilegx_output_cbranch_with_opcode): Likewise.
3566         (tilegx_output_cbranch): Likewise.
3567         (frame_emit_load): Likewise for return type.
3568         (set_frame_related_p): Likewise for locals "seq", "insn".
3569         (emit_sp_adjust): Likewise for return type, and for local "insn".
3570         Introduce local "pat" for use in place of "insn" where the latter
3571         isn't an instruction.
3572         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
3573         from rtx to rtx_insn *.
3574         (tilegx_adjust_insn_length): Likewise for param "insn".
3575         (next_insn_to_bundle): Likewise for return type and params "r" and
3576         "end".
3577         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
3578         "end".
3579         (replace_insns): Likewise for params "old_insn", "new_insns".
3580         (replace_mov_pcrel_step1): Likewise for param "insn" and local
3581         "new_insns".
3582         (replace_mov_pcrel_step2): Likewise.
3583         (replace_mov_pcrel_step3): Likewise.
3584         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
3585         "next_insn".
3586         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3587         "queue", "next_queue", "prev".
3588         (tilegx_output_mi_thunk): Likewise for local "insn".
3589         (tilegx_final_prescan_insn): Likewise for param "insn".
3591 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3593         * config/spu/spu.c (frame_emit_store): Strengthen return type from
3594         rtx to rtx_insn *.
3595         (frame_emit_load): Likewise.
3596         (frame_emit_add_imm): Likewise, also for local "insn".
3597         (spu_expand_prologue): Likewise for local "insn".
3598         (struct spu_bb_info): Likewise for field "prop_jump".
3599         (emit_nop_for_insn): Likewise for param "insn" and local
3600         "new_insn".
3601         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
3602         "hbr_insn".
3603         (spu_emit_branch_hint): Likewise for params "before", "branch" and
3604         locals "hint", "insn".
3605         (get_branch_target): Likewise for param "branch".
3606         (insn_clobbers_hbr): Likewise for param "insn".
3607         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
3608         locals "insn", "before_4", "before_16".
3609         (insert_hbrp): Likewise for local "insn".
3610         (spu_machine_dependent_reorg): Likewise for locals "branch",
3611         "insn", "next", "bbend".
3612         (uses_ls_unit): Likewise for param "insn".
3613         (get_pipe): Likewise.
3614         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
3615         introducing a checked cast.
3616         (spu_sched_adjust_cost): Likewise for params "insn" and
3617         "dep_insn".
3618         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
3619         (spu_sms_res_mii): Likewise.
3621 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3623         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
3624         from rtx to rtx_insn *.
3625         (output_cbranch): Likewise for param 6.
3626         (output_return): Likewise for param 1.
3627         (output_sibcall): Likewise.
3628         (output_v8plus_shift): Likewise.
3629         (output_v8plus_mult): Likewise.
3630         (output_v9branch): Likewise for param 7.
3631         (output_cbcond):  Likewise for param 3.
3633         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
3634         for local "insn".
3635         (sparc_legitimize_pic_address): Likewise.
3636         (sparc_emit_call_insn): Likewise.
3637         (emit_save_or_restore_regs): Likewise.
3638         (emit_window_save): Likewise for return type and local "insn".
3639         (sparc_expand_prologue): Likewise for local "insn".
3640         (sparc_flat_expand_prologue): Likewise.
3641         (output_return): Likewise for param "insn".
3642         (output_sibcall): Likewise for param "insn" and local "delay".
3643         (output_ubranch): Likewise for param "insn".
3644         (output_cbranch): Likewise.
3645         (output_cbcond): Likewise.
3646         (output_v9branch): Likewise.
3647         (output_v8plus_shift): Likewise.
3648         (sparc_output_mi_thunk): Likewise for local "insn".
3649         (get_some_local_dynamic_name): Likewise.
3650         (output_v8plus_mult): Likewise for param "insn".
3652 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3654         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
3655         from rtx to rtx_insn *.
3656         (output_branchy_insn): Likewise for param 3.
3657         (output_far_jump): Likewise for param 1.
3658         (final_prescan_insn): Likewise.
3659         (sh_insn_length_adjustment): Likewise for sole param.
3661         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
3662         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
3663         rtx_code_label *.
3664         (sh_emit_compare_and_set): Likewise for local "lab".
3665         (output_far_jump): Strengthen param "insn" and local "prev" from
3666         rtx to rtx_insn *.
3667         (output_branchy_insn): Likewise for param "insn" and local
3668         "next_insn".
3669         (output_ieee_ccmpeq): Likewise for param "insn".
3670         (struct label_ref_list_d): Strengthen field "label" from rtx to
3671         rtx_code_label *.
3672         (pool_node): Likewise.
3673         (pool_window_label): Likewise for this global.
3674         (add_constant): Likewise for return type and locals "lab", "new_rtx".
3675         (dump_table): Strengthen params "start", "barrier" and local
3676         "scan" from rtx to rtx_insn *.
3677         (broken_move): Likewise for param "insn".
3678         (untangle_mova): Likewise for params "first_mova" and "new_mova".
3679         Strengthen param "first_mova" from rtx * to rtx_insn **.
3680         (mova_p): Likewise for param "insn".
3681         (fixup_mova): Likewise for param "mova".
3682         (find_barrier): Likewise for return type, params "mova" and
3683         "from", and locals "barrier_before_mova", "found_barrier",
3684         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
3685         "label" from rtx to rtx_code_label *.
3686         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
3687         rtx to rtx_insn *.
3688         (sh_reorg): Likewise for locals "link", "scan", "barrier".
3689         (split_branches): Likewise for param "first" and local "insn".
3690         (final_prescan_insn): Likewise for param "insn".
3691         (sequence_insn_p): Likewise for locals "prev", "next".
3692         (sh_insn_length_adjustment): Likewise for param "insn".
3693         (sh_can_redirect_branch): Likewise for local "insn".
3694         (find_r0_life_regions): Likewise for locals "end", "insn".
3695         (sh_output_mi_thunk): Likewise for local "insns".
3697 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3699         * config/score/score.c (score_output_mi_thunk): Strengthen local
3700         "insn" from rtx to rtx_insn *.
3701         (score_prologue): Likewise.
3703 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3705         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
3706         1 from rtx to rtx_insn *.
3707         (s390_emit_jump): Likewise for return type.
3708         (s390_emit_call): Likewise.
3709         (s390_load_got): Likewise.
3711         * config/s390/s390.c (last_scheduled_insn): Likewise for this
3712         variable.
3713         (s390_match_ccmode): Likewise for param "insn".
3714         (s390_emit_jump): Likewise for return type.
3715         (s390_split_branches): Likewise for local "label".
3716         (struct constant): Strengthen field "label" from rtx to
3717         rtx_code_label *.
3718         (struct constant_pool): Likewise for field "label".  Strengthen
3719         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
3720         rtx_insn *.
3721         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
3722         insns.
3723         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
3724         (s390_end_pool): Likewise.
3725         (s390_dump_pool): Likewise for local "insn".
3726         (s390_mainpool_start): Likewise.
3727         (s390_chunkify_start): Likewise.
3728         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
3729         with insns.  Strengthen locals "label", "jump", "barrier", "next",
3730         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
3731         (s390_chunkify_finish): Strengthen local "insn" from rtx to
3732         rtx_insn *.
3733         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
3734         "jump", "label", "next_insn".
3735         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
3736         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
3737         "tbegin_insn".
3738         (s390_load_got): Likewise for return type and local "insns".
3739         (s390_save_gprs_to_fprs): Likewise for local "insn".
3740         (s390_restore_gprs_from_fprs): Likewise.
3741         (pass_s390_early_mach::execute): Likewise.
3742         (s390_emit_prologue): Likewise for local "insns".
3743         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
3744         rtx_code_label *.
3745         (s390_emit_call): Strengthen return type and local "insn" from
3746         rtx to rtx_insn *.
3747         (s390_emit_tpf_eh_return): Likewise for local "insn".
3748         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
3749         "next_insn", introducing locals "s_pat", "rpat" to allow this.
3750         (s390_fix_long_loop_prediction): Likewise for param "insn" and
3751         local "cur_insn".
3752         (s390_non_addr_reg_read_p): Likewise for param "insn".
3753         (find_cond_jump): Likewise for return type and param "insn".
3754         (s390_swap_cmp): Likewise for param "insn".
3755         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
3756         "prev_insn", "next_insn".
3757         (s390_reorg): Likewise for locals "insn", "target".
3758         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
3759         (s390_sched_variable_issue): For now, rename param "insn" to
3760         "uncast_insn", introducing a checked cast.
3761         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
3762         insn.
3763         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
3764         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
3766 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3768         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
3769         param from rtx to rtx_insn *.
3770         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
3772 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3774         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
3775         4 from rtx to rtx_insn *.
3776         (rs6000_final_prescan_insn): Likewise for first param.
3777         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
3778         local "insn".
3779         (rs6000_get_some_local_dynamic_name): Likewise.
3780         (output_cbranch): Likewise for param "insn".
3781         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
3782         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
3783         (rs6000_emit_allocate_stack): Likewise for local "insn".
3784         (load_cr_save): Likewise.
3785         (restore_saved_cr): Likewise.
3786         (restore_saved_lr): Likewise.
3787         (emit_cfa_restores): Likewise.
3788         (rs6000_output_function_epilogue): Likewise for locals "insn" and
3789         "deleted_debug_label".
3790         (rs6000_output_mi_thunk): Likewise for local "insn".
3791         (rs6000_final_prescan_insn): Likewise for param "insn".
3793 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3795         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
3796         Strengthen param "insn" from rtx to rtx_insn *.
3797         * config/picochip/picochip.c (picochip_current_prescan_insn):
3798         Likewise for this variable.
3799         (picochip_final_prescan_insn): Likewise for param "insn".
3801 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3803         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
3804         from rtx to rtx_insn *.
3805         (pa_output_indirect_call): Likewise.
3806         (pa_adjust_insn_length): Likewise.
3807         (pa_attr_length_millicode_call): Likewise.
3808         (pa_attr_length_call): Likewise.
3809         (pa_attr_length_indirect_call): Likewise.
3811         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
3812         "insn".
3813         (pa_attr_length_millicode_call): Likewise.
3814         (pa_attr_length_call): Likewise.
3815         (pa_output_call): Likewise.
3816         (pa_attr_length_indirect_call): Likewise.
3817         (pa_output_indirect_call): Likewise.
3819 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3821         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
3822         Strengthen first param from rtx to rtx_insn *.
3823         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
3824         param "insn".
3826 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3828         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
3829         type from rtx to rtx_insn *.
3830         (mips_expand_call): Likewise.
3831         (mips_adjust_insn_length): Likewise for first param.
3832         (mips_output_conditional_branch): Likewise.
3833         (mips_output_order_conditional_branch): Likewise.
3834         (mips_final_prescan_insn): Likewise.
3836         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
3837         rtx_insn * for the SEQUENCE case.
3838         (SEQ_END): Likewise.
3839         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
3840         (mips_emit_call_insn): Likewise, also for local "insn".
3841         (mips16_gp_pseudo_reg): Likewise for local "scan".
3842         (mips16_build_call_stub): Likewise for return type and for local
3843         "insn".  Introduce a new local "pattern" so that "insn" can indeed
3844         be an insn.
3845         (mips_expand_call): Strengthen return type and local "insn" from
3846         rtx to rtx_insn *.
3847         (mips_block_move_loop): Strengthen local "label" from rtx to
3848         rtx_code_label *.
3849         (mips_expand_synci_loop): Likewise for locals "label",
3850         "end_label".
3851         (mips_set_frame_expr): Strengthen local "insn" from rtx to
3852         rtx_insn *.
3853         (mips16e_collect_argument_saves): Likewise for locals "insn",
3854         "next".
3855         (mips_find_gp_ref): Likewise for param of callback for "pred"
3856         param, and for local "insn".
3857         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
3858         (mips_insn_has_flexible_gp_ref_p): Likewise.
3859         (mips_epilogue_emit_cfa_restores): Likewise for return type and
3860         local "insn".
3861         (mips_epilogue_set_cfa): Likewise for local "insn".
3862         (mips_expand_epilogue): Likewise.
3863         (mips_adjust_insn_length): Likewise for param "insn".
3864         (mips_output_conditional_branch): Likewise.
3865         (mips_output_order_conditional_branch): Likewise.
3866         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
3867         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
3868         "falu2_turn_enabled_insn".
3869         (mips_builtin_branch_and_move): Strengthen locals "true_label",
3870         "done_label" from rtx to rtx_code_label *.
3871         (struct mips16_constant): Likewise for field "label".
3872         (mips16_add_constant): Likewise for return type.
3873         (mips16_emit_constants_1): Strengthen return type and param "insn"
3874         from rtx to rtx_insn *.
3875         (mips16_emit_constants): Likewise for param "insn".
3876         (mips16_insn_length): Likewise.
3877         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
3878         to rtx_code_label *.
3879         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
3880         from rtx to rtx_insn *.
3881         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
3882         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
3883         (r10k_simplify_address): Strengthen param "insn" and local
3884         "def_insn" from rtx to rtx_insn *.
3885         (r10k_safe_address_p): Strengthen param "insn" from rtx to
3886         rtx_insn *.
3887         (r10k_needs_protection_p_1): Update target type of cast of data
3888         from to rtx to rtx_insn *.
3889         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
3890         rtx * to rtx_insn **.
3891         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
3892         rtx_insn *.
3893         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
3894         (mips_call_expr_from_insn): Likewise for param "insn".
3895         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
3896         (mips_find_pic_call_symbol): Likewise for param "insn".
3897         (mips_annotate_pic_calls): Likewise for local "insn".
3898         (mips_sim_insn): Likewise for this variable.
3899         (struct mips_sim): Likewise for field "insn" within elements of
3900         last_set array.
3901         (mips_sim_wait_reg): Likewise for param "insn".
3902         (mips_sim_wait_regs): Likewise.
3903         (mips_sim_wait_units): Likewise.
3904         (mips_sim_wait_insn): Likewise.
3905         (mips_sim_issue_insn): Likewise.
3906         (mips_sim_finish_insn): Likewise.
3907         (mips_seq_time): Likewise for param "seq" and local "insn".
3908         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
3909         locals "first", "second".
3910         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
3911         "last", "last2", "next".
3912         (mips_avoid_hazard): Likewise for params "after", "insn".
3913         (mips_reorg_process_insns): Likewise for locals "insn",
3914         "last_insn", "subinsn", "next_insn".
3915         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
3916         (mips16_split_long_branches): Likewise for locals "insn" "jump",
3917         "jump_sequence".
3918         (mips_output_mi_thunk): Likewise for local "insn".
3919         (mips_final_prescan_insn): Likewise for param "insn".
3921 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3923         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
3924         Strengthen return type and local "insns" from rtx to rtx_insn *.
3925         (microblaze_legitimize_tls_address): Likewise for local "insns".
3926         (microblaze_block_move_loop): Strengthen local "label" from rtx
3927         to rtx_code_label *.
3928         (microblaze_expand_prologue): Strengthen two locals named "insn"
3929         from rtx to rtx_insn *.
3930         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
3931         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
3932         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
3933         to rtx_code_label *.
3935 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3937         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
3938         param from rtx to rtx_insn *.
3939         (mep_reuse_lo): Likewise for third param.
3940         (mep_use_post_modify_p): Likewise for first param.
3941         (mep_core_address_length): Likewise.
3942         (mep_cop_address_length): Likewise.
3943         (mep_final_prescan_insn): Likewise.
3944         (mep_store_data_bypass_p): Likewise for both params.
3945         (mep_mul_hilo_bypass_p): Likewise.
3946         (mep_ipipe_ldc_p): Likewise for param.
3948         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
3949         (mep_rewrite_mult): Likewise.
3950         (mep_rewrite_mulsi3): Likewise.
3951         (mep_rewrite_maddsi3): Likewise.
3952         (mep_reuse_lo_p_1): Likewise.
3953         (mep_reuse_lo_p): Likewise.
3954         (mep_frame_expr): Likewise.
3955         (mep_make_parallel): Likewise for both params.
3956         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
3957         local "insn".
3958         (mep_use_post_modify_p): Likewise for param "insn".
3959         (mep_core_address_length): Likewise.
3960         (mep_cop_address_length): Likewise.
3961         (mep_reg_set_in_function): Likewise for local "insn".
3962         (mep_asm_without_operands_p): Likewise.
3963         (F): Likewise for return type and param "x".
3964         (add_constant): Likewise for local "insn".
3965         (maybe_dead_move): Likewise for return type and local "insn".
3966         (mep_expand_prologue): Likewise for local "insn".
3967         (mep_final_prescan_insn): Likewise for param "insn".
3968         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
3969         "next", "follow", "x".
3970         (mep_insert_repeat_label_last): Likewise for return type, param
3971         "last_insn", and locals "next", "prev".  Strengthen param "label"
3972         from rtx to rtx_code_label *.
3973         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
3974         rtx_insn *.
3975         (struct mep_doloop_end): Likewise for fields "insn" and
3976         "fallthrough".
3977         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
3978         Strengthen local "repeat_label" from rtx to rtx_code_label *.
3979         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
3980         rtx_insn *.
3981         (mep_invert_branch): Likewise for params "insn" and "after".
3982         (mep_reorg_erepeat): Likewise for param "insns" and locals
3983         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
3984         "l" from rtx to rtx_code_label *.
3985         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
3986         from rtx to rtx_insn *.
3987         (mep_reorg_addcombine): Likewise for param "insns" and locals
3988         "i", "n".
3989         (add_sp_insn_p): Likewise for param "insn".
3990         (mep_reorg_noframe): Likewise for param "insns" and locals
3991         "start_frame_insn", "end_frame_insn", "next".
3992         (mep_reorg): Likewise for local "insns".
3993         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
3994         cast.
3995         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
3996         (mep_mul_hilo_bypass_p): Likewise.
3997         (mep_ipipe_ldc_p): Likewise for param "insn".
3998         (mep_make_bundle): Likewise for return type, param "cop" and local
3999         "insn", splitting out the latter into a new local "seq" for when it
4000         is a SEQUENCE rather than an insn.
4001         (core_insn_p): Likewise for param "insn".
4002         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
4003         "last", "first", "note", "prev", "core_insn".
4005 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4007         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
4008         rtx to rtx_insn *.
4009         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
4010         (m68k_final_prescan_insn): Likewise for first param.
4012         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
4013         (m68k_set_frame_related): Likewise for param "insn".
4014         (output_btst): Likewise for param "insn".
4015         (m68k_final_prescan_insn): Likewise.
4016         (m68k_move_to_reg): Likewise for local "insn".
4017         (m68k_call_tls_get_addr): Likewise for local "insns".
4018         (m68k_call_m68k_read_tp): Likewise.
4019         (strict_low_part_peephole_ok): Likewise for param "first_insn".
4020         (m68k_output_mi_thunk): Likewise for local "insn".
4022 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4024         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
4025         first param from rtx to rtx_insn *.
4026         (iq2000_adjust_insn_length): Likewise.
4027         (iq2000_output_conditional_branch): Likewise.
4028         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
4029         "insn" and local "nop_insn".
4030         (iq2000_annotate_frame_insn): Likewise for param "insn".
4031         (iq2000_expand_prologue): Likewise for both locals "insn".
4032         (iq2000_adjust_insn_length): Likewise for param "insn".
4033         (iq2000_output_conditional_branch): Likewise.
4035 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4037         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
4038         "insns" from rtx to rtx_insn *.
4039         (ia64_emit_cond_move): Likewise for locals "insn", "first".
4040         (struct spill_fill_data): Likewise for field "init_after" and for
4041         elements of array field "prev_insn".
4042         (spill_restore_mem): Likewise for locals "insn", "first".
4043         (do_spill): Likewise for local "insn".
4044         (do_restore): Likewise.
4045         (ia64_expand_prologue): Likewise.
4046         (ia64_expand_epilogue): Likewise.
4047         (emit_insn_group_barriers): Likewise for locals "insn",
4048         "last_label".
4049         (emit_all_insn_group_barriers): Likewise for locals "insn",
4050         "last".
4051         (dfa_stop_insn): Likewise for this global.
4052         (dfa_pre_cycle_insn): Likewise.
4053         (ia64_nop): Likewise.
4054         (final_emit_insn_group_barriers): Likewise for locals "insn",
4055         "last".
4056         (emit_predicate_relation_info): Likewise for locals "head", "n",
4057         "insn", "b", "a".
4058         (ia64_reorg): Likewise for local "insn".
4059         (ia64_output_mi_thunk): Likewise.
4060         (expand_vec_perm_interleave_2): Likewise for local "seq".
4062 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4064         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
4065         param 1 "insn" from rtx to rtx_insn *.
4066         (ix86_use_lea_for_mov): Likewise.
4067         (ix86_avoid_lea_for_addr): Likewise.
4068         (ix86_split_lea_for_addr): Likewise.
4069         (ix86_lea_for_add_ok): Likewise.
4070         (ix86_output_call_insn): Likewise.
4072         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
4073         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
4074         (ix86_output_function_epilogue): Likewise for locals "insn",
4075         "deleted_debug_label".
4076         (legitimize_tls_address): Likewise for local "insn".
4077         (get_some_local_dynamic_name): Likewise.
4078         (increase_distance): Likewise for params "prev", "next".
4079         (distance_non_agu_define_in_bb): Likewise for params "insn",
4080         "start" and locals "prev", "next".
4081         (distance_non_agu_define): Likewise for param "insn".
4082         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
4083         locals "next", "prev".
4084         (distance_agu_use): Likewise for param "insn".
4085         (ix86_lea_outperforms): Likewise.
4086         (ix86_ok_to_clobber_flags): Likewise.
4087         (ix86_avoid_lea_for_add): Likewise.
4088         (ix86_use_lea_for_mov): Likewise.
4089         (ix86_avoid_lea_for_addr): Likewise.
4090         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
4091         (ix86_split_lea_for_addr): Likewise for param "insn".
4092         (ix86_lea_for_add_ok): Likewise for param "insn".
4093         (ix86_expand_carry_flag_compare): Likewise for local
4094         "compare_seq".
4095         (ix86_expand_int_movcc): Likewise.
4096         (ix86_output_call_insn): Likewise for param "insn".
4097         (ix86_output_call_insn): Likewise for local "i".
4098         (x86_output_mi_thunk): Introduce local "insn", using it in place
4099         of "tmp" when dealing with insns.
4100         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
4101         "start".
4102         (ix86_pad_returns): Likewise for locals "ret", "prev".
4103         (ix86_count_insn_bb): Likewise for local "insn".
4104         (ix86_pad_short_function): Likewise for locals "ret", "insn".
4105         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
4106         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
4107         (expand_vec_perm_interleave2): Likewise for local "seq".
4108         (expand_vec_perm_vperm2f128_vblend): Likewise.
4109         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
4110         call to for_each_rtx with for_each_rtx_in_insn.
4112 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4114         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
4115         "label" from rtx to rtx_code_label *.
4116         (ix86_expand_prologue): Likewise.
4117         (ix86_expand_split_stack_prologue): Likewise for locals "label",
4118         "varargs_label".
4119         (ix86_split_idivmod): Likewise for locals "end_label" and
4120         "qimode_label".
4121         (ix86_expand_branch): Likewise for local "label2".
4122         (ix86_expand_aligntest): Likewise for return type and local "label".
4123         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
4124         "top_label".
4125         (expand_movmem_epilogue): Likewise for the various locals named
4126         "label".
4127         (expand_setmem_epilogue): Likewise.
4128         (expand_small_movmem_or_setmem): Likewise for local "label".
4129         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4130         Strengthen param "done_label" from rtx * to rtx_code_label **.
4131         Strengthen locals "loop_label" and "label" from rtx to
4132         rtx_code_label *.
4133         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4134         Likewise for locals "loop_label", "label".
4135         (ix86_expand_set_or_movmem): Likewise for locals "label",
4136         "jump_around_label", "hot_label".
4137         (ix86_expand_strlensi_unroll_1): Likewise for locals
4138         "align_2_label", align_3_label", "align_4_label", "end_0_label",
4139         "end_2_label".
4140         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
4141         (void ix86_emit_i387_log1p): Likewise for locals "label1",
4142         "label2", "jump_label".
4143         (ix86_expand_sse_compare_and_jump): Likewise for return type and
4144         local "label".
4145         (ix86_expand_lfloorceil): Likewise for local "label".
4146         (ix86_expand_rint): Likewise.
4147         (ix86_expand_floorceildf_32): Likewise.
4148         (ix86_expand_floorceil): Likewise.
4149         (ix86_expand_rounddf_32): Likewise.
4150         (ix86_expand_trunc): Likewise.
4151         (ix86_expand_truncdf_32): Likewise.
4152         (ix86_expand_round): Likewise.
4154 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4156         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
4157         first param from rtx to rtx_insn *.
4158         (h8300_insn_length_from_table): Likewise.
4159         * config/h8300/h8300.c (F): Likewise for return type and param
4160         "x".
4161         (Fpa): Add a checked cast to rtx_insn *.
4162         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
4163         rtx_insn *.
4164         (final_prescan_insn): Likewise for param "insn".
4165         (h8300_binary_length): Likewise.
4166         (h8300_insn_length_from_table): Likewise.
4168 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4170         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
4171         Strengthen first param "insn" from rtx to rtx_insn *.
4173         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
4174         Likewise.
4175         (frame_insn): Likewise for return type.  Introduce local "insn"
4176         for use in place of local "x" for use as an rtx_insn *.
4177         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
4178         (epiphany_expand_prologue): Likewise for local "insn".
4179         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
4180         * config/epiphany/resolve-sw-modes.c
4181         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
4182         "seq".
4184 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4186         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
4187         param from rtx to rtx_insn *.
4188         (c6x_final_prescan_insn): Likewise for first param.
4190         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
4191         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
4192         (c6x_expand_compare): Strengthen local "insns" from rtx to
4193         rtx_insn *.
4194         (c6x_get_unit_specifier): Likewise for param "insn".
4195         (c6x_print_unit_specifier_field): Likewise.
4196         (c6x_final_prescan_insn): Likewise.
4197         (emit_add_sp_const): Likewise for local "insn".
4198         (c6x_expand_prologue): Likewise.
4200 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4202         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
4203         param 1 from rtx to rtx_insn *.
4204         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
4205         the various locals named "insn".
4206         (expand_epilogue_reg_restore): Likewise.
4207         (frame_related_constant_load): Likewise.
4208         (add_to_reg): Likewise.
4209         (emit_link_insn): Likewise.
4210         (do_link): Likewise.
4211         (expand_interrupt_handler_prologue): Likewise.
4212         (branch_dest): Likewise for param "branch".
4213         (asm_conditional_branch): Likewise for param "insn".
4214         (gen_one_bundle): Likewise for elements of param "slot" and local
4215         "t".
4216         (bfin_gen_bundles): Likewise for locals "insn", "next" and
4217         elements of local "slot".
4218         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4219         "queue", "next_queue", "prev".
4220         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
4221         (add_sched_insns_for_speculation): Likewise for local "insn".
4223 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4225         * config/avr/avr-protos.h (output_movqi): Strengthen first param
4226         from rtx to rtx_insn *.
4227         (output_movhi): Likewise.
4228         (output_movsisf): Likewise.
4229         (avr_out_tstsi): Likewise.
4230         (avr_out_tsthi): Likewise.
4231         (avr_out_tstpsi): Likewise.
4232         (avr_out_compare): Likewise.
4233         (avr_out_compare64): Likewise.
4234         (avr_out_movpsi): Likewise.
4235         (ashlqi3_out): Likewise.
4236         (ashlhi3_out): Likewise.
4237         (ashlsi3_out): Likewise.
4238         (ashrqi3_out): Likewise.
4239         (ashrhi3_out): Likewise.
4240         (ashrsi3_out): Likewise.
4241         (lshrqi3_out): Likewise.
4242         (lshrhi3_out): Likewise.
4243         (lshrsi3_out): Likewise.
4244         (avr_out_ashlpsi3): Likewise.
4245         (avr_out_ashrpsi3): Likewise.
4246         (avr_out_lshrpsi3): Likewise.
4247         (avr_out_fract): Likewise.
4248         (avr_out_sbxx_branch): Likewise.
4249         (avr_out_round): Likewise.
4250         (avr_out_xload): Likewise.
4251         (avr_out_movmem): Likewise.
4252         (adjust_insn_length): Likewise.
4253         (avr_out_lpm): Likewise.
4254         (reg_unused_after): Likewise.
4255         (_reg_unused_after): Likewise.
4256         (avr_jump_mode): Likewise for second param.
4257         (jump_over_one_insn): Likewise for first param.
4258         (avr_final_prescan_insn): Likewise.
4259         (out_shift_with_cnt): Likewise for second param.
4261         * config/avr/avr.c (get_sequence_length): Likewise for param
4262         "insns" and local "insn".
4263         (emit_push_byte): Likewise for local "insn".
4264         (emit_push_sfr): Likewise.
4265         (avr_prologue_setup_frame): Likewise for locals "insn",
4266         "fp_plus_insns", "sp_plus_insns".
4267         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
4268         "sp_plus_insns".
4269         (avr_jump_mode): Likewise for param "insn".
4270         (avr_final_prescan_insn): Likewise.
4271         (avr_find_unused_d_reg): Likewise.
4272         (avr_out_lpm_no_lpmx): Likewise.
4273         (avr_out_lpm): Likewise.
4274         (avr_out_xload): Likewise.
4275         (output_movqi): Likewise.
4276         (output_movhi): Likewise.
4277         (out_movqi_r_mr): Likewise.
4278         (out_movhi_r_mr): Likewise.
4279         (out_movsi_r_mr): Likewise.
4280         (out_movsi_mr_r): Likewise.
4281         (output_movsisf): Likewise.
4282         (avr_out_load_psi): Likewise.
4283         (avr_out_store_psi): Likewise.
4284         (avr_out_movpsi): Likewise.
4285         (out_movqi_mr_r): Likewise.
4286         (avr_out_movhi_mr_r_xmega): Likewise.
4287         (out_movhi_mr_r): Likewise.
4288         (compare_condition): Likewise for param "insn" and local "next".
4289         (compare_sign_p): Likewise for param "insn".
4290         (compare_diff_p): Likewise.
4291         (compare_eq_p): Likewise.
4292         (avr_out_compare): Likewise.
4293         (avr_out_compare64): Likewise.
4294         (avr_out_tsthi): Likewise.
4295         (avr_out_tstpsi): Likewise.
4296         (avr_out_tstsi): Likewise.
4297         (out_shift_with_cnt): Likewise.
4298         (ashlqi3_out): Likewise.
4299         (ashlhi3_out): Likewise.
4300         (avr_out_ashlpsi3): Likewise.
4301         (ashlsi3_out): Likewise.
4302         (ashrqi3_out): Likewise.
4303         (ashrhi3_out): Likewise.
4304         (avr_out_ashrpsi3): Likewise.
4305         (ashrsi3_out): Likewise.
4306         (lshrqi3_out): Likewise.
4307         (lshrhi3_out): Likewise.
4308         (avr_out_lshrpsi3): Likewise.
4309         (lshrsi3_out): Likewise.
4310         (avr_out_fract): Likewise.
4311         (avr_out_round): Likewise.
4312         (avr_adjust_insn_length): Likewise.
4313         (reg_unused_after): Likewise.
4314         (_reg_unused_after): Likewise.
4315         (avr_compare_pattern): Likewise.
4316         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
4317         and locals "branch1", "branch2", "insn2", "jump".
4318         (avr_reorg): Likewise for local "insn".
4319         (avr_2word_insn_p): Likewise for param "insn".
4320         (jump_over_one_insn_p): Likewise.
4321         (avr_out_sbxx_branch): Likewise.
4322         (avr_out_movmem): Likewise.
4324 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4326         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
4327         param from rtx to rtx_insn *.
4328         (thumb1_final_prescan_insn): Likewise.
4329         (thumb2_final_prescan_insn): Likewise.
4331         * config/arm/arm.c (emit_set_insn): Strengthen return type from
4332         rtx to rtx_insn *.
4333         (struct minipool_node): Likewise for field "insn".
4334         (dump_minipool): Likewise for param "scan".
4335         (create_fix_barrier): Likewise for local "from".  Strengthen local
4336         "label" from rtx to rtx_code_label *.
4337         (push_minipool_barrier): Strengthen param "insn" from rtx to
4338         rtx_insn *.
4339         (push_minipool_fix): Likewise.
4340         (note_invalid_constants): Likewise.
4341         (thumb2_reorg): Likewise for local "insn".
4342         (arm_reorg): Likewise.
4343         (thumb2_final_prescan_insn): Likewise for param
4344         "insn" and local "first_insn".
4345         (arm_final_prescan_insn): Likewise for param "insn" and locals
4346         "start_insn", "this_insn".
4347         (arm_debugger_arg_offset): Likewise for param "insn".
4348         (thumb1_emit_multi_reg_push): Likewise for return type and local
4349         "insn".
4350         (thumb1_final_prescan_insn): Likewise for param "insn".
4351         (thumb_far_jump_used_p): Likewise for local "insn".
4352         (thumb1_expand_prologue): Likewise.
4353         (arm_expand_epilogue_apcs_frame): Likewise.
4354         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
4355         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
4356         from rtx to rtx_code_label *.
4357         (arm_split_atomic_op): Likewise for local "label".
4358         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
4360 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4362         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
4363         first param from rtx to rtx_insn *.
4364         (arc_verify_short): Likewise.
4365         (arc_short_long): Likewise.
4366         (arc_need_delay): Likewise.
4368         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
4369         "target_insn".
4370         (arc_ccfsm_advance): Likewise for param "insn" and locals
4371         "start_insn", "this_insn".
4372         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
4373         (arc_ccfsm_post_advance): Likewise for param "insn".
4374         (arc_next_active_insn): Likewise for return type and param "insn".
4375         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
4376         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
4377         (output_short_suffix): Likewise for local "insn".
4378         (arc_final_prescan_insn): Likewise for param "insn".  Remove
4379         now-redundant checked cast.
4380         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
4381         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
4382         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
4383         for use where lc_set became an insn.
4384         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
4385         rtx to rtx_insn *.
4386         (arc_get_insn_variants): Likewise for local "prev".
4387         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
4388         "next".
4389         (arc_predicate_delay_insns): Likewise for local "insn".
4390         (arc_pad_return): Likewise for local "prev".  For now, add a
4391         checked cast when extracting the insn from "final_sequence".
4392         (arc_short_long): Likewise for param "insn".
4393         (arc_need_delay): Likewise for param "insn" and local "next".
4394         (arc_label_align): Likewise for locals "prev", "next".
4396 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4398         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
4399         "insn" from rtx to rtx_insn *.
4400         (alpha_gp_save_rtx): Likewise for local "seq".
4401         (alpha_instantiate_decls): Likewise for local "top".
4402         (get_some_local_dynamic_name): Likewise for local "insn".
4403         (alpha_does_function_need_gp): Likewise.
4404         (set_frame_related_p): Likewise for return type and for locals
4405         "seq" and "insn".
4406         (emit_frame_store_1): Likewise for local "insn".
4407         (alpha_expand_prologue): Likewise for locals "insn", "seq".
4408         (alpha_end_function): Likewise for local "insn".
4409         (alpha_output_mi_thunk_osf): Likewise.
4410         (alphaev4_insn_pipe): Likewise for param "insn".
4411         (alphaev5_insn_pipe): Likewise.
4412         (alphaev4_next_group): Likewise for return type and param 1
4413         "insn".
4414         (alphaev5_next_group): Likewise.
4415         (alpha_align_insns_1): Likewise for return type and param 1 of
4416         callback param "next_group", and for locals "i", "next", "prev",
4417         "where", "where2", "insn".
4419 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4421         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
4422         rather than modifying the stmt.
4424 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4426         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
4427         cgraph_state conversion.
4429 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4431         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4432         Strengthen local "insns" from rtx to rtx_insn *.
4433         (aarch64_set_frame_expr): Likewise for local "insn".
4434         (aarch64_save_or_restore_fprs): Likewise.
4435         (aarch64_save_or_restore_callee_save_registers): Likewise.
4436         (aarch64_expand_prologue): Likewise.
4437         (aarch64_expand_epilogue): Likewise.
4438         (aarch64_output_mi_thunk): Likewise.
4439         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
4440         "label2" from rtx to rtx_code_label *.
4441         (aarch64_split_atomic_op): Likewise for local "label".
4443 2014-08-25  Martin Liska  <mliska@suse.cz>
4445         * cgraph.h (symtab_node):
4446         (bool needed_p (void)): created from decide_is_symbol_needed
4447         (bool referred_to_p (void)): created from referred_to_p
4448         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
4449         * cgraph.h (cgraph_node):
4450         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
4451         (void expand (void)): created from expand_function
4452         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
4453         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
4454         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
4455         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
4456         * cgraph.h (varpool_node):
4457         (static void add (tree decl): created from varpool_add_new_variable
4458         * cgraph.h (cgraph_edge):
4459         void remove (void);
4460         (void remove_caller (void)): created from cgraph_edge_remove_caller
4461         (void remove_callee (void)): created from cgraph_edge_remove_callee
4462         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
4463           created from cgraph_set_call_stmt
4464         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
4465         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
4466         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
4467           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
4468         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
4469           created from cgraph_speculative_call_info
4470         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
4471           int freq_scale, bool update_original)): created from cgraph_clone_edge
4472         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
4473         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
4474         (bool recursive_p (void)): created from cgraph_edge_recursive_p
4475         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
4476         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
4477         (static void rebuild_references (void)): created from cgraph_rebuild_references
4478         * cgraph.h (symbol_table):
4479         (create_reference): renamed from add_reference
4480         (maybe_create_reference): renamed from maybe_add_reference
4481         (void register_symbol (symtab_node *node)): new function
4482         (void clear_asm_symbols (void)): new function
4483         (void unregister (symtab_node *node)): new function
4484         (void release_symbol (cgraph_node *node, int uid)): new function
4485         (cgraph_node * allocate_cgraph_symbol (void)): new function
4486         (void initialize (void)): created from cgraph_init
4487         (symtab_node *first_symbol (void)):new function
4488         (asm_node *first_asm_symbol (void)):new function
4489         (symtab_node *first_defined_symbol (void)):new function
4490         (varpool_node *first_variable (void)):new function
4491         (varpool_node *next_variable (varpool_node *node)):new function
4492         (varpool_node *first_static_initializer (void)):new function
4493         (varpool_node *next_static_initializer (varpool_node *node)):new function
4494         (varpool_node *first_defined_variable (void)):new function
4495         (varpool_node *next_defined_variable (varpool_node *node)):new function
4496         (cgraph_node *first_defined_function (void)):new function
4497         (cgraph_node *next_defined_function (cgraph_node *node)):new function
4498         (cgraph_node *first_function (void)):new function
4499         (cgraph_node *next_function (cgraph_node *node)):new function
4500         (cgraph_node *first_function_with_gimple_body (void)):new function
4501         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
4502         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
4503           created from symtab_remove_unreachable_nodes
4504         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
4505         (void process_new_functions (void)): created from cgraph_process_new_functions
4506         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
4507         (bool output_variables (void)): created from varpool_node::output_variables
4508         (void output_asm_statements (void)): created from output_asm_statements
4509         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
4510         (void compile (void)): created from compile
4511         (void output_weakrefs (void)): created from output_weakrefs
4512         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
4513         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
4514           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
4515         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
4516         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
4517           created from cgraph_next_function_with_gimple_body
4518         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
4519           created from cgraph_remove_edge_removal_hook
4520         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
4521           created from cgraph_add_node_removal_hook
4522         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
4523           created from cgraph_remove_node_removal_hook
4524         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
4525           created from varpool_add_node_removal_hook
4526         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
4527           created from varpool_remove_node_removal_hook
4528         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
4529           created from cgraph_add_function_insertion_hook
4530         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
4531           created from cgraph_remove_function_insertion_hook
4532         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
4533           created from varpool_add_variable_insertion_hook
4534         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
4535           created from varpool_remove_variable_insertion_hook
4536         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
4537           created from cgraph_add_edge_duplication_hook
4538         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
4539           created from cgraph_remove_edge_duplication_hook
4540         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
4541           created from cgraph_add_node_duplication_hook
4542         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
4543           created from cgraph_remove_node_duplication_hook
4544         (void call_edge_removal_hooks (cgraph_edge *e)):
4545           created from cgraph_call_edge_removal_hooks
4546         (void call_cgraph_insertion_hooks (cgraph_node *node)):
4547           created from call_function_insertion_hooks 
4548         (void call_cgraph_removal_hooks (cgraph_node *node)):
4549           created from cgraph_call_node_removal_hooks 
4550         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
4551           created from cgraph_node::call_duplication_hooks 
4552         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
4553           created from cgraph_call_edge_duplication_hooks
4554         (void call_varpool_removal_hooks (varpool_node *node)):
4555           created from varpool_call_node_removal_hooks
4556         (void call_varpool_insertion_hooks (varpool_node *node)):
4557           created from varpool_call_variable_insertion_hooks
4558         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
4559           created from insert_to_assembler_name_hash
4560         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
4561           created from unlink_from_assembler_name_hash
4562         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
4563           created from symtab_prevail_in_asm_name_hash
4564         (void symtab_initialize_asm_name_hash (void)):
4565           created from symtab_initialize_asm_name_hash
4566         (void change_decl_assembler_name (tree decl, tree name)):
4567           created from change_decl_assembler_name
4568         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
4569         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
4570           created from decl_assembler_name_hash
4571         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
4572           created from decl_assembler_name_equal
4573         (static hashval_t hash_node_by_assembler_name (const void *p)):
4574           created from hash_node_by_assembler_name
4575         (static int eq_assembler_name (const void *p1, const void *p2)):
4576           created from eq_assembler_name
4578 2014-08-25  Marek Polacek  <polacek@redhat.com>
4580         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
4582 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
4584         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
4585         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
4586         SWI1248_AVX512BW mode iterator.
4588 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
4590         PR target/62111
4591         * config/sh/predicates.md (general_extend_operand): Disable
4592         TRUNCATE before reload completes.
4594 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
4596         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
4598 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
4600         PR target/61996
4601         * config/sh/sh.opt (musermode): Allow negative form.
4602         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
4603         targets that don't support it.
4604         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
4605         Document -mno-usermode option.
4607 2014-08-24  Kito Cheng  <kito@0xlab.org>
4609         * system.h (CALLER_SAVE_PROFITABLE): Poison.
4610         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
4611         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
4612         * doc/tm.texi: Regenerate.
4614 2014-08-24  Kito Cheng  <kito@0xlab.org>
4616         * ira.c: Fix typo in comment.
4618 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
4620         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
4621         Deprecate c++1y. Change language to reflect greater confidence in C++14.
4623 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
4625         PR target/62038
4626         * config/pa/pa.c (pa_output_function_epilogue): Don't set
4627         last_address when the current function is a thunk.
4628         (pa_asm_output_mi_thunk): When we don't have named sections or they
4629         are not being used, check that thunk can reach the stub table with a
4630         short branch.
4632 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
4634         * web.c (union_match_dups): Strengthen param "insn" from rtx to
4635         rtx_insn *.
4636         (pass_web::execute): Likewise for local "insn".
4638 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
4640         * var-tracking.c (struct micro_operation_def): Strengthen field
4641         "insn" from rtx to rtx_insn *.
4642         (struct emit_note_data_def): Likewise.
4643         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
4644         (vt_stack_adjustments): Likewise for local "insn".
4645         (adjust_insn): Likewise for param "insn".
4646         (val_store): Likewise.
4647         (val_resolve): Likewise.
4648         (struct count_use_info): Likewise for field "insn".
4649         (log_op_type): Likewise for param "insn".
4650         (reverse_op): Likewise.
4651         (prepare_call_arguments): Likewise.
4652         (add_with_sets):  The initial param takes an insn, but we can't
4653         yet strengthen it from rtx to rtx_insn * since it's used as a
4654         cselib_record_sets_hook callback.  For now rename initial param
4655         from "insn" to "uncast_insn", and introduce a local "insn" of
4656         the stronger rtx_insn * type, with a checked cast.
4657         (compute_bb_dataflow): Strengthen local "insn" from rtx to
4658         rtx_insn *.
4659         (emit_note_insn_var_location): Likewise.
4660         (emit_notes_for_changes): Likewise.
4661         (emit_notes_for_differences): Likewise.
4662         (next_non_note_insn_var_location): Likewise for return type and
4663         for param "insn".
4664         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
4665         (vt_initialize): Likewise for local "insn".
4666         (delete_debug_insns): Likewise for locals "insn" and "next".
4668 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
4670         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
4671         rtx_insn *.
4672         (mark_constant_pool): Likewise for local "insn".
4674 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
4676         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
4677         rtx to rtx_insn *.
4678         (dead_debug_promote_uses): Likewise.
4679         (dead_debug_insert_temp): Likewise.
4681 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
4683         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
4684         from const_rtx to const rtx_insn *.
4685         (store_killed_after): Likewise.  Strengthen locals "last", "act"
4686         from rtx to rtx_insn *.
4687         (store_killed_before): Strengthen param "insn" from const_rtx to
4688         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
4689         (find_moveable_store): Strengthen param "insn" from rtx to
4690         rtx_insn *.
4691         (compute_store_table): Likewise for local "insn".
4692         (insert_insn_start_basic_block): Likewise for param "insn" and
4693         locals "prev", "before", "insn".
4694         (insert_store): For now, add a checked cast to rtx_insn * on the
4695         result of gen_move_insn.
4696         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
4697         to rtx_insn *.
4698         (replace_store_insn): Likewise.  For now, add a checked cast to
4699         rtx_insn * on the result of gen_move_insn.
4701 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4703         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
4704         rtx_insn *.
4705         (expand_sjlj_dispatch_table): Likewise.
4707 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4709         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
4710         "insn" from rtx to rtx_insn *.
4712 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4714         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
4715         "insn" from rtx to rtx_insn *.
4716         (dup_block_and_redirect): Likewise for param 3 "before".
4718         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
4719         from rtx to rtx_insn *.
4720         (move_insn_for_shrink_wrap): Likewise.
4721         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
4722         (dup_block_and_redirect): Likewise for param "before" and local
4723         "insn".
4724         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
4725         "end".
4726         (convert_to_simple_return): Likewise for local "start".
4728         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
4729         Strengthen local "insn" from rtx to rtx_insn *, for use when
4730         invoking requires_stack_frame_p.
4732 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4734         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
4735         rtx_insn *.
4736         (speculate_expr): Likewise for locals "orig_insn_rtx",
4737         "spec_insn_rtx".
4738         (eq_transformed_insns): Likewise for locals "i1", "i2".
4739         (check_for_new_jump): Likewise for return type and local "end".
4740         (find_new_jump): Likewise for return type and local "jump".
4741         (sel_split_edge): Likewise for local "jump".
4742         (sel_create_recovery_block): Likewise.
4743         (sel_redirect_edge_and_branch_force): Likewise.
4744         (sel_redirect_edge_and_branch): Likewise.
4746 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4748         * sel-sched.c (substitute_reg_in_expr): Strengthen local
4749         "new_insn" from rtx to rtx_insn *.
4750         (create_insn_rtx_with_rhs): Likewise for return type and for local
4751         "insn_rtx".
4752         (create_insn_rtx_with_lhs): Likewise.
4753         (create_speculation_check): Likewise for local "insn_rtx".
4754         (implicit_clobber_conflict_p): Likewise for local "insn".
4755         (get_expr_cost): Likewise.
4756         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
4757         (move_cond_jump): Likewise for locals "next", "prev", "link",
4758         "head", "from", "to".
4760 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4762         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
4763         "next" from rtx to rtx_insn *.
4764         (find_conditional_protection): Likewise for local "next".
4765         (is_conditionally_protected): Likewise for local "insn1".
4766         (is_pfree): Likewise for locals "insn1", "insn2".
4768 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4770         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
4771         from rtx to rtx_insn *.
4773         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
4774         locals "insn1", "insn2" from rtx to rtx_insn *.
4775         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
4776         locals "insn", "prev", "last_jump", "next_tail".
4777         (schedule_ebb): Likewise for params "head", "tail".
4778         (schedule_ebbs): Likewise for locals "tail", "head".
4780         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
4781         to rtx_insn on "last_insn" in one of the invocations of
4782         schedule_ebb.
4784 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4786         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
4787         "elem", "insn" from rtx to rtx_insn *.
4788         (change_spec_dep_to_hard): Likewise.
4789         (get_back_and_forw_lists): Likewise for local "con".
4790         (sd_add_dep): Likewise for locals "elem", "insn".
4791         (sd_resolve_dep): Likewise for locals "pro", "con".
4792         (sd_unresolve_dep): Likewise.
4793         (sd_delete_dep): Likewise.
4794         (chain_to_prev_insn): Likewise for local "pro".
4795         (find_inc): Likewise for locals "pro", "con".
4797 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4799         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
4800         to rtx_insn *.
4801         (reg_set_between_p): Strengthen local "insn" from const_rtx to
4802         const rtx_insn *.
4803         (modified_between_p): Strengthen local "insn" from rtx to
4804         rtx_insn *.
4805         (remove_reg_equal_equiv_notes_for_regno): Likewise.
4806         (keep_with_call_p): Strengthen local "i2" from const_rtx to
4807         const rtx_insn *.
4809 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4811         * resource.c (next_insn_no_annul): Strengthen local "next" from
4812         rtx to rtx_insn *.
4813         (mark_referenced_resources): Likewise for local "insn".
4815 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4817         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
4818         to rtx_insn *.
4819         (find_reloads): Likewise for param 1.
4820         (subst_reloads): Likewise for sole param.
4821         (find_equiv_reg): Likwise for param 2.
4822         (regno_clobbered_p): Likwise for param 2.
4823         (reload): Likewise for param 1.
4825         * caller-save.c (save_call_clobbered_regs): Strengthen local
4826         "insn" from rtx to rtx_insn *.
4827         (insert_one_insn): Likewise for local "insn".
4829         * reload.c (this_insn): Likewise for this global.
4830         (find_reloads): Likewise for param "insn".
4831         (find_reloads_toplev): Likewise.
4832         (find_reloads_address): Likewise.
4833         (subst_reg_equivs): Likewise.
4834         (update_auto_inc_notes): Likewise.
4835         (find_reloads_address_1): Likewise.
4836         (find_reloads_subreg_address): Likewise.
4837         (subst_reloads): Likewise.
4838         (find_equiv_reg): Likewise, also for local "p".
4839         (regno_clobbered_p): Likewise for param "insn".
4841         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
4842         array.
4843         (spill_reg_store): Likewise for the elements of this array.
4844         (remove_init_insns): Likewise for local "equiv_insn".
4845         (will_delete_init_insn_p): Likewise for param "insn".
4846         (reload): Likewise for param ""first" and local "insn".
4847         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
4848         rtx_insn *.
4849         (calculate_elim_costs_all_insns): Likewise.
4850         (delete_caller_save_insns): Likewise.
4851         (spill_failure): Likewise for param "insn".
4852         (delete_dead_insn): Likewise.
4853         (set_label_offsets): Likewise.
4854         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
4855         "prev_insn".
4856         (elimination_costs_in_insn): Likewise for param "insn".
4857         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
4858         when referring to an insn.
4859         (set_initial_label_offsets): Likewise.
4860         (set_offsets_for_label): Strengthen param "insn" from rtx to
4861         rtx_insn *.
4862         (init_eliminable_invariants): Likewise for param "first" and local
4863         "insn".
4864         (fixup_eh_region_note): Likewise for param "insn".
4865         (reload_as_needed): Likewise for locals "prev", "insn",
4866         "old_next", "old_prev", "next".
4867         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
4868         "last".
4869         (reload_inheritance_insn): Strengthen elements of this array from
4870         rtx to rtx_insn *.
4871         (failed_reload): Likewise for param "insn".
4872         (choose_reload_regs): Likewise for local "insn".  Replace use of
4873         NULL_RTX with NULL when referring to an insn.
4874         (input_reload_insns): Strengthen elements of this array from rtx
4875         to rtx_insn *.
4876         (other_input_address_reload_insns): Likewise for this global.
4877         (other_input_reload_insns): Likewise for this global.
4878         (input_address_reload_insns): Likwise for the elements of this
4879         array.
4880         (inpaddr_address_reload_insns): Likwise for the elements of this
4881         array.
4882         (output_reload_insns): Likewise for the elements of this array.
4883         (output_address_reload_insns): Likewise for the elements of this
4884         array.
4885         (outaddr_address_reload_insns): Likewise for the elements of this
4886         array.
4887         (operand_reload_insns): Likewise for this global.
4888         (other_operand_reload_insns): Likewise for this global.
4889         (other_output_reload_insns): Likewise for the elements of this
4890         array.
4891         (new_spill_reg_store): Likewise for the elements of this
4892         array.
4893         (emit_input_reload_insns): Likewise for locals "insn", "temp".
4894         Strengthen local "where" from rtx * to rtx_insn **.
4895         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
4896         from rtx to rtx_insn *.
4897         (do_input_reload): Likewise for local "insn".
4898         (do_output_reload): Likewise for local "insn".
4899         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
4900         (emit_insn_if_valid_for_reload): Likewise for return type and local
4901         "last".  Add checked cast to rtx_insn when returning "insn" since
4902         this has been through emit_insn.
4903         (gen_reload): Strengthen return type and locals "last", "insn", "set"
4904         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
4905         returning "insn" since it's been through
4906         emit_insn_if_valid_for_reload at this point.
4907         (delete_output_reload): Strengthen param "insn" and locals
4908         "output_reload_insn", "i2" from rtx to rtx_insn *.
4909         (delete_address_reloads): Likewise for params "dead_insn",
4910         "current_insn" and locals "prev", "next".
4911         (delete_address_reloads_1): Likewise for params "dead_insn",
4912         "current_insn" and locals "prev", "i2".
4913         (inc_for_reload): Likewise for locals "last", "add_insn".
4914         (add_auto_inc_notes): Strengthen param "insn" from rtx to
4915         rtx_insn *.
4917         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
4918         param of this duplicate of the prototype from reload.h
4920 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4922         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
4923         rtx to rtx_insn *.
4924         (regstat_bb_compute_calls_crossed): Likewise.
4926 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4928         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
4929         to rtx_insn *.
4930         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
4931         with an insn.
4932         (regrename_analyze): Strengthen local "insn" from rtx to
4933         rtx_insn *.
4934         (scan_rtx_reg): Likewise for param "insn".
4935         (scan_rtx_address): Likewise.
4936         (scan_rtx): Likewise.
4937         (restore_operands): Likewise.
4938         (record_out_operands): Likewise.
4939         (build_def_use): Likewise for local "insn".  Replace use of
4940         NULL_RTX with NULL when dealing with an insn.
4942 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4944         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
4945         * reginfo.c (reg_scan): Likewise, also for local "insn".
4946         (reg_scan_mark_refs): Likewise for param "insn".
4947         (init_subregs_of_mode): Likewise for local "insn".
4949 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4951         * regcprop.c (struct queued_debug_insn_change): Strengthen field
4952         "insn" from rtx to rtx_insn *.
4953         (replace_oldest_value_reg): Likewise for param "insn".
4954         (replace_oldest_value_addr): Likewise.
4955         (replace_oldest_value_mem): Likewise.
4956         (apply_debug_insn_changes): Likewise for local "last_insn".
4957         (copyprop_hardreg_forward_1): Likewise for local "insn".
4959 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4961         * reg-stack.c (next_flags_user): Strengthen return type and param
4962         "insn" from rtx to rtx_insn *.
4963         (straighten_stack): Likewise for param "insn".
4964         (check_asm_stack_operands): Likewise.
4965         (remove_regno_note): Likewise.
4966         (emit_pop_insn): Likewise for return type, param "insn", local
4967         "pop_insn".
4968         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
4969         "limit" from rtx to rtx_insn *.
4970         (swap_to_top): Likewise for param "insn".
4971         (move_for_stack_reg): Likewise.
4972         (move_nan_for_stack_reg): Likewise.
4973         (swap_rtx_condition): Likewise.
4974         (compare_for_stack_reg): Likewise.
4975         (subst_all_stack_regs_in_debug_insn): Likewise.
4976         (subst_stack_regs_pat): Likewise, and local "insn2".
4977         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
4978         rtx_insn *.
4979         (subst_stack_regs): Likewise.
4980         (change_stack): Likewise.
4981         (convert_regs_1): Likewise for locals "insn", "next".
4983 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
4985         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
4986         rtx_insn *.
4987         (combine_set_extension): Likewise for param "curr_insn".
4988         (transform_ifelse): Likewise for param "def_insn".
4989         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
4990         from vec<rtx> * to vec<rtx_insn *> *.
4991         (is_cond_copy_insn): Likewise for param "insn".
4992         (struct ext_state): Strengthen the four vec fields from vec<rtx>
4993         to vec<rtx_insn *>.
4994         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
4995         local "def_insn" from rtx to rtx_insn *.
4996         (get_sub_rtx): Likewise for param "def_insn".
4997         (merge_def_and_ext): Likewise.
4998         (combine_reaching_defs): Likewise.
4999         (add_removable_extension): Likewise for param "insn".
5000         (find_removable_extensions): Likewise for local "insn".
5001         (find_and_remove_re): Likewise for locals "curr_insn" and
5002         "def_insn".  Strengthen locals "reinsn_del_list" and
5003         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
5005 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5007         * recog.c (split_insn): Strengthen param "insn" and locals
5008         "first", "last" from rtx to rtx_insn *.
5009         (split_all_insns): Likewise for locals "insn", "next".
5010         (split_all_insns_noflow): Likewise.
5012 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5014         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
5015         const rtx_insn *.
5016         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
5017         (debug_rtx_find): Likewise for param 1 "x".
5019         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
5020         const_rtx to const rtx_insn *.  Likewise for local "insn".
5021         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
5022         (debug_rtx_find): Likewise for param 1 "x".
5023         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
5024         from const_rtx to const rtx_insn * within the appropriate cases of
5025         the switch statement.
5027         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
5028         Strengthen local "insns" from rtx to rtx_insn * since this is
5029         passed to a call to debug_rtx_list.
5031 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5033         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
5034         to rtx_insn *.
5036         * function.c (stack_protect_epilogue): Add checked cast to
5037         rtx_insn for now when invoking predict_insn_def.
5039         * predict.c (predict_insn): Strengthen param "insn" from rtx to
5040         rtx_insn *.
5041         (predict_insn_def): Likewise.
5042         (rtl_predict_edge): Likewise for local "last_insn".
5043         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
5044         const rtx_insn *.
5045         (combine_predictions_for_insn): Strengthen param "insn" from rtx
5046         to rtx_insn *.
5047         (bb_estimate_probability_locally): Likewise for local "last_insn".
5048         (expensive_function_p): Likewise for local "insn".
5050         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
5051         local "jmp", since this is used when invoking predict_insn_def.
5053 2014-08-22  Marek Polacek  <polacek@redhat.com>
5055         PR c++/62199
5056         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
5058 2014-08-22  Marek Polacek  <polacek@redhat.com>
5060         PR c/61271
5061         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
5062         a comparison in parens.
5063         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
5064         in parens.
5066 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5068         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
5069         rtx_insn *.
5071         * cprop.c (fis_get_condition): Likewise.
5073         * postreload.c (reload_cse_regs): Likewise for param "first".
5074         (reload_cse_simplify): Likewise for param "insn".
5075         (reload_cse_regs_1): Likewise for local "insn".
5076         (reload_cse_simplify_set): Likewise for param "insn".
5077         (reload_cse_simplify_operands): Likewise.
5078         (struct reg_use): Likewise for field "insn".
5079         (reload_combine_purge_insn_uses): Likewise for param "insn".
5080         (fixup_debug_insns): Likewise for params "from", "to" and local
5081         "insn".
5082         (try_replace_in_use): Likewise for local "use_insn".
5083         (reload_combine_recognize_const_pattern): Likewise for param
5084         "insn" and locals "add_moved_after_insn", "use_insn".
5085         (reload_combine_recognize_pattern): Likewise for param "insn" and
5086         local "prev".
5087         (reload_combine): Likewise for locals "insn", "prev".
5088         (reload_combine_note_use): Likewise for param "insn".
5089         (move2add_use_add2_insn): Likewise.
5090         (move2add_use_add3_insn): Likewise.
5091         (reload_cse_move2add): Likewise, also for local "next".
5092         (move2add_note_store): Likewise for local "insn".
5094 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5096         * postreload-gcse.c (struct occr): Strengthen field "insn" from
5097         rtx to rtx_insn *.
5098         (struct unoccr): Likewise.
5099         (struct modifies_mem): Likewise.
5100         (alloc_mem): Likewise for local "insn".
5101         (insert_expr_in_table): Likewise for param "insn".
5102         (dump_expr_hash_table_entry): Likewise for local "insn".
5103         (oprs_unchanged_p): Likewise for param "insn".
5104         (load_killed_in_block_p): Likewise for local "setter".
5105         (record_last_reg_set_info): Likewise for param "insn".
5106         (record_last_reg_set_info_regno): Likewise.
5107         (record_last_mem_set_info): Likewise.
5108         (record_last_set_info): Likewise for local "last_set_insn".
5109         (record_opr_changes): Likewise for param "insn".
5110         (hash_scan_set): Likewise.
5111         (compute_hash_table): Likewise for local "insn".
5112         (get_avail_load_store_reg): Likewise for param "insn".
5113         (eliminate_partially_redundant_load): Likewise, also for locals
5114         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
5115         RTX for insns.
5116         (eliminate_partially_redundant_loads): Likewise for local "insn".
5118 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5120         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
5121         rtx to rtx_insn *.
5122         (expand_binop): Likewise for locals "entry_last", "last", "insns"
5123         (expand_twoval_unop): Likewise for locals entry_last", "last".
5124         (expand_twoval_binop): Likewise.
5125         (expand_twoval_binop_libfunc): Likewise for local "insns".
5126         (widen_leading): Likewise for local "last".
5127         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
5128         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
5129         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
5130         (expand_parity): Likewise for locals "last" and "seq".
5131         (expand_ffs): Likewise for local "seq".  Strengthen local
5132         "nonzero_label" from rtx to rtx_code_label *.
5133         (expand_absneg_bit): Strengthen local "insns" from rtx to
5134         rtx_insn *.
5135         (expand_unop_direct): Likewise for local "last".
5136         (expand_unop): Likewise for locals "last", "insns".
5137         (expand_abs_nojump): Likewise for local "last".
5138         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
5139         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
5140         rtx_insn *.
5141         (expand_copysign_absneg): Strengthen local "label" from rtx to
5142         rtx_code_label *.
5143         (expand_copysign_bit): Strengthen local "insns" from rtx to
5144         rtx_insn *.
5145         (struct no_conflict_data): Likewise for fields "first", "insn".
5146         (emit_libcall_block_1): Likewise for param "insns" and locals
5147         "next", "last", "insn".
5148         (emit_libcall_block): For now, add a checked cast to rtx_insn *
5149         on "insns" when invoking emit_libcall_block_1.  Ultimately we
5150         want to strengthen insns itself.
5151         (prepare_cmp_insn): Strengthen local "last" from rtx to
5152         rtx_insn *.
5153         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
5154         (prepare_float_lib_cmp): Likewise for local "insns".
5155         (emit_conditional_move): Likewise for local "last".
5156         (emit_conditional_add): Likewise.
5157         (have_sub2_insn): Likewise for local "seq".
5158         (expand_float): Likewise for local "insns".  Strengthen locals
5159         "label", "neglabel" from rtx to rtx_code_label *.
5160         (expand_fix): Likewise for locals "last", "insn", "insns" (to
5161         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
5162         (expand_fixed_convert): Likewise for local "insns" (to
5163         rtx_insn *).
5164         (expand_sfix_optab): Likewise for local "last".
5165         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
5166         to rtx_code_label *.
5167         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
5168         from rtx to rtx_insn *.
5169         (expand_atomic_fetch_op): Likewise for local "insn".
5170         (maybe_legitimize_operand_same_code): Likewise for local "last".
5171         (maybe_legitimize_operands): Likewise.
5173 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5175         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
5176         "insn" from rtx to rtx_insn *.
5177         (ps_rtl_insn): Likewise for return type.
5178         (doloop_register_get): Likewise for params "head", "tail" and
5179         locals "insn", "first_insn_not_to_check".
5180         (schedule_reg_move): Likewise for local "this_insn".
5181         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
5182         of gen_move_insn for now.
5183         (reset_sched_times): Strengthen local "insn" from rtx to
5184         rtx_insn *.
5185         (permute_partial_schedule): Likewise.
5186         (duplicate_insns_of_cycles): Likewise for local "u_insn".
5187         (dump_insn_location): Likewise for param "insn".
5188         (loop_canon_p): Likewise for local "insn".
5189         (sms_schedule): Likewise.
5190         (print_partial_schedule): Likewise.
5191         (ps_has_conflicts): Likewise.
5193 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5195         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
5196         "tailp" from rtx * to rtx_insn **.
5198         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
5199         from rtx to rtx_insn *.
5200         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
5201         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
5202         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
5203         rtx to rtx_insn *.
5204         * modulo-sched.c (const_iteration_count): Strengthen return type
5205         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
5206         use of NULL_RTX with NULL when working with insns.
5207         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
5208         to rtx_insn *.
5209         (sms_schedule): Likewise.
5210         * sched-rgn.c (init_ready_list): Likewise, also for locals
5211         "src_head" and "src_next_tail".
5212         (compute_block_dependences): Likewise.
5213         (free_block_dependencies): Likewise.
5214         (debug_rgn_dependencies): Likewise.
5215         (free_rgn_deps): Likewise.
5216         (compute_priorities): Likewise.
5217         (schedule_region): Likewise.
5218         * sel-sched.c (find_ebb_boundaries): Likewise.
5220         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
5221         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
5223 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5225         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
5226         from rtx to rtx_insn *.
5227         (new_seginfo): Likewise for param "insn".
5228         (create_pre_exit): Likewise for locals "last_insn",
5229         "before_return_copy", "return_copy".
5230         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
5231         "mode_set".
5233 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5235         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
5236         from rtx to rtx_insn *.
5237         (lra_push_insn): Likewise for 1st param.
5238         (lra_push_insn_and_update_insn_regno_info): Likewise.
5239         (lra_pop_insn): Likewise for return type.
5240         (lra_invalidate_insn_data): Likewise for 1st param.
5241         (lra_set_insn_deleted): Likewise.
5242         (lra_delete_dead_insn): Likewise.
5243         (lra_process_new_insns): Likewise for first 3 params.
5244         (lra_set_insn_recog_data): Likewise for 1st param.
5245         (lra_update_insn_recog_data): Likewise.
5246         (lra_set_used_insn_alternative): Likewise.
5247         (lra_invalidate_insn_regno_info): Likewise.
5248         (lra_update_insn_regno_info): Likewise.
5249         (lra_former_scratch_operand_p): Likewise.
5250         (lra_eliminate_regs_1): Likewise.
5251         (lra_get_insn_recog_data): Likewise.
5253         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
5254         rtx to rtx_insn *.
5256         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
5257         "mv1" and "mv2".
5258         (substitute_within_insn): New.
5259         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
5260         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
5261         Replace call to "substitute" with call to substitute_within_insn.
5263         * lra-constraints.c (curr_insn): Strengthen from rtx to
5264         rtx_insn *.
5265         (get_equiv_with_elimination): Likewise for param "insn".
5266         (match_reload): Strengthen params "before" and "after" from rtx *
5267         to rtx_insn **.
5268         (emit_spill_move): Likewise for return type.  Add a checked cast
5269         to rtx_insn * on result of gen_move_insn for now.
5270         (check_and_process_move): Likewise for local "before".  Replace
5271         NULL_RTX with NULL when referring to insns.
5272         (process_addr_reg): Strengthen params "before" and "after" from
5273         rtx * to rtx_insn **.
5274         (insert_move_for_subreg): Likewise.
5275         (simplify_operand_subreg): Strengthen locals "before" and "after"
5276         from rtx to rtx_insn *.
5277         (process_address_1): Strengthen params "before" and "after" from
5278         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
5279         rtx to rtx_insn *.
5280         (process_address): Strengthen params "before" and "after" from
5281         rtx * to rtx_insn **.
5282         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
5283         (curr_insn_transform): Strengthen locals "before" and "after"
5284         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
5285         to insns.
5286         (loc_equivalence_callback): Update cast of "data", changing
5287         resulting type from rtx to rtx_insn *.
5288         (substitute_pseudo_within_insn): New.
5289         (inherit_reload_reg): Strengthen param "insn" from rtx to
5290         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
5291         NULL when referring to insns.  Add a checked cast to rtx_insn *
5292         when using usage_insn to invoke lra_update_insn_regno_info.
5293         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
5294         likewise for locals "restore", "save".  Add checked casts to
5295         rtx_insn * when using usage_insn to invoke
5296         lra_update_insn_regno_info and lra_process_new_insns.  Replace
5297         NULL_RTX with NULL when referring to insns.
5298         (split_if_necessary): Strengthen param "insn" from rtx to
5299         rtx_insn *.
5300         (update_ebb_live_info): Likewise for params "head", "tail" and local
5301         "prev_insn".
5302         (get_last_insertion_point): Likewise for return type and local "insn".
5303         (get_live_on_other_edges): Likewise for local "last".
5304         (inherit_in_ebb): Likewise for params "head", "tail" and locals
5305         "prev_insn", "next_insn", "restore".
5306         (remove_inheritance_pseudos): Likewise for local "prev_insn".
5307         (undo_optional_reloads): Likewise for local "insn".
5309         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
5310         "insn".
5311         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
5312         insns.
5313         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
5314         rtx_insn *.
5315         (spill_pseudos): Likewise for local "insn".
5316         (init_elimination): Likewise.
5317         (process_insn_for_elimination): Likewise for param "insn".
5319         * lra-lives.c (curr_insn): Likewise.;
5321         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
5322         (remove_pseudos): Likewise for param "insn".
5323         (spill_pseudos): Likewise for local "insn".
5324         (lra_final_code_change): Likewise for locals "insn", "curr".
5326         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
5327         (lra_set_insn_deleted): Likewise.
5328         (lra_delete_dead_insn): Likewise, and for local "prev".
5329         (new_insn_reg): Likewise for param "insn".
5330         (lra_set_insn_recog_data): Likewise.
5331         (lra_update_insn_recog_data): Likewise.
5332         (lra_set_used_insn_alternative): Likewise.
5333         (get_insn_freq): Likewise.
5334         (invalidate_insn_data_regno_info): Likewise.
5335         (lra_invalidate_insn_regno_info): Likewise.
5336         (lra_update_insn_regno_info): Likewise.
5337         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
5338         vec<rtx_insn *>.
5339         (lra_push_insn_1): Strengthen param "insn" from rtx to
5340         rtx_insn *.
5341         (lra_push_insn): Likewise.
5342         (lra_push_insn_and_update_insn_regno_info): Likewise.
5343         (lra_pop_insn): Likewise for return type and local "insn".
5344         (push_insns): Likewise for params "from", "to", and local "insn".
5345         (setup_sp_offset): Likewise for params "from", "last" and locals
5346         "before", "insn".
5347         (lra_process_new_insns): Likewise for params "insn", "before",
5348         "after" and local "last".
5349         (struct sloc): Likewise for field "insn".
5350         (lra_former_scratch_operand_p): Likewise for param "insn".
5351         (remove_scratches): Likewise for locals "insn", "last".
5352         (check_rtl): Likewise for local "insn".
5353         (add_auto_inc_notes): Likewise for param "insn".
5354         (update_inc_notes): Likewise for local "insn".
5355         (lra): Replace NULL_RTX with NULL when referring to insn.
5357 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5359         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
5360         to rtx_insn *.
5361         (resolve_reg_notes): Likewise.
5362         (resolve_simple_move): Likewise for return type, param "insn", and
5363         locals "insns", "minsn".
5364         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
5365         (resolve_use): Likewise.
5366         (resolve_debug): Likewise.
5367         (find_decomposable_shift_zext): Likewise.
5368         (resolve_shift_zext): Likewise for return type, param "insn", and
5369         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
5370         (decompose_multiword_subregs): Likewise for local "insn",
5371         "orig_insn", "decomposed_shift", "end".
5373 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5375         * basic-block.h (basic_block split_edge_and_insert): Strengthen
5376         param "insns" from rtx to rtx_insn *.
5378         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
5379         rtx to rtx_insn *.
5380         (struct iv_to_split): Likewise.
5381         (loop_exit_at_end_p): Likewise for local "insn".
5382         (split_edge_and_insert): Likewise for param "insns".
5383         (compare_and_jump_seq): Likewise for return type, param "cinsn",
5384         and locals "seq", "jump".
5385         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
5386         "branch_code"; update invocations of compare_and_jump_seq to
5387         eliminate NULL_RTX in favor of NULL.
5388         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
5389         rtx to rtx_insn *.
5390         (reset_debug_uses_in_loop): Likewise.
5391         (analyze_insn_to_expand_var): Likewise for param "insn".
5392         (analyze_iv_to_split_insn): Likewise.
5393         (analyze_insns_in_loop): Likewise for local "insn".
5394         (insert_base_initialization): Likewise for param
5395         "insn" and local "seq".
5396         (split_iv): Likewise for param "insn" and local "seq".
5397         (expand_var_during_unrolling): Likewise for param "insn".
5398         (insert_var_expansion_initialization): Likewise for local "seq".
5399         (combine_var_copies_in_loop_exit): Likewise.
5400         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
5401         "insn".
5402         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
5403         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
5404         "next".
5406 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5408         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
5409         rtx_insn *.
5410         (iv_analyze_result): Likewise.
5411         (iv_analyze_expr): Likewise.
5412         (biv_p): Likewise.
5414         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
5415         local "def_insn" from rtx to rtx_insn *.
5416         (get_biv_step_1): Likewise for local "insn".
5417         (iv_analyze_expr): Likewise for param "insn".
5418         (iv_analyze_def): Likewise for local "insn".
5419         (iv_analyze_op): Likewise for param "insn".
5420         (iv_analyze): Likewise.
5421         (iv_analyze_result): Likewise.
5422         (biv_p): Likewise.
5423         (suitable_set_for_replacement): Likewise.
5424         (simplify_using_initial_values): Likewise for local "insn".
5425         (iv_number_of_iterations): Likewise for param "insn".
5426         (check_simple_exit): Add checked cast to rtx_insn when invoking
5427         iv_number_of_iterations for now (until get_condition is
5428         strengthened).
5430         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
5431         "insn" from rtx to rtx_insn *.
5432         (analyze_insns_in_loop): Likewise for local "insn".
5434 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5436         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
5437         to rtx_insn *.
5438         (struct invariant): Likewise.
5439         (hash_invariant_expr_1): Likewise for param "insn".
5440         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
5441         (find_exits): Likewise for local "insn".
5442         (create_new_invariant): Likewise for param "insn".
5443         (check_dependencies): Likewise.
5444         (find_invariant_insn): Likewise.
5445         (record_uses): Likewise.
5446         (find_invariants_insn): Likewise.
5447         (find_invariants_bb): Likewise for local "insn".
5448         (get_pressure_class_and_nregs): Likewise for param "insn".
5449         (calculate_loop_reg_pressure): Likewise for local "insn".
5451 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5453         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
5454         to rtx_insn *.
5455         (add_test): Likewise for locals "seq", "jump".
5456         (doloop_modify): Likewise for locals "sequence", "jump_insn".
5458 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5460         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
5461         rtx_insn *.
5462         (rebuild_jump_labels_chain): Likewise for param "chain".
5464         * cfgexpand.c (pass_expand::execute): Add checked cast to
5465         rtx_insn * when calling rebuild_jump_labels_chain in region where
5466         we know e->insns.r is non-NULL.
5468         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
5469         rtx_insn *.
5470         (rebuild_jump_labels): Likewise.
5471         (rebuild_jump_labels_chain): Likewise for param "chain".
5472         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
5473         (init_label_info): Likewise for param "f".
5474         (maybe_propagate_label_ref): Likewise for params "jump_insn",
5475         "prev_nonjump_insn".
5476         (mark_all_labels): Likewise for param "f" and locals "insn",
5477         "prev_nonjump_insn".
5479 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5481         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
5482         from rtx to rtx_insn *insn.
5483         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
5484         (ira_add_allocno_copy): Likewise.
5485         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
5486         rtx to rtx_insn *.
5487         (ira_create_copy): Likewise.
5488         (ira_add_allocno_copy): Likewise.
5489         (create_bb_allocnos): Likewise for local "insn".
5490         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
5491         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
5492         process_regs_for_copy for rtx_insn * param.
5493         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
5494         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
5495         process_regs_for_copy for rtx_insn * param.
5496         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
5497         * ira-costs.c (record_reg_classes): Likewise for param "insn".
5498         (record_operand_costs): Likewise.
5499         (scan_one_insn): Likewise for return type, and for param "insn".
5500         (process_bb_for_costs): Likewise for local "insn".
5501         (process_bb_node_for_hard_reg_moves): Likewise.
5502         * ira-emit.c (struct move): Likewise for field "insn".
5503         (create_move): Eliminate use of NULL_RTX when dealing with an
5504         rtx_insn *.
5505         (emit_move_list): Strengthen return type and locals "result",
5506         "insn" from rtx to rtx_insn *insn.
5507         (emit_moves): Likewise for locals "insns", "tmp".
5508         (ira_emit): Likewise for local "insn".
5509         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
5510         "insn".
5511         (find_call_crossed_cheap_reg): Likewise.
5512         (process_bb_node_lives): Likewise for local "insn".
5513         * ira.c (decrease_live_ranges_number): Likewise.
5514         (compute_regs_asm_clobbered): Likewise.
5515         (build_insn_chain): Likewise.
5516         (find_moveable_pseudos): Likewise, also locals "def_insn",
5517         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
5518         to rtx_insn **.  Add a checked cast when assigning from
5519         "closest_use" into closest_uses array in a region where we know
5520         it's a non-NULL insn.
5521         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
5522         to rtx_insn *.
5523         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
5524         "last_interesting_insn", "uin".
5525         (move_unallocated_pseudos): Likewise for locals "def_insn",
5526         "move_insn", "newinsn".
5528 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5530         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
5531         Strengthen locals "done_label", "do_error" from rtx to
5532         rtx_code_label *.
5533         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
5534         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
5535         rtx_code_label *.
5536         (ubsan_expand_si_overflow_neg_check): Likewise for locals
5537         "done_label", "do_error" to rtx_code_label * and local  "last" to
5538         rtx_insn *.
5539         (ubsan_expand_si_overflow_mul_check): Likewise for locals
5540         "done_label", "do_error", "large_op0", "small_op0_large_op1",
5541         "one_small_one_large", "both_ops_large", "after_hipart_neg",
5542         "after_lopart_neg", "do_overflow", "hipart_different"  to
5543         rtx_code_label * and local  "last" to rtx_insn *.
5545 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5547         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
5548         "insn" and "move_insn" from rtx to rtx_insn *.
5550 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5552         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
5553         rtx_insn *.
5554         (cheap_bb_rtx_cost_p): Likewise.
5555         (first_active_insn): Likewise for return type and local "insn".
5556         (last_active_insn):  Likewise for return type and locals "insn",
5557         "head".
5558         (struct noce_if_info): Likewise for fields "jump", "insn_a",
5559         "insn_b".
5560         (end_ifcvt_sequence): Likewise for return type and locals "insn",
5561         "seq".
5562         (noce_try_move): Likewise for local "seq".
5563         (noce_try_store_flag): Likewise.
5564         (noce_try_store_flag_constants): Likewise.
5565         (noce_try_addcc): Likewise.
5566         (noce_try_store_flag_mask): Likewise.
5567         (noce_try_cmove): Likewise.
5568         (noce_try_minmax): Likewise.
5569         (noce_try_abs): Likewise.
5570         (noce_try_sign_mask): Likewise.
5571         (noce_try_bitop): Likewise.
5572         (noce_can_store_speculate_p): Likewise for local "insn".
5573         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
5574         seq".
5575         (check_cond_move_block): Likewise for local "insn".
5576         (cond_move_convert_if_block): Likewise.
5577         (cond_move_process_if_block): Likewise for locals "seq",
5578         "loc_insn".
5579         (noce_find_if_block): Likewise for local "jump".
5580         (merge_if_block): Likewise for local "last".
5581         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
5582         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
5583         (block_has_only_trap): Likewise for return type and local "trap".
5584         (find_if_case_1): Likewise for local "jump".
5585         (dead_or_predicable): Likewise for locals "head", "end", "jump",
5586         "insn".
5588 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5590         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
5591         "last_insn", "loop_end" from rtx to rtx_insn *.
5593         * hw-doloop.c (scan_loop): Likewise for local "insn".
5594         (discover_loop): Likewise for param "tail_insn".
5595         (discover_loops): Likewise for local "tail".
5597         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
5598         cast to rtx_insn * when assigning from an rtx local to a
5599         hwloop_info's "last_insn" field.
5601 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5603         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
5604         (add_delay_dependencies): Strengthen local "pro" from rtx to
5605         rtx_insn *.
5606         (recompute_todo_spec): Likewise.
5607         (dep_cost_1): Likewise for locals "insn", "used".
5608         (schedule_insn): Likewise for local "dbg".
5609         (schedule_insn): Likewise for locals "pro", "next".
5610         (unschedule_insns_until): Likewise for local "con".
5611         (restore_pattern): Likewise for local "next".
5612         (estimate_insn_tick): Likewise for local "pro".
5613         (resolve_dependencies): Likewise for local "next".
5614         (fix_inter_tick): Likewise.
5615         (fix_tick_ready): Likewise for local "pro".
5616         (add_to_speculative_block): Likewise for locals "check", "twin",
5617         "pro".
5618         (sched_extend_bb): Likewise for locals "end", "insn".
5619         (init_before_recovery): Likewise for local "x".
5620         (sched_create_recovery_block): Likewise for local "barrier".
5621         (create_check_block_twin): Likewise for local "pro".
5622         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
5623         "consumer".
5624         (unlink_bb_notes): Update for change to type of bb_header.
5625         Strengthen locals "prev", "label", "note", "next" from rtx to
5626         rtx_insn *.
5627         (clear_priorities): Likewise for local "pro".
5629 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5631         * gcse.c (struct occr): Strengthen field "insn" from rtx to
5632         rtx_insn *.
5633         (test_insn): Likewise for this global.
5634         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
5635         const rtx_insn *.
5636         (oprs_anticipatable_p): Likewise.
5637         (oprs_available_p): Likewise.
5638         (insert_expr_in_table): Strengthen param "insn" from  rtx to
5639         rtx_insn *.
5640         (hash_scan_set): Likewise.
5641         (hash_scan_clobber): Likewise.
5642         (hash_scan_call): Likewise.
5643         (hash_scan_insn): Likewise.
5644         (compute_hash_table_work): Likewise for local "insn".
5645         (process_insert_insn): Likewise for return type and local "pat".
5646         (insert_insn_end_basic_block): Likewise for locals "new_insn",
5647         "pat", "pat_end", "maybe_cc0_setter".
5648         (pre_edge_insert): Likewise for local "insn".
5649         (pre_insert_copy_insn): Likewise for param "insn".
5650         (pre_insert_copies): Likewise for local "insn".
5651         (struct set_data): Likewise for field "insn".
5652         (single_set_gcse): Likewise for param "insn".
5653         (gcse_emit_move_after): Likewise.
5654         (pre_delete): Likewise for local "insn".
5655         (update_bb_reg_pressure): Likewise for param "from" and local
5656         "insn".
5657         (should_hoist_expr_to_dom): Likewise for param "from".
5658         (hoist_code): Likewise for local "insn".
5659         (get_pressure_class_and_nregs): Likewise for param "insn".
5660         (calculate_bb_reg_pressure): Likewise for local "insn".
5661         (compute_ld_motion_mems): Likewise.
5663 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5665         * genpeep.c (main): Rename param back from "uncast_ins1" to
5666         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
5667         checked cast.
5669         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
5671 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
5673         PR target/62195
5674         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
5675         documentation to state it is only for VSX operations.
5677         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
5678         constraint only active if VSX.
5680         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
5681         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
5682         (lfiwzx): Likewise.
5684 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5686         * fwprop.c (single_def_use_dom_walker::before_dom_children):
5687         Strengthen local "insn" from rtx to rtx_insn *.
5688         (use_killed_between): Likewise for param "target_insn".
5689         (all_uses_available_at): Likewise for param "target_insn" and
5690         local "next".
5691         (update_df_init): Likewise for params "def_insn", "insn".
5692         (update_df): Likewise for param "insn".
5693         (try_fwprop_subst): Likewise for param "def_insn" and local
5694         "insn".
5695         (free_load_extend): Likewise for param "insn".
5696         (forward_propagate_subreg): Likewise for param "def_insn" and
5697         local "use_insn".
5698         (forward_propagate_asm): Likewise for param "def_insn" and local
5699         "use_insn".
5700         (forward_propagate_and_simplify): Likewise for param "def_insn"
5701         and local "use_insn".
5702         (forward_propagate_into): Likewise for locals "def_insn" and
5703         "use_insn".
5705 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5707         * function.c (emit_initial_value_sets): Strengthen local "seq"
5708         from rtx to rtx_insn *.
5709         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
5710         local "seq".
5711         (instantiate_virtual_regs): Likewise for local "insn".
5712         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
5713         (reorder_blocks_1): Likewise for param "insns" and local "insn".
5714         (expand_function_end): Likewise for locals "insn" and "seq".
5715         (epilogue_done): Likewise for local "insn".
5716         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
5717         "last", "trial".
5718         (reposition_prologue_and_epilogue_notes): Likewise for locals
5719         "insn", "last", "note", "first".
5720         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
5721         (pass_match_asm_constraints::execute): Likewise for local "insn".
5723 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5725         * output.h (final_scan_insn): Strengthen return type from rtx to
5726         rtx_insn *.
5727         (final_forward_branch_p): Likewise for param.
5728         (current_output_insn): Likewise for this global.
5730         * final.c (rtx debug_insn): Likewise for this variable.
5731         (current_output_insn): Likewise.
5732         (get_attr_length_1): Rename param "insn" to "uncast_insn",
5733         adding "insn" back in as an rtx_insn * with a checked cast, so
5734         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
5735         first param.
5736         (compute_alignments): Strengthen local "label" from rtx to
5737         rtx_insn *.
5738         (shorten_branches): Rename param from "first" to "uncast_first",
5739         introducing a new local rtx_insn * "first" using a checked cast to
5740         effectively strengthen "first" from rtx to rtx_insn * without
5741         affecting the type signature.  Strengthen locals "insn", "seq",
5742         "next", "label" from rtx to rtx_insn *.
5743         (change_scope): Strengthen param "orig_insn" and local "insn" from
5744         rtx to rtx_insn *.
5745         (final_start_function): Rename param from "first" to "uncast_first",
5746         introducing a new local rtx_insn * "first" using a checked cast to
5747         effectively strengthen "first" from rtx to rtx_insn * without
5748         affecting the type signature.  Strengthen local "insn" from rtx to
5749         rtx_insn *.
5750         (dump_basic_block_info): Strengthen param "insn" from rtx to
5751         rtx_insn *.
5752         (final): Rename param from "first" to "uncast_first",
5753         introducing a new local rtx_insn * "first" using a checked cast to
5754         effectively strengthen "first" from rtx to rtx_insn * without
5755         affecting the type signature.  Strengthen locals "insn", "next"
5756         from rtx to rtx_insn *.
5757         (output_alternate_entry_point): Strengthen param "insn" from rtx to
5758         rtx_insn *.
5759         (call_from_call_insn): Strengthen param "insn" from rtx to
5760         rtx_call_insn *.
5761         (final_scan_insn): Rename param from "insn" to "uncast_insn",
5762         introducing a new local rtx_insn * "insn" using a checked cast to
5763         effectively strengthen "insn" from rtx to rtx_insn * without
5764         affecting the type signature.  Strengthen return type and locals
5765         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
5766         now-redundant checked cast to rtx_insn * from both invocations of
5767         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
5768         introducing a local "call_insn" for use when invoking
5769         call_from_call_insn.
5770         (notice_source_line): Strengthen param "insn" from rtx to
5771         rtx_insn *.
5772         (leaf_function_p): Likewise for local "insn".
5773         (final_forward_branch_p): Likewise.
5774         (leaf_renumber_regs): Likewise for param "first".
5775         (rest_of_clean_state): Likewise for locals "insn" and "next".
5776         (self_recursive_call_p): Likewise for param "insn".
5777         (collect_fn_hard_reg_usage): Likewise for local "insn".
5778         (get_call_fndecl): Likewise for param "insn".
5779         (get_call_cgraph_rtl_info): Likewise.
5780         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
5781         introducing a new local rtx_insn * "insn" using a checked cast to
5782         effectively strengthen "insn" from rtx to rtx_insn * without
5783         affecting the type signature.
5785         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
5786         cast when assigning from param "insn" to current_output_insn.
5787         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
5788         so that we can assign it back to current_output_insn.
5790 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5792         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
5793         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
5794         atmxt540s and atmxt540sreva devices.
5795         * config/avr/avr-tables.opt: Regenerate.
5796         * config/avr/t-multilib: Regenerate.
5797         * doc/avr-mmcu.texi: Regenerate.
5799 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5801         * expr.c (convert_move): Strengthen local "insns" from rtx to
5802         rtx_insn *.
5803         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
5804         "top_label" from rtx to rtx_code_label *.
5805         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
5806         rtx_insn *.
5807         (emit_single_push_insn): Likewise for locals "prev", "last".
5808         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
5809         to rtx_code_label *.
5810         (store_constructor): Likewise for locals "loop_start", "loop_end".
5811         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
5812         rtx_insn *.
5813         (expand_expr_real_2): Likewise.
5814         (expand_expr_real_1): Strengthen local "label" from rtx to
5815         rtx_code_label *.
5817 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5819         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
5820         from rtx to rtx_insn *.
5821         (store_bit_field_1): Likewise.
5822         (extract_bit_field_1): Likewise.
5823         (expand_mult_const): Likewise for local "insns".
5824         (expmed_mult_highpart): Strengthen local "label" from rtx to
5825         rtx_code_label *.
5826         (expand_smod_pow2): Likewise.
5827         (expand_sdiv_pow2): Likewise.
5828         (expand_divmod): Strengthen locals "last", "insn" from rtx to
5829         rtx_insn *.  Strengthen locals "label", "label1", "label2",
5830         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
5831         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
5832         (emit_store_flag): Likewise.
5833         (emit_store_flag_force): Strengthen local "label" from rtx to
5834         rtx_code_label *.
5835         (do_cmp_and_jump): Likewise for param "label".
5837 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5839         * explow.c (force_reg): Strengthen local "insn" from rtx to
5840         rtx_insn *.
5841         (adjust_stack_1): Likewise.
5842         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
5843         "final_label", "available_label", "space_available" from rtx to
5844         rtx_code_label *.
5845         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
5846         (anti_adjust_stack_and_probe): Likewise.
5848 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5850         * except.h (sjlj_emit_function_exit_after): Strengthen param
5851         "after" from rtx to rtx_insn *.  This is only called with
5852         result of get_last_insn (in function.c) so type-change should be
5853         self-contained.
5855         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
5856         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
5857         to rtx_insn *.  These fields are only used from except.c so this
5858         type-change should be self-contained to this patch.
5860         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
5861         local "last" from rtx to rtx_insn *.
5862         (dw2_build_landing_pads): Likewise for local "seq".
5863         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
5864         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
5865         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
5866         rtx to rtx_insn *.
5867         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
5868         to rtx_insn *.
5869         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
5870         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
5871         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
5872         referring to an insn.  Strengthen local "dispatch_label" from
5873         rtx to rtx_code_label *.
5874         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
5875         rtx_insn *.
5876         (expand_eh_return): Strengthen local "around_label" from
5877         rtx to rtx_code_label *.
5878         (convert_to_eh_region_ranges): Strengthen locals "iter",
5879         "last_action_insn", "first_no_action_insn",
5880         "first_no_action_insn_before_switch",
5881         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
5883 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5885         * dwarf2out.c (last_var_location_insn): Strengthen this variable
5886         from rtx to rtx_insn *.
5887         (cached_next_real_insn): Likewise.
5888         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
5889         working with insns.
5890         (dwarf2out_var_location): Strengthen locals "next_real",
5891         "next_note", "expected_next_loc_note", "last_start", "insn" from
5892         rtx to rtx_insn *.
5894 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5896         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
5897         from rtx to rtx_insn *.
5898         (create_pseudo_cfg): Likewise for local "insn".
5900 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5902         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
5903         from rtx to rtx_insn *.
5904         (df_bb_regno_last_def_find): Likewise.
5906         * df-problems.c (df_rd_bb_local_compute): Likewise.
5907         (df_lr_bb_local_compute): Likewise.
5908         (df_live_bb_local_compute): Likewise.
5909         (df_chain_remove_problem): Likewise.
5910         (df_chain_create_bb): Likewise.
5911         (df_word_lr_bb_local_compute): Likewise.
5912         (df_remove_dead_eq_notes): Likewise for param "insn".
5913         (df_note_bb_compute): Likewise for local "insn".
5914         (simulate_backwards_to_point): Likewise.
5915         (df_md_bb_local_compute): Likewise.
5917         * df-scan.c (df_scan_free_bb_info): Likewise.
5918         (df_scan_start_dump): Likewise.
5919         (df_scan_start_block): Likewise.
5920         (df_install_ref_incremental): Likewise for local "insn".
5921         (df_insn_rescan_all): Likewise.
5922         (df_reorganize_refs_by_reg_by_insn): Likewise.
5923         (df_reorganize_refs_by_insn_bb): Likewise.
5924         (df_recompute_luids): Likewise.
5925         (df_bb_refs_record): Likewise.
5926         (df_update_entry_exit_and_calls): Likewise.
5927         (df_bb_verify): Likewise.
5929 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5931         * ddg.h (struct ddg_node): Strengthen fields "insn" and
5932         "first_note" from rtx to rtx_insn *.
5933         (get_node_of_insn): Likewise for param 2 "insn".
5934         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
5936         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
5937         rtx_insn *.
5938         (mem_write_insn_p): Likewise.
5939         (mem_access_insn_p): Likewise.
5940         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
5941         (def_has_ccmode_p): Likewise for param "insn".
5942         (add_cross_iteration_register_deps): Likewise for locals
5943         "def_insn" and "use_insn".
5944         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
5945         (build_intra_loop_deps): Likewise for local "src_insn".
5946         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
5947         to rtx_insn *.
5948         (get_node_of_insn): Likewise for param "insn".
5950 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5952         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
5953         (deletable_insn_p): Strengthen param "insn" from rtx to
5954         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
5955         find_call_stack_args, since this is guarded by CALL_P (insn).
5956         (marked_insn_p): Strengthen param "insn" from rtx to
5957         rtx_insn *.
5958         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
5959         invoking find_call_stack_args, since this is guarded by
5960         CALL_P (insn).
5961         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
5962         rtx_insn *; we know this is an insn since this was called by
5963         mark_nonreg_stores.
5964         (mark_nonreg_stores_2): Likewise.
5965         (mark_nonreg_stores): Strengthen param "insn" from rtx to
5966         rtx_insn *.
5967         (find_call_stack_args): Strengthen param "call_insn" from rtx to
5968         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
5969         to rtx_insn *.
5970         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
5971         from rtx to rtx_insn *.
5972         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
5973         "next", "ref_insn".
5974         (delete_unmarked_insns): Likewise for locals "insn", "next".
5975         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
5976         (mark_reg_dependencies): Likewise for param "insn".
5977         (rest_of_handle_ud_dce): Likewise for local "insn".
5978         (word_dce_process_block): Likewise.
5979         (dce_process_block): Likewise.
5981 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5983         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
5984         from rtx to rtx_insn *.
5985         (struct change_cc_mode_args): Likewise for field "insn".
5986         (this_insn): Strengthen from rtx to rtx_insn *.
5987         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
5988         with insn.
5989         (validate_canon_reg): Strengthen param "insn" from rtx to
5990         rtx_insn *.
5991         (canon_reg): Likewise.
5992         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
5993         dealing with insn.
5994         (record_jump_equiv): Strengthen param "insn" from rtx to
5995         rtx_insn *.
5996         (try_back_substitute_reg): Likewise, also for locals "prev",
5997         "bb_head".
5998         (find_sets_in_insn): Likewise for param "insn".
5999         (canonicalize_insn): Likewise.
6000         (cse_insn): Likewise.  Add a checked cast.
6001         (invalidate_from_clobbers): Likewise for param "insn".
6002         (invalidate_from_sets_and_clobbers): Likewise.
6003         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
6004         dealing with insn.
6005         (cse_prescan_path): Strengthen local "insn" from rtx to
6006         rtx_insn *.
6007         (cse_extended_basic_block): Likewise for locals "insn" and
6008         "prev_insn".
6009         (cse_main): Likewise for param "f".
6010         (check_for_label_ref): Likewise for local "insn".
6011         (set_live_p): Likewise for second param ("insn").
6012         (insn_live_p): Likewise for first param ("insn") and for local
6013         "next".
6014         (cse_change_cc_mode_insn): Likewise for first param "insn".
6015         (cse_change_cc_mode_insns): Likewise for first and second params
6016         "start" and "end".
6017         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
6018         and "end".
6019         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
6020         "cc_src_insn".
6022 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6023             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6024             Anna Tikhonova  <anna.tikhonova@intel.com>
6025             Ilya Tocar  <ilya.tocar@intel.com>
6026             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6027             Ilya Verbin  <ilya.verbin@intel.com>
6028             Kirill Yukhin  <kirill.yukhin@intel.com>
6029             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6031         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
6032         New.
6033         * config/i386/sse.md
6034         (define_mode_iterator VI248_AVX2): Delete.
6035         (define_mode_iterator VI2_AVX2_AVX512BW): New.
6036         (define_mode_iterator VI48_AVX2): Ditto.
6037         (define_insn <shift_insn><mode>3): Delete.
6038         (define_insn "<shift_insn><mode>3<mask_name>" with
6039         VI2_AVX2_AVX512BW): New.
6040         (define_insn "<shift_insn><mode>3<mask_name>" with
6041         VI48_AVX2): Ditto.
6043 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6044             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6045             Anna Tikhonova  <anna.tikhonova@intel.com>
6046             Ilya Tocar  <ilya.tocar@intel.com>
6047             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6048             Ilya Verbin  <ilya.verbin@intel.com>
6049             Kirill Yukhin  <kirill.yukhin@intel.com>
6050             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6052         * config/i386/sse.md
6053         (define_mode_iterator VI4F_BRCST32x2): New.
6054         (define_mode_attr 64x2_mode): Ditto.
6055         (define_mode_attr 32x2mode): Ditto.
6056         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
6057         with VI4F_BRCST32x2): Ditto.
6058         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
6059         with V16FI mode iterator): Ditto.
6060         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
6061         with V16FI): Ditto.
6062         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
6063         with VI8F_BRCST64x2): Ditto.
6065 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6066             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6067             Anna Tikhonova  <anna.tikhonova@intel.com>
6068             Ilya Tocar  <ilya.tocar@intel.com>
6069             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6070             Ilya Verbin  <ilya.verbin@intel.com>
6071             Kirill Yukhin  <kirill.yukhin@intel.com>
6072             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6074         * config/i386/sse.md
6075         (define_mode_iterator VI8_AVX512VL): New.
6076         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
6078 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
6080         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
6081         (define_mode_iterator V48_AVX512VL): New.
6082         (define_mode_iterator V12_AVX512VL): Ditto.
6083         (define_insn <avx512>_load<mode>_mask): Split into two similar
6084         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
6085         Refactor output template.
6086         (define_insn "<avx512>_store<mode>_mask"): Ditto.
6088 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6090         * cprop.c (struct occr): Strengthen field "insn" from rtx to
6091         rtx_insn *.
6092         (reg_available_p): Likewise for param "insn".
6093         (insert_set_in_table): Likewise.
6094         (hash_scan_set): Likewise.
6095         (hash_scan_insn): Likewise.
6096         (make_set_regs_unavailable): Likewise.
6097         (compute_hash_table_work): Likewise for local "insn".
6098         (reg_not_set_p): Strengthen param "insn" from const_rtx to
6099         const rtx_insn *.
6100         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
6101         (try_replace_reg): Likewise.
6102         (find_avail_set): Likewise.
6103         (cprop_jump): Likewise for params "setcc", "jump".
6104         (constprop_register): Likewise for param "insn".
6105         (cprop_insn): Likewise.
6106         (do_local_cprop): Likewise.
6107         (local_cprop_pass): Likewise for local "insn".
6108         (bypass_block): Likewise for params "setcc" and "jump".
6109         (bypass_conditional_jumps): Likewise for locals "setcc" and
6110         "insn".
6111         (one_cprop_pass): Likewise for local "insn".
6113 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6115         * compare-elim.c (struct comparison_use): Strengthen field "insn"
6116         from rtx to rtx_insn *.
6117         (struct comparison): Likewise, also for field "prev_clobber".
6118         (conforming_compare): Likewise for param "insn".
6119         (arithmetic_flags_clobber_p): Likewise.
6120         (find_flags_uses_in_insn): Likewise.
6121         (find_comparison_dom_walker::before_dom_children): Likewise for
6122         locals "insn", "next", "last_clobber".
6123         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
6125 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6127         * combine-stack-adj.c (struct csa_reflist): Strengthen field
6128         "insn" from rtx to rtx_insn *.
6129         (single_set_for_csa): Likewise for param "insn".
6130         (record_one_stack_ref): Likewise.
6131         (try_apply_stack_adjustment): Likewise.
6132         (struct record_stack_refs_data): Likewise for field "insn".
6133         (maybe_move_args_size_note): Likewise for params "last" and "insn".
6134         (prev_active_insn_bb): Likewise for return type and param "insn".
6135         (next_active_insn_bb): Likewise.
6136         (force_move_args_size_note): Likewise for params "prev" and "last"
6137         and locals "test", "next_candidate", "prev_candidate".
6138         (combine_stack_adjustments_for_block): Strengthen locals
6139         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
6140         rtx_insn *.
6142 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6144         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
6145         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
6146         (subst_insn): Likewise for this variable.
6147         (added_links_insn): Likewise.
6148         (struct insn_link): Likewise for field "insn".
6149         (alloc_insn_link): Likewise for param "insn".
6150         (struct undobuf): Likewise for field "other_insn".
6151         (find_single_use): Likewise for param "insn" and local "next".
6152         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
6153         (delete_noop_moves): Likewise for locals "insn", "next".
6154         (create_log_links): Likewise for locals "insn", "use_insn".
6155         Strengthen local "next_use" from rtx * to rtx_insn **.
6156         (insn_a_feeds_b): Likewise for params "a", "b".
6157         (combine_instructions): Likewise for param "f" and locals "insn",
6158         "next", "prev", "first", "last_combined_insn", "link", "link1",
6159         "temp".  Replace use of NULL_RTX with NULL when referring to
6160         insns.
6161         (setup_incoming_promotions): Likewise for param "first"
6162         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
6163         (can_combine_p): Likewise for params "insn", "i3", "pred",
6164         "pred2", "succ", "succ2" and for local "p".
6165         (combinable_i3pat): Likewise for param "i3".
6166         (cant_combine_insn_p): Likewise for param "insn".
6167         (likely_spilled_retval_p): Likewise.
6168         (adjust_for_new_dest): Likewise.
6169         (update_cfg_for_uncondjump): Likewise, also for local "insn".
6170         (try_combine): Likewise for return type and for params "i3", "i2",
6171         "i1", "i0", "last_combined_insn", and for locals "insn",
6172         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
6173         "i0_insn".  Eliminate local "tem" in favor of new locals
6174         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
6175         checked cast for now to rtx_insn * on the return type of
6176         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
6177         insns.
6178         (find_split_point): Strengthen param "insn" from rtx to
6179         rtx_insn *.
6180         (simplify_set): Likewise for local "other_insn".
6181         (recog_for_combine): Likewise for param "insn".
6182         (record_value_for_reg): Likewise.
6183         (record_dead_and_set_regs_1): Likewise for local
6184         "record_dead_insn".
6185         (record_dead_and_set_regs): Likewise for param "insn".
6186         (record_promoted_value): Likewise.
6187         (check_promoted_subreg): Likewise.
6188         (get_last_value_validate): Likewise.
6189         (reg_dead_at_p): Likewise.
6190         (move_deaths): Likewise for param "to_insn".
6191         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
6192         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
6193         in favor of new locals "tem_note" and "tem_insn", the latter being
6194         an rtx_insn *.
6195         (distribute_links): Strengthen locals "place", "insn" from rtx to
6196         rtx_insn *.
6198 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6200         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
6201         than a const_rtx.
6202         (can_delete_label_p): Require a const rtx_code_label * rather than
6203         a const_rtx.
6204         (delete_insn): Add checked cast to rtx_code_label * when we know
6205         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
6206         rtx to rtx_insn *.
6207         (delete_insn_chain): Strengthen locals "prev" and "current" from
6208         rtx to rtx_insn *.  Add a checked cast when assigning from
6209         "finish" (strengthening the params will come later).  Add a
6210         checked cast to rtx_note * in region where we know
6211         NOTE_P (current).
6212         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
6213         rtx_insn *.
6214         (compute_bb_for_insn): Likewise.
6215         (free_bb_for_insn): Likewise for local "insn".
6216         (compute_bb_for_insn): Likewise.
6217         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
6218         local "insn" from rtx to rtx_insn *
6219         (flow_active_insn_p): Require a const rtx_insn * rather than a
6220         const_rtx.
6221         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
6222         rtx_insn *.
6223         (can_fallthru): Likewise for locals "insn" and "insn2".
6224         (bb_note): Likewise for local "note".
6225         (first_insn_after_basic_block_note): Likewise for local "note" and
6226         for return type.
6227         (rtl_split_block): Likewise for locals "insn" and "next".
6228         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
6229         "end".
6230         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
6231         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
6232         "prev", "tmp".
6233         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
6234         them), "kill_from", "barrier", "new_insn".
6235         (patch_jump_insn): Likewise for params "insn", "old_label".
6236         (redirect_branch_edge): Likewise for locals "old_label", "insn".
6237         (force_nonfallthru_and_redirect): Likewise for locals "insn",
6238         "old_label", "new_label".
6239         (rtl_tidy_fallthru_edge): Likewise for local "q".
6240         (rtl_split_edge): Likewise for locals "before", "last".
6241         (commit_one_edge_insertion): Likewise for locals "before",
6242         "after", "insns", "tmp", "last", adding a checked cast where
6243         currently necessary.
6244         (commit_edge_insertions): Likewise.
6245         (rtl_dump_bb): Likewise for locals "insn", "last".
6246         (print_rtl_with_bb): Likewise for local "x".
6247         (rtl_verify_bb_insns): Likewise for local "x".
6248         (rtl_verify_bb_pointers): Likewise for local "insn".
6249         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
6250         "head", "end".
6251         (rtl_verify_fallthru): Likewise for local "insn".
6252         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
6253         (purge_dead_edges): Likewise for local "insn".
6254         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
6255         (skip_insns_after_block): Likewise for return type and for locals
6256         "insn", "last_insn", "next_head", "prev".
6257         (record_effective_endpoints): Likewise for locals "next_insn",
6258         "insn", "end".
6259         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
6260         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
6261         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
6262         (duplicate_insn_chain): For now, add checked cast from rtx to
6263         rtx_insn * when returning insn.
6264         (cfg_layout_duplicate_bb): Likewise for local "insn".
6265         (cfg_layout_delete_block): Likewise for locals "insn", "next",
6266         "prev", "remaints".
6267         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
6268         (rtl_block_empty_p): Likewise.
6269         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
6270         "split_point", "last".
6271         (rtl_block_ends_with_call_p): Likewise for local "insn".
6272         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
6273         const rtx_insn *.
6274         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
6275         "split_at_insn" from rtx to rtx_insn *.
6276         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
6277         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
6278         to const rtx_insn *.
6279         (rtl_account_profile_record): Likewise.
6281 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6283         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
6284         rtx to rtx_insn *.
6285         (average_num_loop_insns): Likewise.
6286         (init_set_costs): Likewise for local "seq".
6287         (seq_cost): Likewise for param "seq", from const_rtx to const
6288         rtx_insn *.
6290 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6292         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
6293         rtx to rtx_insn *.
6295 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6297         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
6298         "f1" and "f2" from rtx * to rtx_insn **.
6299         (flow_find_head_matching_sequence): Likewise.
6301         * cfgcleanup.c (try_simplify_condjump): Strengthen local
6302         "cbranch_insn" from rtx to rtx_insn *.
6303         (thread_jump): Likewise for local "insn".
6304         (try_forward_edges): Likewise for local "last".
6305         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
6306         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
6307         "real_b_end".
6308         (can_replace_by): Likewise for params "i1", "i2".
6309         (old_insns_match_p): Likewise.
6310         (merge_notes): Likewise.
6311         (walk_to_nondebug_insn): Likewise for param "i1".
6312         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
6313         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
6314         "afterlast1", "afterlast2" from rtx to rtx_insn *.
6315         (flow_find_head_matching_sequence): Strengthen params "f1" and
6316         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
6317         "last1", "last2", "beforelast1", "beforelast2" from rtx to
6318         rtx_insn *.
6319         (outgoing_edges_match): Likewise for locals "last1", "last2".
6320         (try_crossjump_to_edge): Likewise for local "insn".
6321         Replace call to for_each_rtx with for_each_rtx_in_insn.
6323         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
6324         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
6325         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
6326         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
6327         (try_optimize_cfg): Strengthen local "last" from rtx to
6328         rtx_insn *.
6329         (delete_dead_jumptables): Likewise for locals "insn", "next",
6330         "label".
6332         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
6333         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
6334         "rtx else_first_tail", to reflect the basic-block.h changes above.
6336 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6338         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
6339         rtx_insn *.
6340         (purge_dead_tablejump_edges): Likewise.
6341         (find_bb_boundaries): Likewise for locals "insn", "end",
6342         "flow_transfer_insn".
6344 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6346         * caller-save.c (save_call_clobbered_regs): Strengthen locals
6347         "ins" and "prev" from rtx to rtx_insn *.
6349 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6351         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
6352         rtx_insn *.
6353         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
6354         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
6355         "scan_start".
6356         (load_register_parameters): Likewise for local "before_arg".
6357         (check_sibcall_argument_overlap): Likewise for param "insn".
6358         (expand_call): Likewise for locals "normal_call_insns",
6359         "tail_call_insns", "insns", "before_call", "after_args",
6360         "before_arg", "last", "prev".  Strengthen one of the "last" from
6361         rtx to rtx_call_insn *.
6362         (fixup_tail_calls): Strengthen local "insn" from rtx to
6363         rtx_insn *.
6364         (emit_library_call_value_1): Likewise for locals "before_call" and
6365         "last".
6367 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6369         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
6370         and "last" from rtx to rtx_insn *.
6371         (expand_builtin_nonlocal_goto): Likewise for local "insn".
6372         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
6373         rtx_call_insn *.
6374         (expand_errno_check): Strengthen local "lab" from rtx to
6375         rtx_code_label *.
6376         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
6377         rtx_insn *.
6378         (expand_builtin_mathfn_2): Likewise.
6379         (expand_builtin_mathfn_ternary): Likewise.
6380         (expand_builtin_mathfn_3): Likewise.
6381         (expand_builtin_interclass_mathfn): Likewise for local "last".
6382         (expand_builtin_int_roundingfn): Likewise for local "insns".
6383         (expand_builtin_int_roundingfn_2): Likewise.
6384         (expand_builtin_strlen): Likewise for local "before_strlen".
6385         (expand_builtin_strncmp): Likewise for local "seq".
6386         (expand_builtin_signbit): Likewise for local "last".
6387         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
6388         from rtx to rtx_code_label *.
6389         (expand_stack_restore):  Strengthen local "prev" from rtx to
6390         rtx_insn *.
6392 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6394         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
6395         to rtx_insn *.
6396         (struct btr_def_s): Likewise.
6397         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
6398         const rtx_insn *.
6399         (add_btr_def): Likewise.
6400         (new_btr_user): Likewise.
6401         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
6402         rtx to rtx_insn *.
6403         (link_btr_uses): Likewise.
6404         (move_btr_def): Likewise for locals "insp", "old_insn",
6405         "new_insn".  Add checked cast to rtx_insn * for now on result of
6406         gen_move_insn.
6407         (can_move_up): Strengthen param "insn" from const_rtx to
6408         const rtx_insn *.
6410 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6412         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
6413         rtx_insn *.
6414         (get_uncond_jump_length): Likewise for locals "label", "jump".
6415         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
6416         "jump", "insn".
6417         (add_labels_and_missing_jumps): Likewise for local "new_jump".
6418         (fix_up_fall_thru_edges): Likewise for local "old_jump".
6419         (find_jump_block): Likewise for local "insn".
6420         (fix_crossing_conditional_branches): Likewise for locals
6421         "old_jump", "new_jump".
6422         (fix_crossing_unconditional_branches): Likewise for locals
6423         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
6424         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
6426 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6428         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
6429         rtx to rtx_insn *.
6430         (struct mem_insn): Likewise for field "insn".
6431         (reg_next_use): Strengthen from rtx * to rtx_insn **.
6432         (reg_next_inc_use): Likewise.
6433         (reg_next_def): Likewise.
6434         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
6435         from rtx to rtx_insn *.
6436         (move_insn_before): Likewise for param "next_insn" and local "insns".
6437         (attempt_change): Likewise for local "mov_insn".
6438         (try_merge): Likewise for param "last_insn".
6439         (get_next_ref): Likewise for return type and local "insn".
6440         Strengthen param "next_array" from rtx * to rtx_insn **.
6441         (parse_add_or_inc): Strengthen param "insn" from rtx to
6442         rtx_insn *.
6443         (find_inc): Likewise for locals "insn" and "other_insn" (three of
6444         the latter).
6445         (merge_in_block): Likewise for locals "insn", "curr",
6446         "other_insn".
6447         (pass_inc_dec::execute): Update allocations of the arrays to
6448         reflect the stronger types.
6450 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6452         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
6453         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
6454         from rtx to rtx_code_label *.
6456 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6458         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
6459         to rtx_insn *.
6461 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6463         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
6464         generated a warning and prevented bootstrapping the compiler.
6466 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6468         * rtl.h (delete_related_insns): Strengthen return type from rtx to
6469         rtx_insn *.
6471         * jump.c (delete_related_insns): Likewise, also for locals "next"
6472         and "prev".
6474 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6476         * genautomata.c (output_internal_insn_latency_func): When writing
6477         the function "internal_insn_latency" to insn-automata.c,
6478         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
6479         allowing the optional guard function of (define_bypass) clauses to
6480         expect a pair of rtx_insn *, rather than a pair of rtx.
6481         (output_insn_latency_func): When writing the function
6482         "insn_latency", add an "uncast_" prefix to params "insn" and
6483         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
6484         using checked casts from the params, thus enabling the above
6485         change to the generated "internal_insn_latency" function.
6487 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
6489         PR tree-optimization/62091
6490         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
6491         handle correctly arrays.
6492         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
6493         inheritance binfos.
6494         (record_known_type): Walk into inner type.
6495         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
6496         condition on no type changes.
6498 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6500         * genattrtab.c (write_attr_get): Within the generated get_attr_
6501         functions, rename param "insn" to "uncast_insn" and reintroduce
6502         "insn" as an local rtx_insn * using a checked cast, so that "insn"
6503         is an rtx_insn * within insn-attrtab.c
6505 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6507         * output.h (peephole): Strengthen return type from rtx to
6508         rtx_insn *.
6509         * rtl.h (delete_for_peephole): Likewise for both params.
6510         * genpeep.c (main): In generated "peephole" function, strengthen
6511         return type and local "insn" from rtx to rtx_insn *.  For now,
6512         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
6513         rtx_insn *, with a checked cast.
6514         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
6515         locals "insn", "next", "prev" from rtx to rtx_insn *.
6517 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
6519         PR tree-optimization/62112
6520         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
6521         * gimple-iterator.h (gsi_replace): Return bool.
6522         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
6523         moved from ref_may_alias_global_p.
6524         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
6525         New overloads.
6526         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
6527         (stmt_kills_ref_p_1): Rename...
6528         (stmt_kills_ref_p): ... to this.
6529         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
6530         stmt_kills_ref_p): Declare.
6531         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
6532         Move the self-assignment case...
6533         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
6535 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6537         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
6539         * emit-rtl.c (try_split): Likewise, also for locals "before" and
6540         "after".  For now, don't strengthen param "trial", which requires
6541         adding checked casts when returning it.
6543 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6545         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
6546         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
6547         "var_location" hook from rtx to rtx_insn *.
6548         (debug_nothing_rtx): Delete in favor of...
6549         (debug_nothing_rtx_code_label): New prototype.
6550         (debug_nothing_rtx_rtx): Delete unused prototype.
6551         (debug_nothing_rtx_insn): New prototype.
6553         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
6554         invoking debug_hooks->var_location (in two places, one in a NOTE
6555         case of a switch statement, the other guarded by a CALL_P
6556         conditional.  Add checked cast to rtx_code_label * when invoking
6557         debug_hooks->label (within CODE_LABEL case of switch statement).
6559         * dbxout.c (dbx_debug_hooks): Update "label" hook from
6560         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
6561         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
6562         (xcoff_debug_hooks): Likewise.
6563         * debug.c (do_nothing_debug_hooks): Likewise.
6564         (debug_nothing_rtx): Delete in favor of...
6565         (debug_nothing_rtx_insn): New function.
6566         (debug_nothing_rtx_rtx): Delete unused function.
6567         (debug_nothing_rtx_code_label): New function.
6568         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
6569         debug_nothing_rtx to debug_nothing_rtx_code_label.
6570         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
6571         to rtx_insn *.
6572         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
6573         debug_nothing_rtx to debug_nothing_rtx_insn.
6574         (sdbout_label): Strengthen param "insn" from rtx to
6575         rtx_code_label *.
6576         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
6577         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
6578         "var_location" hook from debug_nothing_rtx to
6579         debug_nothing_rtx_insn.
6581 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6583         * recog.h (insn_output_fn): Update this function typedef to match
6584         the changes below to the generated output functions, strengthening
6585         the 2nd param from rtx to rtx_insn *.
6587         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
6588         insn when invoking an output function, to match the new signature
6589         of insn_output_fn with a stronger second param.
6591         * genconditions.c (write_header): In the generated code for
6592         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
6593         to match the other changes in this patch.
6595         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
6596         the generated "gen_" functions from rtx to rtx_insn * within their
6597         implementations.
6599         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
6600         the subfunctions within the generated "recog_", "split", "peephole2"
6601         function trees from rtx to rtx_insn *.  For now, the top-level
6602         generated functions ("recog", "split", "peephole2") continue to
6603         take a plain rtx for "insn", to avoid introducing dependencies on
6604         other patches.  Rename this 2nd param from "insn" to
6605         "uncast_insn", and reintroduce "insn" as a local variable of type
6606         rtx_insn *, initialized at the top of the generated function with
6607         a checked cast on "uncast_insn".
6608         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
6609         the generated "gen_" functions from rtx to rtx_insn * within their
6610         prototypes.
6612         * genoutput.c (process_template): Strengthen the 2nd param within
6613         the generated "output_" functions "insn" from rtx to rtx_insn *.
6615 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
6617         * tree-profile.c (tree_profiling): Skip external functions
6618         when doing coverage instrumentation.
6619         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
6621 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6623         * config/rs6000/altivec.h (vec_cpsgn): New #define.
6624         (vec_mergee): Likewise.
6625         (vec_mergeo): Likewise.
6626         (vec_cntlz): Likewise.
6627         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
6628         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
6629         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
6630         VMRGEW, and VMRGOW.
6631         * doc/extend.texi: Document various forms of vec_cpsgn,
6632         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
6633         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
6634         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
6635         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
6636         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
6638 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6640         * config/rs6000/rs6000.c (context.h): New include.
6641         (tree-pass.h): Likewise.
6642         (make_pass_analyze_swaps): New decl.
6643         (rs6000_option_override): Register pass_analyze_swaps.
6644         (swap_web_entry): New subsclass of web_entry_base (df.h).
6645         (special_handling_values): New enum.
6646         (union_defs): New function.
6647         (union_uses): Likewise.
6648         (insn_is_load_p): Likewise.
6649         (insn_is_store_p): Likewise.
6650         (insn_is_swap_p): Likewise.
6651         (rtx_is_swappable_p): Likewise.
6652         (insn_is_swappable_p): Likewise.
6653         (chain_purpose): New enum.
6654         (chain_contains_only_swaps): New function.
6655         (mark_swaps_for_removal): Likewise.
6656         (swap_const_vector_halves): Likewise.
6657         (adjust_subreg_index): Likewise.
6658         (permute_load): Likewise.
6659         (permute_store): Likewise.
6660         (handle_special_swappables): Likewise.
6661         (replace_swap_with_copy): Likewise.
6662         (dump_swap_insn_table): Likewise.
6663         (rs6000_analyze_swaps): Likewise.
6664         (pass_data_analyze_swaps): New pass_data.
6665         (pass_analyze_swaps): New rtl_opt_pass.
6666         (make_pass_analyze_swaps): New function.
6667         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
6669 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6671         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
6672         type from rtx to rtx_insn *.
6673         (create_copy_of_insn_rtx): Likewise.
6674         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
6675         (create_copy_of_insn_rtx): Likewise, also for local "res".
6677 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6679         * rtl.h (find_first_parameter_load): Strengthen return type from
6680         rtx to rtx_insn *.
6681         * rtlanal.c (find_first_parameter_load): Strengthen return type
6682         from rtx to rtx_insn *.  Add checked cast for now, to postpone
6683         strengthening the params.
6685 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6687         PR fortran/44054
6688         * diagnostic.c: Set default caret.
6689         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
6690         line is needed.
6691         * diagnostic.h (struct diagnostic_context):
6693 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6695         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
6696         (sel_bb_head): Strengthen return type insn_t (currently just an
6697         rtx) to rtx_insn *.
6698         (sel_bb_end): Likewise.
6700         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
6701         (sel_bb_head): Strengthen return type and local "head" from
6702         insn_t (currently just an rtx) to rtx_insn *.
6703         (sel_bb_end): Likewise for return type.
6704         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
6705         working with insn.
6707 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6709         * basic-block.h (get_last_bb_insn): Strengthen return type from
6710         rtx to rtx_insn *.
6711         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
6712         end".
6714 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6716         PR fortran/44054
6717         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
6718          to here ...
6719         (diagnostic_report_diagnostic): ... from here.
6720         * toplev.c (general_init): Move code to c-family.
6722 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6724         * df.h (web_entry_base): Replace existing struct web_entry with a
6725         new class web_entry_base with only the predecessor member.
6726         (unionfind_root): Remove declaration and move to class member.
6727         (unionfind_union): Remove declaration and move to friend
6728         function.
6729         (union_defs): Remove declaration.
6730         * web.c (web_entry_base::unionfind_root): Modify to be member
6731         function and adjust accessors.
6732         (unionfind_union): Modify to be friend function and adjust
6733         accessors.
6734         (web_entry): New subclass of web_entry_base containing the reg
6735         member.
6736         (union_match_dups): Modify for struct -> class changes.
6737         (union_defs): Likewise.
6738         (entry_register): Likewise.
6739         (pass_web::execute): Likewise.
6741 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
6743         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
6744         builtin define __VEC_ELEMENT_REG_ORDER__.
6746 2014-08-20  Martin Jambor  <mjambor@suse.cz>
6747             Wei Mi  <wmi@google.com>
6749         PR ipa/60449
6750         PR middle-end/61776
6751         * tree-ssa-operands.c (update_stmt_operands): Remove
6752         MODIFIED_NORETURN_CALLS.
6753         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
6754         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
6755         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
6756         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
6757         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
6758         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
6759         (gimple_call_set_ctrl_altering): New func.
6760         (gimple_call_ctrl_altering_p): Ditto.
6761         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
6762         (make_blocks): Use gimple_call_initialize_ctrl_altering.
6763         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
6764         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
6765         remove MODIFIED_NORETURN_CALLS.
6767 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
6769         * coverage.c (coverage_compute_profile_id): Return non-0;
6770         also handle symbols with unique name.
6771         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
6773 2014-08-20  Steve Ellcey  <sellcey@mips.com>
6775         PR middle-end/49191
6776         * doc/sourcebuild.texi (non_strict_align): New.
6778 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
6780         * cgraphunit.c (ipa_passes, compile): Reshedule
6781         symtab_remove_unreachable_nodes passes; update comments.
6782         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
6783         TODO_remove_functions before the pass; the functions ought to be
6784         already removed.
6785         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
6786         TODO_remove_functions.
6787         * passes.c (pass_data_early_local_passes): Do not schedule function
6788         removal.
6789         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
6791 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6793         PR c/59304
6794         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
6795         before setting the option.
6796         * diagnostic.c (diagnostic_classify_diagnostic): Record
6797         command-line status.
6799 2014-08-20  Richard Biener  <rguenther@suse.de>
6801         PR lto/62190
6802         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
6803         to build uint{16,32,64}_type_node.
6805 2014-08-20  Terry Guo  <terry.guo@arm.com>
6807         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
6808         with immediate_operand.
6810 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
6812         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
6813         "insn" from an as_a to a safe_as_a, for the case when "insn" is
6814         NULL.
6816 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6818         PR preprocessor/51303
6819         * incpath.c (remove_duplicates): Use cpp_warning.
6821 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6823         PR c/60975
6824         PR c/53063
6825         * doc/options.texi (CPP): Document it.
6826         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
6827         * optc-gen.awk: Handle CPP.
6828         * opth-gen.awk: Likewise.
6830 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6832         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
6833         rtx_insn *.
6834         (duplicate_insn_chain): Likewise.
6835         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
6836         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
6837         checked cast for now (until we can strengthen the params in the
6838         same way).
6839         (duplicate_insn_chain): Likewise.
6841 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6843         * rtl.h (next_cc0_user): Strengthen return type from rtx to
6844         rtx_insn *.
6845         (prev_cc0_setter): Likewise.
6847         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
6848         rtx_insn *, adding checked casts for now as necessary.
6849         (prev_cc0_setter): Likewise.
6851 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6853         * expr.h (emit_move_insn): Strengthen return type from rtx to
6854         rtx_insn *.
6855         (emit_move_insn_1): Likewise.
6856         (emit_move_complex_push): Likewise.
6857         (emit_move_complex_parts): Likewise.
6859         * expr.c (emit_move_via_integer): Strengthen return type from rtx
6860         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
6861         with insns.
6862         (emit_move_complex_push): Strengthen return type from rtx to
6863         rtx_insn *.
6864         (emit_move_complex): Likewise, also for local "ret".
6865         (emit_move_ccmode): Likewise.
6866         (emit_move_multi_word): Likewise for return type and locals
6867         "last_insn", "seq".
6868         (emit_move_insn_1): Likewise for return type and locals "result",
6869         "ret".
6870         (emit_move_insn): Likewise for return type and local "last_insn".
6871         (compress_float_constant): Likewise.
6873 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6875         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
6876         from rtx to rtx_insn *.
6878         * rtl.h (emit_insn_before): Likewise.
6879         (emit_insn_before_noloc): Likewise.
6880         (emit_insn_before_setloc): Likewise.
6881         (emit_jump_insn_before): Likewise.
6882         (emit_jump_insn_before_noloc): Likewise.
6883         (emit_jump_insn_before_setloc): Likewise.
6884         (emit_call_insn_before): Likewise.
6885         (emit_call_insn_before_noloc): Likewise.
6886         (emit_call_insn_before_setloc): Likewise.
6887         (emit_debug_insn_before): Likewise.
6888         (emit_debug_insn_before_noloc): Likewise.
6889         (emit_debug_insn_before_setloc): Likewise.
6890         (emit_label_before): Likewise.
6891         (emit_insn_after): Likewise.
6892         (emit_insn_after_noloc): Likewise.
6893         (emit_insn_after_setloc): Likewise.
6894         (emit_jump_insn_after): Likewise.
6895         (emit_jump_insn_after_noloc): Likewise.
6896         (emit_jump_insn_after_setloc): Likewise.
6897         (emit_call_insn_after): Likewise.
6898         (emit_call_insn_after_noloc): Likewise.
6899         (emit_call_insn_after_setloc): Likewise.
6900         (emit_debug_insn_after): Likewise.
6901         (emit_debug_insn_after_noloc): Likewise.
6902         (emit_debug_insn_after_setloc): Likewise.
6903         (emit_label_after): Likewise.
6904         (emit_insn): Likewise.
6905         (emit_debug_insn): Likewise.
6906         (emit_jump_insn): Likewise.
6907         (emit_call_insn): Likewise.
6908         (emit_label): Likewise.
6909         (gen_clobber): Likewise.
6910         (emit_clobber): Likewise.
6911         (gen_use): Likewise.
6912         (emit_use): Likewise.
6913         (emit): Likewise.
6915         (emit_barrier_before): Strengthen return type from rtx to
6916         rtx_barrier *.
6917         (emit_barrier_after): Likewise.
6918         (emit_barrier): Likewise.
6920         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
6921         from rtx to rtx_insn *.  Add checked casts for now when converting
6922         "last" from rtx to rtx_insn *.
6923         (emit_insn_before_noloc): Likewise for return type.
6924         (emit_jump_insn_before_noloc): Likewise.
6925         (emit_call_insn_before_noloc): Likewise.
6926         (emit_debug_insn_before_noloc): Likewise.
6927         (emit_barrier_before): Strengthen return type and local "insn"
6928         from rtx to rtx_barrier *.
6929         (emit_label_before): Strengthen return type from rtx to
6930         rtx_insn *.  Add checked cast for now when returning param
6931         (emit_pattern_after_noloc): Strengthen return type from rtx to
6932         rtx_insn *.  Add checked casts for now when converting "last" from
6933         rtx to rtx_insn *.
6934         (emit_insn_after_noloc): Strengthen return type from rtx to
6935         rtx_insn *.
6936         (emit_jump_insn_after_noloc): Likewise.
6937         (emit_call_insn_after_noloc): Likewise.
6938         (emit_debug_insn_after_noloc): Likewise.
6939         (emit_barrier_after): Strengthen return type from rtx to
6940         rtx_barrier *.
6941         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
6942         Add checked cast for now when converting "label" from rtx to
6943         rtx_insn *.
6944         (emit_pattern_after_setloc): Strengthen return type from rtx to
6945         rtx_insn *.  Add checked casts for now when converting "last" from
6946         rtx to rtx_insn *.
6947         (emit_pattern_after): Strengthen return type from rtx to
6948         rtx_insn *.
6949         (emit_insn_after_setloc): Likewise.
6950         (emit_insn_after): Likewise.
6951         (emit_jump_insn_after_setloc): Likewise.
6952         (emit_jump_insn_after): Likewise.
6953         (emit_call_insn_after_setloc): Likewise.
6954         (emit_call_insn_after): Likewise.
6955         (emit_debug_insn_after_setloc): Likewise.
6956         (emit_debug_insn_after): Likewise.
6957         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
6958         when converting "last" from rtx to rtx_insn *.
6959         (emit_pattern_before): Strengthen return type from rtx to
6960         rtx_insn *.
6961         (emit_insn_before_setloc): Likewise.
6962         (emit_insn_before): Likewise.
6963         (emit_jump_insn_before_setloc): Likewise.
6964         (emit_jump_insn_before): Likewise.
6965         (emit_call_insn_before_setloc): Likewise.
6966         (emit_call_insn_before): Likewise.
6967         (emit_debug_insn_before_setloc): Likewise.
6968         (emit_debug_insn_before): Likewise.
6969         (emit_insn): Strengthen return type and locals "last", "insn",
6970         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
6971         within cases where we know we have an insn.
6972         (emit_debug_insn): Likewise.
6973         (emit_jump_insn): Likewise.
6974         (emit_call_insn): Strengthen return type and local "insn" from rtx
6975         to rtx_insn *.
6976         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
6977         a checked cast to rtx_insn * for now on "label".
6978         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
6979         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
6980         (emit_use): Likewise.
6981         (gen_use): Likewise, also for local "seq".
6982         (emit): Likewise for return type and local "insn".
6983         (rtx_insn): Likewise for return type and local "new_rtx".
6985         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
6986         from rtx to rtx_barrier *.
6988         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
6989         changed return type from rtx to rtx_insn *, we must update
6990         "emit_fn" type, and this in turn means updating...
6991         (frame_insn): ...this.  Strengthen return type from rtx to
6992         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
6994 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
6996         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
6997         rtx to rtx_jump_table_data *.  Also for local.
6998         * rtl.h (emit_jump_table_data): Likewise.
7000 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7002         * basic-block.h (create_basic_block_structure): Strengthen third
7003         param "bb_note" from rtx to rtx_note *.
7004         * rtl.h (emit_note_before): Strengthen return type from rtx to
7005         rtx_note *.
7006         (emit_note_after): Likewise.
7007         (emit_note): Likewise.
7008         (emit_note_copy): Likewise.  Also, strengthen param similarly.
7009         * function.h (struct rtl_data): Strengthen field
7010         "x_stack_check_probe_note" from rtx to rtx_note *.
7012         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
7013         from rtx to rtx_note *.
7014         * cfgrtl.c (create_basic_block_structure): Strengthen third param
7015         "bb_note" from rtx to rtx_note *.
7016         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
7017         when calling emit_note_copy.
7018         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
7019         rtx_note *.
7020         (emit_note_after): Likewise.
7021         (emit_note_before): Likewise.
7022         (emit_note_copy): Likewise.  Also, strengthen param similarly.
7023         (emit_note): Likewise.
7024         * except.c (emit_note_eh_region_end): Likewise for return type.
7025         Strengthen local "next" from rtx to rtx_insn *.
7026         (convert_to_eh_region_ranges): Strengthen local "note"
7027         from rtx to rtx_note *.
7028         * final.c (change_scope): Likewise.
7029         (reemit_insn_block_notes): Likewise, for both locals named "note".
7030         Also, strengthen local "insn" from rtx to rtx_insn *.
7031         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
7032         rtx to rtx_note *.
7033         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
7034         strengthen local "seq" from rtx to rtx_insn *.
7035         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
7036         to rtx_note *.
7037         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
7038         vec<rtx_note *>.
7039         (get_bb_note_from_pool): Strengthen return type from rtx to
7040         rtx_note *.
7041         (sel_create_basic_block): Strengthen local "new_bb_note" from
7042         insn_t to rtx_note *.
7043         * var-tracking.c (emit_note_insn_var_location): Strengthen local
7044         "note" from rtx to rtx_note *.
7045         (emit_notes_in_bb): Likewise.
7047 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7049         * function.h (struct rtl_data): Strengthen field
7050         "x_parm_birth_insn" from rtx to rtx_insn *.
7051         * function.c (struct assign_parm_data_all): Strengthen fields
7052         "first_conversion_insn" and "last_conversion_insn" from rtx to
7053         rtx_insn *.
7055 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7057         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
7058         to rtx_insn *; also for local "var_end_seq".
7059         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
7060         (maybe_cleanup_end_of_block): Likewise for param "last" and local
7061         "insn".
7062         (expand_gimple_cond): Likewise for locals "last2" and "last".
7063         (mark_transaction_restart_calls): Likewise for local "insn".
7064         (expand_gimple_stmt): Likewise for return type and locals "last"
7065         and "insn".
7066         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
7067         (avoid_complex_debug_insns): Likewise for param "insn".
7068         (expand_debug_locations): Likewise for locals "insn", "last",
7069         "prev_insn" and "insn2".
7070         (expand_gimple_basic_block): Likewise for local "last".
7071         (construct_exit_block): Likewise for locals "head", "end",
7072         "orig_end".
7073         (pass_expand::execute): Likewise for locals "var_seq",
7074         "var_ret_seq", "next".
7076 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7078         * asan.h (asan_emit_stack_protection): Strengthen return type from
7079         rtx to rtx_insn *.
7080         * asan.c (asan_emit_stack_protection): Likewise.  Add local
7081         "insns" to hold the return value.
7083 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7085         * basic-block.h (bb_note): Strengthen return type from rtx to
7086         rtx_note *.
7087         * sched-int.h (bb_note): Likewise.
7088         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
7090 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7092         * rtl.h (make_insn_raw): Strengthen return type from rtx to
7093         rtx_insn *.
7095         * emit-rtl.c (make_insn_raw): Strengthen return type and local
7096         "insn" from rtx to rtx_insn *.
7097         (make_debug_insn_raw): Strengthen return type from rtx to
7098         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
7099         (make_jump_insn_raw):  Strengthen return type from rtx to
7100         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
7101         (make_call_insn_raw):  Strengthen return type from rtx to
7102         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
7103         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
7104         callback from rtx to rtx_insn *; likewise for local "insn" and
7105         "next", adding a checked cast to rtx_insn in the relevant cases of
7106         the switch statement.
7107         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
7108         callback from rtx to rtx_insn *.
7109         (emit_pattern_after_setloc): Likewise.
7110         (emit_pattern_after): Likewise.
7111         (emit_pattern_before_setloc): Likewise.
7112         (emit_pattern_before): Likewise.
7114 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7116         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
7117         rtx_call_insn *.
7118         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
7119         accepting an rtx_insn *.
7120         (last_call_insn): Strengthen return type from rtx to
7121         rtx_call_insn *.
7123 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7125         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
7126         "insns" from rtx to rtx_insn *.
7127         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
7128         locals "insn" and "prev".
7130 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7132         * rtl.h (tablejump_p): Strengthen third param from rtx * to
7133         rtx_jump_table_data **.
7135         * cfgbuild.c (make_edges): Introduce local "table", using it in
7136         place of "tmp" for jump table data.
7137         (find_bb_boundaries): Strengthen local "table" from rtx to
7138         rtx_jump_table_data *.
7139         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7140         (outgoing_edges_match): Likewise for locals "table1" and "table2".
7141         (try_crossjump_to_edge): Likewise.
7142         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
7143         "table".
7144         (patch_jump_insn): Introduce local "table", using it in place of
7145         "tmp" for jump table data.
7146         (force_nonfallthru_and_redirect): Introduce local "table", so that
7147         call to tablejump_p can receive an rtx_jump_table_data **.  Update
7148         logic around the call to overwrite "note" appropriately if
7149         tablejump_p returns non-zero.
7150         (get_last_bb_insn): Introduce local "table", using it in place of
7151         "tmp" for jump table data.
7152         * dwarf2cfi.c (create_trace_edges): Likewise.
7154         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
7155         from rtx to rtx_jump_table_data *.
7156         (create_fix_barrier): Strengthen local "tmp" from rtx to
7157         rtx_jump_table_data *.
7158         (arm_reorg): Likewise for local "table".
7160         * config/s390/s390.c (s390_chunkify_start): Likewise.
7162         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
7164         * jump.c (delete_related_insns): Strengthen local "lab_next" from
7165         rtx to rtx_jump_table_data *.
7167         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
7168         rtx_jump_table_data **.  Add a checked cast when writing through
7169         the pointer: we know there that local "table" is non-NULL and that
7170         JUMP_TABLE_DATA_P (table) holds.
7171         (label_is_jump_target_p): Introduce local "table", using it in
7172         place of "tmp" for jump table data.
7174 2014-08-19  Marek Polacek  <polacek@redhat.com>
7176         PR c++/62153
7177         * doc/invoke.texi: Document -Wbool-compare.
7179 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7181         * rtl.h (entry_of_function): Strengthen return type from rtx to
7182         rtx_insn *.
7183         * cfgrtl.c (entry_of_function): Likewise.
7185 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7187         * emit-rtl.h (get_insns): Strengthen return type from rtx to
7188         rtx_insn *, adding a checked cast for now.
7189         (get_last_insn): Likewise.
7191 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7193         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
7194         rtx_code_label *.
7196         * emit-rtl.c (gen_label_rtx): Likewise.
7198 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7200         * rtl.h (previous_insn): Strengthen return type from rtx to
7201         rtx_insn *.
7202         (next_insn): Likewise.
7203         (prev_nonnote_insn): Likewise.
7204         (prev_nonnote_insn_bb): Likewise.
7205         (next_nonnote_insn): Likewise.
7206         (next_nonnote_insn_bb): Likewise.
7207         (prev_nondebug_insn): Likewise.
7208         (next_nondebug_insn): Likewise.
7209         (prev_nonnote_nondebug_insn): Likewise.
7210         (next_nonnote_nondebug_insn): Likewise.
7211         (prev_real_insn): Likewise.
7212         (next_real_insn): Likewise.
7213         (prev_active_insn): Likewise.
7214         (next_active_insn): Likewise.
7216         * emit-rtl.c (next_insn): Strengthen return type from rtx to
7217         rtx_insn *, adding a checked cast.
7218         (previous_insn): Likewise.
7219         (next_nonnote_insn): Likewise.
7220         (next_nonnote_insn_bb): Likewise.
7221         (prev_nonnote_insn): Likewise.
7222         (prev_nonnote_insn_bb): Likewise.
7223         (next_nondebug_insn): Likewise.
7224         (prev_nondebug_insn): Likewise.
7225         (next_nonnote_nondebug_insn): Likewise.
7226         (prev_nonnote_nondebug_insn): Likewise.
7227         (next_real_insn): Likewise.
7228         (prev_real_insn): Likewise.
7229         (next_active_insn): Likewise.
7230         (prev_active_insn): Likewise.
7232         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
7233         param "stepfunc" so that it returns an rtx_insn * rather than an
7234         rtx, to track the change to prev_nonnote_insn_bb, which is the
7235         only function this is called with.
7236         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
7238 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
7240         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
7241         assert.
7243 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7245         * coretypes.h (class rtx_debug_insn): Add forward declaration.
7246         (class rtx_nonjump_insn): Likewise.
7247         (class rtx_jump_insn): Likewise.
7248         (class rtx_call_insn): Likewise.
7249         (class rtx_jump_table_data): Likewise.
7250         (class rtx_barrier): Likewise.
7251         (class rtx_code_label): Likewise.
7252         (class rtx_note): Likewise.
7254         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
7255         adding the invariant DEBUG_INSN_P (X).
7256         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
7257         the invariant NONJUMP_INSN_P (X).
7258         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
7259         the invariant JUMP_P (X).
7260         (class rtx_call_insn): New, a subclass of rtx_insn, adding
7261         the invariant CALL_P (X).
7262         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
7263         invariant JUMP_TABLE_DATA_P (X).
7264         (class rtx_barrier): New, a subclass of rtx_insn, adding the
7265         invariant BARRIER_P (X).
7266         (class rtx_code_label): New, a subclass of rtx_insn, adding
7267         the invariant LABEL_P (X).
7268         (class rtx_note): New, a subclass of rtx_insn, adding
7269         the invariant NOTE_P(X).
7270         (is_a_helper <rtx_debug_insn *>::test): New.
7271         (is_a_helper <rtx_nonjump_insn *>::test): New.
7272         (is_a_helper <rtx_jump_insn *>::test): New.
7273         (is_a_helper <rtx_call_insn *>::test): New.
7274         (is_a_helper <rtx_jump_table_data *>::test): New functions,
7275         overloaded for both rtx and rtx_insn *.
7276         (is_a_helper <rtx_barrier *>::test): New.
7277         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
7278         for both rtx and rtx_insn *.
7279         (is_a_helper <rtx_note *>::test): New.
7281 2014-08-19  Marek Polacek  <polacek@redhat.com>
7283         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
7284         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
7285         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
7286         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
7288 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7290         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
7291         rtx_insn *.  To help with transition, for now, convert from an
7292         access macro into a pair of functions: BND_TO, returning an
7293         rtx_insn *, and...
7294         (SET_BND_TO): New function, for use where BND_TO is used as an
7295         lvalue.
7297         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
7298         SET_BND_TO.
7299         (BND_TO): New function, adding a checked cast.
7300         (SET_BND_TO): New function.
7302         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
7303         SET_BND_TO.
7304         (compute_av_set_on_boundaries): Likewise.
7306 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
7308         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
7309         destination if it is used in source.
7310         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
7311         (*popcount<mode>2_falsedep_1): Likewise.
7313 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
7315         PR other/62168
7316         * configure.ac: Set install_gold_as_default to no first.
7317         * configure: Regenerated.
7319 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7321         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
7322         "note_list" field will eventually be an rtx_insn *.  To help with
7323         transition, for now, convert from an access macro into a pair of
7324         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
7325         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
7326         used as an lvalue.
7328         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
7329         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
7331         * sel-sched-ir.c (init_bb): Likewise.
7332         (sel_restore_notes): Likewise.
7333         (move_bb_info): Likewise.
7334         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
7335         (SET_BB_NOTE_LIST): New function.
7337 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7339         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
7340         field will eventually be an rtx_insn *.  To help with transition,
7341         for now, convert from an access macro into a pair of functions:
7342         VINSN_INSN_RTX, returning an rtx_insn *, and...
7343         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
7344         is used as an lvalue.
7346         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
7347         SET_VINSN_INSN_RTX where it's used as an lvalue.
7348         (VINSN_INSN_RTX): New function.
7349         (SET_VINSN_INSN_RTX): New function.
7351 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7353         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
7354         eventually be rtx_insn *, but to help with transition, for now,
7355         convert from an access macro into a pair of functions: DEP_PRO
7356         returning an rtx_insn * and...
7357         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
7358         lvalue, returning an rtx&.
7359         (DEP_CON): Analogous changes to DEP_PRO above.
7360         (SET_DEP_CON): Likewise.
7362         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
7363         an lvalue to SET_DEP_CON.
7364         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
7365         (sd_copy_back_deps): Likewise for DEP_CON.
7366         (DEP_PRO): New function, adding a checked cast for now.
7367         (DEP_CON): Likewise.
7368         (SET_DEP_PRO): New function.
7369         (SET_DEP_CON): Likewise.
7371 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
7373         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
7374         (extra_options): Add i386/cygwin.opt.
7375         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
7376         (CPP_SPEC): Accept -pthread.
7377         (LINK_SPEC): Ditto.
7378         (GOMP_SELF_SPECS): Update comment.
7379         * config/i386/cygwin.opt: New file for -pthread flag.
7381 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7383         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
7384         * df.h (DF_REF_INSN): Convert from a macro to a function, so
7385         that we can return an rtx_insn *.
7387 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
7389         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
7390         when building executables, not DLLs.  Add --large-address-aware
7391         under the same conditions.
7392         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
7393         when building executables, not DLLs.  Add --large-address-aware
7394         under the same conditions when using -m32.
7396         * config/i386/cygwin-stdint.h: Throughout, make type
7397         definitions dependent on target architecture, not host.
7399 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7401         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
7402         the return type from rtx to rtx_insn *,  which will enable various
7403         conversions in followup patches.  For now this is is done by a
7404         checked cast.
7405         (NEXT_INSN): Likewise.
7406         (SET_PREV_INSN): Convert to an inline function.  This is intended
7407         for use as an lvalue, and so returns an rtx& to allow in-place
7408         modification.
7409         (SET_NEXT_INSN): Likewise.
7411 2014-07-08  Mark Wielaard  <mjw@redhat.com>
7413         PR debug/59051
7414         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
7416 2014-08-19  Marek Polacek  <polacek@redhat.com>
7418         PR c/61271
7419         * cgraphunit.c (handle_alias_pairs): Fix condition.
7421 2014-08-19  Richard Biener  <rguenther@suse.de>
7423         * gimple-fold.c (fold_gimple_assign): Properly build a
7424         null-pointer constant when devirtualizing addresses.
7426 2014-07-07  Mark Wielaard  <mjw@redhat.com>
7428         * dwarf2out.c (decl_quals): New function.
7429         (modified_type_die): Take one cv_quals argument instead of two,
7430         one for const and one for volatile.
7431         (add_type_attribute): Likewise.
7432         (generic_parameter_die): Call add_type_attribute with one modifier
7433         argument.
7434         (base_type_for_mode): Likewise.
7435         (add_bounds_info): Likewise.
7436         (add_subscript_info): Likewise.
7437         (gen_array_type_die): Likewise.
7438         (gen_descr_array_type_die): Likewise.
7439         (gen_entry_point_die): Likewise.
7440         (gen_enumeration_type_die): Likewise.
7441         (gen_formal_parameter_die): Likewise.
7442         (gen_subprogram_die): Likewise.
7443         (gen_variable_die): Likewise.
7444         (gen_const_die): Likewise.
7445         (gen_field_die): Likewise.
7446         (gen_pointer_type_die): Likewise.
7447         (gen_reference_type_die): Likewise.
7448         (gen_ptr_to_mbr_type_die): Likewise.
7449         (gen_inheritance_die): Likewise.
7450         (gen_subroutine_type_die): Likewise.
7451         (gen_typedef_die): Likewise.
7452         (force_type_die): Likewise.
7454 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7456         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
7457         if unset.
7458         * configure: Regenerate.
7460 2014-08-19  Richard Biener  <rguenther@suse.de>
7462         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
7463         DECL_EXTERNALs in BLOCKs as non-references.
7464         * tree-streamer-out.c (streamer_write_chain): Likewise.
7466 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7467             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7468             Anna Tikhonova  <anna.tikhonova@intel.com>
7469             Ilya Tocar  <ilya.tocar@intel.com>
7470             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7471             Ilya Verbin  <ilya.verbin@intel.com>
7472             Kirill Yukhin  <kirill.yukhin@intel.com>
7473             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7475         * config/i386/sse.md
7476         (define_mode_iterator VI48_AVX512F): Delete.
7477         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
7478         (define_mode_iterator VI2_AVX512VL): Ditto.
7479         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
7480         Delete.
7481         (define_insn
7482         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
7483         New.
7484         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
7485         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
7486         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
7487         with VI48_AVX512F_AVX512VL): New.
7488         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
7489         with VI2_AVX512VL): Ditto.
7491 2014-08-19  Marek Polacek  <polacek@redhat.com>
7493         * doc/invoke.texi: Document -Wc99-c11-compat.
7495 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7497         * rtl.h (PREV_INSN): Split macro in two: the existing one,
7498         for rvalues, and...
7499         (SET_PREV_INSN): New macro, for use as an lvalue.
7500         (NEXT_INSN, SET_NEXT_INSN): Likewise.
7502         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
7503         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
7504         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7505         (fixup_abnormal_edges): Likewise.
7506         (unlink_insn_chain): Likewise.
7507         (fixup_reorder_chain): Likewise.
7508         (cfg_layout_delete_block): Likewise.
7509         (cfg_layout_merge_blocks): Likewise.
7510         * combine.c (update_cfg_for_uncondjump): Likewise.
7511         * emit-rtl.c (link_insn_into_chain): Likewise.
7512         (remove_insn): Likewise.
7513         (delete_insns_since): Likewise.
7514         (reorder_insns_nobb): Likewise.
7515         (emit_insn_after_1): Likewise.
7516         * final.c (rest_of_clean_state): Likewise.
7517         (final_scan_insn): Likewise.
7518         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
7519         * haifa-sched.c (concat_note_lists): Likewise.
7520         (remove_notes): Likewise.
7521         (restore_other_notes): Likewise.
7522         (move_insn): Likewise.
7523         (unlink_bb_notes): Likewise.
7524         (restore_bb_notes): Likewise.
7525         * jump.c (delete_for_peephole): Likewise.
7526         * optabs.c (emit_libcall_block_1): Likewise.
7527         * reorg.c (emit_delay_sequence): Likewise.
7528         (fill_simple_delay_slots): Likewise.
7529         * sel-sched-ir.c (sel_move_insn): Likewise.
7530         (sel_remove_insn): Likewise.
7531         (get_bb_note_from_pool): Likewise.
7532         * sel-sched.c (move_nop_to_previous_block): Likewise.
7534         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
7535         * config/c6x/c6x.c (gen_one_bundle): Likewise.
7536         (c6x_gen_bundles): Likewise.
7537         (hwloop_optimize): Likewise.
7538         * config/frv/frv.c (frv_function_prologue): Likewise.
7539         (frv_register_nop): Likewise.
7540         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
7541         (ia64_reorg): Likewise.
7542         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
7543         (mep_make_bundle): Likewise.
7544         (mep_bundle_insns): Likewise.
7545         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
7546         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
7547         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
7549 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7551         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
7552         return type from rtx to rtx_insn *.
7553         (BB_END): Likewise.
7554         (BB_HEADER): Likewise.
7555         (BB_FOOTER): Likewise.
7556         (SET_BB_HEAD): Convert to a function.
7557         (SET_BB_END): Likewise.
7558         (SET_BB_HEADER): Likewise.
7559         (SET_BB_FOOTER): Likewise.
7561         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
7562         Strengthen the return type from rtx to rtx_insn *.  For now, this
7563         is done by adding a checked cast, but this will eventually
7564         become a field lookup.
7565         (BB_END): Likewise.
7566         (BB_HEADER): Likewise.
7567         (BB_FOOTER): Likewise.
7568         (SET_BB_HEAD): New function, from macro of same name.  This is
7569         intended for use as an lvalue, and so returns an rtx& to allow
7570         in-place modification.
7571         (SET_BB_END): Likewise.
7572         (SET_BB_HEADER): Likewise.
7573         (SET_BB_FOOTER): Likewise.
7575 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
7577         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
7578         for rvalues, and...
7579         (SET_BB_HEAD): New macro, for use as a lvalue.
7580         (BB_END, SET_BB_END): Likewise.
7581         (BB_HEADER, SET_BB_HEADER): Likewise.
7582         (BB_FOOTER, SET_BB_FOOTER): Likewise.
7584         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
7585         of BB_* macros into SET_BB_* macros.
7586         (fix_crossing_unconditional_branches): Likewise.
7587         * caller-save.c (save_call_clobbered_regs): Likewise.
7588         (insert_one_insn): Likewise.
7589         * cfgbuild.c (find_bb_boundaries): Likewise.
7590         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7591         (outgoing_edges_match): Likewise.
7592         (try_optimize_cfg): Likewise.
7593         * cfgexpand.c (expand_gimple_cond): Likewise.
7594         (expand_gimple_tailcall): Likewise.
7595         (expand_gimple_basic_block): Likewise.
7596         (construct_exit_block): Likewise.
7597         * cfgrtl.c (delete_insn): Likewise.
7598         (create_basic_block_structure): Likewise.
7599         (rtl_delete_block): Likewise.
7600         (rtl_split_block): Likewise.
7601         (emit_nop_for_unique_locus_between): Likewise.
7602         (rtl_merge_blocks): Likewise.
7603         (block_label): Likewise.
7604         (try_redirect_by_replacing_jump): Likewise.
7605         (emit_barrier_after_bb): Likewise.
7606         (fixup_abnormal_edges): Likewise.
7607         (record_effective_endpoints): Likewise.
7608         (relink_block_chain): Likewise.
7609         (fixup_reorder_chain): Likewise.
7610         (fixup_fallthru_exit_predecessor): Likewise.
7611         (cfg_layout_duplicate_bb): Likewise.
7612         (cfg_layout_split_block): Likewise.
7613         (cfg_layout_delete_block): Likewise.
7614         (cfg_layout_merge_blocks): Likewise.
7615         * combine.c (update_cfg_for_uncondjump): Likewise.
7616         * emit-rtl.c (add_insn_after): Likewise.
7617         (remove_insn): Likewise.
7618         (reorder_insns): Likewise.
7619         (emit_insn_after_1): Likewise.
7620         * haifa-sched.c (get_ebb_head_tail): Likewise.
7621         (restore_other_notes): Likewise.
7622         (move_insn): Likewise.
7623         (sched_extend_bb): Likewise.
7624         (fix_jump_move): Likewise.
7625         * ifcvt.c (noce_process_if_block): Likewise.
7626         (dead_or_predicable): Likewise.
7627         * ira.c (update_equiv_regs): Likewise.
7628         * reg-stack.c (change_stack): Likewise.
7629         * sel-sched-ir.c (sel_move_insn): Likewise.
7630         * sel-sched.c (move_nop_to_previous_block): Likewise.
7632         * config/c6x/c6x.c (hwloop_optimize): Likewise.
7633         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
7635 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
7637         * rtl.h (for_each_rtx_in_insn): New function.
7638         * rtlanal.c (for_each_rtx_in_insn): Likewise.
7640 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
7642         * coretypes.h (class rtx_insn): Add forward declaration.
7644         * rtl.h: Include is-a.h.
7645         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
7646         workaround to ensure gengtype knows inheritance is occurring,
7647         whilst continuing to use the pre-existing special-casing for
7648         rtx_def.
7649         (class rtx_insn): New subclass of rtx_def, adding the
7650         invariant that we're dealing with something we can sanely use
7651         INSN_UID, NEXT_INSN, PREV_INSN on.
7652         (is_a_helper <rtx_insn *>::test): New.
7653         (is_a_helper <const rtx_insn *>::test): New.
7655 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
7657         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
7659 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
7661         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
7662         comdats as extern.
7664 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
7666         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
7667         to BUILT_IN_UNREACHABLE.
7669 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
7671         PR target/62011
7672         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
7673         New tune flag.
7674         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
7675         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
7676         (ffs<mode>2): Do not expand with tzcnt for
7677         TARGET_AVOID_FALSE_DEP_FOR_BMI.
7678         (ffssi2_no_cmove): Ditto.
7679         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
7680         (ctz<mode>2): New expander.
7681         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
7682         (*ctz<mode>2_falsedep): New insn.
7683         (*ctz<mode>2): Rename from ctz<mode>2.
7684         (clz<mode>2_lzcnt): New expander.
7685         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
7686         (*clz<mode>2_lzcnt_falsedep): New insn.
7687         (*clz<mode>2): Rename from ctz<mode>2.
7688         (popcount<mode>2): New expander.
7689         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
7690         (*popcount<mode>2_falsedep): New insn.
7691         (*popcount<mode>2): Rename from ctz<mode>2.
7692         (*popcount<mode>2_cmp): Remove.
7693         (*popcountsi2_cmp_zext): Ditto.
7695 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
7697         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
7698         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
7699         * config/microblaze/microblaze.h
7700         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
7702 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7704         PR other/62168
7705         * configure.ac: Set install_gold_as_default to no for
7706          --enable-gold=no.
7707          * configure: Regenerated.
7709 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
7711         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
7712         * config.in: Add undef of HAVE_isl.
7713         * configure: Regenerate.
7714         * configure.ac: Add definition of HAVE_isl.
7715         * graphite-blocking.c: Add checking of HAVE_isl.
7716         * graphite-dependences.c: Likewise.
7717         * graphite-interchange.c: Likewise.
7718         * graphite-isl-ast-to-gimple.c: Likewise.
7719         * graphite-optimize-isl.c: Likewise.
7720         * graphite-poly.c: Likewise.
7721         * graphite-scop-detection.c: Likewise.
7722         * graphite-sese-to-poly.c: Likewise.
7723         * graphite.c: Likewise.
7724         * toplev.c: Replace the checking of HAVE_cloog with the checking
7725         of HAVE_isl.
7727 2014-08-18  Richard Biener  <rguenther@suse.de>
7729         PR tree-optimization/62090
7730         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
7731         (fold_builtin_3): Do not fold snprintf.
7732         (fold_builtin_4): Likewise.
7733         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
7734         moved from builtins.c.
7735         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
7736         (gimple_fold_builtin): Do not fold sprintf here.
7738 2014-08-18  Richard Biener  <rguenther@suse.de>
7740         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
7741         code to ...
7742         (maybe_canonicalize_mem_ref_addr): ... this function.
7743         (fold_stmt_1): Apply it here before all simplification.
7745 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
7747         PR ipa/61800
7748         * cgraph.h (cgraph_node::create_indirect_edge): Add
7749         compute_indirect_info param.
7750         * cgraph.c (cgraph_node::create_indirect_edge): Compute
7751         indirect_info only when it is required.
7752         * cgraphclones.c (cgraph_clone_edge): Do not recompute
7753         indirect_info fore cloned indirect edge.
7755 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7756             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7757             Anna Tikhonova  <anna.tikhonova@intel.com>
7758             Ilya Tocar  <ilya.tocar@intel.com>
7759             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7760             Ilya Verbin  <ilya.verbin@intel.com>
7761             Kirill Yukhin  <kirill.yukhin@intel.com>
7762             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7764         * config/i386/sse.md
7765         (define_mode_iterator VI8_AVX2_AVX512BW): New.
7766         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
7768 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7769             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7770             Anna Tikhonova  <anna.tikhonova@intel.com>
7771             Ilya Tocar  <ilya.tocar@intel.com>
7772             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7773             Ilya Verbin  <ilya.verbin@intel.com>
7774             Kirill Yukhin  <kirill.yukhin@intel.com>
7775             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7777         * config/i386/sse.md
7778         (define_mode_iterator VF1_AVX512VL): New.
7779         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
7780         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
7781         New.
7783 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7784             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7785             Anna Tikhonova  <anna.tikhonova@intel.com>
7786             Ilya Tocar  <ilya.tocar@intel.com>
7787             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7788             Ilya Verbin  <ilya.verbin@intel.com>
7789             Kirill Yukhin  <kirill.yukhin@intel.com>
7790             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7792         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
7793         * config/i386/i386.md
7794         (define_code_iterator any_float): New.
7795         (define_code_attr floatsuffix): New.
7796         * config/i386/sse.md
7797         (define_mode_iterator VF1_128_256VL): New.
7798         (define_mode_iterator VF2_512_256VL): New.
7799         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
7800         TARGET check.
7801         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
7802         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
7803         New.
7804         (define_mode_attr qq2pssuff): New.
7805         (define_mode_attr sselongvecmode): New.
7806         (define_mode_attr sselongvecmodelower): New.
7807         (define_mode_attr sseintvecmode3): New.
7808         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
7809         New.
7810         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
7811         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
7812         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
7813         (define_insn "ufloatv2siv2df2<mask_name>"): New.
7815 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7816             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7817             Anna Tikhonova  <anna.tikhonova@intel.com>
7818             Ilya Tocar  <ilya.tocar@intel.com>
7819             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7820             Ilya Verbin  <ilya.verbin@intel.com>
7821             Kirill Yukhin  <kirill.yukhin@intel.com>
7822             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7824         * config/i386/sse.md
7825         (define_mode_iterator VF2_AVX512VL): New.
7826         (define_mode_attr sseintvecmode2): New.
7827         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
7828         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
7829         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
7830         (define_insn
7831         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
7832         Ditto.
7833         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
7834         Ditto.
7835         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
7836         Ditto.
7838 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7839             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7840             Anna Tikhonova  <anna.tikhonova@intel.com>
7841             Ilya Tocar  <ilya.tocar@intel.com>
7842             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7843             Ilya Verbin  <ilya.verbin@intel.com>
7844             Kirill Yukhin  <kirill.yukhin@intel.com>
7845             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7847         * config/i386/i386.md
7848         (define_insn "*movoi_internal_avx"): Add evex version.
7849         (define_insn "*movti_internal"): Ditto.
7851 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7852             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7853             Anna Tikhonova  <anna.tikhonova@intel.com>
7854             Ilya Tocar  <ilya.tocar@intel.com>
7855             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7856             Ilya Verbin  <ilya.verbin@intel.com>
7857             Kirill Yukhin  <kirill.yukhin@intel.com>
7858             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7860         * config/i386/i386.md
7861         (define_attr "isa"): Add avx512dq, noavx512dq.
7862         (define_attr "enabled"): Ditto.
7863         * config/i386/sse.md
7864         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
7866 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7867             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7868             Anna Tikhonova  <anna.tikhonova@intel.com>
7869             Ilya Tocar  <ilya.tocar@intel.com>
7870             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7871             Ilya Verbin  <ilya.verbin@intel.com>
7872             Kirill Yukhin  <kirill.yukhin@intel.com>
7873             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7875         * config/i386/i386.c
7876         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
7877         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
7878         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
7879         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
7880         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
7881         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
7882         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
7883         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
7884         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
7885         * config/i386/sse.md
7886         (define_mode_iterator VMOVE): Allow V4TI mode.
7887         (define_mode_iterator V_AVX512VL): New.
7888         (define_mode_iterator V): New handling for AVX512VL.
7889         (define_insn "avx512f_load<mode>_mask"): Delete.
7890         (define_insn "<avx512>_load<mode>_mask"): New.
7891         (define_insn "avx512f_store<mode>_mask"): Delete.
7892         (define_insn "<avx512>_store<mode>_mask"): New.
7895 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
7897         PR sanitizer/62089
7898         * asan.c (instrument_derefs): Fix bitfield check.
7900 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
7902         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
7903         * config/rs6000/htm.md (ttest): Remove clobber.
7904         * config/rs6000/predicates.md (any_mask_operand): New predicate.
7905         (and_operand): Reformat.
7906         (and_2rld_operand): New predicate.
7907         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
7908         parameter.
7909         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
7910         parameter.  Handle AND directly.
7911         (rs6000_split_logical_di): Remove last parameter.
7912         (rs6000_split_logical): Remove last parameter.  Remove obsolete
7913         comment.
7914         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
7915         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
7916         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
7917         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
7918         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
7919         and 5 anonymous splitters):  Delete.
7920         (and<mode>3): New expander.
7921         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
7922         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
7923         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
7924         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
7925         (floatdisf2_internal1): Remove clobbers.
7926         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
7927         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
7928         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
7929         (and<mode>3 for BOOL_128): Remove clobber.
7930         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
7931         rs6000_split_logical.
7932         (*bool<mode>3_internal for BOOL_128): Adjust call of
7933         rs6000_split_logical.
7934         (*boolc<mode>3_internal1 for BOOL_128,
7935         *boolc<mode>3_internal2 for BOOL_128,
7936         *boolcc<mode>3_internal1 for BOOL_128,
7937         *boolcc<mode>3_internal2 for BOOL_128,
7938         *eqv<mode>3_internal1 for BOOL_128,
7939         *eqv<mode>3_internal2 for BOOL_128,
7940         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
7941         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
7942         clobber.
7943         (*vec_reload_and_reg_<mptrsize>): Delete.
7945 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
7947         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
7948         and split, *boolccsi3_internal3 and split): Delete.
7949         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
7950         *boolccdi3_internal3 and split): Delete.
7951         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
7952         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
7954 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
7956         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
7957         and split, *boolcsi3_internal3 and split): Delete.
7958         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
7959         *boolcdi3_internal3 and split): Delete.
7960         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
7962 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
7964         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
7965         <'u'>: Also support printing the low-order 16 bits.
7966         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
7967         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
7968         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
7969         *booldi3_internal3 and split): Delete.
7970         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
7971         *bool<mode>3_dot2): New.
7972         (two anonymous define_splits for non_logical_cint_operand): Merge.
7974 2014-08-17  Marek Polacek  <polacek@redhat.com>
7975             Manuel López-Ibáñez  <manu@gcc.gnu.org>
7977         PR c/62059
7978         * diagnostic.c (adjust_line): Add gcc_checking_assert.
7979         (diagnostic_show_locus): Don't print caret diagnostic
7980         if a column is larger than the line_width.
7982 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
7984         * common.opt: Make the ISL AST generator to be the main code generator
7985         of Graphite.
7987 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
7989         * wide-int.h (generic_wide_int): Declare as class instead of struct.
7991 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
7993         PR target/61641
7994         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
7995         Declare.
7996         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
7997         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
7998         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
7999         Define.
8000         * config/pa/pa.md (begin_brtab): Delete insn.
8001         (end_brtab): Likewise.
8003 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8005         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
8007 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
8009         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
8010         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
8011         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
8012         (get_dynamic_type): Remove.
8013         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
8014         (clear_speculation): Bring to ipa-deivrt.h
8015         (get_class_context): Rename to ...
8016         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
8017         (contains_type_p): Update.
8018         (get_dynamic_type): Rename to ...
8019         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
8020         (possible_polymorphic_call_targets): UPdate.
8021         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
8022         * ipa-prop.c (ipa_analyze_call_uses): Update.
8024 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
8026         * doc/invoke.texi (SH options): Document missing processor variant
8027         options.  Remove references to Hitachi.  Undocument deprecated mspace
8028         option.
8030 2014-08-15  Jason Merrill  <jason@redhat.com>
8032         * tree.c (type_hash_canon): Uncomment assert.
8034 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8036         * input.h (in_system_header_at): Add comment.
8038 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8040         PR fortran/44054
8041         * diagnostic.c (build_message_string): Make it extern.
8042         * diagnostic.h (build_message_string): Make it extern.
8044 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
8046         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
8047         load/store from/to non-floating class pseudo.
8049 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8051         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
8053 2014-08-15  Richard Biener  <rguenther@suse.de>
8055         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
8056         (get_constraint_for_ssa_var): Remove dead code.
8057         (get_constraint_for_1): Adjust.
8058         (find_what_var_points_to): Likewise.
8059         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
8061 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
8063         PR target/61878
8064         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
8065         (_mm512_mask_cmpge_epu32_mask): Ditto.
8066         (_mm512_cmpge_epu32_mask): Ditto.
8067         (_mm512_mask_cmpge_epi64_mask): Ditto.
8068         (_mm512_cmpge_epi64_mask): Ditto.
8069         (_mm512_mask_cmpge_epu64_mask): Ditto.
8070         (_mm512_cmpge_epu64_mask): Ditto.
8071         (_mm512_mask_cmple_epi32_mask): Ditto.
8072         (_mm512_cmple_epi32_mask): Ditto.
8073         (_mm512_mask_cmple_epu32_mask): Ditto.
8074         (_mm512_cmple_epu32_mask): Ditto.
8075         (_mm512_mask_cmple_epi64_mask): Ditto.
8076         (_mm512_cmple_epi64_mask): Ditto.
8077         (_mm512_mask_cmple_epu64_mask): Ditto.
8078         (_mm512_cmple_epu64_mask): Ditto.
8079         (_mm512_mask_cmplt_epi32_mask): Ditto.
8080         (_mm512_cmplt_epi32_mask): Ditto.
8081         (_mm512_mask_cmplt_epu32_mask): Ditto.
8082         (_mm512_cmplt_epu32_mask): Ditto.
8083         (_mm512_mask_cmplt_epi64_mask): Ditto.
8084         (_mm512_cmplt_epi64_mask): Ditto.
8085         (_mm512_mask_cmplt_epu64_mask): Ditto.
8086         (_mm512_cmplt_epu64_mask): Ditto.
8087         (_mm512_mask_cmpneq_epi32_mask): Ditto.
8088         (_mm512_mask_cmpneq_epu32_mask): Ditto.
8089         (_mm512_cmpneq_epu32_mask): Ditto.
8090         (_mm512_mask_cmpneq_epi64_mask): Ditto.
8091         (_mm512_cmpneq_epi64_mask): Ditto.
8092         (_mm512_mask_cmpneq_epu64_mask): Ditto.
8093         (_mm512_cmpneq_epu64_mask): Ditto.
8094         (_mm512_castpd_ps): Ditto.
8095         (_mm512_castpd_si512): Ditto.
8096         (_mm512_castps_pd): Ditto.
8097         (_mm512_castps_si512): Ditto.
8098         (_mm512_castsi512_ps): Ditto.
8099         (_mm512_castsi512_pd): Ditto.
8100         (_mm512_castpd512_pd128): Ditto.
8101         (_mm512_castps512_ps128): Ditto.
8102         (_mm512_castsi512_si128): Ditto.
8103         (_mm512_castpd512_pd256): Ditto.
8104         (_mm512_castps512_ps256): Ditto.
8105         (_mm512_castsi512_si256): Ditto.
8106         (_mm512_castpd128_pd512): Ditto.
8107         (_mm512_castps128_ps512): Ditto.
8108         (_mm512_castsi128_si512): Ditto.
8109         (_mm512_castpd256_pd512): Ditto.
8110         (_mm512_castps256_ps512): Ditto.
8111         (_mm512_castsi256_si512): Ditto.
8112         (_mm512_cmpeq_epu32_mask): Ditto.
8113         (_mm512_mask_cmpeq_epu32_mask): Ditto.
8114         (_mm512_mask_cmpeq_epu64_mask): Ditto.
8115         (_mm512_cmpeq_epu64_mask): Ditto.
8116         (_mm512_cmpgt_epu32_mask): Ditto.
8117         (_mm512_mask_cmpgt_epu32_mask): Ditto.
8118         (_mm512_mask_cmpgt_epu64_mask): Ditto.
8119         (_mm512_cmpgt_epu64_mask): Ditto.
8120         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
8121         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
8122         * config/i386/i386.c (enum ix86_builtins): Add
8123         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
8124         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
8125         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
8126         (bdesc_args): Add __builtin_ia32_si512_256si,
8127         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
8128         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
8129         __builtin_ia32_pd512_pd.
8130         (ix86_expand_args_builtin): Handle new FTYPEs.
8131         * config/i386/sse.md (castmode): Add 512-bit modes.
8132         (AVX512MODE2P): New.
8133         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
8134         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
8136 2014-08-15  Richard Biener  <rguenther@suse.de>
8138         * fold-const.c (tree_swap_operands_p): Put all constants
8139         last, also strip sign-changing NOPs when considering further
8140         canonicalization.  Canonicalize also when optimizing for size.
8142 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8144         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
8145         one_match > zero_match case to just before simple_sequence.
8147 2014-08-15  Richard Biener  <rguenther@suse.de>
8149         * data-streamer.h (streamer_string_index, string_for_index):
8150         Remove.
8151         * data-streamer-out.c (streamer_string_index): Make static.
8152         * data-streamer-in.c (string_for_index): Likewise.
8153         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
8154         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
8156 2014-08-15  Richard Biener  <rguenther@suse.de>
8158         PR tree-optimization/62031
8159         * tree-data-ref.c (dr_analyze_indices): Do not set
8160         DR_UNCONSTRAINED_BASE.
8161         (dr_may_alias_p): All indirect accesses have to go the
8162         formerly DR_UNCONSTRAINED_BASE path.
8163         * tree-data-ref.h (struct indices): Remove
8164         unconstrained_base member.
8165         (DR_UNCONSTRAINED_BASE): Remove.
8167 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
8169         PR middle-end/62092
8170         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
8171         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
8172         in OMP_CLAUSE_MAP in some outer target region.
8174 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
8176         * tree-ssa-loop-ivopts.c (ivopts_data): New field
8177         name_expansion_cache.
8178         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
8179         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
8180         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
8181         (difference_cannot_overflow_p): New parameter.  Use affine
8182         expansion for equality check.
8183         (iv_elimination_compare_lt): Pass new argument.
8185 2014-08-14  DJ Delorie  <dj@redhat.com>
8187         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
8188         variables to the accumulator.
8190         * config/rl78/predicates.md (rl78_near_mem_operand): New.
8191         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
8192         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
8193         with far-far moves.
8195         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
8196         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
8197         (umulqihi3_virt): Likewise.
8198         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
8199         (umulqihi3_real): Likewise.
8201         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
8203 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
8205         PR tree-optimization/62091
8206         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
8207         function_entry_reached.
8208         (walk_aliased_vdefs): Clear it here.
8209         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
8211 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
8213         * ipa-utils.h (compare_virtual_tables): Declare.
8214         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
8216 2014-08-14  Marek Polacek  <polacek@redhat.com>
8218         DR 458
8219         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
8220         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
8222 2014-08-14  Tom de Vries  <tom@codesourcery.com>
8224         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
8226 2014-08-14  Tom de Vries  <tom@codesourcery.com>
8228         PR rtl-optimization/62004
8229         PR rtl-optimization/62030
8230         * ifcvt.c (rtx_interchangeable_p): New function.
8231         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
8232         * emit-rtl.h (mem_attrs_eq_p): Declare.
8234 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
8236         * graphite-scop-detection.c:
8237         Add inclusion of cp-tree.h.
8238         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
8239         in case they are pointers to object types
8241 2014-08-14  Richard Biener  <rguenther@suse.de>
8243         * BASE-VER: Change to 5.0.0
8245 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8246             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8247             Anna Tikhonova  <anna.tikhonova@intel.com>
8248             Ilya Tocar  <ilya.tocar@intel.com>
8249             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8250             Ilya Verbin  <ilya.verbin@intel.com>
8251             Kirill Yukhin  <kirill.yukhin@intel.com>
8252             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8254         * config/i386/sse.md (define_mode_attr avx512): New.
8255         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
8256         V4DI modes.
8257         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
8258         (define_mode_attr ssse3_avx2): Ditto.
8259         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
8260         (define_mode_attr avx2_avx512bw): New.
8261         (define_mode_attr ssedoublemodelower): New.
8262         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
8263         V32HI, V64QI modes.
8264         (define_mode_attr ssebytemode): Allow V8DI modes.
8265         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
8266         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
8267         (define_mode_attr ssePSmode2): New.
8268         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
8269         V16HI, V32HI modes.
8270         (define_mode_attr dbpsadbwmode): New.
8271         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
8272         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
8273         (vi8_sse4_1_avx2_avx512): New.
8274         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
8275         mode attribute.
8276         (define_mode_attr blendbits): Move before its immediate use.
8278 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8279             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8280             Anna Tikhonova  <anna.tikhonova@intel.com>
8281             Ilya Tocar  <ilya.tocar@intel.com>
8282             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8283             Ilya Verbin  <ilya.verbin@intel.com>
8284             Kirill Yukhin  <kirill.yukhin@intel.com>
8285             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8287         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
8288         * config/i386/subst.md
8289         (define_mode_iterator SUBST_V): Update.
8290         (define_mode_iterator SUBST_A): Ditto.
8291         (define_subst_attr "mask_operand7"): New.
8292         (define_subst_attr "mask_operand10"): New.
8293         (define_subst_attr "mask_operand_arg34") : New.
8294         (define_subst_attr "mask_expand_op3"): New.
8295         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
8296         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
8297         (define_subst_attr "mask_avx512vl_condition"): New.
8298         (define_subst_attr "round_mask_operand4"): Ditto.
8299         (define_subst_attr "round_mask_scalar_op3"): Delete.
8300         (define_subst_attr "round_mask_op4"): New.
8301         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
8302         V16SImode.
8303         (define_subst_attr "round_modev8sf_condition"): New.
8304         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
8305         <MODE>mode.
8306         (define_subst_attr "round_saeonly_mask_operand4"): New.
8307         (define_subst_attr "round_saeonly_mask_op4"): New.
8308         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
8309         V8DImode, V16SImode.
8310         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
8311         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
8312         (define_subst_attr "mask_expand4_args"): New.
8313         (define_subst "mask_expand4"): New.
8315 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8316             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8317             Anna Tikhonova  <anna.tikhonova@intel.com>
8318             Ilya Tocar  <ilya.tocar@intel.com>
8319             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8320             Ilya Verbin  <ilya.verbin@intel.com>
8321             Kirill Yukhin  <kirill.yukhin@intel.com>
8322             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8324         * config/i386/i386.md
8325         (define_attr "isa"): Add avx512bw,noavx512bw.
8326         (define_attr "enabled"): Ditto.
8327         (define_split): Add 32/64-bit mask logic.
8328         (define_insn "*k<logic>qi"): New.
8329         (define_insn "*k<logic>hi"): New.
8330         (define_insn "*anddi_1"): Add mask version.
8331         (define_insn "*andsi_1"): Ditto.
8332         (define_insn "*<code><mode>_1"): Ditto.
8333         (define_insn "*<code>hi_1"): Ditto.
8334         (define_insn "kxnor<mode>"): New.
8335         (define_insn "kunpcksi"): New.
8336         (define_insn "kunpckdi"): New.
8337         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
8338         (define_insn "*one_cmplhi2_1"): Ditto.
8340 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8341             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8342             Anna Tikhonova  <anna.tikhonova@intel.com>
8343             Ilya Tocar  <ilya.tocar@intel.com>
8344             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8345             Ilya Verbin  <ilya.verbin@intel.com>
8346             Kirill Yukhin  <kirill.yukhin@intel.com>
8347             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8349         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
8350         V32HImode.
8352 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8353             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8354             Anna Tikhonova  <anna.tikhonova@intel.com>
8355             Ilya Tocar  <ilya.tocar@intel.com>
8356             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8357             Ilya Verbin  <ilya.verbin@intel.com>
8358             Kirill Yukhin  <kirill.yukhin@intel.com>
8359             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8361         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
8362         registers.
8363         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
8364         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
8365         xmm/ymm16+ when availble.
8366         * config/i386/i386.h
8367         (HARD_REGNO_NREGS): Add mask regs.
8368         (VALID_AVX512F_REG_MODE): Ditto.
8369         (VALID_AVX512F_REG_MODE) : Define.
8370         (VALID_MASK_AVX512BW_MODE): Ditto.
8371         (reg_class) (MASK_REG_P(X)): Define.
8372         * config/i386/i386.md: Do not split long moves with mask register,
8373         use kmovb if avx512bw is availible.
8374         (movdi_internal): Handle mask registers.
8376 2014-08-14  Richard Biener  <rguenther@suse.de>
8378         PR tree-optimization/62081
8379         * tree-ssa-loop.c (pass_fix_loops): New pass.
8380         (pass_tree_loop::gate):  Do not fixup loops here.
8381         * tree-pass.h (make_pass_fix_loops): Declare.
8382         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
8384 2014-08-14  Richard Biener  <rguenther@suse.de>
8386         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
8387         (type_hash_canon): ... this and avoid 2nd lookup for the add.
8389 2014-08-14  Richard Biener  <rguenther@suse.de>
8391         PR tree-optimization/62090
8392         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
8393         (fold_builtin_2): Do not fold sprintf.
8394         (fold_builtin_3): Likewise.
8395         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
8396         moved from builtins.c.
8397         (gimple_fold_builtin): Fold sprintf.
8399 2014-08-14  Richard Biener  <rguenther@suse.de>
8401         PR rtl-optimization/62079
8402         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
8403         run cleanup_cfg.
8405 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
8407         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
8408         current_function_decl.
8410 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
8412         * cgraph.c (cgraph_node::function_symbol): Fix wrong
8413         cgraph_function_node to cgraph_node::function_symbol
8414         refactoring.
8416 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8418         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
8419         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
8421 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
8423         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
8424         warning.
8426 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
8428         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
8429         generator.
8431 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
8433         PR target/62025
8434         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
8435         any registers that are used in mem_insn.
8437 2014-08-12  Steve Ellcey  <sellcey@mips.com>
8439         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
8441 2014-08-12  Steve Ellcey  <sellcey@mips.com>
8443         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
8444         (MULTILIB_DIRNAMES): Ditto.
8445         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
8446         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
8447         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
8448         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
8449         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
8450         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
8452 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8454         PR target/61413
8455         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
8456         of __ARM_SIZEOF_WCHAR_T.
8458 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8460         PR target/62098
8461         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
8462         Remove unnecessary attributes.
8464 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
8466         * internal-fn.c (init_internal_fns): Fix off-by-one.
8468 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8469             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8470             Anna Tikhonova  <anna.tikhonova@intel.com>
8471             Ilya Tocar  <ilya.tocar@intel.com>
8472             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8473             Ilya Verbin  <ilya.verbin@intel.com>
8474             Kirill Yukhin  <kirill.yukhin@intel.com>
8475             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8477         * config/i386/i386.c (standard_sse_constant_opcode): Use
8478         vpxord/vpternlog if avx512 is availible.
8480 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8482         PR middle-end/62103
8483         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
8484         bitfields, that is when size doesn't match the size of type or the
8485         size of the constructor.
8487 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8489         * config/rs6000/constraints.md (wh constraint): New constraint,
8490         for FP registers if direct move is available.
8491         (wi constraint): New constraint, for VSX/FP registers that can
8492         handle 64-bit integers.
8493         (wj constraint): New constraint for VSX/FP registers that can
8494         handle 64-bit integers for direct moves.
8495         (wk constraint): New constraint for VSX/FP registers that can
8496         handle 64-bit doubles for direct moves.
8497         (wy constraint): Make documentation match implementation.
8499         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
8500         scalar_in_vmx_p field to simplify tests of whether SFmode or
8501         DFmode can go in the Altivec registers.
8502         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
8503         (rs6000_setup_reg_addr_masks): Likewise.
8504         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
8505         field, and wh/wi/wj/wk constraints.
8506         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
8507         the wh/wi/wj/wk constraints.
8508         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
8509         upper registers, prefer VSX registers unless the operation is a
8510         memory operation with REG+OFFSET addressing.
8512         * config/rs6000/vsx.md (VSr mode attribute): Add support for
8513         DImode.  Change SFmode to use ww constraint instead of d to allow
8514         SF registers in the upper registers.
8515         (VSr2): Likewise.
8516         (VSr3): Likewise.
8517         (VSr5): Fix thinko in comment.
8518         (VSa): New mode attribute that is an alternative to wa, that
8519         returns the VSX register class that a mode can go in, but may not
8520         be the preferred register class.
8521         (VS_64dm): New mode attribute for appropriate register classes for
8522         referencing 64-bit elements of vectors for direct moves and normal
8523         moves.
8524         (VS_64reg): Likewise.
8525         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
8526         register allocator to only registers the data type can handle.
8527         (vsx_le_perm_load_<mode>): Likewise.
8528         (vsx_le_perm_store_<mode>): Likewise.
8529         (vsx_xxpermdi2_le_<mode>): Likewise.
8530         (vsx_xxpermdi4_le_<mode>): Likewise.
8531         (vsx_lxvd2x2_le_<mode>): Likewise.
8532         (vsx_lxvd2x4_le_<mode>): Likewise.
8533         (vsx_stxvd2x2_le_<mode>): Likewise.
8534         (vsx_add<mode>3): Likewise.
8535         (vsx_sub<mode>3): Likewise.
8536         (vsx_mul<mode>3): Likewise.
8537         (vsx_div<mode>3): Likewise.
8538         (vsx_tdiv<mode>3_internal): Likewise.
8539         (vsx_fre<mode>2): Likewise.
8540         (vsx_neg<mode>2): Likewise.
8541         (vsx_abs<mode>2): Likewise.
8542         (vsx_nabs<mode>2): Likewise.
8543         (vsx_smax<mode>3): Likewise.
8544         (vsx_smin<mode>3): Likewise.
8545         (vsx_sqrt<mode>2): Likewise.
8546         (vsx_rsqrte<mode>2): Likewise.
8547         (vsx_tsqrt<mode>2_internal): Likewise.
8548         (vsx_fms<mode>4): Likewise.
8549         (vsx_nfma<mode>4): Likewise.
8550         (vsx_eq<mode>): Likewise.
8551         (vsx_gt<mode>): Likewise.
8552         (vsx_ge<mode>): Likewise.
8553         (vsx_eq<mode>_p): Likewise.
8554         (vsx_gt<mode>_p): Likewise.
8555         (vsx_ge<mode>_p): Likewise.
8556         (vsx_xxsel<mode>): Likewise.
8557         (vsx_xxsel<mode>_uns): Likewise.
8558         (vsx_copysign<mode>3): Likewise.
8559         (vsx_float<VSi><mode>2): Likewise.
8560         (vsx_floatuns<VSi><mode>2): Likewise.
8561         (vsx_fix_trunc<mode><VSi>2): Likewise.
8562         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
8563         (vsx_x<VSv>r<VSs>i): Likewise.
8564         (vsx_x<VSv>r<VSs>ic): Likewise.
8565         (vsx_btrunc<mode>2): Likewise.
8566         (vsx_b2trunc<mode>2): Likewise.
8567         (vsx_floor<mode>2): Likewise.
8568         (vsx_ceil<mode>2): Likewise.
8569         (vsx_<VS_spdp_insn>): Likewise.
8570         (vsx_xscvspdp): Likewise.
8571         (vsx_xvcvspuxds): Likewise.
8572         (vsx_float_fix_<mode>2): Likewise.
8573         (vsx_set_<mode>): Likewise.
8574         (vsx_extract_<mode>_internal1): Likewise.
8575         (vsx_extract_<mode>_internal2): Likewise.
8576         (vsx_extract_<mode>_load): Likewise.
8577         (vsx_extract_<mode>_store): Likewise.
8578         (vsx_splat_<mode>): Likewise.
8579         (vsx_xxspltw_<mode>): Likewise.
8580         (vsx_xxspltw_<mode>_direct): Likewise.
8581         (vsx_xxmrghw_<mode>): Likewise.
8582         (vsx_xxmrglw_<mode>): Likewise.
8583         (vsx_xxsldwi_<mode>): Likewise.
8584         (vsx_xscvdpspn): Tighten constraints to only use register classes
8585         the types use.
8586         (vsx_xscvspdpn): Likewise.
8587         (vsx_xscvdpspn_scalar): Likewise.
8589         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
8590         wj, and wk constraints.
8591         (GPR_REG_CLASS_P): New helper macro for register classes targeting
8592         general purpose registers.
8594         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
8595         direct moves.
8596         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
8597         DImode instead of wm.  Use wk constraint for direct move of DFmode
8598         instead of wm.
8599         (extendsidi2_lfiwax): Likewise.
8600         (lfiwax): Likewise.
8601         (lfiwzx): Likewise.
8602         (movdi_internal64): Likewise.
8604         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
8605         wk constraints. Make the wy constraint documentation match them
8606         implementation.
8608 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
8610         Replacement of isl_int by isl_val
8611         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
8612         (compute_bounds_for_param): use isl_val instead of isl_int
8613         (compute_bounds_for_loop): likewise
8614         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
8615         (build_linearized_memory_access): use isl_val instead of isl_int
8616         (pdr_stride_in_loop): likewise
8617         * graphite-optimize-isl.c:
8618         (getPrevectorMap): use isl_val instead of isl_int
8619         * graphite-poly.c:
8620         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
8621         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
8622         (extern the_isl_ctx): declare
8623         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
8624         (extract_affine_gmp): likewise
8625         (wrap): likewise
8626         (build_loop_iteration_domains): likewise
8627         (add_param_constraints): likewise
8629 2014-08-11  Richard Biener  <rguenther@suse.de>
8631         PR tree-optimization/62075
8632         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
8633         handle uses in patterns.
8635 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8636             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8637             Anna Tikhonova  <anna.tikhonova@intel.com>
8638             Ilya Tocar  <ilya.tocar@intel.com>
8639             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8640             Ilya Verbin  <ilya.verbin@intel.com>
8641             Kirill Yukhin  <kirill.yukhin@intel.com>
8642             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8644         * common/config/i386/i386-common.c
8645         (OPTION_MASK_ISA_AVX512VL_SET): Define.
8646         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
8647         (ix86_handle_option): Handle OPT_mavx512vl.
8648         * config/i386/cpuid.h (bit_AVX512VL): Define.
8649         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
8650         set -mavx512vl accordingly.
8651         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8652         OPTION_MASK_ISA_AVX512VL.
8653         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
8654         (ix86_option_override_internal): Define PTA_AVX512VL, handle
8655         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
8656         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
8657         * config/i386/i386.h (TARGET_AVX512VL): Define.
8658         (TARGET_AVX512VL_P(x)): Ditto.
8659         * config/i386/i386.opt: Add mavx512vl.
8661 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
8663         PR tree-optimization/62073
8664         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
8665         a basic block.
8667 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8668             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8669             Anna Tikhonova  <anna.tikhonova@intel.com>
8670             Ilya Tocar  <ilya.tocar@intel.com>
8671             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8672             Ilya Verbin  <ilya.verbin@intel.com>
8673             Kirill Yukhin  <kirill.yukhin@intel.com>
8674             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8676         * common/config/i386/i386-common.c
8677         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
8678         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
8679         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
8680         (ix86_handle_option): Handle OPT_mavx512bw.
8681         * config/i386/cpuid.h (bit_AVX512BW): Define.
8682         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
8683         set -mavx512bw accordingly.
8684         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8685         OPTION_MASK_ISA_AVX512BW.
8686         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
8687         (ix86_option_override_internal): Define PTA_AVX512BW, handle
8688         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
8689         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
8690         * config/i386/i386.h (TARGET_AVX512BW): Define.
8691         (TARGET_AVX512BW_P(x)): Ditto.
8692         * config/i386/i386.opt: Add mavx512bw.
8694 2014-08-11  Richard Biener  <rguenther@suse.de>
8696         PR tree-optimization/62070
8697         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
8698         Remove SSA checking.
8700 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
8702         * asan.c (asan_check_flags): New enum.
8703         (build_check_stmt_with_calls): Removed function.
8704         (build_check_stmt): Split inlining logic to
8705         asan_expand_check_ifn.
8706         (instrument_derefs): Rename parameter.
8707         (instrument_mem_region_access): Rename parameter.
8708         (instrument_strlen_call): Likewise.
8709         (asan_expand_check_ifn): New function.
8710         (asan_instrument): Remove old code.
8711         (pass_sanopt::execute): Change handling of
8712         asan-instrumentation-with-call-threshold.
8713         (asan_clear_shadow): Fix formatting.
8714         (asan_function_start): Likewise.
8715         (asan_emit_stack_protection): Likewise.
8716         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
8717         Update description.
8718         * internal-fn.c (expand_ASAN_CHECK): New function.
8719         * internal-fn.def (ASAN_CHECK): New internal function.
8720         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
8721         Update description.
8722         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
8723         * tree.c: Small comment fix.
8725 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
8727         * gimple.c (gimple_call_fnspec): Support internal functions.
8728         (gimple_call_return_flags): Use const.
8729         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
8730         * internal-fn.def: Add fnspec information.
8731         * internal-fn.h (internal_fn_fnspec): New function.
8732         (init_internal_fns): Declare new function.
8733         * internal-fn.c (internal_fn_fnspec_array): New global variable.
8734         (init_internal_fns): New function.
8735         * tree-core.h: Update macro call.
8736         * tree.c (build_common_builtin_nodes): Initialize internal fns.
8738 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
8740         * lto-streamer.h (struct output_block::symbol): Change from
8741         struct symtab_node to plain symtab_node.
8742         (referenced_from_this_partition_p): Change first parameter
8743         from struct symtab_node to plain symtab_node.
8745 2014-08-10  Marek Polacek  <polacek@redhat.com>
8747         PR c/51849
8748         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
8750 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
8752         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
8753         DECL correctly; do not give up on types in static storage.
8755 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
8757         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
8759 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
8761         * graphite-isl-ast-to-gimple.c:
8762         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
8764         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
8766 2014-08-08  Guozhi Wei  <carrot@google.com>
8768         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
8770 2014-08-08  Cary Coutant  <ccoutant@google.com>
8772         * dwarf2out.c (get_skeleton_type_unit): Remove.
8773         (output_skeleton_debug_sections): Remove skeleton type units.
8774         (output_comdat_type_unit): Likewise.
8775         (dwarf2out_finish): Likewise.
8777 2014-08-07  Yi Yang  <ahyangyi@google.com>
8779         * predict.c (expr_expected_value_1): Remove the redundant assignment.
8781 2014-08-08  Richard Biener  <rguenther@suse.de>
8783         * lto-streamer.h (struct lto_input_block): Make it a class
8784         with a constructor.
8785         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
8786         (struct lto_function_header, struct lto_simple_header,
8787         struct lto_simple_header_with_strings,
8788         struct lto_decl_header, struct lto_function_header): Make
8789         a simple inheritance hieararchy.  Remove unused fields.
8790         (struct lto_asm_header): Remove.
8791         * lto-streamer-out.c (produce_asm): Adjust.
8792         (lto_output_toplevel_asms): Likewise.
8793         (produce_asm_for_decls): Likewise.
8794         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8795         * data-streamer-in.c (string_for_index): Likewise.
8796         * ipa-inline-analysis.c (inline_read_section): Likewise.
8797         * ipa-prop.c (ipa_prop_read_section): Likewise.
8798         (read_replacements_section): Likewise.
8799         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
8800         * lto-section-in.c (lto_create_simple_input_block): Likewise.
8801         (lto_destroy_simple_input_block): Likewise.
8802         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
8803         (lto_input_toplevel_asms): Likewise.
8805 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8806             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8807             Anna Tikhonova  <anna.tikhonova@intel.com>
8808             Ilya Tocar  <ilya.tocar@intel.com>
8809             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8810             Ilya Verbin  <ilya.verbin@intel.com>
8811             Kirill Yukhin  <kirill.yukhin@intel.com>
8812             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8814         * common/config/i386/i386-common.c
8815         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
8816         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
8817         (ix86_handle_option): Handle OPT_mavx512dq.
8818         * config/i386/cpuid.h (bit_AVX512DQ): Define.
8819         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
8820         set -mavx512dq accordingly.
8821         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8822         OPTION_MASK_ISA_AVX512DQ.
8823         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
8824         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
8825         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
8826         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
8827         * config/i386/i386.h (TARGET_AVX512DQ): Define.
8828         (TARGET_AVX512DQ_P(x)): Ditto.
8829         * config/i386/i386.opt: Add mavx512dq.
8831 2014-08-08  Richard Biener  <rguenther@suse.de>
8833         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
8834         target_percent, target_percent_s): Export.
8835         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
8836         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
8837         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
8838         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
8839         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
8840         Move to gimple-fold.c.
8841         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
8842         strcat and strcpy.
8843         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
8844         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
8845         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
8846         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
8847         (rewrite_call_expr_array): Remove.
8848         (fold_builtin_sprintf_chk): Likewise.
8849         (fold_builtin_snprintf_chk): Likewise.
8850         (fold_builtin_varargs): Remove handling of sprintf_chk,
8851         vsprintf_chk, snprintf_chk and vsnprintf_chk.
8852         (gimple_fold_builtin_sprintf_chk): Remove.
8853         (gimple_fold_builtin_snprintf_chk): Likewise.
8854         (gimple_fold_builtin_varargs): Likewise.
8855         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
8856         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
8857         * gimple.c (gimple_seq_add_seq_without_update): New function.
8858         * gimple.h (gimple_seq_add_seq_without_update): Declare.
8859         * gimple-fold.c: Include output.h.
8860         (gsi_replace_with_seq_vops): New function, split out from ...
8861         (gimplify_and_update_call_from_tree): ... here.
8862         (replace_call_with_value): New function.
8863         (replace_call_with_call_and_fold): Likewise.
8864         (var_decl_component_p): Moved from builtins.c.
8865         (gimple_fold_builtin_memory_op): Moved from builtins.c
8866         fold_builtin_memory_op and rewritten to GIMPLE.
8867         (gimple_fold_builtin_memset): Likewise.
8868         (gimple_fold_builtin_strcpy): Likewise.
8869         (gimple_fold_builtin_strncpy): Likewise.
8870         (gimple_fold_builtin_strcat): Likewise.
8871         (gimple_fold_builtin_fputs): Likewise.
8872         (gimple_fold_builtin_memory_chk): Likewise.
8873         (gimple_fold_builtin_stxcpy_chk): Likewise.
8874         (gimple_fold_builtin_stxncpy_chk): Likewise.
8875         (gimple_fold_builtin_snprintf_chk): Likewise.
8876         (gimple_fold_builtin_sprintf_chk): Likewise.
8877         (gimple_fold_builtin_strlen): New function.
8878         (gimple_fold_builtin_with_strlen): New function split out from
8879         gimple_fold_builtin.
8880         (gimple_fold_builtin): Change signature and handle
8881         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
8882         here.  Call gimple_fold_builtin_with_strlen.
8883         (gimple_fold_call): Adjust.
8885 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
8887         * calls.c (precompute_arguments): Check
8888          promoted_for_signed_and_unsigned_p and set the promoted mode.
8889         (promoted_for_signed_and_unsigned_p): New function.
8890         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
8891         and set the promoted mode.
8892         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
8893         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
8894         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
8897 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
8899         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
8900         instead of SUBREG_PROMOTED_UNSIGNED_SET.
8901         (expand_call): Likewise.
8902         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
8903         to get promoted mode.
8904         * combine.c (record_promoted_value): Skip > 0 comparison with
8905         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
8906         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
8907         of SUBREG_PROMOTED_UNSIGNED_P.
8908         (convert_modes): Likewise.
8909         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
8910         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
8911         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
8912         SUBREG_PROMOTED_UNSIGNED_SET.
8913         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
8914         instead of SUBREG_PROMOTED_UNSIGNED_SET.
8915         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
8916         SUBREG_PROMOTED_SET.
8917         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
8918         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
8919         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
8920         of SUBREG_PROMOTED_UNSIGNED_P.
8921         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
8922         (SUBREG_PROMOTED_SET): New define.
8923         (SUBREG_PROMOTED_GET): Likewise.
8924         (SUBREG_PROMOTED_SIGN): Likewise.
8925         (SUBREG_PROMOTED_SIGNED_P): Likewise.
8926         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
8927         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
8928         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
8929         instead of SUBREG_PROMOTED_UNSIGNED_GET.
8930         (nonzero_bits1): Skip > 0 comparison with the results as
8931         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
8932         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
8933         of !SUBREG_PROMOTED_UNSIGNED_P.
8934         * simplify-rtx.c (simplify_unary_operation_1): Use new
8935         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
8936         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
8937         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
8938         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
8940 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
8942         * ipa-devirt.c: Include gimple-pretty-print.h
8943         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
8944         further tests.
8945         (decl_maybe_in_construction_p): Fix conditional on cdtor check
8946         (get_polymorphic_call_info): Fix return value
8947         (type_change_info): New sturcture based on ipa-prop
8948         variant.
8949         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
8950         based on ipa-prop variant.
8951         (extr_type_from_vtbl_ptr_store): New function
8952         based on ipa-prop variant.
8953         (record_known_type): New function.
8954         (check_stmt_for_type_change): New function.
8955         (get_dynamic_type): New function.
8956         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
8957         * tree-ssa-pre.c: ipa-utils.h
8958         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
8959         machinery; sanity check with ipa-prop devirtualization.
8960         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
8961         polymorphic flag.
8963 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
8965         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
8966         * alias.c, cfgexpand.c, cgraphbuild.c,
8967         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
8968         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
8969         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
8970         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
8971         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
8972         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8973         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
8974         dse.c, except.c, gengtype.c, gimple-expr.c,
8975         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
8976         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
8977         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
8978         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
8979         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
8980         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
8981         pointer-set.h.
8982         * pointer-set.c: Remove file.
8983         * pointer-set.h: Remove file.
8985 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8987         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
8988         * config/arm/types.md (f_sels, f_seld): Delete.
8990 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8992         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
8993         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
8994         (aarch64_movdi_<mode>high): Likewise.
8995         (aarch64_mov<mode>high_di): Likewise.
8996         (aarch64_movdi_<mode>low): Likewise.
8997         (aarch64_mov<mode>low_di): Likewise.
8998         (aarch64_movtilow_tilow): Likewise.
8999         Add comment explaining usage of fp,simd attributes and of
9000         TARGET_FLOAT and TARGET_SIMD.
9002 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
9003             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9005         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
9006         Use MOVN when one of the half-words is 0xffff.
9008 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
9010         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
9012 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9014         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
9015         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
9016         (rfs_str): String corresponding to RFS_* constants.
9017         (rank_for_schedule_stats_t): New typedef.
9018         (rank_for_schedule_stats): New static variable.
9019         (rfs_result): New static function.
9020         (rank_for_schedule): Track statistics for deciding heuristics.
9021         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
9022         static functions.
9023         (ready_sort): Use them for debug printouts.
9024         (schedule_block): Init statistics state.  Print statistics on
9025         rank_for_schedule decisions.
9027 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9029         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
9031 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
9033         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
9034         constraint.
9036 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
9038         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
9039         function to not conflict.
9040         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
9041         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
9042         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
9043         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
9044         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
9045         of pointer_map.
9047 2014-08-07  Marek Polacek  <polacek@redhat.com>
9049         * fold-const.c (fold_binary_loc): Add folding of
9050         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
9052 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
9054         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
9055         instead of type size.
9056         (ASM_FINISH_DECLARE_OBJECT): Likewise.
9058 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
9060         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
9061         (*thumb1_movqi_insn): Likewise.
9062         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
9064 2014-08-07  Tom de Vries  <tom@codesourcery.com>
9066         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9067         (glibc_2_11_or_earlier): Remove effective-target keywords.
9069 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
9071         * config/arm/arm.c (bdesc_2arg): Fix typo.
9072         (arm_atomic_assign_expand_fenv): Remove The default implementation.
9074 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9076         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
9078 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
9080         PR debug/61923
9081         * haifa-sched.c (advance_one_cycle): Fix dump.
9082         (schedule_block): Don't advance cycle if we are already at the
9083         beginning of the cycle.
9085 2014-08-06  Martin Jambor  <mjambor@suse.cz>
9087         PR ipa/61393
9088         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
9090 2014-08-06  Richard Biener  <rguenther@suse.de>
9092         PR lto/62034
9093         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
9094         SCCs here.
9095         (lto_input_tree): Pop SCCs here.
9097 2014-08-06  Richard Biener  <rguenther@suse.de>
9099         PR tree-optimization/61320
9100         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
9101         handle misaligned loads.
9103 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
9105         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
9106         (aarch64_expand_vec_perm_const): Check for dup before zip.
9108 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9110         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
9111         CONST_INT_P instead of GET_CODE and compare.
9112         (aarch64_select_cc_mode): Likewise.
9113         (aarch64_print_operand): Likewise.
9114         (aarch64_rtx_costs): Likewise.
9115         (aarch64_simd_valid_immediate): Likewise.
9116         (aarch64_simd_check_vect_par_cnst_half): Likewise.
9117         (aarch64_simd_emit_pair_result_insn): Likewise.
9119 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
9121         * gdbhooks.py (find_gcc_source_dir): New helper function.
9122         (class PassNames): New class, locating and parsing passes.def.
9123         (class BreakOnPass): New command "break-on-pass".
9125 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
9127         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
9128         getting olde.
9130 2014-08-05  Richard Biener  <rguenther@suse.de>
9132         PR rtl-optimization/61672
9133         * emit-rtl.h (mem_attrs_eq_p): Declare.
9134         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
9135         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
9136         * cfgcleanup.c (merge_memattrs): Likewise.
9137         Include emit-rtl.h.
9139 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9141         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
9142         rather than singleton vectors.
9143         (vqdmlsls_lane_s32): Likewise.
9145 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9147         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
9148         Use VSDQ_HSI mode iterator.
9149         (aarch64_sqrdmulh_laneq<mode>): Likewise.
9150         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
9151         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
9152         Use BUILTIN_VDQHS macro.
9153         (sqrdmulh_laneq): Likewise.
9154         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
9155         (vqdmlals_laneq_s32): Likewise.
9156         (vqdmlslh_laneq_s16): Likewise.
9157         (vqdmlsls_laneq_s32): Likewise.
9158         (vqdmulhh_laneq_s16): Likewise.
9159         (vqdmulhs_laneq_s32): Likewise.
9160         (vqrdmulhh_laneq_s16): Likewise.
9161         (vqrdmulhs_laneq_s32): Likewise.
9163 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9165         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
9166         (vmuld_laneq_f64): Likewise.
9167         (vmuls_laneq_f32): Likewise.
9168         (vmul_n_f64): Likewise.
9169         (vmuld_lane_f64): Reimplement in C.
9170         (vmuls_lane_f32): Likewise.
9172 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9174         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
9175         to reservation.
9176         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
9178 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9180         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
9181         (rbitsi2): Likewise.
9182         (*arm_rev): Set predicable and predicable_short_it attributes.
9184 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9186         * convert.c (convert_to_integer): Guard transformation to lrint by
9187         -fno-math-errno.
9189 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
9191         * config/aarch64/aarch64-builtins.c
9192         (aarch64_simd_builtin_type_mode): Delete.
9193         (v8qi_UP): Remap to V8QImode.
9194         (v4hi_UP): Remap to V4HImode.
9195         (v2si_UP): Remap to V2SImode.
9196         (v2sf_UP): Remap to V2SFmode.
9197         (v1df_UP): Remap to V1DFmode.
9198         (di_UP): Remap to DImode.
9199         (df_UP): Remap to DFmode.
9200         (v16qi_UP):V16QImode.
9201         (v8hi_UP): Remap to V8HImode.
9202         (v4si_UP): Remap to V4SImode.
9203         (v4sf_UP): Remap to V4SFmode.
9204         (v2di_UP): Remap to V2DImode.
9205         (v2df_UP): Remap to V2DFmode.
9206         (ti_UP): Remap to TImode.
9207         (ei_UP): Remap to EImode.
9208         (oi_UP): Remap to OImode.
9209         (ci_UP): Map to CImode.
9210         (xi_UP): Remap to XImode.
9211         (si_UP): Remap to SImode.
9212         (sf_UP): Remap to SFmode.
9213         (hi_UP): Remap to HImode.
9214         (qi_UP): Remap to QImode.
9215         (aarch64_simd_builtin_datum): Make mode a machine_mode.
9216         (VAR1): Build builtin name.
9217         (aarch64_init_simd_builtins): Remove dead code.
9219 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
9221         * graphite-isl-ast-to-gimple.c:
9222         (set_options): New function.
9223         (scop_to_isl_ast): Add calling of set_options.
9225 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
9227         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
9228         (analyze_iv_to_split_insn): Don't initialize them.
9229         (get_ivts_expr): Removed.
9230         (allocate_basic_variable, insert_base_initialization): Use
9231         SET_SRC instead of *get_ivts_expr.
9232         (split_iv): Use &SET_SRC instead of get_ivts_expr.
9234 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
9236         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
9237         (translate_isl_ast_for_loop): Add checking of the
9238         flag_loop_parallelize_all.
9239         (ast_build_before_for): New function.
9240         (scop_to_isl_ast): Add checking of the
9241         flag_loop_parallelize_all.
9242         * graphite-dependences.c: Move the defenition of the
9243         scop_get_dependences from graphite-optimize-isl.c to this file.
9244         (apply_schedule_on_deps): Add checking of the ux's emptiness.
9245         (carries_deps): Add checking of the x's value.
9246         * graphite-optimize-isl.c: Move the defenition of the
9247         scop_get_dependences to graphite-dependences.c.
9248         * graphite-poly.h: Add declarations of scop_get_dependences
9249         and carries_deps.
9251 2014-08-04  Rohit  <rohitarulraj@freescale.com>
9253         PR target/60102
9254         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
9255         names.
9256         (alt_reg_names): Likewise.
9257         (rs6000_dwarf_register_span): For SPE high registers, replace
9258         dwarf register numbers with GCC hard register numbers.
9259         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
9260         (rs6000_dbx_register_number): For SPE high registers, return dwarf
9261         register number for the corresponding GCC hard register number.
9262         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
9263         newly added GCC hard register numbers for SPE high registers.
9264         (DWARF_FRAME_REGISTERS):  Likewise.
9265         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
9266         (DWARF_FRAME_REGNUM): Likewise.
9267         (FIXED_REGISTERS): Likewise.
9268         (CALL_USED_REGISTERS): Likewise.
9269         (CALL_REALLY_USED_REGISTERS): Likewise.
9270         (REG_ALLOC_ORDER): Likewise.
9271         (enum reg_class): Likewise.
9272         (REG_CLASS_NAMES): Likewise.
9273         (REG_CLASS_CONTENTS): Likewise.
9274         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
9276 2014-08-04  Richard Biener  <rguenther@suse.de>
9278         * gimple-fold.h (gimple_fold_builtin): Remove.
9279         * gimple-fold.c (gimple_fold_builtin): Make static.
9280         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
9281         fold_stmt, not gimple_fold_builtin.
9283 2014-08-04  Martin Liska <mliska@suse.cz>
9285         * cgraph.h (csi_end_p): Removed.
9286         (csi_next): Likewise.
9287         (csi_node): Likewise.
9288         (csi_start): Likewise.
9289         (cgraph_node_in_set_p): Likewise.
9290         (cgraph_node_set_size): Likewise.
9291         (vsi_end_p): Likewise.
9292         (vsi_next): Likewise.
9293         (vsi_node): Likewise.
9294         (vsi_start): Likewise.
9295         (varpool_node_set_size): Likewise.
9296         (cgraph_node_set_nonempty_p): Likewise.
9297         (varpool_node_set_nonempty_p): Likewise.
9298         * cgraphunit.c (cgraph_process_new_functions): vec replaces
9299         cgraph_node_set.
9300         * ipa-inline-transform.c: Likewise.
9301         * ipa-utils.c (cgraph_node_set_new): Removed.
9302         (cgraph_node_set_add): Likewise.
9303         (cgraph_node_set_remove): Likewise.
9304         (cgraph_node_set_find): Likewise.
9305         (dump_cgraph_node_set): Likewise.
9306         (debug_cgraph_node_set): Likewise.
9307         (free_cgraph_node_set): Likewise.
9308         (varpool_node_set_new): Likewise.
9309         (varpool_node_set_add): Likewise.
9310         (varpool_node_set_remove): Likewise.
9311         (varpool_node_set_find): Likewise.
9312         (dump_varpool_node_set): Likewise.
9313         (free_varpool_node_set): Likewise.
9314         (debug_varpool_node_set): Likewise.
9315         * tree-emutls.c (struct tls_var_data):
9316         (emutls_index): Removed.
9317         (emutls_decl): Likewise.
9318         (gen_emutls_addr): Function implementation uses newly added
9319         hash_map<varpool_node *, tls_var_data>.
9320         (clear_access_vars): Likewise.
9321         (create_emultls_var): Likewise.
9322         (ipa_lower_emutls): Likewise.
9323         (reset_access): New function.
9325 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9327         * config/i386/i386.c (ix86_option_override_internal): Add
9328         PTA_RDRND and PTA_MOVBE for bdver4.
9330 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9331             James Greenhalgh  <james.greenhalgh@arm.com>
9333         * doc/md.texi (clrsb): Document.
9334         (clz): Change reference to x into operand 1.
9335         (ctz): Likewise.
9336         (popcount): Likewise.
9338 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9340         PR target/61713
9341         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
9342         move to subtarget in serial version if result is ignored.
9344 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9345             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9347         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
9348         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
9349         (sched_analyze_insn): Update use of try_group_insn to
9350         sched_macro_fuse_insns.
9351         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
9352         arguments that are not conditional jumps.
9354 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9356         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
9357         family information. Handle BTVER2 cpu with cpuid family value.
9359 2014-08-04  Tom de Vries  <tom@codesourcery.com>
9361         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9362         (glibc_2_11_or_earlier): Document effective-target keywords.
9364 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
9366         * ipa-devirt.c (odr_type_warn_count): Add type.
9367         (possible_polymorphic_call_targets): Set it.
9368         (ipa_devirt): Use it.
9370 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
9372         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
9373         Document.
9374         * ipa-devirt.c: Include hash-map.h
9375         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
9376         (clear_speculation): Break out of ...
9377         (get_class_context): ... here; speed up handling obviously useless
9378         speculations.
9379         (odr_type_warn_count, decl_warn_count): New structures.
9380         (final_warning_record): New structure.
9381         (final_warning_records): New static variable.
9382         (possible_polymorphic_call_targets): Cleanup handling of
9383         speculative info; do not build speculation when user do not care;
9384         record info about warnings when asked for.
9385         (add_decl_warning): New function.
9386         (type_warning_cmp): New function.
9387         (decl_warning_cmp): New function.
9388         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
9389         (gate): Enable pass when warnings are requested.
9390         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
9391         options.
9393 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
9395         * hash-map.h (default_hashmap_traits::mark_key_deleted):
9396         Fix cast.
9397         (hash_map::remove): New method.
9398         (hash_map::traverse): New method.
9399         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
9400         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
9401         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
9402         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
9403         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
9404         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
9405         pointer_map.
9407 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
9409         * hash-set.h: new File.
9410         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
9411         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
9412         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
9413         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
9414         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
9415         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
9416         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
9417         varpool.c: Use hash_set instead of pointer_set.
9419 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
9421         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
9423 2014-08-01  Jiong Wang <jiong.wang@arm.com>
9425         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
9426         for frame access when strict_p is false.
9428 2014-08-01  Renlin Li <renlin.li@arm.com>
9429 2014-08-01  Jiong Wang <jiong.wang@arm.com>
9431         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
9432         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
9433         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
9434         Declaration.
9435         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
9436         predicate.
9437         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
9438         aarch64_mem_pair_offset.
9440 2014-08-01  Jiong Wang <jiong.wang@arm.com>
9442         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
9443         offset.
9444         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
9445         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
9447 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
9449         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
9451 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
9453         PR regression/61510
9454         * cgraphunit.c (analyze_functions): Use get_create rather than get
9455         for decls which are clones of abstract functions.
9457 2014-08-01  Martin Liska  <mliska@suse.cz>
9459         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
9460         * ipa-prop.h (count_formal_params): Global function created from static.
9461         * ipa-prop.c (count_formal_params): Likewise.
9462         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
9463         profiles for semantically equivalent functions.
9464         * passes.c (do_per_function): If we load body of a function
9465         during WPA, this condition should behave same.
9466         * varpool.c (ctor_for_folding): More tolerant assert for variable
9467         aliases created during WPA.
9469 2014-08-01  Martin Liska  <mliska@suse.cz>
9471         * doc/invoke.texi (Options That Control Optimization): Documentation
9472         for -foptimize-strlen introduced. Optimization levels default options
9473         fixed.
9475 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
9477         * opts.c (common_handle_option): Handle -fsanitize=alignment.
9478         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
9479         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
9480         type to bool.
9481         * stor-layout.h (min_align_of_type): New prototype.
9482         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
9483         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
9484         check.
9485         * ubsan.c: Include builtins.h.
9486         (ubsan_expand_bounds_ifn): Change return type to bool,
9487         always return true.
9488         (ubsan_expand_null_ifn): Change return type to bool, change
9489         argument to gimple_stmt_iterator *.  Handle both null and alignment
9490         sanitization, take type from ckind argument's type rather than
9491         first argument.
9492         (instrument_member_call): Removed.
9493         (instrument_mem_ref): Remove t argument, add mem and base arguments.
9494         Handle both null and alignment sanitization, don't say whole
9495         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
9496         call instead of 2 argument.
9497         (instrument_null): Adjust instrument_mem_ref caller.  Don't
9498         instrument calls here.
9499         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
9500         like SANITIZE_NULL.
9501         * stor-layout.c (min_align_of_type): New function.
9502         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
9503         Or it into SANITIZE_UNDEFINED.
9504         * doc/invoke.texi (-fsanitize=alignment): Document.
9506 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9508         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
9510 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9512         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
9513         inchash.
9514         (vn_reference_compute_hash): Dito.
9515         (vn_nary_op_compute_hash): Dito.
9516         (vn_phi_compute_hash): Dito.
9517         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
9519 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9521         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
9522         Rename to inchash:add_expr_commutative. Convert to inchash.
9523         (iterative_hash_hashable_expr): Rename to
9524         inchash:add_hashable_expr. Convert to inchash.
9525         (avail_expr_hash): Dito.
9527 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9529         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
9530         Convert to inchash.
9532 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9534         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
9536 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9538         * Makefile.in (OBJS): Add rtlhash.o
9539         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
9540         (loc_checksum): Dito.
9541         (loc_checksum_ordered): Dito.
9542         (hash_loc_operands): Dito.
9543         (hash_locs): Dito.
9544         (hash_loc_list): Dito.
9545         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
9546         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
9547         * rtlhash.c: New file.
9548         * rtlhash.h: New file.
9550 2014-07-31  Andi Kleen  <ak@linux.intel.com>
9552         * inchash.h (inchash): Change inchash class to namespace.
9553         (class hash): ... Rename from inchash.
9554         (add_object): Move from macro to class template.
9555         * lto-streamer-out.c (hash_tree): Change inchash
9556         to inchash::hash.
9557         * tree.c (build_type_attribute_qual_variant): Dito.
9558         (type_hash_list): Dito.
9559         (attribute_hash_list): Dito.
9560         (iterative_hstate_expr): Rename to inchash::add_expr
9561         (build_range_type_1): Change inchash to inchash::hash
9562         and use hash::add_expr.
9563         (build_array_type_1): Dito.
9564         (build_function_type): Dito
9565         (build_method_type_directly): Dito.
9566         (build_offset_type): Dito.
9567         (build_complex_type): Dito.
9568         (make_vector_type): Dito.
9569         * tree.h (iterative_hash_expr): Dito.
9571 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
9573         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
9575 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
9577         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
9578         correct alphabetical position.
9579         (vpaddd_f64): Rewrite using builtins.
9580         (vpaddd_s64): Move to correct alphabetical position.
9581         (vpaddd_u64): New.
9583 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
9585         PR target/61844
9586         * config/sh/sh.c (sh_legitimate_address_p,
9587         sh_legitimize_reload_address): Handle reg+reg address modes when
9588         ALLOW_INDEXED_ADDRESS is false.
9589         * config/sh/predicates.md (general_movsrc_operand,
9590         general_movdst_operand): Likewise.
9592 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
9594         * config/aarch64/aarch64-builtins.c
9595         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
9596         BYTES_BIG_ENDIAN.
9598 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
9600         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
9601         the generated mask based on BYTES_BIG_ENDIAN.
9602         (aarch64_simd_check_vect_par_cnst_half): New.
9603         * config/aarch64/aarch64-protos.h
9604         (aarch64_simd_check_vect_par_cnst_half): New.
9605         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
9606         the check out to aarch64_simd_check_vect_par_cnst_half.
9607         (vect_par_cnst_lo_half): Likewise.
9608         * config/aarch64/aarch64-simd.md
9609         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
9610         (move_hi_quad_<mode>): Always generate a low mask.
9612 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9614         * doc/invoke.texi (AVR Options): Add documentation about
9615         __AVR_DEVICE_NAME__ built-in macro.
9617 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
9619         PR target/61948
9620         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
9621         constraints are satisfied.
9622         (<shift>di3_neon): Likewise.
9624 2014-07-31  Richard Biener  <rguenther@suse.de>
9626         PR tree-optimization/61964
9627         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
9628         by structural equality.
9630 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
9632         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
9633         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
9634         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
9635         New enums.
9636         * gcc.c (sanitize_spec_function): Support new option.
9637         (SANITIZER_SPEC): Remove now redundant check.
9638         * opts.c (common_handle_option): Support new option.
9639         (finish_options): Check for incompatibilities.
9640         * toplev.c (process_options): Split userspace-specific checks.
9642 2014-07-31  Richard Biener  <rguenther@suse.de>
9644         * lto-streamer.h (struct output_block): Remove global.
9645         (struct data_in): Remove labels, num_named_labels and
9646         num_unnamed_labels.
9647         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
9648         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
9650 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
9652         PR c++/60517
9653         * common.opt (-Wreturn-local-addr): Moved from c.opt.
9654         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
9655         (isolate_path): New argument to avoid inserting a trap.
9656         (find_implicit_erroneous_behaviour): Handle returning the address
9657         of a local variable.
9658         (find_explicit_erroneous_behaviour): Likewise.
9660 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
9662         PR lto/61868
9663         * toplev.c (init_random_seed): Move piece of code never called to
9664         set_random_seed.
9665         (set_random_seed): see above.
9667 2014-07-31  Tom de Vries  <tom@codesourcery.com>
9669         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
9671 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
9673         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
9674         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
9676 2014-07-31  Richard Biener  <rguenther@suse.de>
9678         * data-streamer.h (streamer_write_data_stream): Declare here,
9679         renamed from ...
9680         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
9681         * lto-cgraph.c (lto_output_node): Adjust.
9682         (lto_output_varpool_node): Likewise.
9683         * data-streamer-out.c (streamer_string_index): Likewise.
9684         (streamer_write_data_stream, lto_append_block): Move from ...
9685         * lto-section-out.c (lto_output_data_stream,
9686         lto_append_block): ... here.
9688 2014-07-30  Mike Stump  <mikestump@comcast.net>
9690         * configure.ac: Also check for popen.
9691         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
9692         * configure: Regenerate.
9693         * config.in:  Regenerate.
9695 2014-07-30  Martin Jambor  <mjambor@suse.cz>
9697         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
9698         parameter to gimple.
9700 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9702         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
9703         address as second parameter to __tpf_eh_return routine.
9705 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
9707         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
9708         Thumb2.
9710 2014-07-30  Tom Tromey  <tromey@redhat.com>
9712         PR c/59855
9713         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
9714         * doc/extend.texi (Type Attributes): Document designated_init
9715         attribute.
9717 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
9719         * graphite-isl-ast-to-gimple.c:
9720         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
9721         (gcc_expression_from_isl_expression): Pass type to
9722         gcc_expression_from_isl_ast_expr_id.
9724 2014-07-30  Richard Biener  <rguenther@suse.de>
9726         * lto-streamer.h (lto_write_data): New function.
9727         * langhooks.c (lhd_append_data): Do not free block.
9728         * lto-section-out.c (lto_write_data): New function writing
9729         raw data to the current section.
9730         (lto_write_stream): Adjust for langhook semantic change.
9731         (lto_destroy_simple_output_block): Write header directly.
9732         * lto-opts.c (lto_write_options): Write options directly.
9733         * lto-streamer-out.c (produce_asm): Write heaeder directly.
9734         (lto_output_toplevel_asms): Likewise.
9735         (copy_function_or_variable): Copy data directly.
9736         (write_global_references): Output index table directly.
9737         (lto_output_decl_state_refs): Likewise.
9738         (write_symbol): Write data directly.
9739         (produce_symtab): Adjust.
9740         (produce_asm_for_decls): Output header and refs directly.
9742 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
9744         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
9745         to speculative_targets
9746         (get_class_context): Fix handling of contextes without outer type;
9747         avoid matching non-polymorphic types in LTO.
9748         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
9749         parameter to speculative_targetsp; handle speculation.
9750         (dump_possible_polymorphic_call_targets): Update dumping.
9752 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
9754         * common.opt (Wodr): Enable by default.
9756 2014-07-29  Olivier Hainque  <hainque@adacore.com>
9758         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
9760 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
9762         PR bootstrap/61914
9763         * gengtype.c (strtoken): New function.
9764         (create_user_defined_type): Replace strtok with strtoken.
9766 2014-07-29  Nathan Sidwell  <nathan@acm.org>
9768         * gcov-io.c (gcov_var): Make hidden.
9769         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
9770         (gcov_do_dump): Declare.
9771         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
9773 2014-07-29  Martin Jambor  <mjambor@suse.cz>
9775         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
9776         parameter to gimple.
9777         (sra_modify_assign): Likewise.
9779 2014-07-29  Richard Biener  <rguenther@suse.de>
9781         PR middle-end/52478
9782         * expr.c (expand_expr_real_2): Revert last change.
9784 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
9786         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
9787         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
9788         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
9789         call.
9790         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
9791         (contains_type_p): Forward declare.
9792         (polymorphic_call_target_hasher::hash): Hash speculative info.
9793         (polymorphic_call_target_hasher::equal): Compare speculative info.
9794         (get_class_context): Handle speuclation.
9795         (contains_type_p): Update.
9796         (get_polymorphic_call_info_for_decl): Update.
9797         (walk_ssa_copies): Break out from ...
9798         (get_polymorphic_call_info): ... here; set speculative context
9799         before giving up.
9800         * ipa-prop.c (ipa_write_indirect_edge_info,
9801         ipa_read_indirect_edge_info): Stream speculative context.
9802         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
9803         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
9804         SPECULATIVE_MAYBE_DERIVED_TYPE).
9805         (possible_polymorphic_call_targets overriders): Update.
9806         (dump_possible_polymorphic_call_targets overriders): Update.
9807         (dump_possible_polymorphic_call_target_p overriders): Update.
9809 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
9811         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
9812         ipa-devirt path; fix thinko there.
9814 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
9816         * config/i386/i386.c (ix86_return_in_memory): Replace one
9817         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
9819 2014-07-28  Marek Polacek  <polacek@redhat.com>
9821         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
9823 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
9825         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
9826         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
9827         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
9828         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
9829         (USE_LD_AS_NEEDED): Likewise.
9830         (ASM_APP_ON): Likewise.
9831         (ASM_APP_OFF): Likewise.
9832         (TARGET_POSIX_IO): Likewise.
9833         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
9834         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
9835         (USE_LD_AS_NEEDED): Likewise.
9836         (ASM_APP_ON): Likewise.
9837         (ASM_APP_OFF): Likewise.
9838         (TARGET_POSIX_IO): Likewise.
9840 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
9842         PR middle-end/61734
9843         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
9844         operators other than the equality operators.
9846 2014-07-28  Richard Biener  <rguenther@suse.de>
9848         PR middle-end/52478
9849         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
9850         sure to register SImode ones, not only >= word_mode ones.
9851         * expr.c (expand_expr_real_2): When expanding -ftrapv
9852         binops do not use OPTAB_LIB_WIDEN.
9854 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
9856         PR middle-end/61919
9857         * tree-outof-ssa.c (insert_partition_copy_on_edge)
9858         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
9859         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
9860         inserting them in the insn stream.
9862 2014-07-28  Marek Polacek  <polacek@redhat.com>
9864         PR middle-end/61913
9865         * common.opt (Wodr): Add Var.
9867 2014-07-28  Richard Biener  <rguenther@suse.de>
9869         PR tree-optimization/61921
9870         * tree-ssa-structalias.c (create_variable_info_for_1): Check
9871         if there is a varpool node before dereferencing it.
9873 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
9875         * graphite-sese-to-poly.c:
9876         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
9877         id of the pbb), which contains pointer to the pbb1.
9879         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
9881 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
9883         * graphite-isl-ast-to-gimple.c:
9884         (graphite_create_new_guard): New function.
9885         (translate_isl_ast_node_if): New function.
9886         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
9888         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
9890 2014-07-27  Anthony Green  <green@moxielogic.com>
9892         * config.gcc: Add moxie-*-moxiebox* configuration.
9893         * config/moxie/moxiebox.h: New file.
9895 2014-07-26  Andrew Pinski  <apinski@cavium.com>
9897         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
9898         from the read only register.
9900 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
9902         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
9903         as the allocation class if it isn't likely to be spilled.
9905 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
9907         * rtl.h (tls_referenced_p): Declare.
9908         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
9909         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
9910         (mips_cannot_force_const_mem): Use tls_referenced_p.
9911         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
9912         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
9913         instead of pa_tls_referenced_p.
9914         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
9915         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
9916         (pa_legitimate_constant_p): Likewise.
9917         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
9918         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
9919         (rs6000_cannot_force_const_mem, rs6000_emit_move)
9920         (rs6000_address_for_altivec): Use tls_referenced_p instead of
9921         rs6000_tls_referenced_p.
9922         (rs6000_tls_symbol_ref_1): Delete.
9924 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
9926         PR target/44551
9927         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9928         Optimize inverse of a VEC_CONCAT.
9930 2014-07-25  Xinliang David Li  <davidxl@google.com>
9932         * params.def: New parameter.
9933         * coverage.c (get_coverage_counts): Check new flag.
9934         (coverage_compute_profile_id): Check new flag.
9935         (coverage_begin_function): Check new flag.
9936         (coverage_end_function): Check new flag.
9937         * value-prof.c (coverage_node_map_initialized_p): New function.
9938         (init_node_map): Populate map with all functions.
9939         * doc/invoke.texi: Document new parameter.
9941 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
9942             Richard Biener <rguenther@suse.de>
9944         * lto-streamer-out.c (struct sccs): Turn to ...
9945         (class DFS): ... this one; refactor the DFS walk so it can
9946         be re-done on per-SCC basis.
9947         (DFS::DFS): New constructor.
9948         (DFS::~DFS): New destructor.
9949         (hash_tree): Add new MAP argument holding in-SCC hash values;
9950         remove POINTER_TYPE hashing hack.
9951         (scc_entry_compare): Rename to ...
9952         (DFS::scc_entry_compare): ... this one.
9953         (hash_scc): Rename to ...
9954         (DFS::hash_scc): ... this one; pass output_block instead
9955         of streamer_cache; work harder to get unique and stable SCC
9956         hashes.
9957         (DFS_write_tree): Rename to ...
9958         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
9959         (lto_output_tree): Update.
9961 2014-07-25  Andi Kleen  <ak@linux.intel.com>
9963         * lto-streamer-out.c (hash_tree): Convert to inchash.
9965 2014-07-25  Andi Kleen  <ak@linux.intel.com>
9967         * tree.c (build_type_attribute_qual_variant): Use inchash.
9968         (type_hash_list): Dito.
9969         (attribute_hash_list): Dito
9970         (iterative_hstate_expr): Dito.
9971         (iterative_hash_expr): Dito.
9972         (build_range_type_1): Dito.
9973         (build_array_type_1): Dito.
9974         (build_function_type): Dito.
9975         (build_method_type_directly): Dito.
9976         (build_offset_type): Dito.
9977         (build_complex_type): Dito.
9978         (make_vector_type): Dito.
9979         * tree.h (iterative_hash_expr): Add compat wrapper.
9980         (iterative_hstate_expr): Add.
9982 2014-07-25  Andi Kleen  <ak@linux.intel.com>
9984         * Makefile.in (OBJS): Add inchash.o.
9985         (PLUGIN_HEADERS): Add inchash.h.
9986         * ipa-devirt.c: Include inchash.h.
9987         * lto-streamer-out.c: Dito.
9988         * tree-ssa-dom.c: Dito.
9989         * tree-ssa-pre.c: Dito.
9990         * tree-ssa-sccvn.c: Dito.
9991         * tree-ssa-tail-merge.c: Dito.
9992         * asan.c: Dito.
9993         * tree.c (iterative_hash_hashval_t): Move to ...
9994         (iterative_hash_host_wide_int): Move to ...
9995         * inchash.c: Here. New file.
9996         * tree.h (iterative_hash_hashval_t): Move to ...
9997         (iterative_hash_host_wide_int): Move to ...
9998         * inchash.h: Here. New file.
10000 2014-07-25  Richard Biener  <rguenther@suse.de>
10002         PR middle-end/61762
10003         PR middle-end/61894
10004         * fold-const.c (native_encode_int): Add and handle offset
10005         parameter to do partial encodings of expr.
10006         (native_encode_fixed): Likewise.
10007         (native_encode_real): Likewise.
10008         (native_encode_complex): Likewise.
10009         (native_encode_vector): Likewise.
10010         (native_encode_string): Likewise.
10011         (native_encode_expr): Likewise.
10012         * fold-const.c (native_encode_expr): Add offset parameter
10013         defaulting to -1.
10014         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
10015         (fold_ctor_reference): Handle all reads from tcc_constant
10016         ctors.
10018 2014-07-25  Richard Biener  <rguenther@suse.de>
10020         * tree-inline.c (estimate_move_cost): Mark speed_p argument
10021         as possibly unused.
10023 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10025         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
10027 2014-07-24  Kyle McMartin  <kyle@redhat.com>
10029         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
10031 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10033         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
10034         Add prototype.
10035         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
10036         function.
10037         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
10038         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
10039         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
10041 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10043         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
10044         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
10045         aggregate types.  Instead, *all* aggregate types, except for single-
10046         element or homogeneous float/vector aggregates, are quadword-aligned
10047         if required by their type alignment.  Issue -Wpsabi note when a type
10048         is now treated differently than before.
10050 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10052         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
10053         does not fit fully into floating-point registers, and there is still
10054         space in the register parameter area, use GPRs to pass those parts
10055         of the argument.  Issue -Wpsabi note if any parameter is now treated
10056         differently than before.
10057         (rs6000_arg_partial_bytes): Update.
10059 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
10061         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
10063 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
10065         * rtl.h (target_rtl): Remove lang_dependent_initialized.
10066         * toplev.c (initialize_rtl): Don't use it.  Move previously
10067         "language-dependent" calls to...
10068         (backend_init): ...here.
10069         (lang_dependent_init_target): Don't set lang_dependent_initialized.
10070         Assert that RTL initialization hasn't happend yet.
10072 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
10074         PR rtl-optimization/61629
10075         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
10076         they have already been initialized.
10078 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
10080         PR middle-end/61268
10081         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
10082         DECL_INCOMING_RTL and entry_parm.
10083         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
10084         * calls.c (load_register_parameters): Likewise argument values.
10085         (emit_library_call_value_1, store_one_arg): Likewise argument
10086         save areas.
10087         * config/i386/i386.c (assign_386_stack_local): Likewise the local
10088         stack slot.
10089         * explow.c (validize_mem): Modify the argument in-place.
10091 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10093         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
10094         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
10096 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10098         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
10099         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
10101 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10103         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
10104         (aarch64_save_callee_saves): New parameter "skip_wb".
10105         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
10107 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10109         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
10110         "wb_candidate2".
10111         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
10113 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
10115         * graphite-isl-ast-to-gimple.c:
10116         (graphite_create_new_loop): Add calling of isl_id_free to properly
10117         decrement reference counts.
10119         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
10121 2014-07-24  Martin Liska  <mliska@suse.cz>
10122         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
10123         function used.
10124         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
10125         (rs6000_code_end): Likewise.
10127 2014-07-24  Martin Liska  <mliska@suse.cz>
10129         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
10130         symtab_node funtion used.
10131         (rs6000_xcoff_declare_object_name): Likewise.
10133 2014-07-24  Martin Liska  <mliska@suse.cz>
10135         * cgraphunit.c (compile): Correct function used.
10137 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
10139         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
10140         as non-indexable.
10142 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
10144         PR lto/61802
10145         * varasm.c (bss_initializer_p): Handle offlined ctors.
10146         (align_variable, get_variable_align): Likewise.
10147         (make_decl_one_only): Likewise.
10148         (default_binds_local_p_1): Likewise.
10149         (decl_binds_to_current_def_p): Likewise.
10150         (get_variable_section): Get constructor if it is offlined.
10151         (assemble_variable_contents): Sanity check that the caller
10152         streamed in the ctor in LTO.
10154 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
10156         * graphite-isl-ast-to-gimple.c:
10157         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
10158         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
10159         isl_ast_op_pdiv_r to the different case.
10161         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
10163 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10165         PR middle-end/61876
10166         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
10167         when flag_errno_math is on.
10169 2014-07-24  Martin Liska  <mliska@suse.cz>
10171         * cgraph.h (varpool_node):
10172         (availability get_availability (void)):
10173         created from cgraph_variable_initializer_availability
10174         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
10175         created from: cgraph_variable_initializer_availability
10176         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
10177         (void finalize_named_section_flags (void)):
10178         created from varpool_finalize_named_section_flags
10179         (bool assemble_decl (void)): created from varpool_assemble_decl
10180         (void analyze (void)): created from varpool_analyze_node
10181         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
10182         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
10183         (void remove_initializer (void)): created from varpool_remove_initializer
10184         (tree get_constructor (void)): created from varpool_get_constructor
10185         (bool externally_visible_p (void)): created from varpool_externally_visible_p
10186         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
10187         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
10188         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
10189         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
10190         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
10191         (static bool output_variables (void)): created from varpool_output_variables
10192         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
10193         created from varpool_extra_name_alias
10194         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
10195         (static void dump_varpool (FILE *f)): created from dump_varpool
10196         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
10197         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
10198         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
10199         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
10200         (void assemble_aliases (void)): created from assemble_aliases
10202 2014-07-24  Martin Liska  <mliska@suse.cz>
10204         * cgraph.h (symtab_node):
10205         (void register_symbol (void)): created from symtab_register_node
10206         (void remove (void)): created from symtab_remove_node
10207         (void dump (FILE *f)): created from dump_symtab_node
10208         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
10209         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
10210         (struct ipa_ref *add_reference (symtab_node *referred_node,
10211         enum ipa_ref_use use_type)): created from add_reference 
10212         (struct ipa_ref *add_reference (symtab_node *referred_node,
10213         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
10214         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
10215         gimple stmt)): created from maybe_add_reference
10216         (bool semantically_equivalent_p (symtab_node *target)): created from
10217         symtab_semantically_equivalent_p
10218         (void remove_from_same_comdat_group (void)): created from
10219         remove_from_same_comdat_group
10220         (void add_to_same_comdat_group (symtab_node *old_node)): created from
10221         symtab_add_to_same_comdat_group
10222         (void dissolve_same_comdat_group_list (void)): created from
10223         symtab_dissolve_same_comdat_group_list
10224         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
10225         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
10226         created from symtab_alias_ultimate_target
10227         (inline symtab_node *next_defined_symbol (void)): created from
10228         symtab_next_defined_symbol
10229         (bool resolve_alias (symtab_node *target)): created from
10230         symtab_resolve_alias
10231         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
10232         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
10233         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
10234         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
10235         (void set_section (const char *section)): created from set_section_1 
10236         (enum availability get_availability (void)): created from symtab_node_availability
10237         (void make_decl_local (void)): created from symtab_make_decl_local
10238         (bool real_symbol_p (void)): created from symtab_read_node
10239         (can_be_discarded_p (void)): created from symtab_can_be_discarded
10240         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
10241         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
10242         symtab_in_same_comdat_p;
10243         (bool address_taken_from_non_vtable_p (void)): created from
10244         address_taken_from_non_vtable_p
10245         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
10246         (static void dump_table (FILE *)): created from dump_symtab
10247         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
10248         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
10249         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
10250         symtab_used_from_object_file_p 
10251         (void dump_base (FILE *)): created from dump_symtab_base
10252         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
10253         (void unregister (void)): created from symtab_unregister_node
10254         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
10255         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
10256         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
10257         symtab_nonoverwritable_alias_1
10258         * cgraph.h (cgraph_node):
10259         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
10260         created from cgraph_remove_node_and_inline_clones
10261         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
10262         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
10263         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
10264         (cgraph_node *function_symbol (enum availability *avail = NULL)):
10265         created from cgraph_function_node
10266         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
10267         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
10268         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
10269         created from cgraph_create_clone 
10270         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
10271         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
10272         created from cgraph_create_virtual_clone
10273         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
10274         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
10275         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
10276         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
10277         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
10278         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
10279         created from cgraph_function_version_info
10280         (struct cgraph_function_version_info *insert_new_function_version (void)):
10281         created from insert_new_cgraph_node_version
10282         (struct cgraph_function_version_info *function_version (void)): created from
10283         get_cgraph_node_version
10284         (void analyze (void)): created from analyze_function
10285         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
10286         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
10287         tree real_alias) cgraph_add_thunk
10288         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
10289         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
10290         created from cgraph_function_or_thunk_node
10291         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
10292         created from expand_thunk
10293         (void reset (void)): created from cgraph_reset_node
10294         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
10295         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
10296         (void remove (void)): created from cgraph_remove_node
10297         (void dump (FILE *f)): created from dump_cgraph_node
10298         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
10299         (bool get_body (void)): created from cgraph_get_body
10300         (void release_body (void)): created from cgraph_release_function_body
10301         (void unnest (void)): created from cgraph_unnest_node
10302         (void make_local (void)): created from cgraph_make_node_local
10303         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
10304         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
10305         gcov_type count, int freq)): created from cgraph_create_edge
10306         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
10307         gcov_type count, int freq)): created from cgraph_create_indirect_edge
10308         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
10309         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
10310         created from cgraph_create_edge_including_clones
10311         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
10312         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
10313         (void remove_callers (void)): created from cgraph_node_remove_callers
10314         (void remove_callees (void)): created from cgraph_node_remove_callees
10315         (enum availability get_availability (void)): created from cgraph_function_body_availability
10316         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
10317         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
10318         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
10319         (void call_duplication_hooks (cgraph_node *node2)): created from
10320         cgraph_call_node_duplication_hooks
10321         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
10322         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
10323         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
10324         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
10325         (void call_function_insertion_hooks (void)):
10326         created from cgraph_call_function_insertion_hooks
10327         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
10328         (bool local_p (void)): created from cgraph_local_node
10329         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
10330         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
10331         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
10332         (inline bool only_called_directly_or_aliased_p (void)):
10333         created from cgraph_only_called_directly_or_aliased_p
10334         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
10335         created from cgraph_will_be_removed_from_program_if_no_direct_calls
10336         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
10337         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
10338         (bool can_remove_if_no_direct_calls_p (void)):
10339         created from cgraph_can_remove_if_no_direct_calls_p
10340         (inline bool has_gimple_body_p (void)):
10341         created from cgraph_function_with_gimple_body_p
10342         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
10343         (static void dump_cgraph (FILE *f)): created from dump_cgraph
10344         (static inline void debug_cgraph (void)): created from debug_cgraph
10345         (static void record_function_versions (tree decl1, tree decl2)):
10346         created from record_function_versions
10347         (static void delete_function_version (tree decl)):
10348         created from delete_function_version
10349         (static void add_new_function (tree fndecl, bool lowered)):
10350         created from cgraph_add_new_function
10351         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
10352         (static cgraph_node * create (tree decl)): created from cgraph_create_node
10353         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
10354         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
10355         (static cgraph_node *get_for_asmname (tree asmname)):
10356         created from cgraph_node_for_asm
10357         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
10358         created from cgraph_same_body_alias 
10359         (static bool used_from_object_file_p_worker (cgraph_node *node,
10360         void *): new function
10361         (static bool non_local_p (cgraph_node *node, void *)):
10362         created from cgraph_non_local_node_p_1
10363         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
10364         created from verify_cgraph
10365         (static bool make_local (cgraph_node *node, void *)):
10366         created from cgraph_make_node_local
10367         (static cgraph_node *create_alias (tree alias, tree target)):
10368         created from cgraph_create_function_alias
10369         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
10370         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
10371         created from cgraph_create_edge_1
10372         * cgraph.h (varpool_node):
10373         (void remove (void)): created from varpool_remove_node
10374         (void dump (FILE *f)): created from dump_varpool_node
10376 2014-07-24  Richard Biener  <rguenther@suse.de>
10378         PR ipa/61823
10379         * tree-ssa-structalias.c (create_variable_info_for_1):
10380         Use varpool_get_constructor.
10381         (create_variable_info_for): Likewise.
10383 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10385         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
10386         subtract outgoing area size when restoring stack_pointer_rtx.
10388 2014-07-24  Nick Clifton  <nickc@redhat.com>
10390         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
10391         that operations are taking place in parallel.
10392         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
10394 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
10396         * omp-low.c (extract_omp_for_data): Add missing break statement.
10398 2014-07-24  Richard Biener  <rguenther@suse.de>
10400         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
10401         * tree-inline.c (estimate_move_cost): Add speed_p parameter
10402         and adjust MOVE_RATIO query accordingly.
10403         (estimate_num_insns): Adjust callers.
10404         * ipa-prop.c (ipa_populate_param_decls): Likewise.
10405         * ipa-cp.c (gather_context_independent_values,
10406         estimate_local_effects): Likewise.
10407         * ipa-split.c (consider_split): Likewise.
10409 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
10411         * config/i386/driver-i386.c: Remove names of unused arguments and
10412         unnecessary unused attributes.
10413         * config/i386/host-mingw32.c: Likewise.
10414         * config/i386/i386.c: Likewise.
10415         * config/i386/winnt-stubs.c: Likewise.
10416         * config/i386/winnt.c: Likewise.
10418 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10420         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
10421         (aarch64_gen_loadwb_pair): New helper function.
10422         (aarch64_expand_epilogue): Simplify code using new helper functions.
10423         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
10425 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10427         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
10428         (aarch64_gen_storewb_pair): New helper function.
10429         (aarch64_expand_prologue): Simplify code using new helper functions.
10430         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
10432 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10434         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
10435         Rename to aarch64_save_callee_saves, remove restore code.
10436         (aarch64_restore_callee_saves): New function.
10438 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10440         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
10441         (aarch64_save_callee_saves): New function to handle reg save
10442         for both core and vectore regs.
10444 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10446         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
10447         (aarch64_gen_store_pair): New helper function.
10448         (aarch64_save_or_restore_callee_save_registers)
10449         (aarch64_save_or_restore_fprs): Use new helper functions.
10451 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10453         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
10454         (aarch64_save_or_restore_callee_save_registers)
10455         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
10457 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10459         * config/aarch64/aarch64.c
10460         (aarch64_save_or_restore_callee_save_registers)
10461         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
10463 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10465         * config/aarch64/aarch64.c
10466         (aarch64_save_or_restore_callee_save_registers)
10467         (aarch64_save_or_restore_fprs): Remove 'increment'.
10469 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10471         * config/aarch64/aarch64.c
10472         (aarch64_save_or_restore_callee_save_registers)
10473         (aarch64_save_or_restore_fprs): Use register offset in
10474         cfun->machine->frame.reg_offset.
10476 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10478         * config/aarch64/aarch64.c
10479         (aarch64_save_or_restore_callee_save_registers)
10480         (aarch64_save_or_restore_fprs): Remove base_rtx.
10482 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10484         * config/aarch64/aarch64.c
10485         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
10486         to 'start_offset'.  Remove local variable 'start_offset'.
10488 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10490         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
10491         type to HOST_WIDE_INT.
10493 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10495         * config/aarch64/aarch64.c (aarch64_expand_prologue)
10496         (aarch64_save_or_restore_fprs)
10497         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
10499 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10501         * config/arm/t-rtems-eabi: Add
10502         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
10503         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
10504         mbig-endian/mthumb/march=armv7-r, and
10505         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
10506         multilibs.
10508 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10509             Chris Johns <chrisj@rtems.org>
10510             Joel Sherrill <joel.sherrill@oarcorp.com>
10512         * config.gcc: Add nios2-*-rtems*.
10513         * config/nios2/rtems.h: New file.
10514         * gcc/config/nios2/t-rtems: New file.
10516 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
10518         PR target/61396
10519         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
10520         constant numbers, not general constants.
10521         (rs6000_expand_vector_init): Ditto.
10523 2014-07-23  Nathan Sidwell  <nathan@acm.org>
10525         * gcov-tool.c (gcov_list): Declare here.
10526         (set_gcov_list): Remove.
10527         (gcov_output_files): Set gcov_list directly.
10529 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
10531         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
10533 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10535         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
10536         callee-saved registers are available for padding purpose
10537         and r3 is not mandatory, then prefer use those callee-saved
10538         instead of r3.
10540 2014-07-23  Richard Biener  <rguenther@suse.de>
10542         * params.def (PARAM_MAX_COMBINE_INSNS): New.
10543         * combine.c: Include statistics.h and params.h.
10544         (combine_instructions): Guard three and four insn combines
10545         with max-combine-insns value.  Record statistics for combines
10546         performed.
10547         * doc/invoke.texi (max-combine-insns): Document new param.
10549 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
10551         * graphite-isl-ast-to-gimple.c:
10552         (translate_isl_ast_node_block): New function.
10553         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
10555         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
10556         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
10558 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
10560         * graphite-isl-ast-to-gimple.c:
10561         (get_max_schedule_dimensions): New function.
10562         (extend_schedule): Likewise.
10563         (generate_isl_schedule): Add calling of extend_schedule and
10564         get_max_schedule_dimensions.
10566 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10568         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
10569         (case UNSPEC): Handle UNSPEC_RBIT.
10571 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10573         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
10574         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
10576 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10578         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
10580 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
10582         * graphite-isl-ast-to-gimple.c:
10583         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
10584         (ivs_params_clear):
10585         (build_iv_mapping): New function.
10586         (translate_isl_ast_node_user): Likewise.
10587         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
10589         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
10590         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
10591         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
10593 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
10595         PR target/55701
10596         * config/arm/arm.md (setmem): New pattern.
10597         * config/arm/arm-protos.h (struct tune_params): New fields.
10598         (arm_gen_setmem): New prototype.
10599         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
10600         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10601         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10602         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
10603         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
10604         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
10605         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
10606         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10607         (arm_const_inline_cost): New function.
10608         (arm_block_set_max_insns): New function.
10609         (arm_block_set_non_vect_profit_p): New function.
10610         (arm_block_set_vect_profit_p): New function.
10611         (arm_block_set_unaligned_vect): New function.
10612         (arm_block_set_aligned_vect): New function.
10613         (arm_block_set_unaligned_non_vect): New function.
10614         (arm_block_set_aligned_non_vect): New function.
10615         (arm_block_set_vect, arm_gen_setmem): New functions.
10617 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
10619         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
10621 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
10623         PR target/61855
10624         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
10625         out of #ifdef __OPTIMIZE__.
10627 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
10629         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
10630         different trapping status if -fnon-call-exceptions is enabled.
10632 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
10634         * expr.c (store_field): Handle VOIDmode for calls that return values
10635         in multiple locations.
10637 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10639         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
10640         (altivec_vsldoi_<mode>): Likewise.
10642 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
10644         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
10645         to the number of characters in the line.
10647 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
10649         * graphite-isl-ast-to-gimple.c: Add using of
10650         build_nonstandard_integer_type instead of int128_integer_type_node.
10652 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
10654         * toplev.c (output_stack_usage): Adjust the location of the warning.
10656 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
10658         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
10659         (*membar_storeload): Disable for LEON3.
10661 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10663         PR rtl-optimization/61461
10664         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
10666 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
10668         PR target/61794
10669         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
10670         Fix instruction constraint.
10671         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
10673 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
10675         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
10677 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
10679         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
10680         GNU coding standards.
10681         (nds32_register_move_cost): Likewise.
10682         (nds32_memory_move_cost): Likewise.
10683         (nds32_address_cost): Likewise.
10685 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10687         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
10689 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
10691         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
10692         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
10693         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
10694         (HAVE_sync_compare_and_swapqi): Define.
10695         (HAVE_sync_compare_and_swaphi): Likewise.
10696         (HAVE_sync_compare_and_swapsi): Likewise.
10698 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
10700         * config/mips/p5600.md: Add missing cpu tests.
10702 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10704         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
10705         (vmla_f64): Likewise.
10706         (vfms_f64): Likewise.
10707         (vmls_f64): Likewise.
10709 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10711         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
10712         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
10714 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10716         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
10717         (vmlal_high_lane_s32): Likewise.
10718         (vmlal_high_lane_u16): Likewise.
10719         (vmlal_high_lane_u32): Likewise.
10720         (vmlsl_high_lane_s16): Likewise.
10721         (vmlsl_high_lane_s32): Likewise.
10722         (vmlsl_high_lane_u16): Likewise.
10723         (vmlsl_high_lane_u32): Likewise.
10725 2014-07-17  Terry Guo  <terry.guo@arm.com>
10727         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
10728         (alus_reg): Renamed to alus_sreg.
10729         * config/arm/arm-fixed.md: Change type of non-dsp instructions
10730         from alu_reg to alu_sreg.  Change type of dsp instructions from
10731         alu_reg to alu_dsp_reg.
10732         * config/arm/thumb1.md: Likewise.
10733         * config/arm/thumb2.md: Likewise.
10734         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
10735         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
10736         with alu_sreg and alus_sreg.
10737         * config/arm/arm1026ejs.md (alu_op): Likewise.
10738         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
10739         * config/arm/arm926ejs.md (9_alu_op): Likewise.
10740         * config/arm/fa526.md (526_alu_op): Likewise.
10741         * config/arm/fa606te.md (606te_alu_op): Likewise.
10742         * config/arm/fa626te.md (626te_alu_op): Likewise.
10743         * config/arm/fa726te.md (726te_alu_op): Likewise.
10744         * config/arm/fmp626.md (mp626_alu_op): Likewise.
10745         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
10746         alu_sreg, alu_dsp_reg and alus_sreg.
10747         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
10748         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10749         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10750         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
10751         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
10752         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10753         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10754         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
10755         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
10756         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
10757         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
10758         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
10759         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
10760         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
10761         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
10762         alus_reg to alus_sreg.
10764 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
10766         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
10767         infinity format.
10769 2014-07-17  Richard Biener  <rguenther@suse.de>
10771         PR rtl-optimization/61801
10772         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
10773         don't set reg_pending_barrier if it appears in a debug-insn.
10775 2014-07-16  DJ Delorie  <dj@redhat.com>
10777         * config/rx/rx.c (rx_option_override): Fix alignment values.
10778         (rx_align_for_label): Likewise.
10780 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
10782         PR target/61737.
10783         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
10784         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10785         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
10786         functions.
10787         (cris_print_index, cris_print_operand, cris_constant_index_p)
10788         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
10789         (cris_address_cost): Ditto last CONSTANT_P.
10790         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
10791         callers changed.  Yield cris_offsettable_symbol for non-PIC
10792         constant symbolic expressions including labels.  Yield cris_unspec
10793         for all unspecs.
10794         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
10795         target to pic_offset_table_rtx for calls that will likely go
10796         through PLT, const0_rtx when they can't.  All callers changed.
10797         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
10798         symbolic expressions to be PICified.  Remove second, redundant,
10799         assert on can_create_pseudo_p returning non-zero.  Use
10800         replace_equiv_address_nv, not replace_equiv_address, for final
10801         operand update.
10802         * config/cris/cris.md ("movsi"): Move variable t to pattern
10803         toplevel. Adjust assert for new cris_symbol_type member.  Use
10804         CONSTANT_P instead of CONSTANT_ADDRESS_P.
10805         ("*movsi_internal") <case 9>: Make check for valid unspec operands
10806         for lapc stricter.
10807         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
10808         ("call", "call_value"): Use second incoming operand as a marker
10809         for pic-offset-table-register being used.
10810         ("*expanded_call_non_v32", "*expanded_call_v32")
10811         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
10812         second incoming operand to CALL, match cris_call_type_marker.
10813         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
10814         ("*expanded_call_side"): Ditto.  Fix typo in comment.
10815         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
10816         CONSTANT_P.
10817         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
10818         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
10819         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
10820         users changed.  Add members cris_offsettable_symbol and cris_unspec.
10821         (cris_symbol_type): Rename from cris_pic_symbol_type.
10822         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
10823         just CONSTANT_P.
10824         * config/cris/cris-protos.h (cris_symbol_type_of,
10825         cris_expand_pic_call_address): Adjust prototypes.
10826         (cris_legitimate_constant_p): New prototype.
10828         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
10829         an existing tmake_file.  Don't add t-slibgcc and t-linux.
10831 2014-07-17  Jason Merrill  <jason@redhat.com>
10833         PR c++/61623
10834         * symtab.c (symtab_remove_from_same_comdat_group): Also
10835         set_comdat_group to NULL_TREE.
10836         (verify_symtab): Fix diagnostic.
10838 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
10840         PR target/61662
10841         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
10843 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
10845         Support location tracking for built-in macro tokens
10846         * input.h (is_location_from_builtin_token): New function declaration.
10847         * input.c (is_location_from_builtin_token): New function definition.
10848         * toplev.c (general_init): Tell libcpp what the pre-defined
10849         spelling location for built-in tokens is.
10851 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
10853         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
10854         on the FUNCTION_DECL.
10856 2014-07-16  Richard Biener  <rguenther@suse.de>
10858         PR other/61782
10859         * doc/extend.texi (always_inline): Clarify.
10861 2014-07-15  Eric Christopher  <echristo@gmail.com>
10863         * doc/invoke.texi (Link Options): Document -z option.
10865 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
10867         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
10868         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
10870 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
10872         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
10874 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
10876         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
10877         varpool_assemble_decl.
10878         * varpool.c (varpool_assemble_decl): Assert that node->definition is
10879         true.
10881 2014-07-15  Michael Matz  <matz@suse.de>
10883         PR rtl-optimization/61772
10884         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
10886 2014-07-15  Richard Biener  <rguenther@suse.de>
10888         * opts.c (default_options_table): Disable bit-ccp at -Og.
10890 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
10892         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
10894 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
10896         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
10897         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
10898         call langhook for unknown declaration.
10899         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
10900         * tree.h (DECL_ARGUMENTS): Update.
10901         * print-tree.c (print_node): Update.
10902         * tree-core.h (tree_decl_non_common): Remove arguments.
10903         (tree_function_decl): Add arguments.
10905 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
10907         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
10909 2014-07-14  Richard Biener  <rguenther@suse.de>
10911         PR tree-optimization/61779
10912         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
10913         simplifying a condition.
10915 2014-07-14  Richard Biener  <rguenther@suse.de>
10917         * builtins.c (c_strlen): Make only_value == 2 really only
10918         affect warning generation.
10920 2014-07-14  Richard Biener  <rguenther@suse.de>
10922         PR tree-optimization/61757
10923         PR tree-optimization/61783
10924         PR tree-optimization/61787
10925         * tree-ssa-dom.c (record_equality): Revert canonicalization
10926         change and add comment.
10927         (propagate_rhs_into_lhs): Revert previous fix, removing
10928         loop depth restriction again.
10930 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10932         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
10933         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10934         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10935         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
10936         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10937         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10938         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
10940 2014-07-14  Richard Biener  <rguenther@suse.de>
10942         * cgraph.h (decl_in_symtab_p): Make inline.
10944 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
10946         PR middle-end/61294
10947         * doc/invoke.texi (-Wmemset-transposed-args): Document.
10949         PR target/61656
10950         * config/i386/i386.c (classify_argument): Don't merge classes above
10951         number of words.
10953 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
10955         * cgraph.h (symtab_node): Add nonzero_address.
10956         (decl_in_symtab_p): Break out from ...
10957         (symtab_get_node): ... here.
10958         * fold-const.c: Include cgraph.h
10959         (tree_single_nonzero_warnv_p): Use symtab to determine
10960         if symbol is non-zero.
10961         * symtab.c (symtab_node::nonzero_address): New method.
10963 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
10965         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
10966         forgotten in previous commit.
10968 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
10970         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
10971         on builtin types.
10972         * ipa-devirt.c: Include stor-layout.h and intl.h
10973         (odr_subtypes_equivalent_p): New function.
10974         (warn_odr): New function.
10975         (warn_type_mismatch): New function.
10976         (odr_types_equivalent_p): New function.
10977         (add_type_duplicate): Use it.
10978         * common.opt (Wodr): New flag.
10979         * doc/invoke.texi (Wodr): Document new warning.
10981 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
10983         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
10984         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
10985         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
10986         (varpool_get_constructor): Push CTORS_IN timevar.
10987         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
10989 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
10991         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
10992         Remove VOID_FTYPE_PUSHORT.
10993         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
10994         Change code to USHORT_FTYPE_VOID.
10995         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
10996         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
10997         (ix86_atomic_assign_expand_fenv): Update for
10998         __builtin_ia32_fnstsw changes.
10999         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
11000         (fnstsw): Change operand 0 to nonimmediate operand.
11002 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
11004         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
11005         (varpool_get_constructor): New function.
11006         (varpool_ctor_useable_for_folding_p): Break out from ...
11007         (ctor_for_folding): ... here; use varpool_get_constructor.
11008         (varpool_assemble_decl): Likewise.
11009         * lto-streamer.h (struct output_block): Turn cgraph_node
11010         to symbol filed.
11011         (lto_input_variable_constructor): Declare.
11012         * ipa-visibility.c (function_and_variable_visibility): Use
11013         varpool_get_constructor.
11014         * cgraph.h (varpool_get_constructor): Declare.
11015         (varpool_ctor_useable_for_folding_p): New function.
11016         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
11017         parameter; return error_mark_node for non-trivial constructors.
11018         (lto_write_tree_1, DFS_write_tree): Update use of
11019         get_symbol_initial_value.
11020         (output_function): Update initialization of symbol.
11021         (output_constructor): New function.
11022         (copy_function): Rename to ..
11023         (copy_function_or_variable): ... this one; handle vars too.
11024         (lto_output): Output variable sections.
11025         * lto-streamer-in.c (input_constructor): New function.
11026         (lto_read_body): Rename from ...
11027         (lto_read_body_or_constructor): ... this one; handle vars too.
11028         (lto_input_variable_constructor): New function.
11029         * ipa-prop.c (ipa_prop_write_jump_functions,
11030         ipa_prop_write_all_agg_replacement): Update.
11031         * lto-cgraph.c (compute_ltrans_boundary): Use it.
11032         (output_cgraph_opt_summary): Set symbol to NULL.
11034 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
11036         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
11037         non-polymorphic types.
11038         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
11039         * ipa-devirt.c (types_same_for_odr): Do not explode when one
11040         of types is not polymorphic.
11042 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
11044         * lra-constraints.c (remove_inheritance_pseudos): Process
11045         destination pseudo too.
11047 2014-07-11  Rong Xu  <xur@google.com>
11049         * gcov-tool.c (gcov_output_files): Fix build error introduced in
11050         commit r212448.
11052 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
11054         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
11055         * config/avr/avr-devices.c (AVR_MCU): Same.
11056         (avr_mcu_types): add text start value to end of device list.
11057         * config/avr/avr-mcus.def: Add text section start for all devices.
11058         (ata5782): Add new avr5 device.
11059         (ata5831): Same.
11060         * config/avr/avr-tables.opt: Regenerate.
11061         * config/avr/avr.h: Add declaration for text section start handler.
11062         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
11063         SPEC functions.
11064         (LINK_SPEC): Include text section start handler to linker spec.
11065         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
11066         pass -Ttext option to linker if the text section start for the device
11067         is not zero.
11068         * config/avr/t-multilib: Regenerate.
11069         * doc/avr-mmcu.texi: Regenerate.
11071 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
11073         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
11074         * config/rs6000/aix52.h (LINK_SPEC): Same.
11075         * config/rs6000/aix53.h (LINK_SPEC): Same.
11076         * config/rs6000/aix61.h (LINK_SPEC): Same.
11077         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
11079 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
11081         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
11082         (graphite_verify): New function.
11083         (ivs_params_clear): New function.
11084         (gcc_expression_from_isl_ast_expr_id): New function.
11085         (gcc_expression_from_isl_expr_int): New function.
11086         (binary_op_to_tree): New function.
11087         (ternary_op_to_tree): New function.
11088         (unary_op_to_tree): New function.
11089         (nary_op_to_tree): New function.
11090         (gcc_expression_from_isl_expr_op): New function.
11091         (gcc_expression_from_isl_expression): New function.
11092         (graphite_create_new_loop): New function.
11093         (translate_isl_ast_for_loop): New function.
11094         (get_upper_bound): New function.
11095         (graphite_create_new_loop_guard): New function.
11096         (translate_isl_ast_node_for): New function.
11097         (translate_isl_ast): New function.
11098         (add_parameters_to_ivs_params): New function.
11099         (scop_to_isl_ast): New parameter ip.
11100         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
11102 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
11104         * config/xtensa/predicates.md (call expander): Update for
11105         DECL_SECTION_NAME being string.
11107 2014-07-11  Richard Biener  <rguenther@suse.de>
11109         PR middle-end/61473
11110         * builtins.c (fold_builtin_memory_op): Inline memory moves that
11111         can be implemented with a single load followed by a single store.
11112         (c_strlen): Only warn when only_value is not 2.
11114 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
11116         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
11118 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
11120         PR target/61561
11121         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
11122         (*movhi_bytes): Likewise.
11123         (*arm_movqi_insn): Likewise.
11125 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
11127         PR target/56858
11128         * config/alpha/alpha.c: Include tree-pass.h, context.h
11129         and pass_manager.h.
11130         (pass_data_handle_trap_shadows): New pass.
11131         (pass_handle_trap_shadows::gate): New pass gate function.
11132         (make_pass_handle_trap_shadows): New function.
11133         (rest_of_handle_trap_shadows): Ditto.
11135         (alpha_align_insns_1): Rename from alpha_align_insns.
11136         (pass_data_align_insns): New pass.
11137         (pass_align_insns::gate): New pass gate function.
11138         (make_pass_aling_insns): New function.
11139         (rest_of_align_insns): Ditto.
11140         (alpha_align_insns): Ditto.
11142         (alpha_option_override): Declare handle_trap_shadows info
11143         and align_insns_info.  Register handle_trap_shadows and align_insns
11144         passes here.
11145         (alpha_reorg): Do not call alpha_trap_shadows and
11146         alpha_align_insn from here.
11148         (alpha_pad_function_end): Do not skip BARRIERs.
11150 2014-07-10  Rong Xu  <xur@google.com>
11152         Add gcov-tool: an offline gcda profile processing tool support.
11153         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
11154         (gcov_is_error): Ditto.
11155         (gcov_read_string): Ditto.
11156         (gcov_read_sync): Ditto.
11157         * gcov-io.h: Move counter defines to gcov-counter.def.
11158         * gcov-dump.c (tag_counters): Use gcov-counter.def.
11159         * coverage.c: Ditto.
11160         * gcov-tool.c: Offline gcda profile processing tool.
11161         (unlink_gcda_file): Remove one gcda file.
11162         (unlink_profile_dir): Remove gcda files from the profile path.
11163         (gcov_output_files): Output gcda files to an output dir.
11164         (profile_merge): Merge two profiles in directory.
11165         (print_merge_usage_message): Print merge usage.
11166         (merge_usage): Print merge usage and exit.
11167         (do_merge): Driver for profile merge sub-command.
11168         (profile_rewrite): Rewrite profile.
11169         (print_rewrite_usage_message): Print rewrite usage.
11170         (rewrite_usage): Print rewrite usage and exit.
11171         (do_rewrite): Driver for profile rewrite sub-command.
11172         (print_usage): Print gcov-info usage and exit.
11173         (print_version): Print gcov-info version.
11174         (process_args): Process arguments.
11175         (main): Main routine for gcov-tool.
11176         * Makefile.in: Build and install gcov-tool.
11177         * gcov-counter.def: New file split from gcov-io.h.
11178         * doc/gcc.texi: Include gcov-tool.texi.
11179         * doc/gcov-tool.texi: Document for gcov-tool.
11181 2014-07-10  Richard Biener  <rguenther@suse.de>
11183         PR tree-optimization/61757
11184         * tree-ssa-dom.c (loop_depth_of_name): Restore.
11185         (propagate_rhs_into_lhs): Revert part of last change.
11187 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
11189         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
11190         FUNCTION_DECLs.
11192 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
11194         PR middle-end/53590
11195         * function.c (allocate_struct_function): Revert r188667 change.
11197         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
11199 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
11201         * doc/install.texi: Remove links to defunct package providers for
11202         Solaris.
11204 2014-07-09  Tom de Vries  <tom@codesourcery.com>
11206         * final.c (get_call_fndecl): Declare.
11207         (self_recursive_call_p): New function.
11208         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
11210 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11212         * ipa-devirt.c (record_node): Walk through aliases.
11214 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11216         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
11218 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11220         Revert:
11221         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
11223 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11225         * ipa-visibility.c (function_and_variable_visibility): Remove
11226         temporary hack disabling local aliases on AIX.
11228 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11230         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
11231         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
11233 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11235         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
11236         * rs6000/rs6000.c: Inline output of .set instruction.
11237         (declare_alias_data): New struct.
11238         (rs6000_declare_alias): New function.
11239         (rs6000_xcoff_declare_function_name): Use it.
11240         (rs6000_xcoff_declare_object_name): New function.
11241         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
11242         (ASM_OUTPUT_DEF): Turn to empty definition.
11244 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
11246         PR bootstrap/61679
11247         * hash-table.h: use hash_table::value_type instead of
11248         Descriptor::value_type in the return types of several methods.
11250 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
11252         * tree-pass.h (pass_data): Remove has_execute member.
11253         * passes.c (execute_one_pass): Don't check pass->has_execute.
11254         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
11255         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
11256         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
11257         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
11258         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
11259         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
11260         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
11261         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
11262         gimple-low.c, gimple-ssa-isolate-paths.c,
11263         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
11264         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
11265         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
11266         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
11267         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
11268         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
11269         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
11270         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
11271         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
11272         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
11273         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
11274         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11275         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11276         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11277         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
11278         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
11279         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
11280         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11281         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11282         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
11283         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
11284         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
11285         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
11286         web.c: Remove initializer for pass_data::has_execute.
11288 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
11290         * graphite-htab.h: Use hash_map instead of hash_table.
11291         * graphite-clast-to-gimple.c: Adjust.
11292         * passes.c: Use hash_map instead of hash_table.
11293         * sese.c: Likewise.
11294         * sese.h: Remove now unused code.
11296 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
11298         PR target/61599
11299         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
11300         than zero.
11302 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
11304         PR rtl-optimization/61673
11305         * combine.c (simplify_comparison): Test just mode's sign bit
11306         in tmode rather than the sign bit and any bits above it.
11308 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
11310         * graphite-isl-ast-to-gimple.c (generate_isl_context):
11311         Add __isl_give to the declaration.
11312         (generate_isl_schedule): Likewise.
11313         (scop_to_isl_ast): Likewise.
11315 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11317         * config/arm/arm.c (cortexa5_extra_costs): New table.
11318         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
11320 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
11322         PR tree-optimization/61725
11323         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
11324         range, use range_includes_zerop_p instead of integer_zerop on
11325         vr0->min, only use log2 of max if min is not negative.
11327 2014-07-08  Richard Biener  <rguenther@suse.de>
11329         * tree-ssa-dom.h (loop_depth_of_name): Remove.
11330         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
11331         restriction on loop depth difference.
11332         (record_equality): Likewise.
11333         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
11334         (loop_depth_of_name): Remove.
11335         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
11336         restriction on loop depth difference.
11337         (init_copy_prop): Likewise.
11339 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11341         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
11342         parameter.
11343         (walk_aliased_vdefs): Likewise.
11344         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
11345         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
11346         (detect_type_change_from_memory_writes): Check if entry was reached.
11348 2014-07-08  Richard Biener  <rguenther@suse.de>
11350         PR tree-optimization/61681
11351         * tree-ssa-structalias.c (find_what_var_points_to): Expand
11352         NONLOCAL inside ESCAPED.
11354 2014-07-08  Richard Biener  <rguenther@suse.de>
11356         PR tree-optimization/61680
11357         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11358         Handle properly all read-write dependences with group accesses.
11360 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
11362         PR tree-optimization/61576
11363         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
11364         block containing reduction statement is predecessor of phi basi block.
11366 2014-07-08  Marek Polacek  <polacek@redhat.com>
11368         PR c/60226
11369         * fold-const.c (round_up_loc): Change the parameter type.
11370         Remove assert.
11371         * fold-const.h (round_up_loc): Adjust declaration.
11372         * stor-layout.c (finalize_record_size): Check for too large types.
11374 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
11376         * symtab.c: Include calls.h.
11377         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
11379 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
11381         * config/rs6000/rs6000.c (output_vec_const_move): Handle
11382         little-endian code generation.
11383         * config/rs6000/spe.md (spe_evmergehi): Rename to...
11384         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
11385         (spe_evmergehilo): Rename to...
11386         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
11387         (spe_evmergelo): Rename to...
11388         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
11389         (spe_evmergelohi): Rename to...
11390         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
11391         (spe_evmergehi, spe_evmergehilo): New expanders.
11392         (spe_evmergelo, spe_evmergelohi): Likewise.
11393         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
11394         (*frob_tf_ti): Likewise.
11395         (*frob_<mode>_di_2): Likewise.
11396         (*frob_tf_di_8_2): Likewise.
11397         (*frob_di_<mode>): Likewise.
11398         (*frob_ti_tf): Likewise.
11399         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
11400         (*frob_ti_<mode>_8_2): Likewise.
11401         (*frob_ti_tf_2): Likewise.
11402         (mov_si<mode>_e500_subreg0): Rename to...
11403         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
11404         endianness only.
11405         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
11406         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
11407         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
11408         the big endianness only.
11409         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
11410         (*mov_si<mode>_e500_subreg0_2): Rename to...
11411         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
11412         big big endianness only.
11413         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
11414         (*mov_si<mode>_e500_subreg4): Rename to...
11415         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
11416         endianness only.
11417         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
11418         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
11419         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
11420         the big endianness only.
11421         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
11422         pattern.
11423         (*mov_si<mode>_e500_subreg4_2): Rename to...
11424         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
11425         endianness only.
11426         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
11427         (*mov_sitf_e500_subreg8): Rename to...
11428         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
11429         endianness only.
11430         (*mov_sitf_e500_subreg8_le): New instruction pattern.
11431         (*mov_sitf_e500_subreg8_2): Rename to...
11432         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
11433         endianness only.
11434         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
11435         (*mov_sitf_e500_subreg12): Rename to...
11436         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
11437         endianness only.
11438         (*mov_sitf_e500_subreg12_le): New instruction pattern.
11439         (*mov_sitf_e500_subreg12_2): Rename to...
11440         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
11441         endianness only.
11442         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
11444 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11446         * asan.c (instrument_strlen_call): Do not instrument first byte
11447         in strlen if already instrumented.
11449 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11451         * config/arm/arm.opt (mwords-little-endian): Delete.
11452         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
11453         of TARGET_LITTLE_WORDS.
11454         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
11455         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
11456         warning.
11457         * doc/invoke.texi: Remove references to -mwords-little-endian.
11459 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
11461         * expmed.c (struct init_expmed_rtl): Change all fields but
11462         pow2 and cint from struct rtx_def to rtx.
11463         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
11464         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
11465         at the end again.
11467 2014-07-06  Marek Polacek  <polacek@redhat.com>
11469         PR c/6940
11470         * doc/invoke.texi: Document -Wsizeof-array-argument.
11472 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
11474         * wide-int.h (wide_int_storage): Change declaration from struct
11475         to class.
11477 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
11479         * cgraph.c (cgraph_create_indirect_edge): Update call of
11480         get_polymorphic_call_info.
11481         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
11482         (possible_polymorphic_call_targets): Add parameter call.
11483         (decl_maybe_in_construction_p): New predicate.
11484         (get_polymorphic_call_info): Add parameter call;
11485         use decl_maybe_in_construction_p.
11486         * gimple-fold.c (fold_gimple_assign): Update use of
11487         possible_polymorphic_call_targets.
11488         (gimple_fold_call): Likewise.
11489         * ipa-prop.c: Inlcude calls.h
11490         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
11491         (param_type_may_change_p): New predicate.
11492         (detect_type_change_from_memory_writes): Break out from ...
11493         (detect_type_change): ... this one; use param_type_may_change_p.
11494         (detect_type_change_ssa): Use param_type_may_change_p.
11495         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
11497 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
11499         PR target/49423
11500         * config/arm/arm-protos.h (arm_legitimate_address_p,
11501         arm_is_constant_pool_ref): Add prototypes.
11502         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
11503         (arm_is_constant_pool_ref) New function.
11504         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
11505         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
11506         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
11507         operand. Remove pool_range and neg_pool_range attributes.
11508         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
11509         pool_range and neg_pool_range attributes.
11510         * config/arm/constraints.md (Uh): New constraint.
11511         (Uq): Don't allow constant pool references.
11513 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
11515         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
11516         (move_lo_quad_internal_be_<mode>): Likewise.
11517         (move_lo_quad_<mode>): Convert to define_expand.
11518         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
11519         (aarch64_simd_move_hi_quad_be_<mode>): New.
11520         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
11521         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
11522         (aarch64_combinez_be<mode>): New.
11523         (aarch64_combine<mode>): Convert to define_expand.
11524         (aarch64_combine_internal<mode>): New.
11525         (aarch64_simd_combine<mode>): Remove bogus RTL description.
11527 2014-07-04  Tom de Vries  <tom@codesourcery.com>
11529         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
11530         combination of earlyclobber and read/write modifiers.
11532 2014-07-04  Tom de Vries  <tom@codesourcery.com>
11534         * config/aarch64/aarch64-simd.md
11535         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
11537 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
11539         PR target/61714
11540         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
11542 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
11544         PR middle-end/61654
11545         * cgraphunit.c (expand_thunk): Call free_dominance_info.
11547         PR tree-optimization/61684
11548         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
11549         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
11551 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11552             Kito Cheng  <kito@0xlab.org>
11553             Monk Chiang  <sh.chiang04@gmail.com>
11555         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
11556         (nds32_symbol_load_store_p): Move to ...
11557         (nds32_fp_as_gp_check_available): Move to ...
11558         * config/nds32/nds32-fp-as-gp.c: ... here.
11559         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
11560         extern declaration.
11562 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11563             Kito Cheng  <kito@0xlab.org>
11564             Monk Chiang  <sh.chiang04@gmail.com>
11566         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
11567         (nds32_expand_store_multiple): Move to ...
11568         (nds32_expand_movmemqi): Move to ...
11569         * config/nds32/nds32-memory-manipulation.c: ... here.
11571 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11572             Kito Cheng  <kito@0xlab.org>
11573             Monk Chiang  <sh.chiang04@gmail.com>
11575         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
11576         (nds32_output_casesi_pc_relative): Move to ...
11577         (nds32_output_casesi): Move to ...
11578         (nds32_mem_format): Move to ...
11579         (nds32_output_16bit_store): Move to ...
11580         (nds32_output_16bit_load): Move to ...
11581         (nds32_output_32bit_store): Move to ...
11582         (nds32_output_32bit_load): Move to ...
11583         (nds32_output_32bit_load_s): Move to ...
11584         (nds32_output_stack_push): Move to ...
11585         (nds32_output_stack_pop): Move to ...
11586         * config/nds32/nds32-md-auxiliary.c: ... here.
11588 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11589             Ling-Hua Tseng  <uranus@tinlans.org>
11591         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
11592         the purpose of this file.
11594 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11595             Kito Cheng  <kito@0xlab.org>
11596             Monk Chiang  <sh.chiang04@gmail.com>
11598         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
11599         (nds32_address_cost): Move implementation to ...
11600         * config/nds32/nds32-cost.c: ... here.
11601         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
11602         (nds32_address_cost_impl): Declare.
11604 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11605             Kito Cheng  <kito@0xlab.org>
11606             Monk Chiang  <sh.chiang04@gmail.com>
11608         * config/nds32/nds32.c
11609         (nds32_consecutive_registers_load_store_p): Move to ...
11610         (nds32_valid_multiple_load_store): Move to ...
11611         (nds32_valid_stack_push_pop): Move to ...
11612         (nds32_can_use_bclr_p): Move to ...
11613         (nds32_can_use_bset_p): Move to ...
11614         (nds32_can_use_btgl_p): Move to ...
11615         (nds32_can_use_bitci_p): Move to ...
11616         * config/nds32/nds32-predicates.c: ... here.
11618 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11619             Kito Cheng  <kito@0xlab.org>
11620             Monk Chiang  <sh.chiang04@gmail.com>
11622         * config/nds32/nds32.c
11623         (nds32_expand_builtin_null_ftype_reg): Move to ...
11624         (nds32_expand_builtin_reg_ftype_imm): Move to ...
11625         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
11626         (nds32_init_builtins): Move implementation to ...
11627         (nds32_expand_builtin): Move implementation to ...
11628         * config/nds32/nds32-intrinsic.c: ... here.
11629         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
11630         (nds32_expand_builtin_impl): Declare.
11632 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11633             Kito Cheng  <kito@0xlab.org>
11634             Monk Chiang  <sh.chiang04@gmail.com>
11636         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
11637         (nds32_emit_section_tail_template): Move to ...
11638         (nds32_emit_isr_jmptbl_section): Move to ...
11639         (nds32_emit_isr_vector_section): Move to ...
11640         (nds32_emit_isr_reset_conten): Move to ...
11641         (nds32_check_isr_attrs_conflict): Move to ...
11642         (nds32_construct_isr_vectors_information): Move to ...
11643         (nds32_asm_file_start): Move implementation to ...
11644         (nds32_asm_file_end): Move implementation to ...
11645         * config/nds32/nds32-isr.c: ... here.
11646         * config/nds32/nds32-protos.h
11647         (nds32_check_isr_attrs_conflict): Declare.
11648         (nds32_construct_isr_vectors_information): Declare.
11649         (nds32_asm_file_start_for_isr): Declare.
11650         (nds32_asm_file_end_for_isr): Declare.
11652 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
11653             Kito Cheng  <kito@0xlab.org>
11654             Monk Chiang  <sh.chiang04@gmail.com>
11656         * config.gcc (nds32*): Add new modules to extra_objs.
11657         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
11658         (nds32be-*-*): Likewise.
11659         * config/nds32/nds32-cost.c: New file.
11660         * config/nds32/nds32-fp-as-gp.c: New file.
11661         * config/nds32/nds32-intrinsic.c: New file.
11662         * config/nds32/nds32-isr.c: New file.
11663         * config/nds32/nds32-md-auxiliary.c: New file.
11664         * config/nds32/nds32-memory-manipulation.c: New file.
11665         * config/nds32/nds32-pipelines-auxiliary.c: New file.
11666         * config/nds32/nds32-predicates.c: New file.
11667         * config/nds32/t-nds32: New file.
11669 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
11671         PR tree-optimization/61682
11672         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
11673         using cases and when one of the operands is equal to 1.
11675 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
11677         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
11678         ashr<mode>3): Correct mode of operands[2].
11679         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
11680         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
11681         Correct mode of operands[2].  Fix split condition.
11683 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
11685         * arm.md (arch): Add armv6_or_vfpv3.
11686         (arch_enabled): Add test for the above.
11687         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
11688         on VFP9.
11689         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
11691 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
11693         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
11694         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
11695         HWI 1 and negate the unsigned value.
11696         * expmed.c (expand_sdiv_pow2): For modes wider than word always
11697         use AND instead of shift.
11698         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
11700 2014-07-03  Marek Polacek  <polacek@redhat.com>
11702         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
11703         (-fsanitize=float-divide-by-zero): Move to the table with
11704         -fsanitize=undefined suboptions.
11705         (-fsanitize=float-cast-overflow): Likewise.
11707 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
11709         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
11710         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
11711         endianness.
11713 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11715         * loop-invariant.c (struct invariant): Add a new member: eqno;
11716         (find_identical_invariants): Update eqno;
11717         (create_new_invariant): Init eqno;
11718         (get_inv_cost): Compute comp_cost with eqno;
11720 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
11722         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
11723         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
11724         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
11725         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
11726         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
11728 2014-07-02  Christian Bruel  <christian.bruel@st.com>
11730         PR target/29349
11731         PR target/53513
11732         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
11733         (make_preds_opaque): Delete.
11734         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
11735         (commit_mode_sets): New function.
11736         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
11737         Process all modes at once.
11738         * basic-block.h (pre_edge_lcm_avs): Declare.
11739         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
11740         Call clear_aux_for_edges. Fix comments.
11741         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
11742         (pre_edge_rev_lcm): Idem.
11743         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
11744         parameter.
11745         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
11746         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
11747         Idem.
11748         * config/i386/i386.c (x96_emit_mode_set): Idem.
11749         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
11750         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
11751         (fpscr_toggle) Disallow from delay slot.
11752         * target.def (emit_mode_set): Add prev_mode parameter.
11753         * doc/tm.texi: Regenerate.
11755 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11757         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
11758         variable i.
11760 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
11762         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
11763         vtable_pointer_value_to_vtable): Constify.
11764         (contains_polymorphic_type_p): Declare.
11765         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
11766         vtable_pointer_value_to_vtable): Constify.
11767         (contains_polymorphic_type_p): New predicate.
11768         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
11769         polymorphic types.
11770         (ipa_set_ancestor_jf): Likewise.
11771         (detect_type_change): Return false in easy cases.
11772         (compute_complex_assign_jump_func): Require type to contain
11773         polymorphic type.
11774         (compute_known_type_jump_func): Likewise.
11776 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
11778         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
11779         Remove.
11780         (type_in_anonymous_namespace_p): Constify argument.
11781         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
11782         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
11783         (main_odr_variant): New function.
11784         (hash_type_name): Make static; update assert; do not ICE on
11785         non-records.
11786         (types_same_for_odr): Bring here from tree.c; simplify and remove
11787         old structural comparing code that doesn't work for templates.
11788         (odr_hasher::equal): Update assert.
11789         (add_type_duplicate): Return true when bases should be computed;
11790         replace incomplete loader by complete; do not output duplicated
11791         warnings; do not ICE on non-records; set odr_violated flag.
11792         (get_odr_type): Be ready to replace incomplete type by complete
11793         one; work on ODR variants instead of main variants; reorder item
11794         in array so bases have still smaller indexes.
11795         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
11796         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
11798 2014-07-01  Cary Coutant  <ccoutant@google.com>
11800         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
11801         lookup.
11802         (resolve_addr_in_expr): When replacing the rtx in a location list
11803         entry, get a new address table entry.
11804         (dwarf2out_finish): Call index_location_lists even if there are no
11805         addr_index_table entries yet.
11807 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
11809         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
11810         change for not being obvious.
11812 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
11814         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
11815         unused argument.
11817 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11819         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
11820         (vcagt_f64): Likewise.
11821         (vcale_f64): Likewise.
11822         (vcaled_f64): Likewise.
11823         (vcales_f32): Likewise.
11824         (vcalt_f64): Likewise.
11825         (vcaltd_f64): Likewise.
11826         (vcalts_f32): Likewise.
11828 2014-07-01  Marek Polacek  <polacek@redhat.com>
11830         * doc/invoke.texi: Document -Wint-conversion.
11832 2014-07-01  Marek Polacek  <polacek@redhat.com>
11834         PR c/58286
11835         * doc/invoke.texi: Document -Wincompatible-pointer-types.
11837 2014-07-01  Martin Liska  <mliska@suse.cz>
11839         IPA REF alias refactoring
11840         * cgraph.h (iterate_direct_aliases): New function.
11841         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
11842         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
11843         FOR_EACH_ALIAS added.
11844         (cgraph_for_node_and_aliases): Likewise.
11845         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
11846         * ipa-inline.c (reset_edge_caches): Likewise.
11847         (update_caller_keys): Likewise.
11848         * trans-mem.c (ipa_tm_execute): Likewise.
11849         *varpool.c (varpool_analyze_node): Likewise.
11850         (varpool_for_node_and_aliases): Likewise.
11851         * ipa-ref.h (first_alias): New function.
11852         (last_alias): Likewise.
11853         (has_aliases_p): Likewise.
11854         * ipa-ref.c (ipa_ref::remove_reference): Removal function
11855         is sensitive to IPA_REF_ALIASes.
11856         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
11857         are put at the beginning of the list.
11858         (symtab_node::iterate_direct_aliases): New function.
11860 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
11862         Revert:
11863         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
11864         type is complete.
11865         (write_ts_type_common_tree_pointers): Do not stream fields not set
11866         for incomplete types; do not stream duplicated fields for variants;
11867         sanity check that variant and type match.
11868         (write_ts_type_non_common_tree_pointers): Likewise.
11869         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
11870         TYPE_SIZE whether type is complete.
11871         (lto_input_ts_type_common_tree_pointers): Do same changes as in
11872         write_ts_type_common_tree_pointers
11873         (lto_input_ts_type_non_common_tree_pointers): Likewise.
11875 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
11877         * var-tracking.c (add_stores): Return instead of asserting if old
11878         and new values for conditional store are the same.
11880 2014-06-30  Richard Henderson  <rth@redhat.com>
11882         PR rtl-opt/61608
11883         PR target/39284
11884         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
11885         the cfg if there were any changes.
11886         * passes.def: Revert move of peephole2 after reorder_blocks;
11887         move duplicate_computed_gotos before peephole2.
11889 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
11891         * except.c (emit_note_eh_region_end): New helper function.
11892         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
11893         emit EH_REGION_END note.
11894         * jump.c (cleanup_barriers): Do not split a call and its
11895         corresponding CALL_ARG_LOCATION note.
11897 2014-06-30  Jeff Law  <law@redhat.com>
11899         PR tree-optimization/61607
11900         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
11901         deeper into the SSA_NAME_VALUE chain.
11903 2014-06-30  Marek Polacek  <polacek@redhat.com>
11905         * convert.c (convert_to_integer): Don't instrument conversions if the
11906         function has no_sanitize_undefined attribute.
11907         * ubsan.c: Don't run the ubsan pass if the function has
11908         no_sanitize_undefined attribute.
11910 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
11912         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
11913         -fsanitize=undefined suboptions.
11915 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
11917         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
11918         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
11919         against bigendian and adjust indices.
11921 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
11923         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
11925 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11927         PR target/61633
11928         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
11929         Add alternative; make early clobber.  Adjust both split patterns
11930         to use operand 0 as the working register.
11932 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
11934         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
11935         as ira_object_id_map might be NULL, or 1.
11937 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11939         * loop-invariant.c (get_inv_cost): Handle register class.
11940         (gain_for_invariant): Check the register pressure of the inv
11941         and its overlapped register class, other than all.
11943 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
11945         * doc/invoke.texi (Optimize Options): Fix descriptions of
11946         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
11948 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
11950         * doc/extend.texi (Function Attributes): Update 'naked' attribute
11951         documentation.
11953 2014-06-29  Tobias Grosser <tobias@grosser.es>
11955         PR bootstrap/61650
11956         * graphite-isl-ast-to-gimple.c: Add missing guards.
11958 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
11960         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
11961         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
11962         * flag-types.h: Add new enum fgraphite_generator.
11963         * graphite-isl-ast-to-gimple.c: New.
11964         * graphite-isl-ast-to-gimple.h: New.
11965         * graphite.c (graphite_transform_loops): Add choice of Graphite
11966         code generator, which depends on flag_graphite_code_gen.
11968 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
11970         * graphite-dependences.c (subtract_commutative_associative_deps):
11971         Add NULL checking of the following variables: must_raw_no_source,
11972         may_raw_no_source, must_war_no_source, may_war_no_source,
11973         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
11974         must_war, may_war, must_waw, may_waw.
11976 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
11978         * graphite-clast-to-gimple.c: gloog is renamed to
11979         graphite_regenerate_ast_cloog.  gloog_error is renamed to
11980         graphite_regenerate_error.
11981         * graphite-clast-to-gimple.h: The definition of the struct
11982         bb_pbb_def is moved to graphite-htab.h.
11983         Add inclusion of the hash-table.h.
11984         * graphite-htab.h: The declaration of the function gloog is moved
11985         to graphite-clast-to-gimple.h and renamed to
11986         graphite_regenerate_ast_cloog.
11987         * graphite.c (graphite_transform_loops): gloog is renamed
11988         to graphite_regenerate_ast_cloog.
11990 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
11992         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
11993         type is complete.
11994         (write_ts_type_common_tree_pointers): Do not stream fields not set
11995         for incomplete types; do not stream duplicated fields for variants;
11996         sanity check that variant and type match.
11997         (write_ts_type_non_common_tree_pointers): Likewise.
11998         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
11999         TYPE_SIZE whether type is complete.
12000         (lto_input_ts_type_common_tree_pointers): Do same changes as in
12001         write_ts_type_common_tree_pointers
12002         (lto_input_ts_type_non_common_tree_pointers): Likewise.
12004 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12006         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
12008 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12010         * tree-inline.c (remap_type_1): Do not duplicate fields
12011         that are shared in between type and its main variant.
12013 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12015         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
12016         of the type.
12017         (ipa_set_ancestor_jf) Likewise.
12018         (check_stmt_for_type_change): Check that we work on main variant.
12019         (detect_type_change): Look into main variant.
12020         (compute_known_type_jump_func): Check that main variant has BINFO.
12022 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12024         * ipa-devirt.c (set_type_binfo): New function.
12025         (add_type_duplicate): Use it.
12026         (get_odr_type): Sanity check that binfos points to main variants.
12027         (get_class_context): Be sure the context's outer_type is main variant.
12028         (contains_type_p): Walk main variant.
12029         (get_polymorphic_call_info_for_decl): Set outer_type to be
12030         main variant.
12031         (get_polymorphic_call_info): Likewise.
12032         (possible_polymorphic_call_targets): Sanity check that we operate
12033         on main variant.
12035 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12037         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
12039 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12041         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
12042         accidental change due to wide-int branch merge.
12044 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12046         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
12047         compressed debug support.
12048         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
12049         * configure: Regenerate.
12050         * config.in: Regenerate.
12051         * common.opt (compressed_debug_sections): New enum.
12052         (gz, gz=): New options.
12053         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
12054         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
12055         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
12056         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
12057         LINK_COMPRESS_DEBUG_SPEC.
12058         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
12059         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
12060         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
12061         (Debugging Options): Document -gz[=type].
12063 2014-06-27  Martin Jambor  <mjambor@suse.cz>
12065         PR ipa/61160
12066         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
12067         args_to_skip, use those from node instead.  Copy args_to_skip and
12068         combined_args_to_skip from node to the new thunk.
12069         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
12070         (cgraph_create_virtual_clone): Moved computation of
12071         combined_args_to_skip...
12072         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
12074 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
12076         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
12077         redundant diagnostic machinary.
12079 2014-06-27  Richard Biener  <rguenther@suse.de>
12081         * tree-ssa-math-opts.c (bswap_replace): Fix
12082         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
12084 2014-06-27  Martin Liska  <mliska@suse.cz>
12086         * gimple.h (gimple_location_safe): New function introduced.
12087         * cgraphunit.c (walk_polymorphic_call_targets): Usage
12088         of gimple_location_safe replaces gimple_location.
12089         (gimple_fold_call): Likewise.
12090         * ipa-devirt.c (ipa_devirt): Likewise.
12091         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
12092         * ipa.c (walk_polymorphic_call_targets): Likewise.
12093         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
12095 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
12097         PR tree-optimization/57233
12098         PR tree-optimization/61299
12099         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
12100         functions.
12101         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
12102         would be lowered to scalar shifts, check if corresponding
12103         shifts and vector BIT_IOR_EXPR are supported and don't lower
12104         or lower just to narrower vector type in that case.
12105         * expmed.c (expand_shift_1): Fix up handling of vector
12106         shifts and rotates.
12108 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
12110         PR target/61586
12111         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
12113 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
12115         * doc/invoke.texi (-fsemantic-interposition): Document.
12116         * common.opt (fsemantic-interposition): New flag.
12117         * varasm.c (decl_replaceable_p): Use it.
12119 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12121         PR target/61542
12122         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
12123         extraction other than index 3.
12125 2014-06-26  Teresa Johnson  <tejohnson@google.com>
12127         * doc/invoke.texi: Fix typo.
12128         * dumpfile.c: Add support for documented -fdump-* options
12129         optimized/missed/note/optall.
12131 2014-06-26  Martin Jambor  <mjambor@suse.cz>
12133         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
12134         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
12135         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
12136         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
12137         * opts.c (default_options_optimization): Set
12138         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
12139         * doc/invoke.texi (allow-load-data-races)
12140         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
12141         (allow-store-data-races): Document the new default.
12143 2014-06-26  Martin Jambor  <mjambor@suse.cz>
12145         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
12146         renamed to ipa_impossible_devirt_target.  Fix typo.
12147         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
12148         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
12149         ipa_impossible_devirt_target.
12151 2014-06-26  Richard Biener  <rguenther@suse.de>
12153         PR tree-optimization/61607
12154         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
12155         explaining why we restrict copies on loop depth.
12156         * tree-ssa-dom.c (cprop_operand): Remove restriction on
12157         on loop depth.
12158         (record_equivalences_from_phis): Instead add it here.
12160 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
12162         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
12163         (LTO_WRAPPER_OBJS): New variable.
12164         (lto-wrapper$(exeext)): Use it.
12165         * collect2.c: Include "collect-utils.h".
12166         (verbose, debug): Remove variables.
12167         (at_file_supplied): No longer static.
12168         (tool_name): New variable.
12169         (do_wait, fork_execute, maybe_unlink): Don't declare.
12170         (tool_cleanup): No longer static.
12171         (notice): Remove function.
12172         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
12173         fork_execute calls.
12174         (collect_wait, do_wait, collect_execute): Remove functions.
12175         (maybe_unlink): No longer static.
12176         * collect2.h (verbose, debug): Don't declare.
12177         (at_file_supplied): Declare.
12178         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
12179         changed.
12180         (collect_execute): Replace with implementation from collect2, plus a
12181         new arg use_atfile.  All callers changed.
12182         (collect_wait): Replace with implementation from collect2.
12183         (maybe_unlink_file): Remove function.
12184         (fork_execute): Replace with implementation from collect2, plus a
12185         new arg use_atfile.  All callers changed.
12186         (do_wait): Add call to utils_cleanup to the error path.
12187         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
12188         (tool_cleanup): Adjust declarations.
12189         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
12190         * tlink.c: Include "collect-utils.h".
12191         (tlink_execute): New arg use_atfile.  All callers changed.
12192         (tlink_init, tlink_execute): Remove declarations.
12194         * collect-utils.c (save_temps): New variable.
12195         (do_wait): Use it instead of debug.  Use fatal_error.
12196         * collect-utils.h (save_temps): Declare.
12197         * collect2.c (verbose): Rename from vflag.  All uses changed.
12198         (tool_cleanup): New function, copied from collect_atexit.
12199         (collect_atexit, handler): Just call it.
12200         * collect2.h (verbose): Declaration renamed from vflag.
12201         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
12202         debug.
12204         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
12205         (lto-wrapper$(exeext)): Link with collect-utils.o.
12206         * collect-utils.c: New file.
12207         * collect-utils.h: New file.
12208         * lto-wrapper.c: Include "collect-utils.h".
12209         (args_name): Delete variable.
12210         (tool_name): New variable.
12211         (tool_cleanup): New function.
12212         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
12213         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
12214         (fork_execute): Remove functions.
12216 2014-06-26  Nick Clifton  <nickc@redhat.com>
12218         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
12220         * doc/extend.texi (Function Attributes): Fix typo in description
12221         of RX vector attribute.
12223 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
12225         * config.gcc (supported_defaults): Error when passing either
12226         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
12228 2014-06-26  Richard Biener  <rguenther@suse.de>
12230         * tree-ssa-dom.c (cprop_operand): Remove restriction on
12231         propagating volatile pointers.
12233 2014-06-26  Richard Biener  <rguenther@suse.de>
12235         PR tree-optimization/61607
12236         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
12237         loop if we redirected its latch edge.
12238         (thread_block_1): Do not cancel loops prematurely.
12240 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
12242         * toplev.c (backend_init_target): Move init_emit_regs and
12243         init_regs to...
12244         (backend_init) ... here; skip ira_init_once and backend_init_target.
12245         (target_reinit) ... and here; clear
12246         this_target_rtl->lang_dependent_initialized.
12247         (lang_dependent_init_target): Clear
12248         this_target_rtl->lang_dependent_initialized;
12249         break out rtl initialization to ...
12250         (initialize_rtl): ... here; call also backend_init_target
12251         and ira_init_once.
12252         * toplev.h (initialize_rtl): New function.
12253         * function.c: Include toplev.h
12254         (init_function_start): Call initialize_rtl.
12255         * rtl.h (target_rtl): Add target_specific_initialized,
12256         lang_dependent_initialized.
12258 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
12259             Jakub Jelinek  <jakub@redhat.com>
12261         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
12263 2014-06-25  Tom de Vries  <tom@codesourcery.com>
12265         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
12267 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12269         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
12270         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
12271         Issue a strict overflow warning if appropriate.
12273 2014-06-25  Martin Liska  <mliska@suse.cz>
12275         IPA REF refactoring
12276         * Makefile.in: Removed header file (ipa-ref-inline.h).
12277         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
12278         called.
12279         (cgraph_speculative_call_info): Likewise.
12280         (cgraph_for_node_thunks_and_aliases): Likewise.
12281         (cgraph_for_node_and_aliases): Likewise.
12282         (verify_cgraph_node): Likewise.
12283         * cgraph.h: Batch of IPA REF functions become member functions of
12284         symtab_node: add_reference, maybe_add_reference, clone_references,
12285         clone_referring, clone_reference, find_reference,
12286         remove_stmt_references, remove_all_references,
12287         remove_all_referring, dump_references, dump_referring,
12288         has_alias_p, iterate_reference, iterate_referring.
12289         * cgraphbuild.c (record_reference): New IPA REF function used.
12290         (record_type_list): Likewise.
12291         (record_eh_tables): Likewise.
12292         (mark_address): Likewise.
12293         (mark_load): Likewise.
12294         (mark_store): Likewise.
12295         (pass_build_cgraph_edges): Likewise.
12296         (rebuild_cgraph_edge): Likewise.
12297         (cgraph_rebuild_references): Likewise.
12298         (pass_remove_cgraph_callee_edges): Likewise.
12299         * cgraphclones.c (cgraph_clone_node): Likewise.
12300         (cgraph_create_virtual_clone): Likewise.
12301         (cgraph_materialize_clone): Likewise.
12302         (cgraph_materialize_all_clones): Likewise.
12303         * cgraphunit.c (cgraph_reset_node): Likewise.
12304         (cgraph_reset_node): Likewise.
12305         (analyze_function): Likewise.
12306         (assemble_thunks_and_aliases): Likewise.
12307         (expand_function): Likewise.
12308         * ipa-comdats.c (propagate_comdat_group): Likewise.
12309         (enqueue_references): Likewise.
12310         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
12311         (create_specialized_node): Likewise.
12312         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
12313         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
12314         * ipa-inline.c (reset_edge_caches): Likewise.
12315         (update_caller_keys): Likewise.
12316         (execute): Likewise.
12317         * ipa-prop.c (remove_described_reference): Likewise.
12318         (propagate_controlled_uses): Likewise.
12319         (ipa_edge_duplication_hook): Likewise.
12320         (ipa_modify_call_arguments): Likewise.
12321         * ipa-pure-const.c (propagate_pure_const): Likewise.
12322         * ipa-ref-inline.h: Header file removed, functions moved
12323         to symtab_node class.
12324         * ipa-ref.c (remove_reference): New class member function.
12325         (cannot_lead_to_return): New class member function.
12326         (referring_ref_list): Likewise.
12327         (referred_ref_list): Likewise.
12328         Rest of functions moved to symtab_node class.
12329         * ipa-ref.h: New member functions remove_reference,
12330         cannot_lead_to_return, referring_ref_list, referred_ref_list added
12331         to ipa_ref class.
12332         ipa_ref_list class has new member functions: first_reference,
12333         first_referring, clear, nreferences.
12334         * ipa-reference.c (analyze_function): New IPA REF function used.
12335         (write_node_summary_p): Likewise.
12336         (ipa_reference_write_optimization_summary): Likewise.
12337         * ipa-split.c (split_function): Likewise.
12338         * ipa-utils.c (ipa_reverse_postorder): Likewise.
12339         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
12340         (function_and_variable_visibility): Likewise.
12341         * ipa.c (has_addr_references_p): Likewise.
12342         (process_references): Argument type changed.
12343         (symtab_remove_unreachable_nodes): New IPA REF function used.
12344         (process_references): Likewise.
12345         (set_writeonly_bit): Likewise.
12346         * lto-cgraph.c: Implementation of new symtab_node member functions
12347         that uses new IPA REF functions.
12348         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
12349         function used.
12350         * lto-streamer-out.c (output_symbol_p): Likewise.
12351         * lto-streamer.h (referenced_from_this_partition_p): Argument type
12352         changed.
12353         * symtab.c: Implementation of new IPA REF API.
12354         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
12355         (ipa_tm_create_version): Likewise.
12356         (ipa_tm_execute): Likewise.
12357         * tree-emutls.c (gen_emutls_addr): Likewise.
12358         * tree-inline.c (copy_bb): Likewise.
12359         (delete_unreachable_blocks_update_callgraph): Likewise.
12360         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
12361         (varpool_for_node_and_aliases): Likewise.
12363 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
12365         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
12367 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
12369         PR bootstrap/61598
12370         * fold-const.c (fold_checksum_tree): Use a hash_table of const
12371         tree_node * instead of tree_node *.
12372         (fold): Adjust.
12373         (print_fold_checksum): Likewise.
12374         (fold_check_failed): Likewise.
12375         (debug_fold_checksum): Likewise.
12376         (fold_build1_stat_loc): Likewise.
12377         (fold_build2_stat_loc): Likewise.
12378         (fold_build3_stat_loc): Likewise.
12379         (fold_build_call_array_loc): Likewise.
12381 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
12383         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
12384         implementation with call to...
12385         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
12386         function.
12387         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
12388         Declare.
12390 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
12392         PR tree-optimization/57742
12393         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
12394         after replacing the statement.
12396 2014-06-25  Nick Clifton  <nickc@redhat.com>
12398         * config/v850/v850.c (GHS_default_section_names): Change to const
12399         char * type.
12400         (GHS_current_section_names): Likewise.
12401         (v850_insert_attributes): Do not build strings, just assign the
12402         names directly.  Change the type of 'chosen_section' to const
12403         char*.
12404         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
12405         directly to the array entry.
12406         * config/v850/v850.h (GHS_default_section_names): Change to const
12407         char * type.
12408         (GHS_current_section_names): Likewise.
12410 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
12412         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
12413         (LANG_HOOKS_DECLS): Add it.
12414         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
12415         has correct type.
12416         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
12417         * langhooks.h (struct lang_hooks_for_decls): Add
12418         omp_clause_linear_ctor hook.
12419         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
12420         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
12421         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
12422         combined simd loop use omp_clause_linear_ctor hook.
12424 2014-06-24  Cong Hou  <congh@google.com>
12426         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
12427         pattern recognition.
12428         (type_conversion_p): PROMOTION is true if it's a type promotion
12429         conversion, and false otherwise.  Return true if the given expression
12430         is a type conversion one.
12431         * tree-vectorizer.h: Adjust the number of patterns.
12432         * tree.def: Add SAD_EXPR.
12433         * optabs.def: Add sad_optab.
12434         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
12435         * expr.c (expand_expr_real_2): Likewise.
12436         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
12437         * gimple.c (get_gimple_rhs_num_ops): Likewise.
12438         * optabs.c (optab_for_tree_code): Likewise.
12439         * tree-cfg.c (estimate_operator_cost): Likewise.
12440         * tree-ssa-operands.c (get_expr_operands): Likewise.
12441         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
12442         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
12443         * doc/generic.texi: Add document for SAD_EXPR.
12444         * doc/md.texi: Add document for ssad and usad.
12446 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
12448         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
12449         qualification in cast.
12451 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
12453         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
12454         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
12455         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
12456         (tree_function_decl): ... here.
12457         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
12458         streaming of vindex to ...
12459         (write_ts_function_decl_tree_pointers): ... here.
12460         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
12461         Do not stream DECL_VINDEX.
12462         (lto_input_ts_function_decl_tree_pointers): Stream it here.
12464 2014-06-24  Catherine Moore  <clm@codesourcery.com>
12465             Sandra Loosemore  <sandra@codesourcery.com>
12467         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
12468         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
12469         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
12471 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
12473         * doc/invoke.texi (Warning Options): Remove duplicated
12474         -Wmaybe-uninitialized.
12476 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
12478         PR tree-optimization/57742
12479         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
12480         (handle_builtin_malloc, handle_builtin_memset): New functions.
12481         (strlen_optimize_stmt): Call them.
12482         * passes.def: Move strlen after loop+dom but before vrp.
12484 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
12486         PR target/61570
12487         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
12488         model family 6 CPU with has_longmode never use a CPU without
12489         64-bit support.
12491 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
12493         PR target/61570
12494         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
12495         the last change.
12497 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
12499         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
12500         * dominance.c (iterate_fix_dominators): Use hash_map instead of
12501         pointer_map.
12502         * hash-map.h: New file.
12503         * ipa-comdats.c: Use hash_map instead of pointer_map.
12504         * ipa.c: Likewise.
12505         * lto-section-out.c: Adjust.
12506         * lto-streamer.h: Replace pointer_map with hash_map.
12507         * symtab.c (verify_symtab): Likewise.
12508         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
12509         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
12510         * tree-streamer.h: Likewise.
12511         * tree-streamer.c: Adjust.
12512         * pointer-set.h: Remove pointer_map.
12514 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
12516         * hash-table.h: Add a template arg to choose between storing values
12517         and storing pointers to values, and then provide partial
12518         specializations for both.
12519         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
12520         should store, not the type values should point to.
12521         * tree-into-ssa.c (var_info_hasher): Likewise.
12522         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
12523         * tree-complex.c: Adjust.
12524         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
12525         table instead of int_tree_map *.
12526         * tree-parloops.c: Adjust.
12527         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
12528         type is being stored.
12529         * tree-vectorizer.c: Adjust.
12531 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
12533         * hash-table.h: Remove a layer of indirection from hash_table so that
12534         it contains the hash table's data instead of a pointer to the data.
12535         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
12536         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
12537         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
12538         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
12539         fold-const.c, gcse.c, ggc-common.c,
12540         gimple-ssa-strength-reduction.c, gimplify.c,
12541         graphite-clast-to-gimple.c, graphite-dependences.c,
12542         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
12543         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
12544         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
12545         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
12546         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
12547         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
12548         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
12549         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
12550         tree-ssa-live.c, tree-ssa-loop-im.c,
12551         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
12552         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
12553         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
12554         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
12555         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
12556         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
12557         vtable-verify.c, vtable-verify.h: Adjust.
12559 2014-06-24  Richard Biener  <rguenther@suse.de>
12561         PR tree-optimization/61572
12562         * tree-ssa-sink.c (statement_sink_location): Do not sink
12563         loads from hard registers.
12565 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
12567         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
12568         not mentioned in clauses use private clause if the iterator is
12569         declared in #pragma omp for simd, and when adding lastprivate
12570         instead, add it to the outer #pragma omp for too.  Diagnose
12571         if the variable is private in outer context.  For simd collapse > 1
12572         loops, replace all iterators with temporaries.
12573         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
12574         same even in collapse > 1 loops.
12576         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
12577         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
12578         non-NULL.
12579         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
12580         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
12581         non-NULL.
12582         (gimplify_adjust_omp_clauses): Likewise.
12583         * omp-low.c (lower_rec_simd_input_clauses,
12584         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
12585         safelen the same as safelen(1).
12586         * tree-nested.c (convert_nonlocal_omp_clauses,
12587         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
12588         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
12589         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
12590         Fixup handling of GIMPLE_OMP_TARGET.
12591         (convert_tramp_reference_stmt, convert_gimple_call): Handle
12592         GIMPLE_OMP_TARGET.
12594 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
12596         PR tree-optimization/61554
12597         * tree-ssa-propagate.c: Include "bitmap.h".
12598         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
12599         properly update constructor/destructor.
12600         (substitute_and_fold_dom_walker::before_dom_children):
12601         Remove call to gimple_purge_dead_eh_edges, add bb->index to
12602         need_eh_cleaup instead.
12603         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
12604         need_eh_cleanup.
12606 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
12608         * varpool.c (dump_varpool_node): Dump used_by_single_function.
12609         * tree-pass.h (make_pass_ipa_single_use): New pass.
12610         * cgraph.h (used_by_single_function): New flag.
12611         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
12612         Stream it.
12613         * passes.def (pass_ipa_single_use): Scedule.
12614         * ipa.c (BOTTOM): New macro.
12615         (meet): New function
12616         (propagate_single_user): New function.
12617         (ipa_single_use): New function.
12618         (pass_data_ipa_single_use): New pass.
12619         (pass_ipa_single_use): New pass.
12620         (pass_ipa_single_use::gate): New gate.
12621         (make_pass_ipa_single_use): New function.
12623 2014-06-23  Kai Tietz  <ktietz@redhat.com>
12625         PR target/39284
12626         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
12627         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
12629 2014-06-23  Richard Biener  <rguenther@suse.de>
12631         * tree-ssa-loop.c (gate_loop): New function.
12632         (pass_tree_loop::gate): Call it.
12633         (pass_data_tree_no_loop, pass_tree_no_loop,
12634         make_pass_tree_no_loop): New.
12635         * tree-vectorizer.c: Include tree-scalar-evolution.c
12636         (pass_slp_vectorize::execute): Initialize loops and SCEV if
12637         required.
12638         (pass_slp_vectorize::clone): New method.
12639         * timevar.def (TV_TREE_NOLOOP): New.
12640         * tree-pass.h (make_pass_tree_no_loop): Declare.
12641         * passes.def (pass_tree_no_loop): New pass group with
12642         SLP vectorizer.
12644 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
12646         PR target/61570
12647         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
12648         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
12650 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
12652         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
12653         "yes" where needed.
12655 2014-06-23  Alan Modra  <amodra@gmail.com>
12657         PR bootstrap/61583
12658         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
12659         to zero on debug statements.
12661 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
12663         PR target/60825
12664         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
12665         Ignore third operand if present by marking qualifier_internal.
12667         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
12669         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
12670         vector extension.
12671         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
12672         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
12673         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
12674         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
12675         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
12676         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
12677         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
12678         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
12679         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
12680         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
12681         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
12682         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
12683         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
12684         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
12685         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
12686         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
12687         logic in GCC vector extensions
12689         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
12690         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
12691         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
12692         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
12693         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
12694         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
12695         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
12696         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
12697         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
12698         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
12700         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
12702         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
12703         extensions.
12705         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
12706         (vget_low_s64): Use __GET_LOW macro.
12707         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
12708         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
12709         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
12710         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
12711         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
12713         (vcombine_s64): Use GCC vector extensions; remove cast.
12714         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
12715         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
12716         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
12717         Fix type signature; remove cast.
12719 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
12721         PR target/60825
12722         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
12723         V1DFmode.
12724         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
12725         add V1DFmode
12726         (BUILTIN_VD1): New.
12727         (BUILTIN_VD_RE): Remove.
12728         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
12729         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
12730         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
12731         variant but not df.
12732         (vreinterpretv1df*, vreinterpret*v1df): New.
12733         (vreinterpretdf*, vreinterpret*df): Remove.
12734         * config/aarch64/aarch64-simd.md (aarch64_create,
12735         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
12736         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
12737         (VD1): New.
12738         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
12739         (vcreate_f64): Remove cast, use v1df builtin.
12740         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
12741         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
12742         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
12743         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
12744         vmov_n_f64, vst1_f64): Use gcc vector extensions.
12745         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
12746         add range check using __builtin_aarch64_im_lane_boundsi.
12747         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
12748         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
12749         type signature, use gcc vector extensions.
12750         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
12751         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
12752         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
12753         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
12754         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
12755         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
12756         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
12757         vreinterpret_u64_f64): Use v1df builtin not df.
12759 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
12761         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
12762         vector registers.
12764 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
12766         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
12767         priority directly.
12769 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12771         * loop-invariant.c (pre_check_invariant_p): New function.
12772         (find_invariant_insn): Call pre_check_invariant_p.
12774 2014-06-22  Richard Henderson  <rth@redhat.com>
12776         PR target/61565
12777         * compare-elim.c (struct comparison): Add eh_note.
12778         (find_comparison_dom_walker::before_dom_children): Don't eliminate
12779         a redundant comparison in a different EH region.  Purge EH edges if
12780         necessary.
12782 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
12784         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
12785         (var_shift): Use it.
12786         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
12787         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
12788         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
12789         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
12790         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
12791         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
12792         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
12793         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
12794         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
12795         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
12796         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
12797         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
12798         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
12799         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
12800         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
12801         *rotldi3_internal15be): Use the new attribute.  Merge register and
12802         integer alternatives.
12804 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
12806         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
12807         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
12808         split, *ashrdi3_internal3 and split): Delete, merge into...
12809         (ashr<mode>3): New expander.
12810         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
12811         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
12813 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
12815         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
12816         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
12817         *rotldi3_internal3 and split): Delete, merge into...
12818         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
12819         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
12820         Use "rotlw" extended mnemonic.
12822 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
12824         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
12825         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
12826         and split, *ashldi3_internal3 and split): Delete, merge into...
12827         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
12828         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
12830 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
12832         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
12833         (lshrsi3, two anonymous define_insns and define_splits,
12834         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
12835         *lshrdi3_internal3 and split): Delete, merge into...
12836         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
12837         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
12839 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
12841         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
12842         Remove "O" alternative.
12844 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
12846         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
12847         (mips_move_from_gpr_cost): Likewise.
12848         (mips_register_move_cost): Update accordingly.
12849         (mips_secondary_reload_class): Remove name of in_p.
12851 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
12853         PR target/61503
12854         * config/i386/i386.md (x86_64_shrd, x86_shrd,
12855         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
12857 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12859         * config/nios2/nios2.c: Include "builtins.h".
12861 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
12863         * cgraph.h (tls_model_names): New variable.
12864         * print-tree.c (print_node): Simplify.
12865         * varpool.c (tls_model_names): New variable.
12866         (dump_varpool_node): Output tls model.
12868 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
12870         * ipa-visibility.c (function_and_variable_visibility): Disable
12871         temporarily local aliases for some targets.
12873 2014-06-20  Marek Polacek  <polacek@redhat.com>
12875         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
12876         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
12877         into SANITIZE_UNDEFINED.
12878         * doc/invoke.texi: Describe -fsanitize=bounds.
12879         * gimplify.c (gimplify_call_expr): Add gimplification of internal
12880         functions created in the FEs.
12881         * internal-fn.c: Move "internal-fn.h" after "tree.h".
12882         (expand_UBSAN_BOUNDS): New function.
12883         * internal-fn.def (UBSAN_BOUNDS): New internal function.
12884         * internal-fn.h: Don't define internal functions here.
12885         * opts.c (common_handle_option): Add -fsanitize=bounds.
12886         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
12887         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
12888         * tree-core.h: Define internal functions here.
12889         (struct tree_base): Add ifn field.
12890         * tree-pretty-print.c: Include "internal-fn.h".
12891         (dump_generic_node): Handle functions without CALL_EXPR_FN.
12892         * tree.c (get_callee_fndecl): Likewise.
12893         (build_call_expr_internal_loc): New function.
12894         * tree.def (CALL_EXPR): Update description.
12895         * tree.h (CALL_EXPR_IFN): Define.
12896         (build_call_expr_internal_loc): Declare.
12897         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
12898         types.
12899         (ubsan_type_descriptor): Change bool parameter to enum
12900         ubsan_print_style.  Adjust the code.  Add handling of
12901         UBSAN_PRINT_ARRAY.
12902         (ubsan_expand_bounds_ifn): New function.
12903         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
12904         (ubsan_build_overflow_builtin): Likewise.
12905         (instrument_bool_enum_load): Likewise.
12906         (ubsan_instrument_float_cast): Likewise.
12907         * ubsan.h (enum ubsan_print_style): New enum.
12908         (ubsan_expand_bounds_ifn): Declare.
12909         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
12911 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
12913         * config/rs6000/rs6000.md: Append `DONE' to preparation
12914         statements of `bswap' pattern splitters.
12916 2014-06-20  Tom de Vries  <tom@codesourcery.com>
12918         * target.def (call_fusage_contains_non_callee_clobbers): Update
12919         definition.
12920         * doc/tm.texi: Regenerate.
12922 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
12923             Max Ostapenko  <m.ostapenko@partner.samsung.com>
12925         PR sanitizer/61547
12926         * asan.c (instrument_strlen_call): Fixed instrumentation of
12927         trailing byte.
12929 2014-06-20  Martin Jambor  <mjambor@suse.cz>
12931         PR ipa/61540
12932         * ipa-prop.c (impossible_devirt_target): New function.
12933         (try_make_edge_direct_virtual_call): Use it, also instead of
12934         asserting.
12936 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
12937             Max Ostapenko  <m.ostapenko@partner.samsung.com>
12939         PR sanitizer/61530
12940         * asan.c (build_check_stmt): Add condition.
12942 2014-06-20  Martin Jambor  <mjambor@suse.cz>
12944         PR ipa/61211
12945         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
12946         expanded clones.
12948 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12950         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
12951         Update comments.
12952         (VCONQ): Make comment more helpful.
12953         (VCON): Delete.
12954         * config/aarch64/aarch64-simd.md
12955         (aarch64_sqdmulh_lane<mode>):
12956         Use VCOND for operands 2.  Update lane checking and flipping logic.
12957         (aarch64_sqrdmulh_lane<mode>): Likewise.
12958         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
12959         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
12960         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
12961         attribute of operand 3 to VCOND.
12962         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
12963         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
12964         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
12965         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
12966         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
12967         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
12968         define_insn.
12969         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
12970         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
12971         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
12972         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
12973         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
12974         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
12975         operand to VCOND.  Update lane flipping and bounds checking logic.
12976         (aarch64_sqdmlal2_lane<mode>): Likewise.
12977         (aarch64_sqdmlsl_lane<mode>): Likewise.
12978         (aarch64_sqdmull_lane<mode>): Likewise.
12979         (aarch64_sqdmull2_lane<mode>): Likewise.
12980         (aarch64_sqdmlal_laneq<mode>):
12981         Replace VCON usage with VCONQ.
12982         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
12983         (aarch64_sqdmlal2_laneq<mode>): Emit
12984         aarch64_sqdmlal2_laneq<mode>_internal insn.
12985         Replace VCON with VCONQ.
12986         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
12987         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12988         (aarch64_sqdmull_laneq<mode>): Emit
12989         aarch64_sqdmull_laneq<mode>_internal insn.
12990         Replace VCON with VCONQ.
12991         (aarch64_sqdmull2_laneq<mode>): Emit
12992         aarch64_sqdmull2_laneq<mode>_internal insn.
12993         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
12994         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
12995         of 3rd argument to int16x4_t.
12996         (vqdmlalh_lane_s16): Likewise.
12997         (vqdmlslh_lane_s16): Likewise.
12998         (vqdmull_high_lane_s16): Likewise.
12999         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
13000         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
13001         (vqdmlsl_lane_s16): Likewise.
13002         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
13003         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
13004         (vqdmlals_lane_s32): Likewise.
13005         (vqdmlsls_lane_s32): Likewise.
13006         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
13007         (vqdmulls_lane_s32): Likewise.
13008         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
13009         (vqdmlsl_lane_s32): Likewise.
13010         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
13011         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
13012         (vqrdmulhh_lane_s16): Likewise.
13013         (vqdmlsl_high_lane_s16): Likewise.
13014         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
13015         (vqdmlsl_high_lane_s32): Likewise.
13016         (vqrdmulhs_lane_s32): Likewise.
13018 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13020         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
13021         get_call_reg_set_usage.
13023 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13025         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
13026         it contains all call_used_regs.
13028 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13030         * final.c (collect_fn_hard_reg_usage): Add and use variable
13031         function_used_regs.
13033 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
13035         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
13036         (set_init_priority, get_init_priority, set_fini_priority,
13037         get_fini_priority): New methods.
13038         * tree.c (init_priority_for_decl): Remove.
13039         (init_ttree): Do not initialize init priority.
13040         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
13041         (decl_priority_info): Remove.
13042         (decl_init_priority_insert): Rewrite.
13043         (decl_fini_priority_insert): Rewrite.
13044         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
13045         tree_priority_map_marked_p): Remove.
13046         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
13047         * lto-streamer-out.c (hash_tree): Do not hash priorities.
13048         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
13049         not output priorities.
13050         (pack_ts_function_decl_value_fields): Likewise.
13051         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
13052         not input priorities.
13053         (unpack_ts_function_decl_value_fields): Likewise.
13054         * symtab.c (symbol_priority_map): Declare.
13055         (init_priority_hash): Declare.
13056         (symtab_unregister_node): Unregister from priority hash, too.
13057         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
13058         New methods.
13059         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
13060         (symbol_priority_info): New function.
13061         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
13062         New methods.
13063         * tree-core.h (tree_priority_map): Remove.
13065 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
13067         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
13068         0xff to uint64_t before shifting it up.
13070 2014-06-20  Julian Brown  <julian@codesourcery.com>
13071             Chung-Lin Tang  <cltang@codesourcery.com>
13073         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
13074         TARGET_THUMB1_ONLY. Add comments.
13076 2014-06-19  Tom de Vries  <tom@codesourcery.com>
13078         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
13079         return type to void.
13080         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
13082 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13084         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
13085         as "move", from depends_on.
13087 2014-06-19  Terry Guo  <terry.guo@arm.com>
13089         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
13090         stage.
13092 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
13094         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
13095         Remove cr5.
13096         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
13098 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
13100         PR target/61550
13101         * config/sh/sh.c (prepare_move_operands): Don't process TLS
13102         addresses here if reload in progress or completed.
13104 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
13106         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
13107         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
13108         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
13109         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
13110         (mips_register_priority): New function that implements the target
13111         hook TARGET_REGISTER_PRIORITY.
13112         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
13113         (mips_lra_p): Likewise for TARGET_LRA_P.
13114         (TARGET_REGISTER_PRIORITY): Define macro.
13115         (TARGET_SPILL_CLASS): Likewise.
13116         (TARGET_LRA_P): Likewise.
13117         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
13118         classes.
13119         (REG_CLASS_NAMES): Likewise.
13120         (REG_CLASS_CONTENTS): Likewise.
13121         (BASE_REG_CLASS): Use M16_SP_REGS.
13122         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
13123         New set attribute to enable alternatives depending on the register
13124         allocator used.
13125         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
13126         (*lea64): Disable pattern for MIPS16.
13127         * config/mips/mips.opt (mlra): New option.
13129 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
13131         * lra-constraints.c (base_to_reg): New function.
13132         (process_address): Use new function.
13134 2014-06-18  Tom de Vries  <tom@codesourcery.com>
13136         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
13137         * config/aarch64/aarch64.c
13138         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
13139         (aarch64_emit_call_insn): New function.
13140         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
13141         of emit_call_insn.
13142         * config/aarch64/aarch64.md (define_expand "call_internal")
13143         (define_expand "call_value_internal", define_expand "sibcall_internal")
13144         (define_expand "sibcall_value_internal"): New.
13145         (define_expand "call", define_expand "call_value")
13146         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
13147         expand variant and aarch64_emit_call_insn.
13149 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
13150             Tom de Vries  <tom@codesourcery.com>
13152         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
13153         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13154         Redefine to true.
13155         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
13156         clobbers to CALL_INSN_FUNCTION_USAGE.
13157         (define_expand "sibcall_internal")
13158         (define_expand "sibcall_value_internal"): New.
13159         (define_expand "call", define_expand "call_value"): Add argument to
13160         arm_emit_call_insn.
13161         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
13162         (define_expand "sibcall_value"): Use sibcall_value_internal and
13163         arm_emit_call_insn.
13165 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13167         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
13169 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13171         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
13172         __udivmoddi4.
13174 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13176         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
13177         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
13178         annotations. Fix DWARF information.
13180 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13182         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
13183         __udivmoddi4, and fixups for negative operands.
13185 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13187         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
13189 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13191         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
13192         to __udivmoddi4.
13194 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13196         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
13197         manipulation.
13199 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13201         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
13202         describing register usage on function entry and exit.
13204 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13206         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
13207         (__aeabi_ldivmod): Fix whitespace.
13209 2014-06-18  Andreas Schwab  <schwab@suse.de>
13211         * doc/md.texi (Standard Names): Use @itemx for grouped items.
13212         Remove blank line after @item.
13214 2014-06-18  Richard Henderson  <rth@redhat.com>
13216         PR target/61545
13217         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
13219 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13221         * config/arm/arm.c (neon_vector_mem_operand): Allow register
13222         POST_MODIFY for neon loads and stores.
13223         (arm_print_operand): Output post-index register for neon loads and
13224         stores.
13226 2014-06-18  Richard Biener  <rguenther@suse.de>
13228         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
13230 2014-06-18  Richard Biener  <rguenther@suse.de>
13232         * tree-pass.h (make_pass_dce_loop): Remove.
13233         * passes.def: Replace pass_dce_loop with pass_dce.
13234         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
13235         changed free niter estimates and reset the scev cache.
13236         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
13237         make_pass_dce_loop): Remove.
13238         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
13239         (fini_copy_prop): Return whether something changed.  Always
13240         let substitute_and_fold perform DCE and free niter estimates
13241         and reset the scev cache if so.
13242         (execute_copy_prop): If sth changed schedule cleanup-cfg.
13243         (pass_data_copy_prop): Do not unconditionally schedule
13244         cleanup-cfg or update-ssa.
13246 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
13248         PR tree-optimization/61518
13249         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13250         reduction var is used in reduction stmt or phi-function only.
13252 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13254         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
13256 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13258         PR tree-optimization/61517
13259         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
13260         whose rhs's first tree is the source expression instead of the
13261         expression itself.
13262         (find_bswap_or_nop): Likewise.
13263         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
13264         gimple stmt whose rhs's first tree is the source. In the memory source
13265         case, move the stmt to be replaced close to one of the original load to
13266         avoid the problem of a store between the load and the stmt's original
13267         location.
13268         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
13269         signature.
13271 2014-06-18  Andreas Schwab  <schwab@suse.de>
13273         PR rtl-optimization/54555
13274         * postreload.c (move2add_use_add2_insn): Substitute
13275         STRICT_LOW_PART only if it is cheaper.
13277 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
13279         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
13280         Do not use unspec as call operand.  Use memory_operand instead of
13281         memory_nox32_operand and add "m" operand constraint.  Disable
13282         pattern for TARGET_X32.
13283         (*sibcall_pop_memory): Ditto.
13284         (*sibcall_value_memory): Ditto.
13285         (*sibcall_value_pop_memory): Ditto.
13286         (sibcall peepholes): Merge SImode and DImode patterns using
13287         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
13288         Disable pattern for TARGET_X32.  Check if eliminated register is
13289         really dead after call insn.  Generate call RTX without unspec operand.
13290         (sibcall_value peepholes): Ditto.
13291         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
13292         instead of memory_nox32_operand.  Check if eliminated register is
13293         really dead after call insn. Generate call RTX without unspec operand.
13294         (sibcall_value_pop peepholes): Ditto.
13295         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
13297 2014-06-18  Terry Guo  <terry.guo@arm.com>
13299         PR target/61544
13300         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
13301         reach the head.
13303 2014-06-18  Olivier Hainque  <hainque@adacore.com>
13305         * tree-core.h (tree_block): Add an "end_locus" field, allowing
13306         memorization of the end of block source location.
13307         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
13308         * gimplify.c (gimplify_bind_expr): Propagate the block start and
13309         end source location info we have on the block entry/exit code we
13310         generate.
13312 2014-06-18  Richard Biener  <rguenther@suse.de>
13314         * common.opt (fssa-phiopt): New option.
13315         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
13316         but not with -Og.
13317         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
13318         * doc/invoke.texi (-fssa-phiopt): Document.
13320 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13322         * genattrtab.c (n_bypassed): New variable.
13323         (process_bypasses): Initialise n_bypassed.
13324         Count number of bypassed reservations.
13325         (make_automaton_attrs): Allocate space for bypassed reservations
13326         rather than number of bypasses.
13328 2014-06-18  Richard Biener  <rguenther@suse.de>
13330         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
13331         we propagated anything.
13332         (substitute_and_fold_dom_walker::before_dom_children): Something
13333         changed if we propagated into PHI arguments.
13334         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
13335         we removed a stmt.
13337 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
13339         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
13340         vector case.
13341         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
13342         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
13343         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
13344         Introduces alternative way of loads group permutaions.
13345         (vect_transform_grouped_load): Try alternative way of permutations.
13347 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
13349         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
13350         changed in ORT_TARGET region, don't jump to do_outer.
13351         (struct gimplify_adjust_omp_clauses_data): New type.
13352         (gimplify_adjust_omp_clauses_1): Adjust for data being
13353         a struct gimplify_adjust_omp_clauses_data pointer instead
13354         of tree *.  Pass pre_p as a new argument to
13355         lang_hooks.decls.omp_finish_clause hook.
13356         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
13357         splay_tree_foreach to pass both list_p and pre_p.
13358         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
13359         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
13360         gimplify_adjust_omp_clauses callers.
13361         * langhooks.c (lhd_omp_finish_clause): New function.
13362         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
13363         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
13364         * langhooks.h (struct lang_hooks_for_decls): Add a new
13365         gimple_seq * argument to omp_finish_clause hook.
13366         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
13367         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
13368         (scan_omp_parallel, lower_omp_for): When adding
13369         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
13370         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
13371         * tree-nested.c (convert_nonlocal_omp_clauses,
13372         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
13373         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
13375 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
13377         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
13378         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
13380 2014-06-17  Xinliang David Li  <davidxl@google.com>
13382         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
13383         * passes.c (pass_init_dump_file): Do not set initialize
13384         flag to false unconditionally.
13386 2014-06-17  Richard Biener  <rguenther@suse.de>
13388         * genopinit.c (main): Use vec<>::qsort method.
13389         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
13390         Likewise.
13391         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
13393 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
13395         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
13396         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
13397         (mips_move_to_gpr_cost): Remove ST_REGS case.
13398         (mips_move_from_gpr_cost): Likewise.
13399         (mips_register_move_cost): Likewise.
13400         (mips_secondary_reload_class): Likewise.
13402 2014-06-17  Richard Biener  <rguenther@suse.de>
13404         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
13405         (pass_all_optimizations): Move 3rd copy-prop pass from after
13406         fre to before ifcombine/phiopt.
13408 2014-06-17  Richard Biener  <rguenther@suse.de>
13410         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
13411         and allow all blocks to be forwarders.
13413 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
13415         PR target/61483
13416         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
13417         variable 'size'; calculate 'size' right in the front; use
13418         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
13419         pcum->aapcs_stack_words.
13421 2014-06-17  Nick Clifton  <nickc@redhat.com>
13423         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
13424         (umulhi3, mulsidi3, umulsidi3): Likewise.
13426 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
13428         PR middle-end/61508
13429         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
13430         check for section name.
13432 2014-06-17  Richard Biener  <rguenther@suse.de>
13434         * tree-ssa-propagate.c: Include domwalk.h.
13435         (substitute_and_fold): Outline main worker into a domwalker ...
13436         (substitute_and_fold_dom_walker::before_dom_children): ... here.
13437         Schedule stmts we can fully propagate for removal.  Remove
13438         poor-mans DCE.
13439         (substitute_and_fold): Apply a dominator walk to perform
13440         substitution.  Process stmts scheduled for removal here.
13442 2014-06-17  Richard Biener  <rguenther@suse.de>
13444         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
13445         of PHI node moving.
13447 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
13449         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
13450         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
13451         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13452         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
13453         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
13454         TARGET_HARD_FLOAT.
13455         (get_fpscr) : Likewise.
13457 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
13459         PR rtl-optimization/61325
13460         * lra-constraints.c (valid_address_p): Add forward declaration.
13461         (simplify_operand_subreg): Check address validity before and after
13462         alter_reg of memory subreg.
13464 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
13466         * config/i386/i386.c (decide_alg): Correctly handle
13467         maximum size of stringop algorithm.
13469 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
13471         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
13473 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
13475         PR rtl-optimization/61522
13476         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
13478 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
13480         Revert:
13481         * symtab.c (symtab_node::reset_section): New method.
13482         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
13483         for localization.
13484         * cgraph.h (reset_section): Declare.
13485         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
13486         do not consider comdat locals.
13487         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
13488         for new symbol.
13489         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
13490         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
13491         reset sections of symbols dragged out of the comdats.
13492         (function_and_variable_visibility): Reset sections of
13493         localized symbols.
13495 2014-06-16  Richard Biener  <rguenther@suse.de>
13497         PR tree-optimization/61482
13498         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
13499         [-INF(OVF), +INF(OVF)] range.
13501 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13503         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
13504         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
13505         handling 32-bit multiplication.
13507 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
13509         PR middle-end/61430
13510         * lra-lives.c (process_bb_lives): Skip creating copy during
13511         insn scan when src/dest has constrained to same regno.
13513 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
13515         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
13516         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
13518 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
13520         * asan.c (check_func): New function.
13521         (maybe_create_ssa_name): Likewise.
13522         (build_check_stmt_with_calls): Likewise.
13523         (use_calls_p): Likewise.
13524         (report_error_func): Change interface.
13525         (build_check_stmt): Allow non-integer lengths; add support
13526         for new parameter.
13527         (asan_instrument): Likewise.
13528         (instrument_mem_region_access): Moved code to build_check_stmt.
13529         (instrument_derefs): Likewise.
13530         (instrument_strlen_call): Likewise.
13531         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
13532         * doc/invoke.texi: Describe new parameter.
13533         * params.def: Define new parameter.
13534         * params.h: Likewise.
13535         * sanitizer.def: Describe new builtins.
13537 2014-06-16  Richard Biener  <rguenther@suse.de>
13539         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13540         Make all defs available at the end.
13541         (eliminate): If we remove a PHI node schedule cfg-cleanup.
13543 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
13545         PR plugins/45078
13546         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
13548 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
13550         PR bootstrap/61516
13551         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
13552         initialization.  Replace remaining use of uid.
13554 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
13556         * c-family/c-common.c (handle_tls_model_attribute): Use
13557         set_decl_tls_model.
13558         * c-family/c-common.c (handle_tls_model_attribute): Use
13559         set_decl_tls_model.
13560         * cgraph.h (struct varpool_node): Add tls_model.
13561         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
13562         * tree.h (DECL_TLS_MODEL): Update.
13563         (DECL_THREAD_LOCAL_P): Check that variable is static.
13564         (decl_tls_model): Declare.
13565         (set_decl_tls_model): Declare.
13566         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
13567         set symbol prorperties.
13568         (get_emutls_init_templ_addr): Cleanup.
13569         (new_emutls_decl): Update.
13570         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
13571         (lto_input_varpool_node): Likewise.
13572         * lto-streamer-out.c (hash_tree): Likewise.
13573         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
13574         not stream DECL_TLS_MODEL.
13575         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
13576         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
13578 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13580         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
13582 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13584         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
13585         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
13586         lists.
13587         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
13588         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
13589         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
13590         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
13591         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
13592         (df_get_artificial_defs, df_get_artificial_uses)
13593         (df_single_def, df_single_use): Update accordingly.
13594         (df_refs_chain_dump): Take the first element in a linked list as
13595         parameter, rather than a pointer to an array of pointers.
13596         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
13597         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
13598         (df_chain_create_bb_process_use): Likewise.
13599         (df_md_bb_local_compute_process_def): Likewise.
13600         * fwprop.c (process_defs, process_uses): Likewise.
13601         (register_active_defs, update_uses): Likewise.
13602         (forward_propagate_asm): Update for new df_ref linking.
13603         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
13604         (df_null_ref_rec, df_null_mw_rec): Likewise.
13605         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
13606         explicitly.
13607         (df_scan_free_bb_info): Remove check for null artificial_defs.
13608         (df_install_ref_incremental): Adjust for new df_ref linking.
13609         Use a single-element insertion rather than a full sort.
13610         (df_ref_chain_delete_du_chain): Take the first element
13611         in a linked list as parameter, rather than a pointer to an array of
13612         pointers.
13613         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
13614         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
13615         (df_insn_info_delete): Remove check for null defs and call to
13616         df_scan_free_mws_vec.
13617         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
13618         null rather than df_null_*_rec.
13619         (df_insn_rescan_debug_internal): Likewise, and update null
13620         checks in the same way.  Remove check for null defs.
13621         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
13622         Move a single element rather doing a full sort.
13623         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
13624         linking.
13625         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
13626         Initialize df_ref and df_mw_hardreg lists to null rather than
13627         df_null_*_rec.
13628         (df_ref_compare): Take df_refs as parameter, transferring the
13629         old interface to...
13630         (df_ref_ptr_compare): ...this new function.
13631         (df_sort_and_compress_refs): Update accordingly.
13632         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
13633         old interface to...
13634         (df_mw_ptr_compare): ...this new function.
13635         (df_sort_and_compress_mws): Update accordingly.
13636         (df_install_refs, df_install_mws): Return a linked list rather than
13637         an array of pointers.
13638         (df_refs_add_to_chains): Assert that old lists are empty rather
13639         than freeing them.
13640         (df_insn_refs_verify): Don't handle null defs speciailly.
13641         * web.c (union_match_dups): Update for new df_ref linking.
13643 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13645         * df.h (df_ref_create, df_ref_remove): Delete.
13646         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
13647         (df_ref_remove): Likewise.
13649 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13651         * df.h (df_single_def, df_single_use): New functions.
13652         * ira.c (find_moveable_pseudos): Use them.
13654 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13656         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
13657         * df-problems.c (df_note_bb_compute): Use it.
13658         * regstat.c (regstat_bb_compute_ri): Likewise.
13660 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13662         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
13663         * cse.c (cse_extended_basic_block): Use them.
13664         * dce.c (mark_artificial_use): Likewise.
13665         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
13666         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
13667         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
13668         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
13669         (df_simulate_initialize_backwards): Likewise.
13670         (df_simulate_finalize_backwards): Likewise.
13671         (df_simulate_initialize_forwards): Likewise.
13672         (df_md_simulate_artificial_defs_at_top): Likewise.
13673         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
13674         * regrename.c (init_rename_info): Likewise.
13675         * regstat.c (regstat_bb_compute_ri): Likewise.
13676         (regstat_bb_compute_calls_crossed): Likewise.
13678 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
13680         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
13681         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
13682         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
13683         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
13684         * combine.c (create_log_links): Likewise.
13685         * compare-elim.c (find_flags_uses_in_insn): Likewise.
13686         (try_eliminate_compare): Likewise.
13687         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
13688         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
13689         (remove_reg_equal_equiv_notes_for_defs): Likewise.
13690         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
13691         (word_dce_process_block, dce_process_block): Likewise.
13692         * ddg.c (def_has_ccmode_p): Likewise.
13693         * df-core.c (df_bb_regno_first_def_find): Likewise.
13694         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
13695         * df-problems.c (df_rd_simulate_one_insn): Likewise.
13696         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
13697         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
13698         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
13699         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
13700         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
13701         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
13702         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
13703         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
13704         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
13705         * fwprop.c (local_ref_killed_between_p): Likewise.
13706         (all_uses_available_at, free_load_extend): Likewise.
13707         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
13708         * hw-doloop.c (scan_loop): Likewise.
13709         * ifcvt.c (dead_or_predicable): Likewise.
13710         * init-regs.c (initialize_uninitialized_regs): Likewise.
13711         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
13712         (process_bb_node_lives): Likewise.
13713         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
13714         (find_moveable_pseudos): Likewise.
13715         * loop-invariant.c (check_dependencies, record_uses): Likewise.
13716         * recog.c (peep2_find_free_register): Likewise.
13717         * ree.c (get_defs): Likewise.
13718         * regstat.c (regstat_bb_compute_ri): Likewise.
13719         (regstat_bb_compute_calls_crossed): Likewise.
13720         * sched-deps.c (find_inc, find_mem): Likewise.
13721         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
13722         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
13723         * shrink-wrap.c (requires_stack_frame_p): Likewise.
13724         (prepare_shrink_wrap): Likewise.
13725         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
13726         * web.c (union_defs, pass_web::execute): Likewise.
13727         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
13728         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
13730 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
13732         * lra-assign.c (assign_by_spills): Add code to assign vector regs
13733         to inheritance pseudos.
13734         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
13736 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
13738         PR target/61415
13739         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
13740         (BU_MISC_2): Rename to ...
13741         (BU_LDBL128_2): ... this.
13742         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
13743         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
13744         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13745         RS6000_BTM_LDBL128.
13746         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
13747         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
13748         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
13749         (unpacktf_1): Likewise.
13750         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
13751         (__builtin_longdouble_dw1): Likewise.
13752         * doc/sourcebuild.texi (longdouble128): Document.
13754 2014-06-13  Jeff Law  <law@redhat.com>
13756         PR rtl-optimization/61094
13757         PR rtl-optimization/61446
13758         * ree.c (combine_reaching_defs): Get the mode for the copy from
13759         the extension insn rather than the defining insn.
13761 2014-06-13  Dehao Chen  <dehao@google.com>
13763         * dwarf2out.c (add_linkage_name): Emit more linkage name.
13765 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
13767         * doc/install.texi (--enable-linker-plugin-configure-flags)
13768         (--enable-linker-plugin-flags): Document new flags.
13770 2014-06-13  Martin Jambor  <mjambor@suse.cz>
13772         PR ipa/61186
13773         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
13774         cache_token if returning early.
13776 2014-06-13  Nick Clifton  <nickc@redhat.com>
13778         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
13779         requested alignment is active.
13780         (LABEL_ALIGN): Likewise.
13781         (LOOP_ALIGN): Likewise.
13783 2014-06-13  Richard Biener  <rguenther@suse.de>
13785         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13786         Rewrite to propagate the VN result into all uses where
13787         possible and to remove stmts becoming dead because of that.
13788         (eliminate): Generalize stmt removal handling, remove in
13789         reverse dominator order to support proper debug stmt
13790         generation.  Update stmts before removing stmts.
13791         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
13793 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13795         PR tree-optimization/61375
13796         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
13797         symbolic number cannot be represented in an uint64_t.
13798         (find_bswap_or_nop_1): Likewise.
13800 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
13802         * symtab.c (symtab_node::reset_section): New method.
13803         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
13804         for localization.
13805         * cgraph.h (reset_section): Declare.
13806         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
13807         do not consider comdat locals.
13808         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
13809         for new symbol.
13810         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
13811         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
13812         reset sections of symbols dragged out of the comdats.
13813         (function_and_variable_visibility): Reset sections of
13814         localized symbols.
13816 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
13818         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
13819         to use symtab and decl_binds_to_current_def_p
13820         * tree-vectorizer.c (increase_alignment): Increase alignment
13821         of alias target, too.
13823 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
13825         PR middle-end/61486
13826         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
13827         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
13828         if outer combined construct is distribute.
13829         (gimplify_omp_for): For OMP_DISTRIBUTE set
13830         gimplify_omp_ctxp->distribute.
13831         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
13832         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
13833         mapping into decl map.
13835 2014-06-12  Jason Merrill  <jason@redhat.com>
13837         * common.opt (fabi-version): Change default to 0.
13839 2014-06-12  Jason Merrill  <jason@redhat.com>
13841         * toplev.c (process_options): Reject -fabi-version=1.
13843 2014-06-12  Jeff Law  <law@redhat.com>
13845         PR tree-optimization/61009
13846         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
13847         value when we stop processing a block due to problematic PHIs.
13849 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
13851         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
13852         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
13853         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
13854         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
13855         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
13856         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
13857         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
13858         are not in the spec.
13860 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
13862         PR target/59843
13863         * config/aarch64/aarch64-modes.def: Add V1DFmode.
13864         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
13865         Support V1DFmode.
13867 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
13869         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
13871 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
13873         PR target/61443
13874         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
13875         loading from address spaces.
13877 2014-06-12  Martin Liska  <mliska@suse.cz>
13879         PR ipa/61462
13880         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
13881         statement is reachable.
13883 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
13885         * symtab.c (section_hash): New hash.
13886         (symtab_unregister_node): Clear section before freeing.
13887         (hash_section_hash_entry): New haser.
13888         (eq_sections): New function.
13889         (symtab_node::set_section_for_node): New method.
13890         (set_section_1): Update.
13891         (symtab_node::set_section): Take string instead of tree as parameter.
13892         (symtab_resolve_alias): Update.
13893         * cgraph.h (section_hash_entry_d): New structure.
13894         (section_hash_entry): New typedef.
13895         (cgraph_node): Change comdat_group_ to x_comdat_group,
13896         change section_ to x_section and turn into section_hash_entry;
13897         update accestors; put set_section_for_node offline.
13898         * tree.c (decl_section_name): Turn into string.
13899         (set_decl_section_name): Change parameter to be string.
13900         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
13901         * sdbout.c (sdbout_one_type): Update.
13902         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
13903         * varasm.c (IN_NAMED_SECTION, get_named_section,
13904         resolve_unique_section, hot_function_section, get_named_text_section,
13905         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
13906         make_decl_rtl, default_unique_section): Update.
13907         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
13908         (c6x_elf_unique_section): Update.
13909         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
13910         * config/pa/pa.c (pa_function_section): Update.
13911         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
13912         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
13913         * config/arc/arc.c (arc_in_small_data_p): Update.
13914         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
13915         * config/mcore/mcore.c (mcore_unique_section): Update.
13916         * config/mips/mips.c (mips16_build_function_stub): Update.
13917         (mips16_build_call_stub): Update.
13918         (mips_function_rodata_section): Update.
13919         (mips_in_small_data_p): Update.
13920         * config/score/score.c (score_in_small_data_p): Update.
13921         * config/rx/rx.c (rx_in_small_data): Update.
13922         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
13923         (rs6000_xcoff_asm_named_section): Update.
13924         (rs6000_xcoff_unique_section): Update.
13925         * config/frv/frv.c (frv_string_begins_with): Update.
13926         (frv_in_small_data_p): Update.
13927         * config/v850/v850.c (v850_encode_data_area): Update.
13928         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
13929         (bfin_handle_l1_data_attribute): Update.
13930         (bfin_handle_l2_attribute): Update.
13931         * config/mep/mep.c (mep_unique_section): Update.
13932         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
13933         Update.
13934         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
13935         (h8300_handle_tiny_data_attribute): Update.
13936         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
13937         (m32r_in_small_data_p): Update.
13938         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
13939         * config/i386/i386.c (ix86_in_large_data_p): Update.
13940         * config/i386/winnt.c (i386_pe_unique_section): Update.
13941         * config/darwin.c (darwin_function_section): Update.
13942         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
13943         * tree-emutls.c (get_emutls_init_templ_addr): Update.
13944         (new_emutls_decl): Update.
13945         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
13946         input_varpool_node): Update.
13947         (ead_string_cst): Turn to ...
13948         (read_string): ... this one.
13949         * dwarf2out.c (secname_for_decl): Update.
13950         * asan.c (asan_protect_global): Update.
13952 2014-06-11  DJ Delorie  <dj@redhat.com>
13954         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
13955         cache lines.
13956         * config/rx/rx.c (rx_option_override): Likewise.
13957         (rx_align_for_label): Likewise.
13959         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
13961 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
13963         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
13964         prototype.
13966 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
13968         * common.md: New file.
13969         * doc/md.texi: Update description of generic, machine-independent
13970         constraints.
13971         * config/s390/constraints.md (e): Delete.
13972         * Makefile.in (md_file): Include common.md.
13973         * config/m32c/t-m32c (md_file): Likewise.
13974         * genpreds.c (general_mem): New array.
13975         (generic_constraint_letters): Remove constraints now defined by
13976         common.md.
13977         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
13978         Allow the first character to be '<' or '>' as well.
13979         * genoutput.c (general_mem): New array.
13980         (indep_constraints): Remove constraints now defined by common.md.
13981         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
13982         Remove special handling of 'm'.
13983         * ira-costs.c (record_reg_classes): Remove special handling of
13984         constraints now defined by common.md.
13985         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13986         * ira-lives.c (single_reg_class): Likewise.
13987         (ira_implicitly_set_insn_hard_regs): Likewise.
13988         * lra-constraints.c (reg_class_from_constraints): Likewise.
13989         (process_alt_operands, process_address, curr_insn_transform): Likewise.
13990         * postreload.c (reload_cse_simplify_operands): Likewise.
13991         * reload.c (push_secondary_reload, scratch_reload_class)
13992         (find_reloads, alternative_allows_const_pool_ref): Likewise.
13993         * reload1.c (maybe_fix_stack_asms): Likewise.
13994         * targhooks.c (default_secondary_reload): Likewise.
13995         * stmt.c (parse_output_constraint): Likewise.
13996         * recog.c (preprocess_constraints): Likewise.
13997         (constrain_operands, peep2_find_free_register): Likewise.
13998         (asm_operand_ok): Likewise, but add a comment saying why 'o'
13999         must be handled specially.
14001 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14003         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
14004         * genpreds.c (have_const_dbl_constraints): Delete.
14005         (add_constraint): Don't set it.
14006         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
14007         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
14008         constraints using the lookup_constraint logic.
14009         * ira-lives.c (single_reg_class): Likewise.
14010         * ira.c (ira_setup_alts): Likewise.
14011         * lra-constraints.c (process_alt_operands): Likewise.
14012         * recog.c (asm_operand_ok, constrain_operands): Likewise.
14013         * reload.c (find_reloads): Likewise.
14015 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14017         * genpreds.c (const_int_start, const_int_end): New variables.
14018         (choose_enum_order): Output CONST_INT constraints before memory
14019         constraints.
14020         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
14021         Add CT_CONST_INT.
14022         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
14023         * ira.c (ira_setup_alts): Likewise.
14024         * lra-constraints.c (process_alt_operands): Likewise.
14025         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14026         * reload.c (find_reloads): Likewise.
14028 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14030         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
14031         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
14032         * recog.c (preprocess_constraints): Update accordingly.
14034 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14036         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
14037         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
14038         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
14039         * genpreds.c (print_type_tree): New function.
14040         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
14041         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
14042         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
14043         Write out enum constraint_type and get_constraint_type.
14044         * lra-constraints.c (satisfies_memory_constraint_p): Take a
14045         constraint_num rather than a constraint string.
14046         (satisfies_address_constraint_p): Likewise.
14047         (reg_class_from_constraints): Avoid old constraint macros.
14048         (process_alt_operands, process_address_1): Likewise.
14049         (curr_insn_transform): Likewise.
14050         * ira-costs.c (record_reg_classes): Likewise.
14051         (record_operand_costs): Likewise.
14052         * ira-lives.c (single_reg_class): Likewise.
14053         (ira_implicitly_set_insn_hard_regs): Likewise.
14054         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14055         * postreload.c (reload_cse_simplify_operands): Likewise.
14056         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14057         (constrain_operands, peep2_find_free_register): Likewise.
14058         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
14059         (find_reloads, alternative_allows_const_pool_ref): Likewise.
14060         * reload1.c (maybe_fix_stack_asms): Likewise.
14061         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
14062         * targhooks.c (default_secondary_reload): Likewise.
14063         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
14064         to EXTRA_CONSTRAINT_STR.
14065         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
14067 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14069         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
14070         (write_constraint_satisfied_p_array): ...this new function.
14071         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
14072         an array.
14073         (write_insn_preds_c): Update accordingly.
14075 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14077         * genpreds.c (write_lookup_constraint): Rename to...
14078         (write_lookup_constraint_1): ...this.
14079         (write_lookup_constraint_array): New function.
14080         (write_tm_preds_h): Define lookup_constraint as an inline function
14081         that uses write_lookup_constraint_array where possible.
14082         (write_insn_preds_c): Update for the changes above.
14084 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14086         * doc/md.texi (regclass_for_constraint): Rename to...
14087         (reg_class_for_constraint): ...this.
14088         * genpreds.c (num_constraints, enum_order, register_start)
14089         (register_end, satisfied_start, memory_start, memory_end)
14090         (address_start, address_end): New variables.
14091         (add_constraint): Count the number of constraints.
14092         (choose_enum_order): New function.
14093         (write_enum_constraint_num): Iterate over enum_order.
14094         (write_regclass_for_constraint): Rename to...
14095         (write_reg_class_for_constraint_1): ...this and update output
14096         accordingly.
14097         (write_constraint_satisfied_p): Rename to...
14098         (write_constraint_satisfied_p_1): ...this and update output
14099         accordingly.  Do nothing if all extra constraints are register
14100         constraints.
14101         (write_insn_extra_memory_constraint): Delete.
14102         (write_insn_extra_address_constraint): Delete.
14103         (write_range_function): New function.
14104         (write_tm_preds_h): Define constraint_satisfied_p and
14105         reg_class_for_constraint as inline functions that do a range check
14106         before calling the out-of-line function.  Use write_range_function
14107         to implement insn_extra_{register,memory,address}_constraint,
14108         the first of which is new.
14109         (write_insn_preds_c): Update after above changes to write_* functions.
14110         (main): Call choose_enum_order.
14112 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14114         PR tree-optimization/61306
14115         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
14116         expression instead of its size.
14117         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
14118         false to prevent optimization when the result is unpredictable due to
14119         arithmetic right shift of signed type with highest byte is set.
14120         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
14121         (init_symbolic_number): Likewise.
14122         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
14123         when the result is unpredictable due to sign extension.
14125 2014-06-11  Terry Guo  <terry.guo@arm.com>
14127         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
14128         (*thumb1_addsi3): Ditto.
14129         (*thumb_subdi3): Ditto.
14130         (thumb1_subsi3_insn): Ditto.
14131         (*thumb_mulsi3): Ditto.
14132         (*thumb_mulsi3_v6): Ditto.
14133         (*thumb1_andsi3_insn): Ditto.
14134         (thumb1_bicsi3): Ditto.
14135         (*thumb1_iorsi3_insn): Ditto.
14136         (*thumb1_xorsi3_insn): Ditto.
14137         (*thumb1_ashlsi3): Ditto.
14138         (*thumb1_ashrsi3): Ditto.
14139         (*thumb1_lshrsi3): Ditto.
14140         (*thumb1_rotrsi3): Ditto.
14141         (*thumb1_negdi2): Ditto.
14142         (*thumb1_negsi2): Ditto.
14143         (*thumb1_abssi2): Ditto.
14144         (*thumb1_neg_abssi2): Ditto.
14145         (*thumb1_one_cmplsi2): Ditto.
14146         (*thumb1_zero_extendhisi2): Ditto.
14147         (*thumb1_zero_extendqisi2): Ditto.
14148         (*thumb1_zero_extendqisi2_v6): Ditto.
14149         (thumb1_extendhisi2): Ditto.
14150         (thumb1_extendqisi2): Ditto.
14151         (*thumb1_movdi_insn): Ditto.
14152         (*thumb1_movsi_insn): Ditto.
14153         (*thumb1_movhi_insn): Ditto.
14154         (thumb_movhi_clobber): Ditto.
14155         (*thumb1_movqi_insn): Ditto.
14156         (*thumb1_movhf): Ditto.
14157         (*thumb1_movsf_insn): Ditto.
14158         (*thumb_movdf_insn): Ditto.
14159         (movmem12b): Ditto.
14160         (movmem8b): Ditto.
14161         (cbranchqi4): Ditto.
14162         (cbranchsi4_insn): Ditto.
14163         (cbranchsi4_scratch): Ditto.
14164         (*negated_cbranchsi4): Ditto.
14165         (*tbit_cbranch): Ditto.
14166         (*tlobits_cbranch): Ditto.
14167         (*tstsi3_cbranch): Ditto.
14168         (*cbranchne_decr1): Ditto.
14169         (*addsi3_cbranch): Ditto.
14170         (*addsi3_cbranch_scratch): Ditto.
14171         (*thumb_cmpdi_zero): Ditto.
14172         (cstoresi_eq0_thumb1): Ditto.
14173         (cstoresi_ne0_thumb1): Ditto.
14174         (*cstoresi_eq0_thumb1_insn): Ditto.
14175         (*cstoresi_ne0_thumb1_insn): Ditto.
14176         (cstoresi_nltu_thumb1): Ditto.
14177         (cstoresi_ltu_thumb1): Ditto.
14178         (thumb1_addsi3_addgeu): Ditto.
14179         (*thumb_jump): Ditto.
14180         (*call_reg_thumb1_v5): Ditto.
14181         (*call_reg_thumb1): Ditto.
14182         (*call_value_reg_thumb1_v5): Ditto.
14183         (*call_value_reg_thumb1): Ditto.
14184         (*call_insn): Ditto.
14185         (*call_value_insn): Ditto.
14186         (thumb1_casesi_internal_pic): Ditto.
14187         (thumb1_casesi_dispatch): Ditto.
14188         (*thumb1_indirect_jump): Ditto.
14189         (prologue_thumb1_interwork): Ditto.
14190         (*epilogue_insns): Ditto.
14191         (consttable_1): Ditto.
14192         (consttable_2): Ditto.
14193         (tablejump): Ditto.
14194         (*thumb1_tablejump): Ditto.
14195         (thumb_eh_return): Ditto.
14196         (define_peephole2): Two of them are thumb1 only and got moved into
14197         new file thumb1.md.
14198         (define_split): Six of them are thumb1 only and got moved into new
14199         file thumb1.md.
14200         * config/arm/thumb1.md: New file comprised of above thumb1 only
14201         patterns.
14203 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14205         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
14206         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
14207         dependencies.
14208         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
14209         (aarch64_crc_builtin_datum): New struct.
14210         (aarch64_crc_builtin_data): New.
14211         (aarch64_init_crc32_builtins): New function.
14212         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
14213         (aarch64_crc32_expand_builtin): New.
14214         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
14215         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14216         __ARM_FEATURE_CRC32 when appropriate.
14217         (TARGET_CRC32): Define.
14218         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
14219         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
14220         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
14221         (aarch64_<crc_variant>): New pattern.
14222         * config/aarch64/arm_acle.h: New file.
14223         * config/aarch64/iterators.md (CRC): New int iterator.
14224         (crc_variant, crc_mode): New int attributes.
14225         * doc/aarch64-acle-intrinsics.texi: New file.
14226         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
14227         Include aarch64-acle-intrinsics.texi.
14229 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
14231         * tree-vect-data-refs.c (vect_grouped_store_supported): New
14232         check for stores group of length 3.
14233         (vect_permute_store_chain): New permutations for stores group of
14234         length 3.
14235         * tree-vect-stmts.c (vect_model_store_cost): Change cost
14236         of vec_perm_shuffle for the new permutations.
14238 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
14240         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
14241         table rewriting temporarily on targets not supporting ONE_ONLY.
14243 2014-06-11  Richard Biener  <rguenther@suse.de>
14245         PR middle-end/61437
14246         Revert
14247         2014-06-04  Richard Biener  <rguenther@suse.de>
14249         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
14250         TREE_PUBLIC and DECL_EXTERNAL decls.
14252 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
14254         * varasm.c (set_implicit_section): New function.
14255         (resolve_unique_section): Use it to set implicit section
14256         for aliases, too.
14257         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
14258         (default_function_section): Likewise.
14259         (decl_binds_to_current_def_p): Constify argument.
14260         * varasm.h (decl_binds_to_current_def_p): Update prototype.
14261         * asan.c (asan_protect_global): Use
14262         symtab_get_node (decl)->implicit_section.
14263         * symtab.c (dump_symtab_base): Dump implicit sections.
14264         (verify_symtab_base): Verify sanity of sectoins and comdats.
14265         (symtab_resolve_alias): Alias share the section of its target.
14266         (set_section_1): New function.
14267         (symtab_node::set_section): Move here, recurse to aliases.
14268         (verify_symtab): Check for duplicated symtab lists.
14269         * tree-core.h (implicit_section_name_p): Remove.
14270         * tree-vect-data-refs.c: Include varasm.h.
14271         (vect_can_force_dr_alignment_p): Fix conditional on when
14272         decl bints to current definition; use
14273         symtab_get_node (decl)->implicit_section.
14274         * cgraph.c (cgraph_make_node_local_1): Fix section set.
14275         * cgraph.h (struct symtab_node): Add implicit_section.
14276         (set_section): Rename to ...
14277         (set_section_for_node): ... this one.
14278         (set_section): Declare.
14279         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
14280         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
14281         input_overwrite_node, input_varpool_node): Stream implicit_section.
14282         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
14283         removal; it will fail in LTO.
14285 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14287         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
14288         Change second alternative type to f_mcr.
14289         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
14290         and 12th alternatives' types to f_mcr and f_mrc.
14291         (*movdi_aarch64): Same for 12th and 13th alternatives.
14292         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
14293         (aarch64_movtilow_tilow): Change type to fmov.
14295 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
14297         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
14298         (aarch64_save_or_restore_callee_save_registers): Fix layout.
14300 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14302         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
14303         New expander.
14304         (aarch64_sqrdmulh_lane<mode>): Likewise.
14305         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14306         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14307         (aarch64_sqdmulh_laneq<mode>): New expander.
14308         (aarch64_sqrdmulh_laneq<mode>): Likewise.
14309         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
14310         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
14311         (aarch64_sqdmulh_lane<mode>): New expander.
14312         (aarch64_sqrdmulh_lane<mode>): Likewise.
14313         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14314         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14315         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
14316         (aarch64_sqdmlal_laneq<mode>): Likewise.
14317         (aarch64_sqdmlsl_lane<mode>): Likewise.
14318         (aarch64_sqdmlsl_laneq<mode>): Likewise.
14319         (aarch64_sqdmlal2_lane<mode>): Likewise.
14320         (aarch64_sqdmlal2_laneq<mode>): Likewise.
14321         (aarch64_sqdmlsl2_lane<mode>): Likewise.
14322         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14323         (aarch64_sqdmull_lane<mode>): Likewise.
14324         (aarch64_sqdmull_laneq<mode>): Likewise.
14325         (aarch64_sqdmull2_lane<mode>): Likewise.
14326         (aarch64_sqdmull2_laneq<mode>): Likewise.
14328 2014-06-10  Richard Biener  <rguenther@suse.de>
14330         PR tree-optimization/61438
14331         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
14332         (eliminate_dom_walker::before_dom_children): Only try to inhibit
14333         insertion of IVs if running PRE.
14334         (eliminate): Adjust.
14335         (pass_pre::execute): Likewise.
14336         (pass_fre::execute): Likewise.
14338 2014-06-10  Richard Biener  <rguenther@suse.de>
14340         PR middle-end/61456
14341         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14342         Do not use the main variant for the type comparison.
14343         (ncr_compar): Likewise.
14344         (nonoverlapping_component_refs_p): Likewise.
14346 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14348         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
14349         REG_CFA_RESTORE mode.
14351 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
14353         * config/i386/i386.c (expand_vec_perm_pblendv): New.
14354         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
14355         expand_vec_perm_pblendv.
14357 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14359         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
14360         available.
14361         Simplify description of __crc32d and __crc32cd intrinsics.
14362         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
14363         availability.
14365 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
14367         PR lto/61334
14368         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
14369         * config.in: Regenerate.
14370         * configure: Likewise.
14372 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
14374         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
14375         and public vars.
14376         (intersect_static_var_sets): Remove.
14377         (propagate): Do not prune local statics.
14379 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
14381         PR fortran/60928
14382         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
14383         Set lastprivate_firstprivate even if omp_private_outer_ref
14384         langhook returns true.
14385         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
14386         langhook, call unshare_expr on new_var and call
14387         build_outer_var_ref to get the last argument.
14389 2014-06-10  Marek Polacek  <polacek@redhat.com>
14391         PR c/60988
14392         * doc/extend.texi: Add cindex for transparent_union.
14394 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14396         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
14397         init_symbolic_number ().
14399 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
14401         PR middle-end/61141
14402         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
14403         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
14404         (verify_rtl_sharing): Likewise.
14406 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
14408         PR c++/54442
14409         * tree.c (build_qualified_type): Use a canonical type for
14410         TYPE_CANONICAL.
14412 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14414         * config/arm/arm-modes.def: Remove XFmode.
14416 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
14418         PR target/61062
14419         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
14420         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
14421         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
14422         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
14423         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
14424         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
14425         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
14426         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
14427         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
14429 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
14431         * tree-core.h (tree_decl_with_vis): Remove section_name.
14433 2014-06-09  Kito Cheng  <kito@0xlab.org>
14435         * ira.c (ira): Don't call init_caller_save if LRA enabled
14436         since LRA use its own infrastructure to handle that.
14438 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
14440         * symtab.c (dump_symtab_base): Update dumping.
14441         (symtab_make_decl_local): Clear only DECL_COMDAT.
14442         * tree-vect-data-refs.c (Check that variable is static before
14443         tampering with sections.
14444         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
14445         (cgraph_create_virtual_clone): Likewise.
14446         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
14447         (decl_section_name, set_decl_section_name): New accessors.
14448         (find_decls_types_r): Do not walk section name
14449         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
14450         (decl_comdat_group, decl_comdat_group_id): Constify.
14451         (decl_section_name, set_decl_section_name): Update.
14452         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
14453         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
14454         (cgraph_make_node_local_1): Clear section and comdat group.
14455         * cgraph.h (set_comdat_group): Sanity check.
14456         (get_section, set_section): New.
14457         * ipa-comdats.c (ipa_comdats): Use get_section.
14458         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
14459         * lto-streamer-out.c: Do not follow section names.
14460         * c-family/c-common.c (handle_section_attribute): Update.
14461         * lto-cgraph.c (lto_output_node): Output section.
14462         (lto_output_varpool_node): Likewise.
14463         (read_comdat_group): Rename to ...
14464         (read_identifier): ... this one.
14465         (read_string_cst): New function.
14466         (input_node, input_varpool_node): Input section names.
14467         * tree-emutls.c (get_emutls_init_templ_addr): Update.
14468         (new_emutls_decl): Update.
14469         (secname_for_decl): Check section names only of static vars.
14470         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
14471         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
14472         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14473         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14474         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
14475         * config/mcore/mcore.c (mcore_unique_section): Likewise.
14476         * config/mips/mips.c (mips16_build_function_stub): Likewise.
14477         * config/v850/v850.c (v850_insert_attributes): Likewise.
14478         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
14479         Likewise.
14480         (h8300_handle_tiny_data_attribute): Likewise.
14481         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
14482         (bfin_handle_l2_attribute): Likewise.
14484 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
14486         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
14487         remove static initializer.
14489 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
14491         * varasm.c (use_blocks_for_decl_p): Check symbol table
14492         instead of alias attribute.
14493         (place_block_symbol): Recurse on aliases.
14495 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
14497         * ipa-visibility.c: Include varasm.h
14498         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
14500 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
14502         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
14503         outputting aliases.
14505 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
14507         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
14508         from test_insn into GGC space escape via SET_SRC.
14510 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
14512         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
14513         call statement, if any.
14514         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
14515         statements, if any.  Tidy up.
14517 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
14519         PR target/61431
14520         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
14521         iterators, VSX_D that handles 64-bit types, and VSX_LE that
14522         handles swapping the two 64-bit double words on little endian
14523         systems.  Include V1TImode and optionally TImode in VSX_LE so that
14524         these types are properly swapped.  Change all of the insns and
14525         splits that do the 64-bit swaps to use VSX_LE.
14526         (vsx_le_perm_load_<mode>): Likewise.
14527         (vsx_le_perm_store_<mode>): Likewise.
14528         (splitters for little endian memory operations): Likewise.
14529         (vsx_xxpermdi2_le_<mode>): Likewise.
14530         (vsx_lxvd2x2_le_<mode>): Likewise.
14531         (vsx_stxvd2x2_le_<mode>): Likewise.
14533 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
14535         PR target/61423
14536         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
14537         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
14538         and corresponding splitters.  Zero extend general register
14539         or memory input operand to XMM temporary.  Enable for
14540         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
14541         (floatunssi<mode>2): Update expander predicate.
14543 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
14545         PR rtl-optimization/61325
14546         * lra-constraints.c (process_address_1): Check scale equal to one
14547         to prevent transformation: base + scale * index => base + new_reg.
14549 2014-06-06  Richard Biener  <rguenther@suse.de>
14551         PR tree-optimization/59299
14552         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
14553         a def operand.
14554         (nearest_common_dominator_of_uses): Likewise.
14555         (statement_sink_location): Adjust.  Support sinking loads.
14557 2014-06-06  Martin Jambor  <mjambor@suse.cz>
14559         * ipa-prop.c (get_place_in_agg_contents_list): New function.
14560         (build_agg_jump_func_from_list): Likewise.
14561         (determine_known_aggregate_parts): Renamed to
14562         determine_locally_known_aggregate_parts.  Moved some functionality
14563         to the two functions above, removed bound checks.
14565 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
14567         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
14568         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
14569         (aarch64_progress_pointer): Likewise.
14570         (aarch64_copy_one_part_and_move_pointers): Likewise.
14571         (aarch64_expand_movmen): Likewise.
14572         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
14573         * config/aarch64/aarch64.md (movmem<mode>): New.
14575 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
14577         * targhooks.c (default_add_stmt_cost): Call target specific
14578         hook instead of default one.
14580 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14582         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
14583         endianness instead of host endianness.
14584         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
14585         comments.
14587 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14589         PR debug/53927
14590         * function.c (instantiate_decls): Process the saved static chain.
14591         (expand_function_start): If not optimizing, save the static chain
14592         onto the stack.
14593         * tree-nested.c (convert_all_function_calls): Always create the static
14594         chain for nested functions if not optimizing.
14596 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14598         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
14600 2014-06-06  Richard Biener  <rguenther@suse.de>
14602         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
14603         (construct_init_block): Likewise.
14604         (construct_exit_block): Likewise.
14605         (pass_expand::execute): Likewise.
14606         * graphite.c (graphite_transforms): Replace check for current_loops
14607         with a check for > 1 loops.
14608         (pass_graphite_transforms::execute): Adjust.
14609         * ipa-split.c (split_function): Remove check for current_loops.
14610         * omp-low.c (expand_parallel_call): Likewise.
14611         (expand_omp_for_init_counts): Likewise.
14612         (extract_omp_for_update_vars): Likewise.
14613         (expand_omp_for_generic): Likewise.
14614         (expand_omp_sections): Likewise.
14615         (expand_omp_target): Likewise.
14616         * tracer.c (tail_duplicate): Likewise.
14617         (pass_tracer::execute): Likewise.
14618         * trans-mem.c (expand_transaction): Likewise.
14619         * tree-complex.c (expand_complex_div_wide): Likewise.
14620         * tree-eh.c (lower_resx): Likewise.
14621         (cleanup_empty_eh_merge_phis): Likewise.
14622         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
14623         current_loops with a check for > 1 loops.
14624         (pass_predcom::execute): Adjust.
14625         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
14626         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
14627         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
14628         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
14629         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
14630         * tree-switch-conversion.c (process_switch): Likewise.
14631         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
14632         * tree-vrp.c (vrp_visit_phi_node): Likewise.
14633         (execute_vrp): Likewise.
14634         * ubsan.c (ubsan_expand_null_ifn): Likewise.
14636 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
14638         * rtl.h (insn_location): Declare.
14639         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
14640         with UNKNOWN_LOCATION.
14641         * emit-rtl.c (insn_location): New function.
14642         * final.c (notice_source_line): Check that the instruction has a
14643         location before retrieving it and use insn_location.
14644         * modulo-sched.c (loop_single_full_bb_p): Likewise.
14645         * print-rtl.c (print_rtx): Likewise.
14647 2014-06-06  Richard Biener  <rguenther@suse.de>
14649         * passes.def: Move 2nd VRP pass before phi-only-cprop.
14651 2014-06-06  Christian Bruel  <christian.bruel@st.com>
14653         PR tree-optimization/43934
14654         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
14655         cost.
14657 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
14659         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
14660         return NO_REGS for extra address and memory constraints.  Handle
14661         operands that match (or are equivalent to something that matches)
14662         extra constant constraints.  Ignore other non-register operands.
14664 2014-06-06  Alan Modra  <amodra@gmail.com>
14666         PR target/61300
14667         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
14668         * doc/tm.texi: Regenerate.
14669         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
14670         Use throughout in place of REG_PARM_STACK_SPACE.
14671         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
14672         "incoming" param.  Pass to rs6000_function_parms_need_stack.
14673         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
14674         prototype_p when incoming.  Use function decl when incoming
14675         to handle K&R style functions.
14676         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
14677         (INCOMING_REG_PARM_STACK_SPACE): Define.
14679 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14681         PR target/52472
14682         * cfgexpand.c (expand_debug_expr): Use address space of nested
14683         TREE_TYPE for ADDR_EXPR and MEM_REF.
14685 2014-06-05  Jeff Law  <law@redhat.com>
14687         PR tree-optimization/61289
14688         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
14689         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
14690         looking for those which match LHS.  All callers changed.
14691         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
14692         parameters and code which manipulated them.  All callers changed.
14693         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
14694         and DST_MAP parameters.  Simplify invalidation code by just calling
14695         invalidate_equivalences.  All callers changed.
14696         (thread_across_edge): Simplify now that we don't need to maintain
14697         the map of equivalences to invalidate.
14699 2014-06-05  Kai Tietz  <ktietz@redhat.com>
14700             Richard Henderson  <rth@redhat.com>
14702         PR target/46219
14703         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
14704         checking for !TARGET_X32.
14705         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
14706         (sibcall_intern): New define_insn, plus required peepholes.
14707         (sibcall_pop_intern): Likewise.
14708         (sibcall_value_intern): Likewise.
14709         (sibcall_value_pop_intern): Likewise.
14711 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
14713         * tree-inline.c (tree_function_versioning): Check DF info existence
14714         before accessing it.
14716 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14718         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
14719         frame_size.
14720         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
14721         aarch64_frame hard_fp_offset and frame_size.
14722         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
14723         frame_size; remove original_frame_size.
14724         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
14725         (aarch64_initial_elimination_offset): Remove frame_size and
14726         offset.  Use aarch64_frame frame_size.
14728 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14729             Jiong Wang  <jiong.wang@arm.com>
14730             Renlin  <renlin.li@arm.com>
14732         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
14733         initialization of R30 offset.  Update offset.  Iterate core
14734         regisers upto X30.  Remove X29, X30 specific code.
14736 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14737             Jiong Wang  <jiong.wang@arm.com>
14739         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
14740         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
14741         (aarch64_register_saved_on_entry): Adjust test.
14743 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14745         * config/aarch64/aarch64.h (machine_function): Move
14746         saved_varargs_size from here...
14747         (aarch64_frame): ... to here.
14749         * config/aarch64/aarch64.c (aarch64_expand_prologue)
14750         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
14751         (aarch64_initial_elimination_offset)
14752         (aarch64_setup_incoming_varargs): Adjust location of
14753         saved_varargs_size.
14755 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14757         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
14758         layout comment.
14760 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
14761             Prachi Godbole  <Prachi.Godbole@imgtec.com>
14763         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
14764         mips32r5 entry to use PROCESSOR_P5600.
14765         * config/mips/mips-tables.opt: Regenerate.
14766         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
14767         * config/mips/mips.c (mips_fmadd_bypass): New function.
14768         (mips_rtx_cost_data): Add costs for p5600.
14769         (mips_issue_rate): Add support for p5600.
14770         (mips_multipass_dfa_lookahead): Likewise.
14771         * config/mips/mips.h (TUNE_P5600): New define.
14772         (TUNE_MACC_CHAINS): Add TUNE_P5600.
14773         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
14774         * config/mips/mips.md: Include p5600.md.
14775         (processor): Add p5600.
14776         * config/mips/p5600.md: New file.
14778 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
14780         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
14781         * config/i386/predicates.md (palignr_operand): New.
14782         Indicates if permutation is suitable for palignr instruction.
14784 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
14786         PR tree-optimization/61319
14787         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
14788         stmt belongs to loop.
14790 2014-06-05  Richard Biener  <rguenther@suse.de>
14792         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
14793         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
14794         (lookup_tmp_var): Adjust.
14795         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
14797 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14799         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
14801 2014-06-05  Marek Polacek  <polacek@redhat.com>
14803         PR c/49706
14804         * doc/invoke.texi: Document -Wlogical-not-parentheses.
14806 2014-06-04  Tom de Vries  <tom@codesourcery.com>
14808         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
14809         CONST_INT.
14811 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
14813         PR tree-optimization/61385
14814         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
14816 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
14818         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
14819         changed to use fatal_error.
14820         (main): Ensure lto_wrapper_cleanup is run atexit.
14822 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
14824         * lra-constraints.c (valid_address_p): Move earlier in file.
14825         (address_eliminator): New structure.
14826         (satisfies_memory_constraint_p): New function.
14827         (satisfies_address_constraint_p): Likewise.
14828         (process_alt_operands, process_address, curr_insn_transform): Use them.
14830 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
14832         * lra-int.h (lra_static_insn_data): Make operand_alternative a
14833         const pointer.
14834         (target_lra_int, default_target_lra_int, this_target_lra_int)
14835         (op_alt_data): Delete.
14836         * lra.h (lra_init): Delete.
14837         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
14838         (init_insn_code_data_once): Remove op_alt_data handling.
14839         (finish_insn_code_data_once): Likewise.
14840         (init_op_alt_data): Delete.
14841         (get_static_insn_data): Initialize operand_alternative to null.
14842         (free_insn_recog_data): Cast operand_alternative before freeing it.
14843         (setup_operand_alternative): Take the operand_alternative as
14844         parameter and assume it isn't already cached in the static
14845         insn data.
14846         (lra_set_insn_recog_data): Update accordingly.
14847         (lra_init): Delete.
14848         * ira.c (ira_init): Don't call lra_init.
14849         * target-globals.h (this_target_lra_int): Declare.
14850         (target_globals): Remove lra_int.
14851         (restore_target_globals): Update accordingly.
14852         * target-globals.c: Don't include lra-int.h.
14853         (default_target_globals, save_target_globals): Remove lra_int.
14855 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
14857         * recog.h (operand_alternative): Convert reg_class, reject,
14858         matched and matches into bitfields.
14859         (preprocess_constraints): New overload.
14860         (preprocess_insn_constraints): New function.
14861         (preprocess_constraints): Take the insn as parameter.
14862         (recog_op_alt): Change into a pointer.
14863         (target_recog): Add x_op_alt.
14864         * recog.c (asm_op_alt): New variable.
14865         (recog_op_alt): Change into a pointer.
14866         (preprocess_constraints): New overload, replacing the old function
14867         definition with one that doesn't use global state.
14868         (preprocess_insn_constraints): New function.
14869         (preprocess_constraints): Use them.  Take the insn as parameter.
14870         Use asm_op_alt for asms.
14871         (recog_init): Free existing x_op_alt entries.
14872         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
14873         pointer const.
14874         (make_early_clobber_and_input_conflicts): Likewise.
14875         (process_bb_node_lives): Pass the insn to process_constraints.
14876         * reg-stack.c (check_asm_stack_operands): Likewise.
14877         (subst_asm_stack_regs): Likewise.
14878         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
14879         * regrename.c (build_def_use): Likewise.
14880         * sched-deps.c (sched_analyze_insn): Likewise.
14881         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
14882         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
14883         (note_invalid_constants): Likewise.
14884         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14885         (ix86_legitimate_combined_insn): Make operand_alternative pointer
14886         const.
14888 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
14890         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
14891         * ira-lives.c (check_and_make_def_conflict): Check for disabled
14892         alternatives.
14893         (make_early_clobber_and_input_conflicts): Likewise.
14894         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14896 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
14898         * recog.h (alternative_class): New function.
14899         (which_op_alt): Return a const recog_op_alt.
14900         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
14901         (subst_asm_stack_regs): Likewise.
14902         * config/arm/arm.c (note_invalid_constants): Likewise.
14903         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
14904         the operand_alternative; use alternative class instead.
14905         * sel-sched.c (get_reg_class): Likewise.
14906         * regrename.c (build_def_use): Likewise.
14907         (hide_operands, restore_operands, record_out_operands): Update type
14908         accordingly.
14910 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
14912         * recog.h (recog_op_alt): Convert to a flat array.
14913         (which_op_alt): New function.
14914         * recog.c (recog_op_alt): Convert to a flat array.
14915         (preprocess_constraints): Update accordingly, grouping all
14916         operands of the same alternative together, rather than the
14917         other way around.
14918         * ira-lives.c (check_and_make_def_conflict): Likewise.
14919         (make_early_clobber_and_input_conflicts): Likewise.
14920         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
14921         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
14922         (subst_asm_stack_regs): Likewise.
14923         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
14924         * regrename.c (hide_operands, record_out_operands): Likewise.
14925         (build_def_use): Likewise.
14926         * sel-sched.c (get_reg_class): Likewise.
14927         * config/arm/arm.c (note_invalid_constants): Likewise.
14929 2014-06-04  Jason Merrill  <jason@redhat.com>
14931         PR c++/51253
14932         PR c++/61382
14933         * gimplify.c (gimplify_arg): Non-static.
14934         * gimplify.h: Declare it.
14936 2014-06-04  Richard Biener  <rguenther@suse.de>
14938         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
14939         TREE_PUBLIC and DECL_EXTERNAL decls.
14941 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
14943         * regcprop.c (copyprop_hardreg_forward_1): Account for
14944         HARD_REGNO_CALL_PART_CLOBBERED.
14946 2014-06-04  Richard Biener  <rguenther@suse.de>
14948         * configure.ac: Check whether the underlying type of int64_t
14949         is long or long long.
14950         * configure: Regenerate.
14951         * config.in: Likewise.
14952         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
14953         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14955 2014-06-04  Richard Biener  <rguenther@suse.de>
14957         PR tree-optimization/60098
14958         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
14959         we hit a kill.
14960         (dse_optimize_stmt): Simplify, now that we found a kill
14961         earlier.
14963 2014-06-04  Richard Biener  <rguenther@suse.de>
14965         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
14966         of accesses with non-invariant address.
14968 2014-06-04  Martin Liska  <mliska@suse.cz>
14970         * cgraph.h (cgraph_make_wrapper): New function introduced.
14971         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
14972         * ipa-inline.h (inline_analyze_function): The function is global.
14973         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
14975 2014-06-04  Martin Liska  <mliska@suse.cz>
14977         * tree.h (private_lookup_attribute_starting): New function.
14978         (lookup_attribute_starting): Likewise.
14979         * tree.c (private_lookup_attribute_starting): Likewise.
14981 2014-06-04  Martin Liska  <mliska@suse.cz>
14983         * cgraph.h (expand_thunk): New argument added.
14984         (address_taken_from_non_vtable_p): New global function.
14985         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
14986         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
14987         * cgraphunit.c (analyze_function): Likewise.
14988         (assemble_thunks_and_aliases): Argument added to call.
14989         (expand_thunk): New argument forces to produce GIMPLE thunk.
14991 2014-06-04  Martin Liska  <mliska@suse.cz>
14993         * coverage.h (coverage_compute_cfg_checksum): Argument added.
14994         * coverage.c (coverage_compute_cfg_checksum): Likewise.
14995         * profile.c (branch_prob): Likewise.
14997 2014-06-04  Martin Jambor  <mjambor@suse.cz>
14999         PR ipa/61340
15000         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
15001         handler for switch on an ipa_ref_use enum.
15002         * ipa-reference.c (analyze_function): Likewise.
15004 2014-06-04  Kai Tietz  <ktietz@redhat.com>
15006         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
15007         from old call-instruction.
15009 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
15011         * config/aarch64/aarch64.c (aarch64_classify_address)
15012         (aarch64_legitimize_reload_address): Support full addressing modes
15013         for vector modes.
15014         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
15015         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
15017 2014-06-03  Andrew Pinski  <apinski@cavium.com>
15019         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
15020         for OP0.
15022 2014-06-03  Andrew Pinski  <apinski@cavium.com>
15024         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
15025         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
15027 2014-06-03  Kai Tietz  <ktietz@redhat.com>
15029         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
15030         for 64-bit ms-abi.
15032 2014-06-03  Dehao Chen  <dehao@google.com>
15034         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
15035         the same loop.
15037 2014-06-03  Marek Polacek  <polacek@redhat.com>
15039         PR c/60439
15040         * doc/invoke.texi: Document -Wswitch-bool.
15041         * function.c (stack_protect_epilogue): Cast controlling expression of
15042         the switch to int.
15043         * gengtype.c (walk_type): Generate switch expression with its
15044         controlling expression cast to int.
15046 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
15048         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
15049         and attiny841.
15050         * config/avr/avr-tables.opt: Regenerate.
15051         * config/avr/t-multilib: Regenerate.
15052         * doc/avr-mmcu.texi: Regenerate.
15054 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
15055             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15057         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
15058         (ata6617c, ata664251): Add new avr35 devices.
15059         (ata6612c): Add new avr4 device.
15060         (ata6613c, ata6614q): Add new avr5 devices.
15061         * config/avr/avr-tables.opt: Regenerate.
15062         * config/avr/t-multilib: Regenerate.
15063         * doc/avr-mmcu.texi: Regenerate.
15065 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15067         * gcc/config/aarch64/aarch64-builtins.c
15068         (aarch64_types_binop_ssu_qualifiers): New static data.
15069         (TYPES_BINOP_SSU): Define.
15070         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
15071         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
15072         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
15073         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
15074         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
15075         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
15076         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
15077         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
15078         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
15079         suffix to builtin function name, remove cast.
15080         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
15081         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
15082         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
15084 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15086         * gcc/config/aarch64/aarch64-builtins.c
15087         (aarch64_types_binop_uus_qualifiers,
15088         aarch64_types_shift_to_unsigned_qualifiers,
15089         aarch64_types_unsigned_shiftacc_qualifiers): Define.
15090         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
15091         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
15092         sqshlu_n, uqshl_n): Update qualifiers.
15093         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
15094         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
15095         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
15096         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
15097         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
15098         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
15099         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
15100         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
15101         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
15102         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
15103         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
15104         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
15105         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
15106         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
15107         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
15108         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
15109         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
15110         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
15111         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
15112         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
15113         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
15114         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
15115         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
15116         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
15117         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
15118         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
15119         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
15121 2014-06-03  Teresa Johnson  <tejohnson@google.com>
15123         * tree-sra.c (modify_function): Record caller nodes after rebuild.
15125 2014-06-02  Jason Merrill  <jason@redhat.com>
15127         PR c++/61020
15128         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
15130 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15132         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
15133         location == 0.
15135 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15137         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
15138         New pattern.
15139         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
15140         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
15141         * config/aarch64/iterators.md (REVERSE): New iterator.
15142         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
15143         (rev_op): New int_attribute.
15144         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
15145         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
15146         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
15147         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
15148         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
15149         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
15150         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
15151         Replace temporary __asm__ with __builtin_shuffle.
15153 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
15155         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
15156         mips64r5.
15157         * config/mips/mips-tables.opt: Regenerate.
15158         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
15159         to use mips_isa_rev rather than ISA_MIPS32R2.
15160         * config/mips/mips.h (ISA_MIPS32R3): New define.
15161         (ISA_MIPS32R5): New define.
15162         (ISA_MIPS64R3): New define.
15163         (ISA_MIPS64R5): New define.
15164         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
15165         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
15166         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
15167         and mips64r5.
15168         (MIPS_ISA_SYNCI_SPEC): Likewise.
15169         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
15170         (LINK_SPEC): Added mips32r3 and mips32r5.
15171         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
15172         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
15173         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
15174         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
15175         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
15176         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
15177         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
15179 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
15181         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
15182         options.
15183         * config/mips/mips.opt (mxpa): New option.
15184         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
15185         assembler.
15187 2014-06-03  Martin Jambor  <mjambor@suse.cz>
15189         PR ipa/61160
15190         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
15191         thunks.
15193 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15195         PR tree-optimization/61328
15196         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
15197         initialization from find_bswap_or_nop_1.
15198         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
15199         in source_expr2 before using the size value the function sets. Also
15200         make use of init_symbolic_number () in both the old place and
15201         find_bswap_or_nop_load () to avoid reading uninitialized memory when
15202         doing recursion in the GIMPLE_BINARY_RHS case.
15204 2014-06-03  Richard Biener  <rguenther@suse.de>
15206         PR tree-optimization/61383
15207         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
15208         stmts can't trap.
15210 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
15212         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
15213         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
15214         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
15215         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
15216         in this file.
15217         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
15218         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
15219         * system.h: ...here and make it unconditional.
15220         * target.def (conditional_register_usage): Mention
15221         define_register_constraint instead of old-style constraint macros.
15222         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
15223         * doc/tm.texi: Regenerate.
15224         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
15225         protected by !USE_MD_CONSTRAINTS.
15226         * config/frv/frv.md: Remove quote from old version of documentation.
15227         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
15228         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
15229         CONST_DOUBLE_OK_FOR_LETTER.
15230         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
15232 2014-06-02  Andrew Pinski  <apinski@cavium.com>
15234         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
15235         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
15236         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
15237         file whose name depends on -mabi= and -mbig-endian.
15238         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
15239         Handle LP64 better and handle ilp32 too.
15240         (MULTILIB_OPTIONS): Delete.
15241         (MULTILIB_DIRNAMES): Delete.
15243 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
15245         * expr.h: Remove prototypes of functions defined in builtins.c.
15246         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
15247         Remove prototypes of functions defined in builtins.c.
15248         * builtins.h: Update prototype list to include all exported functions.
15249         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
15250         no_c99_libc_has_function): Move to targhooks.c
15251         (build_string_literal, build_call_expr_loc_array,
15252         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
15253         to tree.c.
15254         (expand_builtin_object_size, fold_builtin_object_size): Make static.
15255         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
15256         no_c99_libc_has_function): Relocate from builtins.c.
15257         * tree.c: Include builtins.h.
15258         (build_call_expr_loc_array, build_call_expr_loc_vec,
15259         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
15260         from builtins.c.
15261         * fold-const.h (fold_fma): Move prototype to builtins.h.
15262         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
15263         * asan.c: Include builtins.h.
15264         * cfgexpand.c: Likewise.
15265         * convert.c: Likewise.
15266         * emit-rtl.c: Likewise.
15267         * except.c: Likewise.
15268         * expr.c: Likewise.
15269         * fold-const.c: Likewise.
15270         * gimple-fold.c: Likewise.
15271         * gimple-ssa-strength-reduction.c: Likewise.
15272         * gimplify.c: Likewise.
15273         * ipa-inline.c: Likewise.
15274         * ipa-prop.c: Likewise.
15275         * lto-streamer-out.c: Likewise.
15276         * stmt.c: Likewise.
15277         * tree-inline.c: Likewise.
15278         * tree-object-size.c: Likewise.
15279         * tree-sra.c: Likewise.
15280         * tree-ssa-ccp.c: Likewise.
15281         * tree-ssa-forwprop.c: Likewise.
15282         * tree-ssa-loop-ivcanon.c: Likewise.
15283         * tree-ssa-loop-ivopts.c: Likewise.
15284         * tree-ssa-math-opts.c: Likewise.
15285         * tree-ssa-reassoc.c: Likewise.
15286         * tree-ssa-threadedge.c: Likewise.
15287         * tree-streamer-in.c: Likewise.
15288         * tree-vect-data-refs.c: Likewise.
15289         * tree-vect-patterns.c: Likewise.
15290         * tree-vect-stmts.c: Likewise.
15291         * config/aarch64/aarch64.c: Likewise.
15292         * config/alpha/alpha.c: Likewise.
15293         * config/arc/arc.c: Likewise.
15294         * config/arm/arm.c: Likewise.
15295         * config/avr/avr.c: Likewise.
15296         * config/bfin/bfin.c: Likewise.
15297         * config/c6x/c6x.c: Likewise.
15298         * config/cr16/cr16.c: Likewise.
15299         * config/cris/cris.c: Likewise.
15300         * config/epiphany/epiphany.c: Likewise.
15301         * config/fr30/fr30.c: Likewise.
15302         * config/frv/frv.c: Likewise.
15303         * config/h8300/h8300.c: Likewise.
15304         * config/i386/i386.c: Likewise.
15305         * config/i386/winnt.c: Likewise.
15306         * config/ia64/ia64.c: Likewise.
15307         * config/iq2000/iq2000.c: Likewise.
15308         * config/lm32/lm32.c: Likewise.
15309         * config/m32c/m32c.c: Likewise.
15310         * config/m32r/m32r.c: Likewise.
15311         * config/m68k/m68k.c: Likewise.
15312         * config/mcore/mcore.c: Likewise.
15313         * config/mep/mep.c: Likewise.
15314         * config/microblaze/microblaze.c: Likewise.
15315         * config/mips/mips.c: Likewise.
15316         * config/mmix/mmix.c: Likewise.
15317         * config/mn10300/mn10300.c: Likewise.
15318         * config/moxie/moxie.c: Likewise.
15319         * config/msp430/msp430.c: Likewise.
15320         * config/nds32/nds32.c: Likewise.
15321         * config/pa/pa.c: Likewise.
15322         * config/pdp11/pdp11.c: Likewise.
15323         * config/picochip/picochip.c: Likewise.
15324         * config/rl78/rl78.c: Likewise.
15325         * config/rs6000/rs6000.c: Likewise.
15326         * config/rx/rx.c: Likewise.
15327         * config/s390/s390.c: Likewise.
15328         * config/score/score.c: Likewise.
15329         * config/sh/sh.c: Likewise.
15330         * config/sparc/sparc.c: Likewise.
15331         * config/spu/spu.c: Likewise.
15332         * config/stormy16/stormy16.c: Likewise.
15333         * config/tilegx/tilegx.c: Likewise.
15334         * config/tilepro/tilepro.c: Likewise.
15335         * config/v850/v850.c: Likewise.
15336         * config/vax/vax.c: Likewise.
15337         * config/xtensa/xtensa.c: Likewise.
15339 2014-06-02  Jeff Law  <law@redhat.com>
15341         PR rtl-optimization/61094
15342         * ree.c (combine_reaching_defs): Do not reextend an insn if it
15343         was marked as do_no_reextend.  If a copy is needed to eliminate
15344         an extension, then mark it as do_not_reextend.
15346 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15348         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
15350 2014-06-02  Richard Henderson  <rth@redhat.com>
15352         PR target/61336
15353         * config/alpha/alpha.c (print_operand_address): Allow symbolic
15354         addresses inside asms.  Use output_operand_lossage instead of
15355         gcc_unreachable.
15357 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
15359         PR target/61239
15360         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
15361         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
15363 2014-06-02  Tom de Vries  <tom@codesourcery.com>
15365         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
15366         case that x has VOIDmode.
15368 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
15370         * varasm.c (copy_constant): Delete function.
15371         (build_constant_desc): Don't call it.
15373 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15375         PR target/61154
15376         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
15377         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
15378         with immediate_operand.
15380 2014-06-02  Andreas Schwab  <schwab@suse.de>
15382         * config/ia64/ia64.c
15383         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
15384         pending_data_specs first.
15386 2014-06-02  Richard Biener  <rguenther@suse.de>
15388         PR tree-optimization/61378
15389         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
15390         valueized_anything.
15392 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
15394         * config/i386/constraints.md (Bw): Rename from 'w'.
15395         (Bz): Rename from 'z'.
15396         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
15398 2014-06-01  Kai Tietz  <ktietz@redhat.com>
15400         PR target/61377
15401         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
15402         * config/i386/i386.md (sibcall_insn_operand): Use Bs
15403         instead of m constraint.
15405 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
15407         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
15408         a separate alternative where the scratch operand 2 is marked as
15409         early clobber.
15411 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
15413         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15414         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
15415         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
15416         and __builtins_arm_get_fpscr.
15417         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15418         __builtins_arm_get_fpscr.
15419         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
15420         __builtins_arm_ldfpscr.
15421         (arm_atomic_assign_expand_fenv): New function.
15422         * config/arm/vfp.md (set_fpscr): New pattern.
15423         (get_fpscr) : Likewise.
15424         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
15425         VUNSPEC_SET_FPSCR.
15426         * doc/extend.texi (AARCH64 Built-in Functions) : Document
15427         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
15429 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
15431         * asan.c (report_error_func): Add SLOW_P argument, use
15432         BUILT_IN_ASAN_*_N if set.
15433         (build_check_stmt): Likewise.
15434         (instrument_derefs): If T has insufficient alignment,
15435         force same handling as for odd sizes.
15437         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
15438         BUILT_IN_ASAN_REPORT_STORE_N): New.
15439         * asan.c (struct asan_mem_ref): Change access_size type to
15440         HOST_WIDE_INT.
15441         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
15442         update_mem_ref_hash_table): Likewise.
15443         (asan_mem_ref_hasher::hash): Hash in a HWI.
15444         (report_error_func): Change size_in_bytes argument to HWI.
15445         Use *_N builtins if size_in_bytes is larger than 16 or not power of
15446         two.
15447         (build_shadow_mem_access): New function.
15448         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
15449         Handle size_in_bytes not power of two or larger than 16.
15450         (instrument_derefs): Don't give up if size_in_bytes is not
15451         power of two or is larger than 16.
15453 2014-05-30  Kai Tietz  <ktietz@redhat.com>
15455         PR target/60104
15456         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
15457         for sibling-tail-calls.
15458         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
15459         to its use.
15460         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
15461         (sibcall_insn_operand): Add check for sibcall_memory_operand.
15463 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15465         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
15466         * config/avr/avr-tables.opt: Regenerate.
15467         * config/avr/t-multilib: Regenerate.
15468         * doc/avr-mmcu.texi: Regenerate.
15470 2014-05-30  Ian Lance Taylor  <iant@google.com>
15472         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
15473         target("sse").
15475 2014-05-30  Tom de Vries  <tom@codesourcery.com>
15477         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15478         Redefine as true.
15480 2014-05-30  Tom de Vries  <tom@codesourcery.com>
15482         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15483         * lra.c (initialize_lra_reg_info_element): Add init of
15484         actual_call_used_reg_set field.
15485         (lra): Call lra_create_live_ranges before lra_inheritance for
15486         -fuse-caller-save.
15487         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15488         -fuse-caller-save.
15489         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
15490         instead of call_used_reg_set for -fuse-caller-save.
15491         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15493 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15495         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
15496         to mov_imm.
15497         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
15499 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
15501         * ira.c (ira_get_dup_out_num): Check for output operands at
15502         the start of the loop.  Handle cases where an included alternative
15503         follows an excluded one.
15505 2014-05-29  Mike Stump  <mikestump@comcast.net>
15507         PR debug/61352
15508         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
15509         post ld passes when lto is used.
15511 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
15513         PR rtl-optimization/61325
15514         * lra-constraints.c (process_address): Rename to process_address_1.
15515         (process_address): New function.
15517 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
15519         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
15520         TYPES_BINOPV): New static data.
15521         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
15522         New builtin.
15523         * config/aarch64/aarch64-simd.md (aarch64_ext,
15524         aarch64_im_lane_boundsi): New patterns.
15525         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
15526         patterns for EXT.
15527         (aarch64_evpc_ext): New function.
15529         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
15531         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
15532         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
15533         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
15534         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
15535         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
15537 2014-05-29  Tom de Vries  <tom@codesourcery.com>
15539         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
15541 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
15542             Richard Sandiford  <rdsandiford@googlemail.com>
15544         * arm/iterators.md (shiftable_ops): New code iterator.
15545         (t2_binop0, arith_shift_insn): New code attributes.
15546         * arm/predicates.md (shift_nomul_operator): New predicate.
15547         * arm/arm.md (insn_enabled): Delete.
15548         (enabled): Remove insn_enabled test.
15549         (*arith_shiftsi): Delete.  Replace with ...
15550         (*<arith_shift_insn>_multsi): ... new pattern.
15551         (*<arith_shift_insn>_shiftsi): ... new pattern.
15552         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
15554 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
15555             Tom de Vries  <tom@codesourcery.com>
15557         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
15558         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
15559         clobber.
15560         (mips_split_call): Use POST_CALL_TMP_REG.
15561         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
15563 2014-05-29  Tom de Vries  <tom@codesourcery.com>
15565         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
15566         with #ifdef STACK_REGS.
15568 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
15570         * varasm.c (get_variable_section): Walk aliases.
15571         (place_block_symbol): Walk aliases.
15573 2014-05-28  Tom de Vries  <tom@codesourcery.com>
15575         Revert:
15576         2014-05-28  Tom de Vries  <tom@codesourcery.com>
15578         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15579         * lra.c (initialize_lra_reg_info_element): Add init of
15580         actual_call_used_reg_set field.
15581         (lra): Call lra_create_live_ranges before lra_inheritance for
15582         -fuse-caller-save.
15583         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15584         -fuse-caller-save.
15585         * lra-constraints.c (need_for_call_save_p): Use
15586         actual_call_used_reg_set instead of call_used_reg_set for
15587         -fuse-caller-save.
15588         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15590 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15592         * doc/md.texi: Document that the % constraint character must
15593         be at the beginning of the string.
15594         * genoutput.c (validate_insn_alternatives): Check that '=',
15595         '+' and '%' only appear at the beginning of a constraint.
15596         * ira.c (commutative_constraint_p): Delete.
15597         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
15598         at the start of the string.
15599         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
15600         duplicate '='s.
15601         * config/arm/neon.md (bicdi3_neon): Likewise.
15602         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
15603         (slt_si, sltu_si): Likewise.
15604         * config/vax/vax.md (sbcdi3): Likewise.
15605         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
15606         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
15607         (mul64): Move '%' to beginning of constraint.
15608         * config/arm/arm.md (*xordi3_insn): Likewise.
15609         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
15610         (xorsi3): Likewise.
15612 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15614         * doc/md.texi: Document the restrictions on the "enabled" attribute.
15616 2014-05-28  Jason Merrill  <jason@redhat.com>
15618         PR c++/47202
15619         * cgraph.h (symtab_node::get_comdat_group_id): New.
15620         * cgraphunit.c (analyze_functions): Call it.
15621         * symtab.c (dump_symtab_node): Likewise.
15622         * tree.c (decl_comdat_group_id): New.
15623         * tree.h: Declare it.
15624         * lto-streamer-out.c (write_symbol): Use it.
15625         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
15627 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15629         PR bootstrap/PR61146
15630         * wide-int.cc: Do not include longlong.h when compiling with clang.
15632 2014-05-28  Richard Biener  <rguenther@suse.de>
15634         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
15635         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
15636         (vrp_visit_assignment_or_call): Print less vertical space.
15637         (vrp_visit_stmt): Likewise.
15638         (vrp_visit_phi_node): Likewise.  For a PHI argument with
15639         VR_VARYING range consider recording it as copy.
15641 2014-05-28  Richard Biener  <rguenther@suse.de>
15643         Revert
15644         2014-05-28  Richard Biener  <rguenther@suse.de>
15646         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15648 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15650         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
15651         sufficiently aligned and an offset is used at the same time.
15652         (expand_expr_real_1): Likewise.
15654 2014-05-28  Richard Biener  <rguenther@suse.de>
15656         PR middle-end/61045
15657         * fold-const.c (fold_comparison): When folding
15658         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
15659         the sign of the remaining constant operand stays the same.
15661 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
15663         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
15664         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
15665         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
15666         to the assembler.
15667         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
15668         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
15669         (m32bit-doubles) Likewise.
15670         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
15671         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
15672         option for RL78.
15674 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15676         * configure.ac ($gcc_cv_ld_clearcap): New test.
15677         * configure: Regenerate.
15678         * config.in: Regenerate.
15679         * config/sol2.opt (mclear-hwcap): New option.
15680         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
15681         * config/sol2-clearcap.map: Moved here from
15682         testsuite/gcc.target/i386/clearcap.map.
15683         * config/sol2-clearcapv2.map: Move here from
15684         gcc.target/i386/clearcapv2.map.
15685         * config/t-sol2 (install): Depend on install-clearcap-map.
15686         (install-clearcap-map): New target.
15687         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
15688         -mclear-hwcap.
15690 2014-05-28  Richard Biener  <rguenther@suse.de>
15692         * hwint.h (*_HALF_WIDE_INT*): Move to ...
15693         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
15694         ... here and remove the rest.
15695         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15697 2014-05-28  Richard Biener  <rguenther@suse.de>
15699         PR tree-optimization/61335
15700         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
15701         new range fails, drop to varying.
15703 2014-05-28  Olivier Hainque  <hainque@adacore.com>
15705         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
15706         (CPP_SPEC): Add entry for -mcpu=8548.
15707         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
15708         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
15710 2014-05-28  Tom de Vries  <tom@codesourcery.com>
15712         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
15713         * lra.c (initialize_lra_reg_info_element): Add init of
15714         actual_call_used_reg_set field.
15715         (lra): Call lra_create_live_ranges before lra_inheritance for
15716         -fuse-caller-save.
15717         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
15718         -fuse-caller-save.
15719         * lra-constraints.c (need_for_call_save_p): Use
15720         actual_call_used_reg_set instead of call_used_reg_set for
15721         -fuse-caller-save.
15722         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
15724 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
15725             Tom de Vries  <tom@codesourcery.com>
15727         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
15728         to gccoptlist.
15729         (@item -fuse-caller-save): New item.
15731 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
15732             Tom de Vries  <tom@codesourcery.com>
15734         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
15735         OPT_fuse_caller_save.
15737 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
15738             Tom de Vries  <tom@codesourcery.com>
15740         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
15741         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
15742         get_call_reg_set_usage.
15743         * resource.c (mark_set_resources, mark_target_live_regs): Use
15744         get_call_reg_set_usage.
15745         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
15746         field.
15747         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
15748         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
15749         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15750         * ira-build.c (ira_create_allocno): Init
15751         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15752         (create_cap_allocno, propagate_allocno_info)
15753         (propagate_some_info_from_allocno)
15754         (copy_info_to_removed_store_destinations): Handle
15755         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
15756         * ira-costs.c (ira_tune_allocno_costs): Use
15757         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
15759 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
15760             Tom de Vries  <tom@codesourcery.com>
15762         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
15763         and function_used_regs_valid fields.
15764         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
15765         find_all_hard_reg_sets.
15766         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
15767         (get_call_reg_set_usage): New function.
15768         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
15769         * regs.h (get_call_reg_set_usage): Declare.
15771 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
15773         PR libgcc/61152
15774         * config/dbx.h (License): Add Runtime Library Exception.
15775         * config/newlib-stdint.h (License): Same.
15776         * config/rtems.h (License): Same
15777         * config/initfini-array.h (License): Same
15778         * config/v850/v850.h (License): Same.
15779         * config/v850/v850-opts.h (License): Same
15780         * config/v850/rtems.h (License): Same.
15782 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
15784         PR target/61044
15785         * doc/extend.texi (Local Labels): Note that label differences are
15786         not supported for AVR.
15788 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
15789             Olivier Hainque  <hainque@adacore.com>
15791         * rtl.h (set_for_reg_notes): Declare.
15792         * emit-rtl.c (set_for_reg_notes): New function.
15793         (set_unique_reg_note): Use it.
15794         * optabs.c (add_equal_note): Likewise
15796 2014-05-27  Andrew Pinski  <apinski@cavium.com>
15798         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
15799         Use <w> for the register in assembly template.
15800         (stack_protect_test): Use the mode of operands[0] for the result.
15801         (stack_protect_test_<mode>): Use <w> for the register
15802         in assembly template.
15804 2014-05-27  DJ Delorie  <dj@redhat.com>
15806         * config/rx/rx.c (add_vector_labels): New.
15807         (rx_output_function_prologue): Call it.
15808         (rx_handle_func_attribute): Don't require empty arguments.
15809         (rx_handle_vector_attribute): New.
15810         (rx_attribute_table): Add "vector" attribute.
15811         * doc/extend.texi (interrupt, vector): Document new/changed
15812         RX-specific attributes.
15814         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
15816 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15818         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
15819         predicate to detect a negative quotient.
15821 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15823         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
15824         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
15825         Add X - Y CMP 0 to X CMP Y transformation.
15826         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
15828 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
15830         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
15831         before printing.
15833 2014-05-27  Steve Ellcey  <sellcey@mips.com>
15835         * config/mips/mips.c: Add include of cgraph.h.
15837 2014-05-27  Richard Biener  <rguenther@suse.de>
15839         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
15841 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
15843         PR libgcc/61152
15844         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
15845         * config/arm/arm-cores.def (License): Same.
15846         * config/arm/arm-opts.h (License): Same.
15847         * config/arm/aout.h (License): Same.
15848         * config/arm/bpabi.h (License): Same.
15849         * config/arm/elf.h (License): Same.
15850         * config/arm/linux-elf.h (License): Same.
15851         * config/arm/linux-gas.h (License): Same.
15852         * config/arm/netbsd-elf.h (License): Same.
15853         * config/arm/uclinux-eabi.h (License): Same.
15854         * config/arm/uclinux-elf.h (License): Same.
15855         * config/arm/vxworks.h (License): Same.
15857 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15859         * config/arm/neon.md (neon_bswap<mode>): New pattern.
15860         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
15861         (arm_init_neon_builtins): Handle NEON_BSWAP.
15862         Define required type nodes.
15863         (arm_expand_neon_builtin): Handle NEON_BSWAP.
15864         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
15865         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
15866         * config/arm/iterators.md (VDQHSD): New mode iterator.
15868 2014-05-27  Richard Biener  <rguenther@suse.de>
15870         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
15871         Try using literal operands when comparing value-ranges failed.
15873 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
15875         * ira.c (commutative_operand): Adjust for change to recog_data.
15876         [Missing from previous commit.]
15878 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
15880         * system.h (TEST_BIT): New macro.
15881         * recog.h (alternative_mask): New type.
15882         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
15883         (recog_data_d): Replace alternative_enabled_p array with
15884         enabled_alternatives.
15885         (target_recog): New structure.
15886         (default_target_recog, this_target_recog): Declare.
15887         (get_enabled_alternatives, recog_init): Likewise.
15888         * recog.c (default_target_recog, this_target_recog): New variables.
15889         (get_enabled_alternatives): New function.
15890         (extract_insn): Use it.
15891         (recog_init): New function.
15892         (preprocess_constraints, constrain_operands): Adjust for change to
15893         recog_data.
15894         * postreload.c (reload_cse_simplify_operands): Likewise.
15895         * reload.c (find_reloads): Likewise.
15896         * ira-costs.c (record_reg_classes): Likewise.
15897         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
15898         all alternatives after a disabled one would be skipped.
15899         (ira_implicitly_set_insn_hard_regs): Likewise.
15900         * ira.c (ira_setup_alts): Adjust for change to recog_data.
15901         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
15902         with enabled_alternatives.
15903         * lra.c (free_insn_recog_data): Update accordingly.
15904         (lra_update_insn_recog_data): Likewise.
15905         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
15906         * lra-constraints.c (process_alt_operands): Likewise.  Handle
15907         only_alternative as part of the enabled mask.
15908         * target-globals.h (this_target_recog): Declare.
15909         (target_globals): Add a recog field.
15910         (restore_target_globals): Restore this_target_recog.
15911         * target-globals.c: Include recog.h.
15912         (default_target_globals): Initialize recog field.
15913         (save_target_globals): Likewise.
15914         * reginfo.c (reinit_regs): Call recog_init.
15915         * toplev.c (backend_init_target): Likewise.
15917 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
15919         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
15920         rather than any named insn's code.
15922 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
15924         PR libgcc/61152
15925         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
15926         * config/arm/arm-cores.def (License): Same.
15928 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
15930         * tree.h (decl_comdat_group): Declare.
15931         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
15932         * tree.c (decl_comdat_group): Here.
15934 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
15936         PR rtl-optimization/61222
15937         * combine.c (simplify_shift_const_1): When moving a PLUS outside
15938         the shift, truncate the PLUS operand to the result mode.
15940 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
15942         PR target/61271
15943         * config/i386/i386.c (ix86_rtx_costs)
15944         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
15945         Fix condition.
15947 2014-05-26  Martin Jambor  <mjambor@suse.cz>
15949         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
15950         subreg uses.
15952 2014-05-26  Richard Biener  <rguenther@suse.de>
15954         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
15955         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
15956         Provide specializations.
15957         (wi::int_traits <HOST_WIDE_INT>,
15958         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
15960 2014-05-26  Alan Modra  <amodra@gmail.com>
15962         PR target/61098
15963         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
15964         params and return a bool.  Remove dead code.  Update comment.
15965         Assert we have a const_int source.  Remove bogus code from
15966         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
15967         handling of constants > 2G and reg_equal note, from..
15968         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
15969         return value.  Update comment.  If we can, use a new pseudo
15970         for intermediate calculations.
15971         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
15972         prototype.
15973         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
15974         call to rs6000_emit_set_const in splitter.
15975         (movdi_internal64+2, +3): Likewise.
15977 2014-05-26  Richard Biener  <rguenther@suse.de>
15979         * system.h: Define __STDC_FORMAT_MACROS before
15980         including inttypes.h.
15981         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
15982         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
15983         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
15984         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
15985         HOST_WIDEST_INT_C): Remove.
15986         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
15987         if C99 inttypes.h is not available.
15988         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
15989         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
15990         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
15991         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
15992         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
15993         (struct output_info): Likewise.
15994         (print_statistics): Adjust.
15995         (dump_bitmap_statistics): Likewise.
15996         * bt-load.c (migrate_btr_defs): Print with PRId64.
15997         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
15998         (MAX_SAFE_MULTIPLIER): Adjust.
15999         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
16000         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
16001         dump_cgraph_node): Likewise.
16002         * final.c (dump_basic_block_info): Likewise.
16003         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
16004         * gcov.c (format_gcov): Likewise.
16005         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
16006         for calculation.
16007         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
16008         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
16009         (inline_small_functions, dump_overall_stats, dump_inline_stats):
16010         Use PRId64 for dumping.
16011         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
16012         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
16013         (add_allocno_hard_regs): Adjust.
16014         * loop-doloop.c (doloop_modify): Print using PRId64.
16015         * loop-iv.c (inverse): Compute in uint64_t.
16016         (determine_max_iter, iv_number_of_iterations): Likewise.
16017         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
16018         Print using PRId64.
16019         * lto-streamer-out.c (write_symbol): Use uint64_t.
16020         * mcf.c (CAP_INFINITY): Use int64_t maximum.
16021         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
16022         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
16023         * modulo-sched.c (const_iteration_count): Use int64_t.
16024         (sms_schedule): Dump using PRId64.
16025         * predict.c (dump_prediction): Likewise.
16026         * pretty-print.h (pp_widest_integer): Remove.
16027         * profile.c (get_working_sets, is_edge_inconsistent,
16028         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
16029         * tree-pretty-print.c (pp_double_int): Remove case handling
16030         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
16031         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
16032         and adjust users.
16033         (pass_optimize_bswap::execute): Remove restriction on hosts.
16034         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
16035         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
16036         * tree.c (widest_int_cst_value): Remove.
16037         * tree.h (widest_int_cst_value): Likewise.
16038         * value-prof.c (dump_histogram_value): Print using PRId64.
16039         * gengtype.c (main): Also inject int64_t.
16040         * ggc-page.c (struct max_alignment): Use int64_t.
16041         * alloc-pool.c (struct allocation_object_def): Likewise.
16042         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
16043         for computation.
16044         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
16045         * doc/tm.texi: Regenerated.
16046         * gengtype-lex.l (IWORD): Handle [u]int64_t.
16047         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
16048         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
16049         mmix_output_register_setting): Use [u]int64_t in prototypes.
16050         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
16051         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
16052         mmix_output_octa, mmix_output_shifted_value): Adjust.
16053         (mmix_intval): Adjust.  Remove unreachable case.
16054         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
16056 2014-05-26  Richard Biener  <rguenther@suse.de>
16058         * configure.ac: Drop __int64 type check.  Insist that we
16059         found uint64_t and int64_t.
16060         * hwint.h (HOST_BITS_PER___INT64): Remove.
16061         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
16062         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
16063         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
16064         (HOST_WIDEST_FAST_INT): Remove __int64 case.
16065         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
16066         for dst_q_src_df_rms_cdt.
16067         * configure: Regenerate.
16068         * config.in: Likewise.
16070 2014-05-26  Michael Tautschnig  <mt@debian.org>
16072         PR target/61249
16073         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
16074         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
16076 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16078         PR rtl-optimization/61278
16079         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
16081 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16083         PR rtl-optimization/61220
16084         Part of PR rtl-optimization/61225
16085         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
16086         insn; skip split_edge for a block with only one successor.
16088 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16090         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
16091         for variables.
16093 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16095         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
16096         (update_vtable_references): New function.
16097         (function_and_variable_visibility): Rewrite also vtable initializers.
16098         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
16100 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16102         * ggc.h (ggc_grow): New function.
16103         * ggc-none.c (ggc_grow): New function.
16104         * ggc-page.c (ggc_grow): Likewise.
16106 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16108         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
16109         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
16110         comdat_can_be_unshared_p, cgraph_externally_visible_p,
16111         varpool_externally_visible_p, can_replace_by_local_alias,
16112         update_visibility_by_resolution_info, function_and_variable_visibility,
16113         pass_data_ipa_function_and_variable_visibility,
16114         make_pass_ipa_function_and_variable_visibility,
16115         whole_program_function_and_variable_visibility,
16116         pass_data_ipa_whole_program_visibility,
16117         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
16118         * cgraph.h (cgraph_local_node_p): Declare.
16119         * ipa-visibility.c: New file.
16120         * Makefile.in (OBJS): Add ipa-visiblity.o
16122 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16124         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
16125         that var decl is available.
16127 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16129         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
16130         symtab_node pointer.
16131         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
16132         (find_decls_types_r): Do not walk COMDAT_GROUP.
16133         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
16134         * varasm.c (make_decl_one_only): Use set_comdat_group;
16135         create node if needed.
16136         * ipa-inline-transform.c (save_inline_function_body): Update
16137         way we decl->symtab mapping.
16138         * symtab.c (symtab_hash, hash_node, eq_node
16139         symtab_insert_node_to_hashtable): Remove.
16140         (symtab_register_node): Update.
16141         (symtab_unregister_node): Update.
16142         (symtab_get_node): Reimplement as inline function.
16143         (symtab_add_to_same_comdat_group): Update.
16144         (symtab_dissolve_same_comdat_group_list): Update.
16145         (dump_symtab_base): Update.
16146         (verify_symtab_base): Update.
16147         (symtab_make_decl_local): Update.
16148         (fixup_same_cpp_alias_visibility): Update.
16149         (symtab_nonoverwritable_alias): Update.
16150         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
16151         * ipa.c (update_visibility_by_resolution_info): UPdate.
16152         * bb-reorder.c: Include cgraph.h
16153         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
16154         with comdat groups.
16155         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
16156         * cgraph.c (cgraph_get_create_node): Update.
16157         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
16158         and comdat_group_.
16159         (symtab_get_node): Make inline.
16160         (symtab_insert_node_to_hashtable): Remove.
16161         (symtab_can_be_discarded): Update.
16162         (decl_comdat_group): New function.
16163         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
16164         Update.
16165         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
16166         comdat group name.
16167         (read_comdat_group): New function.
16168         (input_node, input_varpool_node): Use it.
16169         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
16170         comdat groups.
16171         * mips.c (mips_start_unique_function): Likewise.
16172         (ix86_code_end): Likewise.
16173         (rs6000_code_end): Likweise.
16174         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
16176 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16178         * gengtype-state.c (fatal_reading_state): Bring offline.
16179         * optabs.c (widening_optab_handler): Bring offline.
16180         * optabs.h (widening_optab_handler): Likewise.
16181         * final.c (get_attr_length_1): Likewise.
16183 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16185         * sched-int.h (sd_iterator_cond): Manually tail recurse.
16187 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16189         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
16190         (ppc440-compare): Include shift with dot.
16191         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
16192         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
16193         without dot.
16194         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
16195         without dot.
16196         (e6500_sfx2): Include it.
16197         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
16198         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
16199         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
16200         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
16201         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
16202         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
16203         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
16204         *lshiftrt_internal1le, *lshiftrt_internal1be,
16205         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
16206         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
16207         *rotldi3_internal10le, *rotldi3_internal10be,
16208         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
16209         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
16210         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
16211         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
16212         define_insns): Use type "shift" in the appropriate alternatives.
16214 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16216         * config/rs6000/rs6000.md (type): Add "logical".  Delete
16217         "fast_compare".
16218         (dot): Adjust comment.
16219         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
16220         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
16221         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
16222         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
16223         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
16224         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
16225         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
16226         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16228         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16229         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16230         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16231         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16232         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16233         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16234         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16235         * config/rs6000/8540.md (ppc8540_su): Adjust.
16236         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16237         cell-cmp-microcoded): Adjust.
16238         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16239         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16240         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16241         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16242         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16243         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16244         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16245         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16246         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16247         Adjust.
16248         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16249         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
16250         Adjust.  Adjust comment.
16251         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16252         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
16254 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16256         * config/rs6000/rs6000.md (type): Add "add".
16257         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
16258         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
16259         define_insns): Use it.
16260         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16262         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16263         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16264         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16265         * config/rs6000/601.md (ppc601-integer): Adjust.
16266         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16267         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16268         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16269         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16270         * config/rs6000/8540.md (ppc8540_su): Adjust.
16271         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16272         cell-cmp-microcoded): Adjust.
16273         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16274         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16275         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16276         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16277         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16278         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16279         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16280         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16281         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16282         Adjust.
16283         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16284         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
16285         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16286         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
16288 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16290         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
16291         "delayed_compare", "var_delayed_compare".
16292         (var_shift): New attribute.
16293         (cell_micro): Adjust.
16294         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
16295         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
16296         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
16297         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
16298         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
16299         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
16300         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
16301         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
16302         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
16303         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
16304         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
16305         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
16306         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
16307         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
16308         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
16309         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
16310         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
16311         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
16312         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
16313         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
16314         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
16315         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
16316         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
16317         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16318         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16320         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16321         * config/rs6000/440.md (ppc440-integer): Adjust.
16322         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16323         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
16324         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16325         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16326         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16327         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16328         * config/rs6000/8540.md (ppc8540_su): Adjust.
16329         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16330         cell-cmp-microcoded): Adjust.
16331         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
16332         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16333         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
16334         e500mc64_delayed): Adjust.
16335         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
16336         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
16337         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16338         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
16339         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
16340         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
16341         power6-delayed-compare, power6-var-delayed-compare): Adjust.
16342         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
16343         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
16344         Adjust comment.
16345         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16346         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16348 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16350         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
16351         (bits): New mode_attr.
16352         (idiv_ldiv): Delete mode_attr.
16353         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
16354         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16355         rs6000_adjust_priority, is_nonpipeline_insn,
16356         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16358         * config/rs6000/40x.md (ppc403-idiv): Adjust.
16359         * config/rs6000/440.md (ppc440-idiv): Adjust.
16360         * config/rs6000/476.md (ppc476-idiv): Adjust.
16361         * config/rs6000/601.md (ppc601-idiv): Adjust.
16362         * config/rs6000/603.md (ppc603-idiv): Adjust.
16363         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
16364         ppc620-ldiv): Adjust.
16365         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
16366         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
16367         * config/rs6000/8540.md (ppc8540_divide): Adjust.
16368         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
16369         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
16370         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
16371         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
16372         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
16373         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
16374         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
16375         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
16376         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
16377         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
16378         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
16379         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
16380         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
16381         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
16382         * config/rs6000/titan.md (titan_fxu_div): Adjust.
16384 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16386         * config/rs6000/rs6000.md (type): Delete "insert_word",
16387         "insert_dword".  Add "insert".
16388         (size): Update comment.
16389         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16390         insn_must_be_first_in_group): Adjust.
16391         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16392         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16393         *insvsi_internal6, insvdi_internal): Adjust.
16395         * config/rs6000/40x.md (ppc403-integer): Adjust.
16396         * config/rs6000/440.md (ppc440-integer): Adjust.
16397         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
16398         * config/rs6000/601.md (ppc601-integer): Adjust.
16399         * config/rs6000/603.md (ppc603-integer): Adjust.
16400         * config/rs6000/6xx.md (ppc604-integer): Adjust.
16401         * config/rs6000/7450.md (ppc7450-integer): Adjust.
16402         * config/rs6000/7xx.md (ppc750-integer): Adjust.
16403         * config/rs6000/8540.md (ppc8540_su): Adjust.
16404         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
16405         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
16406         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16407         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
16408         * config/rs6000/e5500.md (e5500_sfx): Adjust.
16409         * config/rs6000/e6500.md (e6500_sfx): Adjust.
16410         * config/rs6000/mpc.md (mpccore-integer): Adjust.
16411         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
16412         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
16413         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
16414         * config/rs6000/power7.md (power7-integer): Adjust.
16415         * config/rs6000/power8.md (power8-1cyc): Adjust.
16416         * config/rs6000/rs64.md (rs64a-integer): Adjust.
16417         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16419 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16421         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
16422         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
16423         (size): New attribute.
16424         (dot): New attribute.
16425         (cell_micro): Adjust.
16426         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
16427         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
16428         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
16429         umuldi3_highpart): Adjust.
16430         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16431         rs6000_adjust_priority, is_nonpipeline_insn,
16432         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16434         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
16435         ppc405-imul3): Adjust.
16436         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
16437         * config/rs6000/476.md (ppc476-imul): Adjust.
16438         * config/rs6000/601.md (ppc601-imul): Adjust.
16439         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
16440         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
16441         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
16442         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
16443         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
16444         Adjust.
16445         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
16446         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
16447         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
16448         cell-imul): Adjust.
16449         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
16450         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
16451         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
16452         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
16453         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
16454         * config/rs6000/mpc.md (mpccore-imul): Adjust.
16455         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
16456         power4-lmul, power4-imul, power4-imul3): Adjust.
16457         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
16458         power5-lmul, power5-imul, power5-imul3): Adjust.
16459         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
16460         power6-lmul, power6-imul, power6-imul3): Adjust.
16461         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
16462         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
16464         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
16465         rs64a-lmul): Adjust.
16466         * config/rs6000/titan.md (titan_imul): Adjust.
16468 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16470         * config/rs6000/rs6000.md (type): Add new value "halfmul".
16471         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
16472         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
16473         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
16474         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
16475         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
16476         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
16477         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
16478         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
16479         * config/rs6000/titan.md: Delete nonsensical comment.
16480         (titan_imul): Add type imul3.
16481         (titan_mulhw): Remove type imul3; add type halfmul.
16483 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16485         * config/rs6000/rs6000.md (type): Reorder, reformat.
16487 2014-05-23  Martin Jambor  <mjambor@suse.cz>
16489         PR tree-optimization/53787
16490         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
16491         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
16492         analysis_done, update all uses.
16493         * ipa-prop.c: Include domwalk.h
16494         (param_analysis_info): Removed.
16495         (param_aa_status): New type.
16496         (ipa_bb_info): Likewise.
16497         (func_body_info): Likewise.
16498         (ipa_get_bb_info): New function.
16499         (aa_overwalked): Likewise.
16500         (find_dominating_aa_status): Likewise.
16501         (parm_bb_aa_status_for_bb): Likewise.
16502         (parm_preserved_before_stmt_p): Changed to use new param AA info.
16503         (load_from_unmodified_param): Accept func_body_info as a parameter
16504         instead of parms_ainfo.
16505         (parm_ref_data_preserved_p): Changed to use new param AA info.
16506         (parm_ref_data_pass_through_p): Likewise.
16507         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
16508         (compute_complex_assign_jump_func): Changed to use new param AA info.
16509         (compute_complex_ancestor_jump_func): Likewise.
16510         (ipa_compute_jump_functions_for_edge): Likewise.
16511         (ipa_compute_jump_functions): Removed.
16512         (ipa_compute_jump_functions_for_bb): New function.
16513         (ipa_analyze_indirect_call_uses): Likewise, moved variable
16514         declarations down.
16515         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
16516         and info, moved variable declarations down.
16517         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
16518         node and info.
16519         (ipa_analyze_stmt_uses): Likewise.
16520         (ipa_analyze_params_uses): Removed.
16521         (ipa_analyze_params_uses_in_bb): New function.
16522         (ipa_analyze_controlled_uses): Likewise.
16523         (free_ipa_bb_info): Likewise.
16524         (analysis_dom_walker): New class.
16525         (ipa_analyze_node): Handle node-specific forbidden analysis,
16526         initialize and free func_body_info, use dominator walker.
16527         (ipcp_modif_dom_walker): New class.
16528         (ipcp_transform_function): Create and free func_body_info, use
16529         ipcp_modif_dom_walker, moved a lot of functionality there.
16531 2014-05-23  Marek Polacek  <polacek@redhat.com>
16532             Jakub Jelinek  <jakub@redhat.com>
16534         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
16535         * gcc.c (sanitize_spec_function): Likewise.
16536         * convert.c (convert_to_integer): Include "ubsan.h".  Add
16537         floating-point to integer instrumentation.
16538         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
16539         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
16540         SANITIZE_NONDEFAULT.
16541         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
16542         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
16543         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
16544         * ubsan.c: Include "realmpfr.h" and "dfp.h".
16545         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
16546         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
16547         float/double/long double.
16548         (ubsan_instrument_float_cast): New function.
16549         * ubsan.h (ubsan_instrument_float_cast): Declare.
16551 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
16553         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
16554         predicate.
16555         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
16556         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
16557         Adjust for tailcalling through registers.
16558         * config/aarch64/aarch64.h (enum reg_class): New caller save
16559         register class.
16560         (REG_CLASS_NAMES): Likewise.
16561         (REG_CLASS_CONTENTS): Likewise.
16562         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
16563         Allow tailcalling without decls.
16565 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
16567         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
16568         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
16570         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
16571         gsi, and variables v_* to v*.
16573 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
16575         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
16577 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
16579         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
16580         * omp-low.c: Update accordingly.
16582         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
16583         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
16584         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
16585         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
16586         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
16587         GF_OMP_TARGET_KIND_UPDATE.
16589         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
16590         Explicitly enumerate the expected region types.
16592 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16594         PR other/56955
16595         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
16596         documentation; the old documentation didn't clearly state the
16597         constraints on the contents of the pointed-to storage.
16599 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16601         Fix bootstrap error on ia64
16602         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
16603         Return default value.
16605 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16607         PR tree-optimization/54733
16608         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
16609         (CMPNOP): Define.
16610         (find_bswap_or_nop_load): New.
16611         (find_bswap_1): Renamed to ...
16612         (find_bswap_or_nop_1): This. Also add support for memory source.
16613         (find_bswap): Renamed to ...
16614         (find_bswap_or_nop): This. Also add support for memory source and
16615         detection of bitwise operations equivalent to load in target
16616         endianness.
16617         (execute_optimize_bswap): Likewise. Also move its leading comment back
16618         in place and split statement transformation into ...
16619         (bswap_replace): This.
16621 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
16623         PR rtl-optimization/61215
16624         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
16625         simplify_gen_subreg until final substitution.
16627 2014-05-23  Alan Modra  <amodra@gmail.com>
16629         PR target/61231
16630         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
16631         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
16632         Use "Y" constraint rather than "m".
16634 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
16636         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
16637         define.
16638         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
16639         New function declaration.
16640         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
16641         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
16642         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
16643         (aarch64_init_builtins) : Initialize builtins
16644         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
16645         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
16646         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
16647         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
16648         and __builtins_aarch64_set_fpsr.
16649         (aarch64_atomic_assign_expand_fenv): New function.
16650         * config/aarch64/aarch64.md (set_fpcr): New pattern.
16651         (get_fpcr) : Likewise.
16652         (set_fpsr) : Likewise.
16653         (get_fpsr) : Likewise.
16654         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
16655          and UNSPECV_SET_FPSR.
16656         * doc/extend.texi (AARCH64 Built-in Functions) : Document
16657         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
16658         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
16660 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
16662         PR rtl-optimization/60969
16663         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
16664         constraints.  Set up mem cost for NO_REGS case.
16666 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
16668         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
16670 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
16672         * config/darwin.c: Include "lto-section-names.h".
16673         (LTO_SEGMENT_NAME): Don't define.
16674         * config/i386/winnt.c: Include "lto-section-names.h".
16675         * lto-streamer.c: Include "lto-section-names.h".
16676         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
16677         * lto-wrapper.c: Include "lto-section-names.h".
16678         (LTO_SECTION_NAME_PREFIX): Don't define.
16679         * lto-section-names.h: New file.
16680         * cgraphunit.c: Include "lto-section-names.h".
16682 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
16684         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
16686 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
16688         PR target/61208
16689         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
16691 2014-05-22  Nick Clifton  <nickc@redhat.com>
16693         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
16695 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
16697         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
16698         -> (T)A transformation to integer types.
16700 2014-05-22  Teresa Johnson  <tejohnson@google.com>
16702         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
16703         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
16704         (gcov_rewrite): Use gcov_nonruntime_assert.
16705         (gcov_open): Ditto.
16706         (gcov_write_words): Ditto.
16707         (gcov_write_length): Ditto.
16708         (gcov_read_words): Use gcov_nonruntime_assert, and remove
16709         gcc_assert from IN_LIBGCOV code.
16710         (gcov_read_summary): Use gcov_error to flag profile corruption.
16711         (gcov_sync): Use gcov_nonruntime_assert.
16712         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
16713         (gcov_histo_index): Use gcov_nonruntime_assert.
16714         (static void gcov_histogram_merge): Ditto.
16715         (compute_working_sets): Ditto.
16716         * gcov-io.h (gcov_nonruntime_assert): Define.
16717         (gcov_error): Define for !IN_LIBGCOV
16719 2014-05-22  Richard Biener  <rguenther@suse.de>
16721         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
16722         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
16723         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
16724         and deallocation site.
16725         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16726         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
16727         passing through the incoming points-to set.
16728         (handle_lhs_call): Use flags argument instead of recomputing it.
16729         (find_func_aliases_for_call): Call handle_lhs_call with proper
16730         call return flags.
16732 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
16734         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
16735         all padding bits in REAL_VALUE_TYPE are cleared.
16737 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16739         Cleanup and improve multipass_dfa_lookahead_guard
16740         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
16741         (core2i7_first_cycle_multipass_begin,)
16742         (core2i7_first_cycle_multipass_issue,)
16743         (core2i7_first_cycle_multipass_backtrack): Update signature.
16744         * config/ia64/ia64.c
16745         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
16746         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
16747         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
16748         hook definition.
16749         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
16750         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
16751         values.
16752         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
16753         return values.
16754         * doc/tm.texi: Regenerate.
16755         * doc/tm.texi.in
16756         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
16757         * haifa-sched.c (ready_try): Make signed to allow negative values.
16758         (rebug_ready_list_1): Update.
16759         (choose_ready): Simplify.
16760         (sched_extend_ready_list): Update.
16762 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16764         Remove IA64 speculation tweaking flags
16765         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
16766         speculation tuning flags.
16767         (msched-prefer-non-data-spec-insns,)
16768         (msched-prefer-non-control-spec-insns): Obsolete options.
16769         * haifa-sched.c (choose_ready): Remove handling of
16770         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
16771         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
16772         and PREFER_NON_DATA_SPEC.
16773         * sel-sched.c (process_spec_exprs): Remove handling of
16774         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
16776 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16778         Improve scheduling debug output
16779         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
16780         (advance_one_cycle): Update.
16781         (schedule_insn, queue_to_ready): Add debug printouts.
16782         (debug_ready_list_1): New static function.
16783         (debug_ready_list): Update.
16784         (max_issue): Add debug printouts.
16785         (dump_insn_stream): New static function.
16786         (schedule_block): Use it.  Also better indent printouts.
16788 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16790         Fix sched_insn debug counter
16791         * haifa-sched.c (schedule_insn): Update.
16792         (struct haifa_saved_data): Add nonscheduled_insns_begin.
16793         (save_backtrack_point, restore_backtrack_point): Update.
16794         (first_nonscheduled_insn): New static function.
16795         (queue_to_ready, choose_ready): Use it.
16796         (schedule_block): Init nonscheduled_insns_begin.
16797         (sched_emit_insn): Update.
16800 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
16802         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
16803         to GENERAL_REGS.
16804         (aarch64_secondary_reload) : LikeWise.
16805         (aarch64_class_max_nregs) : Remove CORE_REGS.
16806         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
16807         (REG_CLASS_NAMES) : Likewise.
16808         (REG_CLASS_CONTENTS) : LikeWise.
16809         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
16811 2014-05-21  Guozhi Wei  <carrot@google.com>
16813         PR target/61202
16814         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
16815         constraint.
16816         (vqdmulhq_n_s16): Likewise.
16818 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
16820         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
16822 2014-05-21  Marek Polacek  <polacek@redhat.com>
16824         PR sanitizer/61272
16825         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
16827 2014-05-21  Martin Jambor  <mjambor@suse.cz>
16829         * doc/invoke.texi (Optimize Options): Document parameters
16830         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
16831         ipa-cp-array-index-hint-bonus.
16833 2014-05-21  Mark Wielaard  <mjw@redhat.com>
16835         PR debug/16063
16836         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
16837         version >= 3 or not strict DWARF.
16838         * langhooks.h (struct lang_hooks_for_types): Add
16839         enum_underlying_base_type.
16840         * langhooks.c (lhd_enum_underlying_base_type): New function.
16841         * gcc/langhooks.h (struct lang_hooks_for_types): Add
16842         enum_underlying_base_type.
16843         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
16844         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
16845         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
16847 2014-05-21  Richard Biener  <rguenther@suse.de>
16849         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
16851 2014-05-21  John Marino  <gnugcc@marino.st>
16853         * config.gcc (*-*-dragonfly*): New target.
16854         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
16855         * configure: Regenerate.
16856         * config/dragonfly-stdint.h: New.
16857         * config/dragonfly.h: New.
16858         * config/dragonfly.opt: New.
16859         * config/i386/dragonfly.h: New.
16860         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
16862 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
16864         * tree.def (VOID_CST): New.
16865         * tree-core.h (TI_VOID): New.
16866         * tree.h (void_node): New.
16867         * tree.c (tree_node_structure_for_code, tree_code_size)
16868         (iterative_hash_expr): Handle VOID_CST.
16869         (build_common_tree_nodes): Initialize void_node.
16871 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
16873         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
16874         functions.
16875         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
16877         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
16878         more places.
16880         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
16881         flag_reorder_blocks_and_partition.
16882         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
16884 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
16886         PR target/54236
16887         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
16888         constraints.
16889         (*addc_r_t): Add new insn_and_split.
16891 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
16893         PR middle-end/61252
16894         * omp-low.c (handle_simd_reference): New function.
16895         (lower_rec_input_clauses): Use it.  Defer adding reference
16896         initialization even for reduction without placeholder if in simd,
16897         handle it properly later on.
16899 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
16901         PR tree-optimization/60899
16902         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
16903         assume all static symbols will have definition wile parsing and
16904         check the do have definition later in compilation; check that
16905         variable referring symbol will be output before concluding that
16906         reference is safe; be conservative for referring local statics;
16907         be more precise about when comdat is output in other partition.
16909 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
16911         PR bootstrap/60984
16912         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
16913         parameter.
16914         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
16915         (ipa_inline): Loop inline_to_all_callers until no more aliases
16916         are removed.
16918 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
16920         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
16921         set writeonly flag only for vars actually written to.
16923 2014-05-20  Dehao Chen  <dehao@google.com>
16925         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
16926         and callee count to get clone count.
16927         * tree-inline.c (expand_call_inline): Use callee count instead of bb
16928         count in copy_body.
16930 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
16932         PR rtl-optimization/61243
16933         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
16935 2014-05-20  Xinliang David Li  <davidxl@google.com>
16937         * cgraphunit.c (walk_polymorphic_call_targets): Add
16938         dbgcnt and fopt-info support.
16939         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
16940         * ipa-devirt.c (ipa_devirt): Ditto.
16941         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
16942         * ipa.c (walk_polymorphic_call_targets): Ditto.
16943         * gimple-fold.c (fold_gimple_assign): Ditto.
16944         (gimple_fold_call): Ditto.
16945         * dbgcnt.def: New counter.
16947 2014-05-20  DJ Delorie  <dj@redhat.com>
16949         * config/msp430/msp430.md (split): Don't allow subregs when
16950         splitting SImode adds.
16951         (andneghi): Fix subtraction logic.
16952         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
16954 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
16956         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
16957         symbols.
16958         * except.c (switch_to_exception_section, resolve_unique_section,
16959         get_named_text_section, default_function_rodata_section,
16960         align_variable, get_block_for_decl, default_section_type_flags):
16961         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
16962         * symtab.c (symtab_add_to_same_comdat_group,
16963         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
16964         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
16965         Likewise.
16966         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
16967         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
16968         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16969         (c6x_function_in_section_p): Likewise.
16970         * config/darwin.c (machopic_select_section): Likewise.
16971         * config/arm/arm.c (arm_function_in_section_p): Likewise.
16972         * config/mips/mips.c (mips_function_rodata_section): Likewise.
16973         * config/mep/mep.c (mep_select_section): LIkewise.
16974         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16976 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
16978         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
16979         EH region of calls to pure functions that can throw an exception.
16980         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
16981         (copy_reference_ops_from_call): Also copy the EH region of the call if
16982         it can throw an exception.
16984 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16986         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
16987         nested VEC_SELECTs that are inverses of each other.
16989 2014-05-20  Richard Biener  <rguenther@suse.de>
16991         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
16992         (extract_and_process_scc_for_name): not here.
16993         (cond_dom_walker::before_dom_children): Only process
16994         stmts that end the BB in interesting ways.
16995         (run_scc_vn): Mark param uses as visited.
16997 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16999         * config/arm/arm.md (arith_shiftsi): Do not predicate for
17000         arm_restrict_it.
17002 2014-05-20  Nick Clifton  <nickc@redhat.com>
17004         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
17005         (msp430_gimplify_va_arg_expr): New function.
17006         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
17008         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
17009         operand 0 in order to prevent confusion about the number of
17010         registers involved.
17012 2014-05-20  Richard Biener  <rguenther@suse.de>
17014         PR tree-optimization/61221
17015         * tree-ssa-pre.c (el_to_update): Remove.
17016         (eliminate_dom_walker::before_dom_children): Handle released
17017         VDEFs by value-numbering them to the associated VUSE.  Update
17018         stmt immediately for substituted call address.
17019         (eliminate): Remove delayed stmt updating code.
17020         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
17021         possibly late re-numbered vuses.
17022         (vn_reference_lookup_2): Adjust.
17023         (vn_reference_lookup_pieces): Likewise.
17024         (vn_reference_lookup): Likewise.
17026 2014-05-20  Richard Biener  <rguenther@suse.de>
17028         * config.gcc: Remove need_64bit_hwint.
17029         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
17030         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
17031         it to be true.
17032         * config.in: Regenerate.
17033         * configure: Likewise.
17035 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
17037         * doc/extend.texi: Create Label Attributes section,
17038         move all label attributes into it and reference it.
17040 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
17042         * arm.c (thumb1_reorg): When scanning backwards skip anything
17043         that's not a proper insn.
17045 2014-05-19  Richard Biener  <rguenther@suse.de>
17047         PR tree-optimization/61221
17048         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17049         Do nothing for unreachable blocks.
17050         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
17051         Improve unreachability detection.
17053 2014-05-19  Richard Biener  <rguenther@suse.de>
17055         PR tree-optimization/61209
17056         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
17058 2014-05-19  Nick Clifton  <nickc@redhat.com>
17060         * except.c (init_eh): Fix computation of builtin setjmp buffer
17061         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
17063 2014-05-19  Richard Biener  <rguenther@suse.de>
17065         PR tree-optimization/61184
17066         * tree-vrp.c (is_negative_overflow_infinity): Use
17067         TREE_OVERFLOW_P and do that check first.
17068         (is_positive_overflow_infinity): Likewise.
17069         (is_overflow_infinity): Likewise.
17070         (vrp_operand_equal_p): Properly treat operands with
17071         differing overflow as not equal.
17073 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
17075         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
17076         shift simplification where it was intended.
17078 2014-05-19  Christian Bruel  <christian.bruel@st.com>
17080         PR target/61195
17081         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
17083 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
17085         PR target/61084
17086         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
17087         than wide_int.
17089 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
17091         * reg-notes.def (CROSSING_JUMP): Likewise.
17092         * rtl.h (rtx_def): Update comment for jump flag.
17093         (CROSSING_JUMP_P): Define.
17094         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
17095         of a REG_CROSSING_JUMP note.
17096         * cfghooks.c (tidy_fallthru_edges): Likewise.
17097         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
17098         * emit-rtl.c (try_split): Likewise.
17099         * haifa-sched.c (sched_create_recovery_edges): Likewise.
17100         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
17101         * jump.c (redirect_jump_2): Likewise.
17102         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
17103         (relax_delay_slots): Likewise.
17104         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
17105         (bbit_di): Likewise.
17106         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
17107         * config/sh/sh.md (jump_compact): Likewise.
17108         * bb-reorder.c (rotate_loop): Likewise.
17109         (pass_duplicate_computed_gotos::execute): Likewise.
17110         (add_reg_crossing_jump_notes): Rename to...
17111         (update_crossing_jump_flags): ...this.
17112         (pass_partition_blocks::execute): Update accordingly.
17114 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
17116         * tree.h: Remove extraneous template <>.
17118 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17120         * ipa.c (symtab_remove_unreachable_nodes): Remove
17121         symbol from comdat group if its body was eliminated.
17122         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
17123         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
17124         (symtab_unregister_node): ... this one.
17125         (verify_symtab_base): More strict checking of comdats.
17126         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
17128 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17130         * tree-pass.h (make_pass_ipa_comdats): New pass.
17131         * timevar.def (TV_IPA_COMDATS): New timevar.
17132         * passes.def (pass_ipa_comdats): Add.
17133         * Makefile.in (OBJS): Add ipa-comdats.o
17134         * ipa-comdats.c: New file.
17136 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17138         * ipa.c (update_visibility_by_resolution_info): New function.
17139         (function_and_variable_visibility): Use it.
17141 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17143         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
17144         New functions.
17145         (FOR_EACH_DEFINED_SYMBOL): New macro.
17146         (varpool_first_static_initializer, varpool_next_static_initializer,
17147         varpool_first_defined_variable, varpool_next_defined_variable):
17148         Fix comments.
17149         (symtab_in_same_comdat_p): Correctly deal with inline functions.
17151 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17153         * ggc-page.c (ggc_handle_finalizers): Add comment.
17155 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17157         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
17158         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
17159         (ggc_internal_cleared_alloc): Likewise.
17160         * ggc-page.c (finalizer): New class.
17161         (vec_finalizer): Likewise.
17162         (globals::finalizers): New member.
17163         (globals::vec_finalizers): Likewise.
17164         (ggc_internal_alloc): Record the finalizer if any for the block being
17165         allocated.
17166         (ggc_handle_finalizers): New function.
17167         (ggc_collect): Call ggc_handle_finalizers.
17168         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
17169         finalizer.
17170         (ggc_internal_cleared_alloc): Likewise.
17171         (finalize): New function.
17172         (need_finalization_p): Likewise.
17173         (ggc_alloc): Install the type's destructor as the finalizer if it
17174         might do something.
17175         (ggc_cleared_alloc): Likewise.
17176         (ggc_vec_alloc): Likewise.
17177         (ggc_cleared_vec_alloc): Likewise.
17179 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17181         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
17183 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17185         * alias.c (record_alias_subset): Adjust.
17186         * bitmap.c (bitmap_element_allocate): Likewise.
17187         (bitmap_gc_alloc_stat): Likewise.
17188         * cfg.c (init_flow): Likewise.
17189         (alloc_block): Likewise.
17190         (unchecked_make_edge): Likewise.
17191         * cfgloop.c (alloc_loop): Likewise.
17192         (flow_loops_find): Likewise.
17193         (rescan_loop_exit): Likewise.
17194         * cfgrtl.c (init_rtl_bb_info): Likewise.
17195         * cgraph.c (insert_new_cgraph_node_version): Likewise.
17196         (cgraph_allocate_node): Likewise.
17197         (cgraph_create_edge_1): Likewise.
17198         (cgraph_allocate_init_indirect_info): Likewise.
17199         * cgraphclones.c (cgraph_clone_edge): Likewise.
17200         * cgraphunit.c (add_asm_node): Likewise.
17201         (init_lowered_empty_function): Likewise.
17202         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
17203         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
17204         (alpha_use_linkage): Likewise.
17205         * config/arc/arc.c (arc_init_machine_status): Likewise.
17206         * config/arm/arm.c (arm_init_machine_status): Likewise.
17207         * config/avr/avr.c (avr_init_machine_status): Likewise.
17208         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
17209         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
17210         * config/cris/cris.c (cris_init_machine_status): Likewise.
17211         * config/darwin.c (machopic_indirection_name): Likewise.
17212         (darwin_build_constant_cfstring): Likewise.
17213         (darwin_enter_string_into_cfstring_table): Likewise.
17214         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
17215         * config/frv/frv.c (frv_init_machine_status): Likewise.
17216         * config/i386/i386.c (get_dllimport_decl): Likewise.
17217         (ix86_init_machine_status): Likewise.
17218         (assign_386_stack_local): Likewise.
17219         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
17220         (i386_pe_maybe_record_exported_symbol): Likewise.
17221         (i386_pe_record_stub): Likewise.
17222         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
17223         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
17224         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
17225         (m32c_note_pragma_address): Likewise.
17226         * config/mep/mep.c (mep_init_machine_status): Likewise.
17227         (mep_note_pragma_flag): Likewise.
17228         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
17229         (mips16_local_alias): Likewise.
17230         (mips_init_machine_status): Likewise.
17231         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
17232         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
17233         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
17234         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
17235         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
17236         * config/pa/pa.c (pa_init_machine_status): Likewise.
17237         (pa_get_deferred_plabel): Likewise.
17238         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
17239         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
17240         (rs6000_init_machine_status): Likewise.
17241         (output_toc): Likewise.
17242         * config/s390/s390.c (s390_init_machine_status): Likewise.
17243         * config/score/score.c (score_output_external): Likewise.
17244         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
17245         * config/spu/spu.c (spu_init_machine_status): Likewise.
17246         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
17247         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
17248         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
17249         * coverage.c (coverage_end_function): Likewise.
17250         * dbxout.c (dbxout_init): Likewise.
17251         * doc/gty.texi: Don't mention variable_size attribute.
17252         * dwarf2cfi.c (new_cfi): Adjust.
17253         (new_cfi_row): Likewise.
17254         (copy_cfi_row): Likewise.
17255         (create_cie_data): Likewise.
17256         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
17257         (new_loc_descr): Likewise.
17258         (find_AT_string_in_table): Likewise.
17259         (add_addr_table_entry): Likewise.
17260         (new_die): Likewise.
17261         (add_var_loc_to_decl): Likewise.
17262         (clone_die): Likewise.
17263         (clone_as_declaration): Likewise.
17264         (break_out_comdat_types): Likewise.
17265         (new_loc_list): Likewise.
17266         (add_loc_descr_to_each): Likewise.
17267         (add_location_or_const_value_attribute): Likewise.
17268         (add_linkage_name): Likewise.
17269         (lookup_filename): Likewise.
17270         (dwarf2out_var_location): Likewise.
17271         (new_line_info_table): Likewise.
17272         (dwarf2out_init): Likewise.
17273         (mem_loc_descriptor): Likewise.
17274         (loc_descriptor): Likewise.
17275         (add_const_value_attribute): Likewise.
17276         (tree_add_const_value_attribute): Likewise.
17277         (comp_dir_string): Likewise.
17278         (dwarf2out_vms_debug_main_pointer): Likewise.
17279         (string_cst_pool_decl): Likewise.
17280         * emit-rtl.c (set_mem_attrs): Likewise.
17281         (get_reg_attrs): Likewise.
17282         (start_sequence): Likewise.
17283         (init_emit): Likewise.
17284         (init_emit_regs): Likewise.
17285         * except.c (init_eh_for_function): Likewise.
17286         (gen_eh_region): Likewise.
17287         (gen_eh_region_catch): Likewise.
17288         (gen_eh_landing_pad): Likewise.
17289         (add_call_site): Likewise.
17290         * function.c (add_frame_space): Likewise.
17291         (insert_temp_slot_address): Likewise.
17292         (assign_stack_temp_for_type): Likewise.
17293         (get_hard_reg_initial_val): Likewise.
17294         (allocate_struct_function): Likewise.
17295         (prepare_function_start): Likewise.
17296         (types_used_by_var_decl_insert): Likewise.
17297         * gengtype.c (variable_size_p): Remove function.
17298         (enum alloc_quantity): Remove enum.
17299         (write_typed_alloc_def): Remove function.
17300         (write_typed_struct_alloc_def): Likewise.
17301         (write_typed_typedef_alloc_def): Likewise.
17302         (write_typed_alloc_defns): Likewise.
17303         (main): Adjust.
17304         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
17305         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
17306         * ggc.h (ggc_alloc): new function.
17307         (ggc_cleared_alloc): Likewise.
17308         (ggc_vec_alloc): Template on type of vector element, and remove
17309         element size argument.
17310         (ggc_cleared_vec_alloc): Likewise.
17311         * gimple.c (gimple_build_omp_for): Adjust.
17312         (gimple_copy): Likewise.
17313         * ipa-cp.c (get_replacement_map): Likewise.
17314         (find_aggregate_values_for_callers_subset): Likewise.
17315         (known_aggs_to_agg_replacement_list): Likewise.
17316         * ipa-devirt.c (get_odr_type): Likewise.
17317         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
17318         (read_agg_replacement_chain): Likewise.
17319         * loop-iv.c (get_simple_loop_desc): Likewise.
17320         * lto-cgraph.c (input_node_opt_summary): Likewise.
17321         * lto-section-in.c (lto_new_in_decl_state): Likewise.
17322         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
17323         (input_eh_region): Likewise.
17324         (input_eh_lp): Likewise.
17325         (input_cfg): Likewise.
17326         * optabs.c (set_optab_libfunc): Likewise.
17327         (init_tree_optimization_optabs): Likewise.
17328         (set_conv_libfunc): Likewise.
17329         * passes.c (do_per_function_toporder): Likewise.
17330         * rtl.h: Don't use variable_size gty attribute.
17331         * sese.c (if_region_set_false_region): Adjust.
17332         * stringpool.c (gt_pch_save_stringpool): Likewise.
17333         * target-globals.c (save_target_globals): Likewise.
17334         * toplev.c (general_init): Likewise.
17335         * trans-mem.c (record_tm_replacement): Likewise.
17336         (split_bb_make_tm_edge): Likewise.
17337         * tree-cfg.c (move_sese_region_to_fn): Likewise.
17338         * tree-data-ref.h (lambda_vector_new): Likewise.
17339         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
17340         * tree-iterator.c (tsi_link_before): Likewise.
17341         (tsi_link_after): Likewise.
17342         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
17343         * tree-ssa-loop-niter.c (record_estimate): Likewise.
17344         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
17345         * tree-ssa-operands.h: Don't use variable_size gty attribute.
17346         * tree-ssa.c (init_tree_ssa): Adjust.
17347         * tree-ssanames.c (set_range_info): Likewise.
17348         (get_ptr_info): Likewise.
17349         (duplicate_ssa_name_ptr_info): Likewise.
17350         (duplicate_ssa_name_range_info): Likewise.
17351         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
17352         (unpack_ts_fixed_cst_value_fields): Likewise.
17353         * tree.c (build_fixed): Likewise.
17354         (build_real): Likewise.
17355         (build_string): Likewise.
17356         (decl_priority_info): Likewise.
17357         (decl_debug_expr_insert): Likewise.
17358         (decl_value_expr_insert): Likewise.
17359         (decl_debug_args_insert): Likewise.
17360         (type_hash_add): Likewise.
17361         (build_omp_clause): Likewise.
17362         * ubsan.c (decl_for_type_insert): Likewise.
17363         * varasm.c (get_unnamed_section): Likewise.
17364         (get_noswitch_section): Likewise.
17365         (get_section): Likewise.
17366         (get_block_for_section): Likewise.
17367         (create_block_symbol): Likewise.
17368         (build_constant_desc): Likewise.
17369         (create_constant_pool): Likewise.
17370         (force_const_mem): Likewise.
17371         (record_tm_clone_pair): Likewise.
17372         * varpool.c (varpool_create_empty_node): Likewise.
17374 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17376         * dwarf2out.c (tree_add_const_value_attribute): Call
17377         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
17378         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
17379         instead of ggc_internal_<x>alloc_stat.
17380         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
17381         (ggc_realloc): Likewise.
17382         * ggc-none.c (ggc_internal_alloc): Likewise.
17383         (ggc_internal_cleared_alloc): Likewise.
17384         * ggc-page.c: Likewise.
17385         * ggc.h (ggc_internal_alloc_stat): Likewise.
17386         (ggc_internal_alloc): Remove macro.
17387         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
17388         (ggc_internal_cleared_alloc): Remove macro.
17389         (GGC_RESIZEVEC): Adjust.
17390         (ggc_resizevar): Remove macro.
17391         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
17392         (ggc_internal_cleared_vec_alloc_stat): Likewise.
17393         (ggc_internal_vec_cleared_alloc): Remove macro.
17394         (ggc_alloc_atomic_stat): Drop _stat suffix.
17395         (ggc_alloc_atomic): Remove macro.
17396         (ggc_alloc_cleared_atomic): Remove macro.
17397         (ggc_alloc_string_stat): Drop _stat suffix.
17398         (ggc_alloc_string): Remove macro.
17399         (ggc_alloc_rtx_def_stat): Adjust.
17400         (ggc_alloc_tree_node_stat): Likewise.
17401         (ggc_alloc_cleared_tree_node_stat): Likewise.
17402         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
17403         (ggc_alloc_cleared_simd_clone_stat): Likewise.
17404         * gimple.c (gimple_build_omp_for): Likewise.
17405         (gimple_copy): Likewise.
17406         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
17407         * toplev.c (realloc_for_line_map): Adjust.
17408         * tree-data-ref.h (lambda_vector_new): Likewise.
17409         * tree-phinodes.c (allocate_phi_node): Likewise.
17410         * tree.c (grow_tree_vec_stat): Likewise.
17411         * vec.h (va_gc::reserve): Adjust.
17413 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
17415         * config/microblaze/microblaze.c (break_handler): New Declaration.
17416         (microblaze_break_function_p,microblaze_is_break_handler): New.
17417         (compute_frame_size): Use microblaze_break_function_p.
17418         Add the test of break_handler.
17419         (microblaze_function_prologue) : Add the test of variable
17420         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
17421         (microblaze_function_epilogue) : Add the test of break_handler.
17422         (microblaze_globalize_label) : Add the test of break_handler.
17423         Check the name by BREAK_HANDLER_NAME.
17425         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
17427         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
17428         microblaze_is_break_handler test.
17429         (call_internal1,call_value_intern): Use microblaze_break_function_p.
17430         Use SYMBOL_REF_DECL.
17432         * config/microblaze/microblaze-protos.h
17433         (microblaze_break_function_p,microblaze_is_break_handler):
17434         New Declaration.
17436         * doc/extend.texi (MicroBlaze break_handler Functions): Document
17437         new MicroBlaze break_handler functions.
17439 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
17441         * doc/extend.texi (Size of an asm): Move node text according
17442         to its @menu entry position.
17444 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
17446         PR tree-optimization/61140
17447         PR tree-optimization/61150
17448         PR tree-optimization/61197
17449         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
17451 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
17453         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
17455 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
17457         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
17458         __SIZEOF_INT128__ is defined.
17460 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
17462         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
17463         (rs6000_delegitimize_address): Use it.
17465 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
17467         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
17468         inplace argument.  Store the new address in the original MEM when true.
17469         * emit-rtl.c (change_address_1): Likewise.
17470         (adjust_address_1, adjust_automodify_address_1, offset_address):
17471         Update accordingly.
17472         * rtl.h (plus_constant): Add an inplace argument.
17473         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
17474         when true.  Avoid generating (plus X (const_int 0)).
17475         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
17476         in-place.  Pass true to plus_constant.
17477         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
17479 2014-05-16  Dehao Chen  <dehao@google.com>
17481         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
17483 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
17485         PR target/54089
17486         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
17487         patterns.
17488         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
17490 2014-05-16  Dehao Chen  <dehao@google.com>
17492         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
17493         optimize_function_for_size_p.
17494         * regs.h (REG_FREQ_FROM_BB): Likewise.
17496 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
17498         PR target/51244
17499         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
17500         negt_reg_operand cases.
17501         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
17502         predicate.
17503         * config/sh/predicates.md (cbranch_treg_value): Simplify.
17505 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
17507         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
17508         target variants.
17510 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
17512         Revert:
17513         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
17515         * tree-cfg.c (dump_function_to_file): Dump the return type of
17516         functions, in a line to itself before the function body, mimicking
17517         the layout of a C function.
17519 2014-05-16  Dehao Chen  <dehao@google.com>
17521         * cfghooks.c (make_forwarder_block): Use direct computation to
17522         get fall-through edge's count and frequency.
17524 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
17526         * config/arc/arc.c (arc_init): Fix typo in error message.
17527         * config/i386/i386.c (ix86_expand_builtin): Likewise.
17528         (split_stack_prologue_scratch_regno): Likewise.
17529         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
17530         word from error message.
17532 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17534         * ira-costs.c: Fix typo in comment.
17536 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
17538         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
17540 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
17542         * varpool.c (dump_varpool_node): Dump write-only flag.
17543         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
17544         write-only flag.
17545         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
17546         write-only variables.
17547         * ipa.c (process_references): New function.
17548         (set_readonly_bit): New function.
17549         (set_writeonly_bit): New function.
17550         (clear_addressable_bit): New function.
17551         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
17552         fix handling of aliases.
17553         * cgraph.h (struct varpool_node): Add writeonly flag.
17555 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
17557         PR rtl-optimization/60969
17558         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
17559         Calculate costs for this case.
17561 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
17563         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
17564         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
17566 2014-05-16  Richard Biener  <rguenther@suse.de>
17568         PR tree-optimization/61194
17569         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
17570         bool patterns ending in a COND_EXPR.
17572 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17574         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
17576 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17578         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
17579         where we were unable to cost an RTX.
17581 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17583         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
17584         HIGH, LO_SUM.
17586 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17587             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17589         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
17591 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17592             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17594         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
17595         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
17597 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17598             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17600         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
17601         operators.
17603 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17604             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17606         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
17607         DIV/MOD.
17609 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17610             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17612         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
17613         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
17615 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17616             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17618         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
17619         rotates and shifts.
17621 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17622             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17624         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
17625         ZERO_EXTEND and SIGN_EXTEND better.
17627 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17628             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17630         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
17631         logical operations.
17633 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17634             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17636         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
17637         costs when costing loads and stores to memory.
17639 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17640             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
17642         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
17643         for SET RTX.
17645 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17647         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
17649 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17650             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17652         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
17653         to...
17654         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
17655         well formed.
17656         (aarch64_rtx_mult_cost): New.
17657         (aarch64_rtx_costs): Use it, refactor as appropriate.
17659 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17660             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17662         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
17663         emit instructions, return number of instructions which would
17664         be emitted.
17665         (aarch64_add_constant): Update call to aarch64_build_constant.
17666         (aarch64_output_mi_thunk): Likewise.
17667         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
17668         a CONST_DOUBLE.
17670 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17672         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
17673         (TARGET_RTX_COSTS): Call it.
17675 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17677         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
17678         (cortexa57_vector_cost): Likewise.
17679         (cortexa57_tunings): Use them.
17681 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
17683         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
17684         (cpu_addrcost_table): Use it.
17685         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
17686         (aarch64_address_cost): Rewrite using aarch64_classify_address,
17687         move it.
17689 2014-05-16  Richard Biener  <rguenther@suse.de>
17691         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
17692         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
17693         (visit_phi): Ignore edges marked as not executable.
17694         (class cond_dom_walker): New.
17695         (cond_dom_walker::before_dom_children): Value-number
17696         control statements and mark successor edges as not
17697         executable if possible.
17698         (run_scc_vn): First walk all control statements in
17699         dominator order, marking edges as not executable.
17700         * tree-inline.c (copy_edges_for_bb): Be not confused
17701         about random edge flags.
17703 2014-05-16  Richard Biener  <rguenther@suse.de>
17705         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
17707 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
17709         PR target/61193
17710         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
17711         (__TM_simple_begin): Use it.
17712         (__TM_begin): Likewise.
17714 2014-05-15  Martin Jambor  <mjambor@suse.cz>
17716         PR ipa/61085
17717         * ipa-prop.c (update_indirect_edges_after_inlining): Check
17718         type_preserved flag when the indirect edge is polymorphic.
17720 2014-05-15  Martin Jambor  <mjambor@suse.cz>
17722         PR tree-optimization/61090
17723         * tree-sra.c (sra_modify_expr): Pass the current gsi to
17724         build_ref_for_model.
17726 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17728         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
17729         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
17731 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
17733         PR tree-optimization/61158
17734         * fold-const.c (fold_binary_loc): If X is zero-extended and
17735         shiftc >= prec, make sure zerobits is all ones instead of
17736         invoking undefined behavior.
17738 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17740         * regcprop.h: New file.
17741         * regcprop.c (skip_debug_insn_p): New decl.
17742         (replace_oldest_value_reg): Check skip_debug_insn_p.
17743         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
17744         * shrink-wrap.c: Include regcprop.h.
17745         (prepare_shrink_wrap): Call
17746         copyprop_hardreg_forward_bb_without_debug_insn.
17748 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17750         * shrink-wrap.h: Update comment.
17751         * shrink-wrap.c: Update comment.
17752         (next_block_for_reg): Rename to live_edge_for_reg.
17753         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
17754         (move_insn_for_shrink_wrap): Split live_edge.
17755         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
17757 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
17759         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
17760         Delete.
17761         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
17762         * config/sparc/sparc.md (fptype_ut699): New attribute.
17763         (in_branch_delay): Return false if -mfix-ut699 is specified and
17764         fptype_ut699 is set to single.
17765         (truncdfsf2): Add fptype_ut699 attribute.
17766         (fix_truncdfsi2): Likewise.
17767         (floatsisf2): Change fptype attribute.
17768         (fix_truncsfsi2): Likewise.
17769         (negtf2_notv9): Delete.
17770         (negtf2_v9): Likewise.
17771         (negtf2_hq): New instruction.
17772         (negtf2): New instruction and splitter.
17773         (negdf2_notv9): Rewrite.
17774         (abstf2_notv9): Delete.
17775         (abstf2_hq_v9): Likewise.
17776         (abstf2_v9): Likewise.
17777         (abstf2_hq): New instruction.
17778         (abstf2): New instruction and splitter.
17779         (absdf2_notv9): Rewrite.
17781 2014-05-14  Cary Coutant  <ccoutant@google.com>
17783         PR debug/61013
17784         * opts.c (common_handle_option): Don't special-case "-g".
17785         (set_debug_level): Default to at least level 2 with "-g".
17787 2014-05-14  DJ Delorie  <dj@redhat.com>
17789         * config/msp430/msp430.c (msp430_builtin): Add
17790         MSP430_BUILTIN_DELAY_CYCLES.
17791         (msp430_init_builtins): Register void __delay_cycles(long long).
17792         (msp430_builtin_decl): Add it.
17793         (cg_magic_constant): New.
17794         (msp430_expand_delay_cycles): New.
17795         (msp430_expand_builtin): Call it.
17796         (msp430_print_operand_raw): Change integer printing from "int" to
17797         HOST_WIDE_INT.
17798         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
17799         (delay_cycles_start): New.
17800         (delay_cycles_end): New.
17801         (delay_cycles_32): New.
17802         (delay_cycles_32x): New.
17803         (delay_cycles_16): New.
17804         (delay_cycles_16x): New.
17805         (delay_cycles_2): New.
17806         (delay_cycles_1): New.
17807         * doc/extend.texi: Document __delay_cycles().
17809 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
17811         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
17812         length attribute computation.
17814 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
17816         PR debug/61188
17817         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
17819 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
17821         PR target/61084
17822         * config/sparc/sparc.md: Fix types of low and high in DI constant
17823         splitter.  Use gen_int_mode in some other splitters.
17825 2014-05-14  Martin Jambor  <mjambor@suse.cz>
17827         PR ipa/60897
17828         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
17830 2014-05-14  James Norris  <jnorris@codesourcery.com>
17832         * omp-low.c (expand_parallel_call): Remove shadow variable.
17833         (expand_omp_taskreg): Likewise.
17835 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
17837         * common/config/i386/i386-common.c
17838         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
17839         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
17840         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
17841         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
17842         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
17843         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
17844         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
17845         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
17846         xsavecintrin.h, xsavesintrin.h.
17847         (x86_64-*-*): Ditto.
17848         * config/i386/clflushoptintrin.h: New.
17849         * config/i386/xsavecintrin.h: Ditto.
17850         * config/i386/xsavesintrin.h: Ditto.
17851         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
17852         (bit_XSAVES): Ditto.
17853         (bit_XSAVES): Ditto.
17854         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
17855         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
17856         -mno-clflushopt.
17857         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17858         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
17859         OPTION_MASK_ISA_XSAVES.
17860         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
17861         -mxsavec, -mxsaves.
17862         (PTA_CLFLUSHOPT) Define.
17863         (PTA_XSAVEC): Ditto.
17864         (PTA_XSAVES): Ditto.
17865         (ix86_option_override_internal): Handle new options.
17866         (ix86_valid_target_attribute_inner_p): Ditto.
17867         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
17868         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
17869         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
17870         (bdesc_special_args): Add __builtin_ia32_xsaves,
17871         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
17872         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
17873         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
17874         (ix86_expand_builtin): Handle new builtins.
17875         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
17876         (TARGET_CLFLUSHOPT_P): Ditto.
17877         (TARGET_XSAVEC): Ditto.
17878         (TARGET_XSAVEC_P): Ditto.
17879         (TARGET_XSAVES): Ditto.
17880         (TARGET_XSAVES_P): Ditto.
17881         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
17882         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
17883         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
17884         (ANY_XRSTOR): New.
17885         (ANY_XRSTOR64): Ditto.
17886         (xrstor): Ditto.
17887         (xrstor): Change into <xrstor>.
17888         (xrstor_rex64): Change into <xrstor>_rex64.
17889         (xrstor64): Change into <xrstor>64
17890         (clflushopt): New.
17891         * config/i386/i386.opt (mclflushopt): New.
17892         (mxsavec): Ditto.
17893         (mxsaves): Ditto.
17894         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
17895         xsavecintrin.h.
17896         * doc/invoke.texi: Document new options.
17898 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
17900         PR rtl-optimization/60866
17901         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
17902         Default it to -1.  Pass it down to init_simplejump_data.
17903         (init_simplejump_data): New parameter old_seqno.  Pass it down
17904         to get_seqno_for_a_jump.
17905         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
17906         initializing new jump seqno as a last resort.  Add comment.
17907         (sel_redirect_edge_and_branch): Save old seqno of the conditional
17908         jump and pass it down to sel_init_new_insn.
17909         (sel_redirect_edge_and_branch_force): Likewise.
17911 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
17913         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
17914         shifted values to avoid build warning.
17916 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
17918         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
17919         * cfgrtl.c (rtl_merge_blocks): Fix comment.
17920         (cfg_layout_merge_blocks): Likewise.
17921         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
17923 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
17925         PR rtl-optimization/60901
17926         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
17927         bb predecessor belongs to the same scheduling region.  Adjust comment.
17929 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
17931         * doc/sourcebuild.texi: (dfp_hw): Document.
17932         (p8vector_hw): Likewise.
17933         (powerpc_eabi_ok): Likewise.
17934         (powerpc_elfv2): Likewise.
17935         (powerpc_htm_ok): Likewise.
17936         (ppc_recip_hw): Likewise.
17937         (vsx_hw): Likewise.
17939 2014-05-13  Cary Coutant  <ccoutant@google.com>
17941         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
17943 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
17945         * gengtype-parse.c (require3): Eliminate in favor of...
17946         (require4): New.
17947         (require_template_declaration): Update to support optional single *
17948         on a type.
17950         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
17951         (create_user_defined_type): Handle a single level of explicit
17952         pointerness within template arguments.
17953         (struct write_types_data): Add field "kind".
17954         (filter_type_name): Handle "*" character.
17955         (write_user_func_for_structure_ptr): Require a write_types_data
17956         rather than just a prefix string, so that we can look up the kind
17957         of the wtd and use it as an index into wrote_user_func_for_ptr,
17958         ensuring that such functions are written at most once.  Support
17959         subclasses by invoking the marking function of the ultimate base class.
17960         (write_user_func_for_structure_body): Require a write_types_data
17961         rather than just a prefix string, so that we can pass this to
17962         write_user_func_for_structure_ptr.
17963         (write_func_for_structure): Likewise.
17964         (ggc_wtd): Add initializer of new "kind" field.
17965         (pch_wtd): Likewise.
17967         * gengtype.h (enum write_types_kinds): New.
17968         (struct type): Add field wrote_user_func_for_ptr to the "s"
17969         union member.
17971 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
17973         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
17974         instead of const_binop.
17975         (fold_binary_loc): Likewise.
17977 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
17979         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
17980         calculation to match get_ref_base_and_extent.
17982 2014-05-13  Catherine Moore  <clm@codesourcery.com>
17983             Sandra Loosemore  <sandra@codesourcery.com>
17985         * configure.ac: Fix assembly for explicit JALR relocation check.
17986         * configure: Regenerate.
17988 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17990         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
17991         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
17992         Remove associated type declarations and initialisations.
17993         (arm_expand_neon_builtin): Likewise.
17994         (neon_emit_pair_result_insn): Delete.
17995         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
17996         * config/arm/neon.md (neon_vtrn<mode>): Delete.
17997         (neon_vzip<mode>): Likewise.
17998         (neon_vuzp<mode>): Likewise.
18000 2014-05-13  Richard Biener  <rguenther@suse.de>
18002         PR ipa/60973
18003         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
18004         it needs revisiting whether the call still may be tail-called.
18006 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18008         * rtl.def (SYMBOL_REF): Remove middle "0" field.
18009         * rtl.h (block_symbol): Reduce number of fields to 2.
18010         (rtx_def): Add u2.symbol_ref_flags.
18011         (SYMBOL_REF_FLAGS): Use it.
18012         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
18013         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
18014         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
18015         Lower index of SYMBOL_REF_DATA.
18016         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
18017         Print SYMBOL_REF_FLAGS at the same time.
18018         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
18020 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18022         * rtl.def (VAR_LOCATION): Remove "i" field.
18023         * rtl.h (rtx_def): Add u2.var_location_status.
18024         (PAT_VAR_LOCATION_STATUS): Use it.
18025         (gen_rtx_VAR_LOCATION): Declare.
18026         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
18027         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
18028         * var-tracking.c (emit_note_insn_var_location): Remove casts.
18030 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18032         * rtl.def (scratch): Fix outdated comment and remove "0" field.
18033         * gengtype.c (adjust_field_rtx_def): Update accordingly.
18035 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18037         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
18038         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
18039         * rtl.h (rtx_def): Add insn_uid to u2 field.
18040         (RTX_FLAG_CHECK8): Delete in favor of...
18041         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
18042         (INSN_DELETED_P): Update accordingly.
18043         (INSN_UID): Use u2.insn_uid.
18044         (INSN_CHAIN_CODE_P): Define.
18045         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
18046         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
18047         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
18048         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
18049         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
18050         indices accordingly.
18051         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
18052         Update indices for insn-chain rtxes.
18053         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
18054         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
18055         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
18056         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
18057         * combine.c (try_combine): Likewise.
18058         * ira.c (setup_prohibited_mode_move_regs): Likewise.
18060 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18062         * rtl.def (REG): Remove middle field.
18063         * rtl.h (rtx_def): Add orignal_regno to u2.
18064         (ORIGINAL_REGNO): Use it instead of field 1.
18065         (REG_ATTRS): Lower field index accordingly.
18066         * gengtype.c (adjust_field_rtx_def): Remove handling of
18067         ORIGINAL_REGNO.  Move REG_ATTRS index down.
18068         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
18069         code that prints the REGNO.
18071 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18073         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
18074         GENERATOR_FILE.
18076 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18078         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
18080 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
18082         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
18083         (alloc_iv): Lower base expressions containing ADDR_EXPR.
18085 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
18087         * config/aarch64/aarch64-protos.h
18088         (aarch64_hard_regno_caller_save_mode): New prototype.
18089         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
18090         New function.
18091         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
18093 2014-05-13  Christian Bruel  <christian.bruel@st.com>
18095         * target.def (mode_switching): New hook vector.
18096         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
18097         (mode_exit, modepriority_to_mode): Likewise.
18098         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
18099         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18100         * target.h: Include tm.h and hard-reg-set.h.
18101         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
18102         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
18103         * doc/tm.texi Regenerate.
18104         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18105         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18106         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
18107         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
18108         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18109         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18110         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
18111         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
18112         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
18113         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
18114         (ix86_emit_mode_set): Hookify.
18115         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
18116         Delete.
18117         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18118         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
18119         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
18120         (epiphany_mode_priority_to_mode): Remove declaration.
18121         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
18122         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
18123         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
18124         Likewise.
18125         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
18126         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
18127         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
18129 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
18131         PR target/61060
18132         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
18133         is const0_rtx, return immediately.  Don't test count == 0 when
18134         it is always true.
18136 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18138         * Makefile.in: add shrink-wrap.o.
18139         * config/i386/i386.c: include "shrink-wrap.h"
18140         * function.c: Likewise.
18141         (requires_stack_frame_p, next_block_for_reg,
18142         move_insn_for_shrink_wrap, prepare_shrink_wrap,
18143         dup_block_and_redirect): Move to shrink-wrap.c
18144         (thread_prologue_and_epilogue_insns): Extract three code segments
18145         as functions in shrink-wrap.c
18146         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
18147         shrink-wrap.h
18148         * shrink-wrap.c: New file.
18149         * shrink-wrap.h: New file.
18151 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
18153         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
18154         reference to Solaris.
18156 2014-05-12  Mike Stump  <mikestump@comcast.net>
18158         PR other/31778
18159         * genattrtab.c (filename): Add.
18160         (convert_set_attr_alternative): Improve error message.
18161         (check_defs): Restore read_md_filename for error messages.
18162         (gen_insn): Save filename.
18164 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
18166         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
18167         -fno-local-ivars and -fivar-visibility.
18168         * c-family/c.opt: Make -Wshadow also implicitly enable
18169         -Wshadow-ivar.
18171 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
18173         * doc/tm.texi: Remove reference to deleted macro.
18174         * doc/tm.texi.in: Likewise.
18176 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18178         PR target/60991
18179         * config/avr/avr.c (avr_out_store_psi): Use correct constant
18180         to restore Y.
18182 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
18184         PR libgcc/61152
18185         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
18186         * config/arm/aout.h (License): Same.
18187         * config/arm/bpabi.h (License): Same.
18188         * config/arm/elf.h (License): Same.
18189         * config/arm/linux-elf.h (License): Same.
18190         * config/arm/linux-gas.h (License): Same.
18191         * config/arm/netbsd-elf.h (License): Same.
18192         * config/arm/uclinux-eabi.h (License): Same.
18193         * config/arm/uclinux-elf.h (License): Same.
18194         * config/arm/vxworks.h (License): Same.
18196 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
18198         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
18199         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
18200         number of operands to 3.
18201         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
18202         * tree-nested.c (convert_nonlocal_omp_clauses,
18203         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
18204         * gimplify.c (gimplify_scan_omp_clauses): Handle
18205         OMP_CLAUSE_LINEAR_STMT.
18206         * omp-low.c (lower_rec_input_clauses): Fix typo.
18207         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
18208         cast between Fortran boolean_type_node and C _Bool if
18209         needed.
18211 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
18213         PR tree-optimization/61136
18214         * wide-int.h (multiple_of_p): Define a version that doesn't return
18215         the quotient.
18216         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
18217         integer_zerop/const_binop pair.
18218         (multiple_of_p): Likewise, converting both operands to widest_int
18219         precision.
18221 2014-05-09  Teresa Johnson  <tejohnson@google.com>
18223         * cgraphunit.c (analyze_functions): Use correct dump file.
18225 2014-05-09  Florian Weimer  <fweimer@redhat.com>
18227         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
18228         expand_used_vars.
18229         (stack_protect_return_slot_p): New function.
18230         (expand_used_vars): Call stack_protect_decl_p and
18231         stack_protect_return_slot_p for -fstack-protector-strong.
18233 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
18234         Andrew Haley <aph@redhat.com>
18235         Richard Sandiford <rdsandiford@googlemail.com>
18237         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
18238         pages.
18240 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
18242         PR middle-end/61111
18243         * fold-const.c (fold_binary_loc): Changed width of mask.
18245 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
18247         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
18248         unsigned int initializers for regno_in, regno_out.
18250 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
18252         PR target/61055
18253         * config/avr/avr.md (cc): Add new attribute set_vzn.
18254         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
18255         Set cc insn attribute to set_vzn instead of set_zn for alternatives
18256         with INC, DEC or NEG.
18257         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
18258         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
18259         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
18261 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18263         Revert:
18264         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18266         * wide-int.cc (UTItype): Define.
18267         (UDWtype): Define for appropriate W_TYPE_SIZE.
18269 2014-05-09  Richard Biener  <rguenther@suse.de>
18271         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
18272         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
18273         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
18274         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
18275         ssa_propagate): Adjust.
18277 2014-05-08  Jeff Law  <law@redhat.com>
18279         PR tree-optimization/61009
18280         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
18281         tri-state rather than a boolean.  When a block is too big to
18282         thread through, inform caller via negative return value.
18283         (thread_across_edge): If a block was too big for normal threading,
18284         then it's too big for a joiner too, so remove temporary equivalences
18285         and return immediately.
18287 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18288             Matthias Klose  <doko@ubuntu.com>
18290         PR driver/61106
18291         * optc-gen.awk: Fix option handling for -Wunused-parameter.
18293 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
18295         PR target/59952
18296         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
18298 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
18300         PR target/61092
18301         * config/alpha/alpha.c: Include gimple-iterator.h.
18302         (alpha_gimple_fold_builtin): New function.  Move
18303         ALPHA_BUILTIN_UMULH folding from ...
18304         (alpha_fold_builtin): ... here.
18305         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
18307 2014-05-08  Wei Mi  <wmi@google.com>
18309         PR target/58066
18310         * config/i386/i386.c (ix86_compute_frame_layout): Update
18311         preferred_stack_boundary for call, expanded from tls descriptor.
18312         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
18313         to depend on SP register.
18314         (*tls_local_dynamic_base_32_gnu): Ditto.
18315         (*tls_local_dynamic_32_once): Ditto.
18316         (tls_global_dynamic_64_<mode>): Set
18317         ix86_tls_descriptor_calls_expanded_in_cfun.
18318         (tls_local_dynamic_base_64_<mode>): Ditto.
18319         (tls_global_dynamic_32): Set
18320         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
18321         to depend on SP register.
18322         (tls_local_dynamic_base_32): Ditto.
18324 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18326         * config/arm/arm_neon.h: Update comment.
18327         * config/arm/neon-docgen.ml: Delete.
18328         * config/arm/neon-gen.ml: Delete.
18329         * doc/arm-neon-intrinsics.texi: Update comment.
18331 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18333         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
18334         and v4sf versions.
18335         (vand, vorr, veor, vorn, vbic): Remove.
18336         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
18337         iterator.
18338         (neon_vsub_unspec): Likewise.
18339         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
18341 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18343         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
18344         (vadd_s16): Likewise.
18345         (vadd_s32): Likewise.
18346         (vadd_f32): Likewise.
18347         (vadd_u8): Likewise.
18348         (vadd_u16): Likewise.
18349         (vadd_u32): Likewise.
18350         (vadd_s64): Likewise.
18351         (vadd_u64): Likewise.
18352         (vaddq_s8): Likewise.
18353         (vaddq_s16): Likewise.
18354         (vaddq_s32): Likewise.
18355         (vaddq_s64): Likewise.
18356         (vaddq_f32): Likewise.
18357         (vaddq_u8): Likewise.
18358         (vaddq_u16): Likewise.
18359         (vaddq_u32): Likewise.
18360         (vaddq_u64): Likewise.
18361         (vmul_s8): Likewise.
18362         (vmul_s16): Likewise.
18363         (vmul_s32): Likewise.
18364         (vmul_f32): Likewise.
18365         (vmul_u8): Likewise.
18366         (vmul_u16): Likewise.
18367         (vmul_u32): Likewise.
18368         (vmul_p8): Likewise.
18369         (vmulq_s8): Likewise.
18370         (vmulq_s16): Likewise.
18371         (vmulq_s32): Likewise.
18372         (vmulq_f32): Likewise.
18373         (vmulq_u8): Likewise.
18374         (vmulq_u16): Likewise.
18375         (vmulq_u32): Likewise.
18376         (vsub_s8): Likewise.
18377         (vsub_s16): Likewise.
18378         (vsub_s32): Likewise.
18379         (vsub_f32): Likewise.
18380         (vsub_u8): Likewise.
18381         (vsub_u16): Likewise.
18382         (vsub_u32): Likewise.
18383         (vsub_s64): Likewise.
18384         (vsub_u64): Likewise.
18385         (vsubq_s8): Likewise.
18386         (vsubq_s16): Likewise.
18387         (vsubq_s32): Likewise.
18388         (vsubq_s64): Likewise.
18389         (vsubq_f32): Likewise.
18390         (vsubq_u8): Likewise.
18391         (vsubq_u16): Likewise.
18392         (vsubq_u32): Likewise.
18393         (vsubq_u64): Likewise.
18394         (vand_s8): Likewise.
18395         (vand_s16): Likewise.
18396         (vand_s32): Likewise.
18397         (vand_u8): Likewise.
18398         (vand_u16): Likewise.
18399         (vand_u32): Likewise.
18400         (vand_s64): Likewise.
18401         (vand_u64): Likewise.
18402         (vandq_s8): Likewise.
18403         (vandq_s16): Likewise.
18404         (vandq_s32): Likewise.
18405         (vandq_s64): Likewise.
18406         (vandq_u8): Likewise.
18407         (vandq_u16): Likewise.
18408         (vandq_u32): Likewise.
18409         (vandq_u64): Likewise.
18410         (vorr_s8): Likewise.
18411         (vorr_s16): Likewise.
18412         (vorr_s32): Likewise.
18413         (vorr_u8): Likewise.
18414         (vorr_u16): Likewise.
18415         (vorr_u32): Likewise.
18416         (vorr_s64): Likewise.
18417         (vorr_u64): Likewise.
18418         (vorrq_s8): Likewise.
18419         (vorrq_s16): Likewise.
18420         (vorrq_s32): Likewise.
18421         (vorrq_s64): Likewise.
18422         (vorrq_u8): Likewise.
18423         (vorrq_u16): Likewise.
18424         (vorrq_u32): Likewise.
18425         (vorrq_u64): Likewise.
18426         (veor_s8): Likewise.
18427         (veor_s16): Likewise.
18428         (veor_s32): Likewise.
18429         (veor_u8): Likewise.
18430         (veor_u16): Likewise.
18431         (veor_u32): Likewise.
18432         (veor_s64): Likewise.
18433         (veor_u64): Likewise.
18434         (veorq_s8): Likewise.
18435         (veorq_s16): Likewise.
18436         (veorq_s32): Likewise.
18437         (veorq_s64): Likewise.
18438         (veorq_u8): Likewise.
18439         (veorq_u16): Likewise.
18440         (veorq_u32): Likewise.
18441         (veorq_u64): Likewise.
18442         (vbic_s8): Likewise.
18443         (vbic_s16): Likewise.
18444         (vbic_s32): Likewise.
18445         (vbic_u8): Likewise.
18446         (vbic_u16): Likewise.
18447         (vbic_u32): Likewise.
18448         (vbic_s64): Likewise.
18449         (vbic_u64): Likewise.
18450         (vbicq_s8): Likewise.
18451         (vbicq_s16): Likewise.
18452         (vbicq_s32): Likewise.
18453         (vbicq_s64): Likewise.
18454         (vbicq_u8): Likewise.
18455         (vbicq_u16): Likewise.
18456         (vbicq_u32): Likewise.
18457         (vbicq_u64): Likewise.
18458         (vorn_s8): Likewise.
18459         (vorn_s16): Likewise.
18460         (vorn_s32): Likewise.
18461         (vorn_u8): Likewise.
18462         (vorn_u16): Likewise.
18463         (vorn_u32): Likewise.
18464         (vorn_s64): Likewise.
18465         (vorn_u64): Likewise.
18466         (vornq_s8): Likewise.
18467         (vornq_s16): Likewise.
18468         (vornq_s32): Likewise.
18469         (vornq_s64): Likewise.
18470         (vornq_u8): Likewise.
18471         (vornq_u16): Likewise.
18472         (vornq_u32): Likewise.
18473         (vornq_u64): Likewise.
18475 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18477         * wide-int.cc (UTItype): Define.
18478         (UDWtype): Define for appropriate W_TYPE_SIZE.
18480 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
18482         PR tree-optimization/59100
18483         * tree-ssa-phiopt.c: Include tree-inline.h.
18484         (neutral_element_p, absorbing_element_p): New functions.
18485         (value_replacement): Handle conditional binary operations with a
18486         neutral or absorbing element.
18488 2014-05-08  Richard Biener  <rguenther@suse.de>
18490         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
18491         folding the expression.
18492         (valueize_expr): Remove.
18493         (visit_reference_op_load): Do not valueize the result of
18494         vn_get_expr_for.
18495         (simplify_binary_expression): Likewise.
18496         (simplify_unary_expression): Likewise.
18498 2014-05-08  Richard Biener  <rguenther@suse.de>
18500         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
18501         looking at TYPE_ARG_TYPES.
18503 2014-05-08  Richard Biener  <rguenther@suse.de>
18505         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18506         pointer propagation special-case.
18508 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
18510         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
18511         core part of address expressions.
18513 2014-05-08  Alan Modra  <amodra@gmail.com>
18515         PR target/60737
18516         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
18517         loads and stores when -mno-strict-align at any alignment.
18518         (expand_block_clear): Similarly.  Also correct calculation of
18519         instruction count.
18521 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18523         PR middle-end/39246
18524         * tree-complex.c (expand_complex_move): Keep line info when expanding
18525         complex move.
18526         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
18527         of complex expression. Use new argument to display correct location
18528         for values coming from phi statement.
18529         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
18530         (warn_uninitialized_phi): Pass location of phi argument to
18531         warn_uninit.
18532         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
18533         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
18535 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
18537         * config/rs6000/predicates.md (indexed_address_mem): New.
18538         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
18539         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
18540         fpstore_ux, fpstore_u.
18541         (sign_extend, indexed, update): New.
18542         (cell_micro): Adjust.
18543         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
18544         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
18545         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
18546         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
18547         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
18548         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
18549         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
18550         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
18551         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
18552         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
18553         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
18554         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
18555         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
18556         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
18557         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
18559         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
18560         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
18561         *vsx_extract_<mode>_store): Adjust.
18562         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
18563         is_cracked_insn, insn_must_be_first_in_group,
18564         insn_must_be_last_in_group): Adjust.
18566         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
18567         Adjust.
18568         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
18569         ppc440-fpstore): Adjust.
18570         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
18571         ppc476-fpstore): Adjust.
18572         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
18573         ppc601-fpstore): Adjust.
18574         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
18575         Adjust.
18576         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
18577         Adjust.
18578         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
18579         ppc7450-fpstore): Adjust.
18580         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
18581         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
18582         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
18583         Adjust.
18584         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
18585         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
18586         cell-fpstore, cell-fpstore-update): Adjust.
18587         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
18588         ppce300c3_store, ppce300c3_fpstore): Adjust.
18589         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
18590         e500mc_fpstore): Adjust.
18591         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
18592         e500mc64_store, e500mc64_fpstore): Adjust.
18593         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
18594         e5500_fpstore): Adjust.
18595         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
18596         e6500_fpstore): Adjust.
18597         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
18598         Adjust.
18599         * config/rs6000/power4.md (power4-load, power4-load-ext,
18600         power4-load-ext-update, power4-load-ext-update-indexed,
18601         power4-load-update-indexed, power4-load-update, power4-fpload,
18602         power4-fpload-update, power4-store, power4-store-update,
18603         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
18604         Adjust.
18605         * config/rs6000/power5.md (power5-load, power5-load-ext,
18606         power5-load-ext-update, power5-load-ext-update-indexed,
18607         power5-load-update-indexed, power5-load-update, power5-fpload,
18608         power5-fpload-update, power5-store, power5-store-update,
18609         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
18610         Adjust.
18611         * config/rs6000/power6.md (power6-load, power6-load-ext,
18612         power6-load-update, power6-load-update-indexed,
18613         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
18614         power6-fpload-update, power6-store, power6-store-update,
18615         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
18616         Adjust.
18617         * config/rs6000/power7.md (power7-load, power7-load-ext,
18618         power7-load-update, power7-load-update-indexed,
18619         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
18620         power7-fpload-update, power7-store, power7-store-update,
18621         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
18622         Adjust.
18623         * config/rs6000/power8.md (power8-load, power8-load-update,
18624         power8-load-ext, power8-load-ext-update, power8-fpload,
18625         power8-fpload-update, power8-store, power8-store-update-indexed,
18626         power8-fpstore, power8-fpstore-update): Adjust.
18627         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
18628         Adjust.
18629         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
18630         titan_lsu_store, titan_lsu_fpstore): Adjust.
18631         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
18633 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
18635         PR target/60884
18636         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
18637         unrolled byte insns.  Emit address increments after move insns.
18639 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
18641         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
18642         const_gimple, rather than a gimple.
18643         (gimple_call_builtin_p): Likewise, for the three variants.
18645         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
18646         (gimple_call_builtin_p): Likewise, for the three variants.
18648 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
18650         PR tree-optimization/61095
18651         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
18653 2014-05-07  Richard Biener  <rguenther@suse.de>
18655         PR tree-optimization/61034
18656         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
18657         (maybe_skip_until): Use translate to take into account
18658         lattices when trying to do disambiguations.
18659         (get_continuation_for_phi_1): Likewise.
18660         (get_continuation_for_phi): Adjust for added translate arguments.
18661         (walk_non_aliased_vuses): Likewise.
18662         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
18663         (walk_non_aliased_vuses): Likewise.
18664         (call_may_clobber_ref_p_1): Declare.
18665         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
18666         calls.  Stop early if we are only supposed to disambiguate.
18667         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
18669 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
18671         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
18672         Emit an error when the function has arguments.
18674 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
18676         * cfgloop.h (unswitch_loops): Remove.
18677         * doc/passes.texi: Remove references to loop-unswitch.c
18678         * timevar.def (TV_LOOP_UNSWITCH): Remove.
18680 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
18682         * tree-vect-data-refs.c (vect_grouped_load_supported): New
18683         check for loads group of length 3.
18684         (vect_permute_load_chain): New permutations for loads group of
18685         length 3.
18686         * tree-vect-stmts.c (vect_model_load_cost): Change cost
18687         of vec_perm_shuffle for the new permutations.
18689 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
18691         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
18692         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
18693         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
18694         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
18695         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
18696         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
18697         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
18698         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
18700 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
18702         * loop-unswitch.c: Delete.
18704 2014-05-07  Richard Biener  <rguenther@suse.de>
18706         * config.gcc: Always set need_64bit_hwint to yes.
18708 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
18710         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
18711         of using optimize_size.
18713 2014-05-06  Mike Stump  <mikestump@comcast.net>
18715         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
18717 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
18719         * config/i386/sse.md (*mov<mode>_internal)
18720         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
18721         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
18722         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
18723         (*<code><mode>3, *andnot<mode>3<mask_name>)
18724         (<mask_codefor><code><mode>3<mask_name>): Only consider
18725         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
18727 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
18729         Revert:
18730         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
18732         * lra-constraints.c (valid_address_p): Move earlier in file.
18733         Add a constraint argument to the address_info version.
18734         (satisfies_memory_constraint_p): New function.
18735         (satisfies_address_constraint_p): Likewise.
18736         (process_alt_operands, curr_insn_transform): Use them.
18737         (process_address): Pass the constraint to valid_address_p when
18738         checking address operands.
18740 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
18742         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
18743         to their respective blocks.  Fix inadvertent use of "node".
18745 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
18747         * emit-rtl.c (init_derived_machine_modes): New functionm, split
18748         out from...
18749         (init_emit_once): ...here.
18750         * rtl.h (init_derived_machine_modes): Declare.
18751         * toplev.c (do_compile): Call it even if no_backend.
18753 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
18754             Mike Stump  <mikestump@comcast.net>
18755             Richard Sandiford  <rdsandiford@googlemail.com>
18756             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18758         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
18759         (rtx_equal_for_memref_p): Update comment.
18760         (adjust_offset_for_component_ref): Use wide-int interfaces.
18761         * builtins.c (get_object_alignment_2): Likewise.
18762         (c_readstr): Likewise.
18763         (target_char_cast): Add comment.
18764         (determine_block_size): Use wide-int interfaces.
18765         (expand_builtin_signbit): Likewise.
18766         (fold_builtin_int_roundingfn): Likewise.
18767         (fold_builtin_bitop): Likewise.
18768         (fold_builtin_bswap): Likewise.
18769         (fold_builtin_logarithm): Use signop.
18770         (fold_builtin_pow): Likewise.
18771         (fold_builtin_memory_op): Use wide-int interfaces.
18772         (fold_builtin_object_size): Likewise.
18773         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
18774         nb_iterations_estimate.
18775         (record_niter_bound): Use wide-int interfaces.
18776         (get_estimated_loop_iterations_int): Likewise.
18777         (get_estimated_loop_iterations): Likewise.
18778         (get_max_loop_iterations): Likewise.
18779         * cfgloop.h: Include wide-int.h.
18780         (struct nb_iter_bound): Change bound to widest_int.
18781         (struct loop): Change nb_iterations_upper_bound and
18782         nb_iterations_estimate to widest_int.
18783         (record_niter_bound): Switch to use widest_int.
18784         (get_estimated_loop_iterations): Likewise.
18785         (get_max_loop_iterations): Likewise.
18786         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
18787         update for wide-int.
18788         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
18789         * combine.c (try_combine): Likewise.
18790         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
18791         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
18792         interfaces.
18793         (aarch64_float_const_representable_p): Likewise.
18794         * config/arc/arc.c: Include wide-int.h.
18795         (arc_can_use_doloop_p): Use wide-int interfaces.
18796         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
18797         (vfp3_const_double_index): Likewise.
18798         * config/avr/avr.c (avr_out_round): Likewise.
18799         (avr_fold_builtin): Likewise.
18800         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
18801         (bfin_can_use_doloop_p): Likewise.
18802         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
18803         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
18804         * config/i386/i386.c: Include wide-int.h.
18805         (ix86_data_alignment): Use wide-int interfaces.
18806         (ix86_local_alignment): Likewise.
18807         (ix86_emit_swsqrtsf): Update real_from_integer.
18808         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
18809         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
18810         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
18811         (zero_constant): Likewise.
18812         (input_operand): Likewise.
18813         (splat_input_operand): Likewise.
18814         (non_logical_cint_operand): Change const_double to const_wide_int.
18815         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
18816         (easy_altivec_constant): Remove comment.
18817         (paired_expand_vector_init): Use CONSTANT_P.
18818         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
18819         (rs6000_emit_move): Update checks.
18820         (rs6000_aggregate_candidate): Use wide-int interfaces.
18821         (rs6000_expand_ternop_builtin): Likewise.
18822         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
18823         (rs6000_assemble_integer): Likewise.
18824         (rs6000_hash_constant): Likewise.
18825         (output_toc): Likewise.
18826         (rs6000_rtx_costs): Likewise.
18827         (rs6000_emit_swrsqrt); Update call to real_from_integer.
18828         * config/rs6000/rs6000-c.c: Include wide-int.h.
18829         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
18830         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
18831         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
18832         Handle CONST_WIDE_INT.
18833         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
18834         Use tree_fits_uhwi_p.
18835         * config/sparc/sparc.c: Include wide-int.h.
18836         (sparc_fold_builtin): Use wide-int interfaces.
18837         * config/vax/vax.c: Include wide-int.h.
18838         (vax_float_literal): Use real_from_integer.
18839         * coretypes.h (struct hwivec_def): New.
18840         (hwivec): New.
18841         (const_hwivec): New.
18842         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
18843         (equiv_constant): Handle CONST_WIDE_INT.
18844         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
18845         (cselib_hash_rtx): Handle CONST_WIDE_INT.
18846         * dbxout.c (stabstr_U): Use wide-int interfaces.
18847         (dbxout_type): Update to use cst_fits_shwi_p.
18848         * defaults.h (LOG2_BITS_PER_UNIT): Define.
18849         (TARGET_SUPPORTS_WIDE_INT): Add default.
18850         * dfp.c: Include wide-int.h.
18851         (decimal_real_to_integer2): Use wide-int interfaces and rename to
18852         decimal_real_to_integer.
18853         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
18854         decimal_real_to_integer.
18855         * doc/generic.texi (Constant expressions): Update for wide_int.
18856         * doc/rtl.texi (const_double): Likewise.
18857         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
18858         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
18859         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
18860         (REAL_VALUE_FROM_INT): Remove.
18861         (TARGET_SUPPORTS_WIDE_INT): New.
18862         * doc/tm.texi: Regenerate.
18863         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
18864         * double-int.h: Include wide-int.h.
18865         (struct wi::int_traits): New.
18866         * dwarf2out.c (get_full_len): New.
18867         (dw_val_equal_p): Add case dw_val_class_wide_int.
18868         (size_of_loc_descr): Likewise.
18869         (output_loc_operands): Likewise.
18870         (insert_double): Remove.
18871         (insert_wide_int): New.
18872         (add_AT_wide): New.
18873         (print_die): Add case dw_val_class_wide_int.
18874         (attr_checksum): Likewise.
18875         (attr_checksum_ordered): Likewise.
18876         (same_dw_val_p): Likewise.
18877         (size_of_die): Likewise.
18878         (value_format): Likewise.
18879         (output_die): Likewise.
18880         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
18881         Use wide-int.
18882         (clz_loc_descriptor): Use wide-int interfaces.
18883         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
18884         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
18885         (round_up_to_align): Use wide-int interfaces.
18886         (field_byte_offset): Likewise.
18887         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
18888         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
18889         CONST_DOUBLE handling.  Use wide-int interfaces.
18890         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
18891         (gen_enumeration_type_die): Use add_AT_wide.
18892         (hash_loc_operands): Add case dw_val_class_wide_int.
18893         (compare_loc_operands): Likewise.
18894         * dwarf2out.h: Include wide-int.h.
18895         (wide_int_ptr): New.
18896         (enum dw_val_class): Add dw_val_class_wide_int.
18897         (struct dw_val_struct): Add val_wide.
18898         * emit-rtl.c (const_wide_int_htab): New.
18899         (const_wide_int_htab_hash): New.
18900         (const_wide_int_htab_eq): New.
18901         (lookup_const_wide_int): New.
18902         (const_double_htab_hash): Use wide-int interfaces.
18903         (const_double_htab_eq): Likewise.
18904         (rtx_to_double_int): Conditionally compile for wide-int.
18905         (immed_double_int_const): Rename to immed_wide_int_const and
18906         update for wide-int.
18907         (immed_double_const): Conditionally compile for wide-int.
18908         (init_emit_once): Use wide-int interfaces.
18909         * explow.c (plus_constant): Likewise.
18910         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
18911         (lshift_value): Use wide-int interfaces.
18912         (expand_mult): Likewise.
18913         (choose_multiplier): Likewise.
18914         (expand_smod_pow2): Likewise.
18915         (make_tree): Likewise.
18916         * expr.c (convert_modes): Consolidate handling of constants.
18917         Use wide-int interfaces.
18918         (emit_group_load_1): Add note.
18919         (store_expr): Update comment.
18920         (get_inner_reference): Use wide-int interfaces.
18921         (expand_constructor): Update comment.
18922         (expand_expr_real_2): Use wide-int interfaces.
18923         (expand_expr_real_1): Likewise.
18924         (reduce_to_bit_field_precision): Likewise.
18925         (const_vector_from_tree): Likewise.
18926         * final.c: Include wide-int-print.h.
18927         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
18928         * fixed-value.c: Include wide-int.h.
18929         (fixed_from_string): Use wide-int interfaces.
18930         (fixed_to_decimal): Likewise.
18931         (fixed_convert_from_real): Likewise.
18932         (real_convert_from_fixed): Likewise.
18933         * fold-const.h (mem_ref_offset): Return an offset_int.
18934         (div_if_zero_remainder): Remove code parameter.
18935         * fold-const.c (div_if_zero_remainder): Remove code parameter.
18936         Use wide-int interfaces.
18937         (may_negate_without_overflow_p): Use wide-int interfaces.
18938         (negate_expr_p): Likewise.
18939         (fold_negate_expr): Likewise.
18940         (int_const_binop_1): Likewise.
18941         (const_binop): Likewise.
18942         (fold_convert_const_int_from_int): Likewise.
18943         (fold_convert_const_int_from_real): Likewise.
18944         (fold_convert_const_int_from_fixed): Likewise.
18945         (fold_convert_const_fixed_from_int): Likewise.
18946         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
18947         (sign_bit_p): Use wide-int interfaces.
18948         (make_range_step): Likewise.
18949         (build_range_check): Likewise.  Pass an integer of the correct type
18950         instead of using integer_one_node.
18951         (range_predecessor): Pass an integer of the correct type instead
18952         of using integer_one_node.
18953         (range_successor): Likewise.
18954         (merge_ranges): Likewise.
18955         (unextend): Use wide-int interfaces.
18956         (extract_muldiv_1): Likewise.
18957         (fold_div_compare): Likewise.
18958         (fold_single_bit_test): Likewise.
18959         (fold_sign_changed_comparison): Likewise.
18960         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
18961         (fold_plusminus_mult_expr): Use wide-int interfaces.
18962         (native_encode_int): Likewise.
18963         (native_interpret_int): Likewise.
18964         (fold_unary_loc): Likewise.
18965         (pointer_may_wrap_p): Likewise.
18966         (size_low_cst): Likewise.
18967         (mask_with_tz): Likewise.
18968         (fold_binary_loc): Likewise.
18969         (fold_ternary_loc): Likewise.
18970         (multiple_of_p): Likewise.
18971         (tree_call_nonnegative_warnv_p): Update calls to
18972         tree_int_cst_min_precision and real_from_integer.
18973         (fold_negate_const): Use wide-int interfaces.
18974         (fold_abs_const): Likewise.
18975         (fold_relational_const): Use tree_int_cst_lt.
18976         (round_up_loc): Use wide-int interfaces.
18977         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
18978         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
18979         * gengtype.c: Remove include of double-int.h.
18980         (do_typedef): Use wide-int interfaces.
18981         (open_base_files): Add wide-int.h.
18982         (main): Add offset_int and widest_int typedefs.
18983         * gengtype-lex.l: Handle "^".
18984         (CXX_KEYWORD): Add "static".
18985         * gengtype-parse.c (require3): New.
18986         (require_template_declaration): Handle constant template arguments
18987         and nested templates.
18988         * gengtype-state.c: Don't include "double-int.h".
18989         * genpreds.c (write_one_predicate_function): Update comment.
18990         (write_tm_constrs_h): Add check for hval and lval use in
18991         CONST_WIDE_INT.
18992         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
18993         (add_to_sequence): Likewise.
18994         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
18995         and const_double_operand.
18996         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
18997         interfaces.
18998         * gimple-fold.c (get_base_constructor): Likewise.
18999         (fold_array_ctor_reference): Likewise.
19000         (fold_nonarray_ctor_reference): Likewise.
19001         (fold_const_aggregate_ref_1): Likewise.
19002         (gimple_val_nonnegative_real_p): Likewise.
19003         (gimple_fold_indirect_ref): Likewise.
19004         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
19005         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
19006         (struct slsr_cand_d): Change index to be widest_int.
19007         (struct incr_info_d): Change incr to be widest_int.
19008         (alloc_cand_and_find_basis): Use wide-int interfaces.
19009         (slsr_process_phi): Likewise.
19010         (backtrace_base_for_ref): Likewise.  Return a widest_int.
19011         (restructure_reference): Take a widest_int instead of a double_int.
19012         (slsr_process_ref): Use wide-int interfaces.
19013         (create_mul_ssa_cand): Likewise.
19014         (create_mul_imm_cand): Likewise.
19015         (create_add_ssa_cand): Likewise.
19016         (create_add_imm_cand): Take a widest_int instead of a double_int.
19017         (slsr_process_add): Use wide-int interfaces.
19018         (slsr_process_cast): Likewise.
19019         (slsr_process_copy): Likewise.
19020         (dump_candidate): Likewise.
19021         (dump_incr_vec): Likewise.
19022         (replace_ref): Likewise.
19023         (cand_increment): Likewise.  Return a widest_int.
19024         (cand_abs_increment): Likewise.
19025         (replace_mult_candidate): Take a widest_int instead of a double_int.
19026         (replace_unconditional_candidate): Use wide-int interfaces.
19027         (incr_vec_index): Take a widest_int instead of a double_int.
19028         (create_add_on_incoming_edge): Likewise.
19029         (create_phi_basis): Use wide-int interfaces.
19030         (replace_conditional_candidate): Likewise.
19031         (record_increment): Take a widest_int instead of a double_int.
19032         (record_phi_increments): Use wide-int interfaces.
19033         (phi_incr_cost): Take a widest_int instead of a double_int.
19034         (lowest_cost_path): Likewise.
19035         (total_savings): Likewise.
19036         (analyze_increments): Use wide-int interfaces.
19037         (ncd_with_phi): Take a widest_int instead of a double_int.
19038         (ncd_of_cand_and_phis): Likewise.
19039         (nearest_common_dominator_for_cands): Likewise.
19040         (insert_initializers): Use wide-int interfaces.
19041         (all_phi_incrs_profitable): Likewise.
19042         (replace_one_candidate): Likewise.
19043         (replace_profitable_candidates): Likewise.
19044         * godump.c: Include wide-int-print.h.
19045         (go_output_typedef): Use wide-int interfaces.
19046         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
19047         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
19048         (build_loop_iteration_domains): Likewise.
19049         * hooks.h: Include wide-int.h rather than double-int.h.
19050         (hook_bool_dint_dint_uint_bool_true): Delete.
19051         (hook_bool_wint_wint_uint_bool_true): Declare.
19052         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
19053         (hook_bool_wint_wint_uint_bool_true): New.
19054         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
19055         interfaces.
19056         (ubsan_expand_si_overflow_mul_check): Likewise.
19057         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
19058         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
19059         (get_ancestor_addr_info): Likewise.
19060         (ipa_modify_call_arguments): Likewise.
19061         * loop-doloop.c (doloop_modify): Likewise.
19062         (doloop_optimize): Likewise.
19063         * loop-iv.c (iv_number_of_iterations): Likewise.
19064         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
19065         (unroll_loop_constant_iterations): Likewise.
19066         (decide_unroll_runtime_iterations): Likewise.
19067         (unroll_loop_runtime_iterations): Likewise.
19068         (decide_peel_simple): Likewise.
19069         (decide_unroll_stupid): Likewise.
19070         * lto-streamer-in.c (streamer_read_wi): Add.
19071         (input_cfg): Use wide-int interfaces.
19072         (lto_input_tree_1): Likewise.
19073         * lto-streamer-out.c (streamer_write_wi): Add.
19074         (hash_tree): Use wide-int interfaces.
19075         (output_cfg): Likewise.
19076         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
19077         (GTFILES): Add wide-int.h and signop.h.
19078         (TAGS): Look for .cc files too.
19079         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
19080         * optabs.c (expand_subword_shift): Likewise.
19081         (expand_doubleword_shift): Likewise.
19082         (expand_absneg_bit): Likewise.
19083         (expand_copysign_absneg): Likewise.
19084         (expand_copysign_bit): Likewise.
19085         * postreload.c (reload_cse_simplify_set): Likewise.
19086         * predict.c (predict_iv_comparison): Likewise.
19087         * pretty-print.h: Include wide-int-print.h.
19088         (pp_wide_int) New.
19089         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
19090         * print-tree.c: Include wide-int-print.h.
19091         (print_node_brief): Use wide-int interfaces.
19092         (print_node): Likewise.
19093         * read-rtl.c (validate_const_wide_int): New.
19094         (read_rtx_code): Add CONST_WIDE_INT case.
19095         * real.c: Include wide-int.h.
19096         (real_to_integer2): Delete.
19097         (real_to_integer): New function, returning a wide_int.
19098         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19099         (ten_to_ptwo): Update call to real_from_integer.
19100         (real_digit): Likewise.
19101         * real.h: Include signop.h, wide-int.h and insn-modes.h.
19102         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
19103         (REAL_VALUE_TO_INT): Delete.
19104         (real_to_integer): Declare a wide-int form.
19105         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19106         * recog.c (const_int_operand): Improve comment.
19107         (const_scalar_int_operand): New.
19108         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
19109         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
19110         (split_double): Likewise.
19111         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
19112         (rtx_size): Likewise.
19113         (rtx_alloc_stat_v): New.
19114         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
19115         (cwi_output_hex): New.
19116         (iterative_hash_rtx): Handle CONST_WIDE_INT.
19117         (cwi_check_failed_bounds): New.
19118         * rtl.def (CONST_WIDE_INT): New.
19119         * rtl.h: Include <utility> and wide-int.h.
19120         (struct hwivec_def): New.
19121         (CWI_GET_NUM_ELEM): New.
19122         (CWI_PUT_NUM_ELEM): New.
19123         (struct rtx_def): Add num_elem and hwiv.
19124         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
19125         (CASE_CONST_UNIQUE): Likewise.
19126         (CASE_CONST_ANY): Likewise.
19127         (CONST_SCALAR_INT_P): Likewise.
19128         (CONST_WIDE_INT_P): New.
19129         (CWI_ELT): New.
19130         (HWIVEC_CHECK): New.
19131         (cwi_check_failed_bounds): New.
19132         (CWI_ELT): New.
19133         (HWIVEC_CHECK): New.
19134         (CONST_WIDE_INT_VEC) New.
19135         (CONST_WIDE_INT_NUNITS) New.
19136         (CONST_WIDE_INT_ELT) New.
19137         (rtx_mode_t): New type.
19138         (wi::int_traits <rtx_mode_t>): New.
19139         (wi::shwi): New.
19140         (wi::min_value): New.
19141         (wi::max_value): New.
19142         (rtx_alloc_v) New.
19143         (const_wide_int_alloc): New.
19144         (immed_wide_int_const): New.
19145         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
19146         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
19147         * signop.h: New file.
19148         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
19149         (simplify_const_unary_operation): Use wide-int interfaces.
19150         (simplify_binary_operation_1): Likewise.
19151         (simplify_const_binary_operation): Likewise.
19152         (simplify_const_relational_operation): Likewise.
19153         (simplify_immed_subreg): Likewise.
19154         * stmt.c (expand_case): Likewise.
19155         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
19156         signop rather than a bool.
19157         * stor-layout.c (layout_type): Use wide-int interfaces.
19158         (initialize_sizetypes): Update calls to
19159         set_min_and_max_values_for_integral_type.
19160         (set_min_and_max_values_for_integral_type): Take a signop rather
19161         than a bool.  Use wide-int interfaces.
19162         (fixup_signed_type): Update accordingly.  Remove
19163         HOST_BITS_PER_DOUBLE_INT limit.
19164         (fixup_unsigned_type): Likewise.
19165         * system.h (STATIC_CONSTANT_P): New.
19166         (STATIC_ASSERT): New.
19167         * target.def (can_use_doloop_p): Take widest_ints rather than
19168         double_ints.
19169         * target.h: Include wide-int.h rather than double-int.h.
19170         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
19171         than double_ints.
19172         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
19173         rather than INT_CST_LT_UNSIGNED.
19174         (can_use_doloop_if_innermost): Take widest_ints rather than
19175         double_ints.
19176         * tree-affine.c: Include wide-int-print.h.
19177         (double_int_ext_for_comb): Delete.
19178         (wide_int_ext_for_comb): New.
19179         (aff_combination_zero): Use wide-int interfaces.
19180         (aff_combination_const): Take a widest_int instead of a double_int.
19181         (aff_combination_elt): Use wide-int interfaces.
19182         (aff_combination_scale): Take a widest_int instead of a double_int.
19183         (aff_combination_add_elt): Likewise.
19184         (aff_combination_add_cst): Likewise.
19185         (aff_combination_add): Use wide-int interfaces.
19186         (aff_combination_convert): Likewise.
19187         (tree_to_aff_combination): Likewise.
19188         (add_elt_to_tree): Take a widest_int instead of a double_int.
19189         (aff_combination_to_tree): Use wide-int interfaces.
19190         (aff_combination_remove_elt): Likewise.
19191         (aff_combination_add_product): Take a widest_int instead of
19192         a double_int.
19193         (aff_combination_mult): Use wide-int interfaces.
19194         (aff_combination_expand): Likewise.
19195         (double_int_constant_multiple_p): Delete.
19196         (wide_int_constant_multiple_p): New.
19197         (aff_combination_constant_multiple_p): Take a widest_int pointer
19198         instead of a double_int pointer.
19199         (print_aff): Use wide-int interfaces.
19200         (get_inner_reference_aff): Take a widest_int pointer
19201         instead of a double_int pointer.
19202         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
19203         * tree-affine.h: Include wide-int.h.
19204         (struct aff_comb_elt): Change type of coef to widest_int.
19205         (struct affine_tree_combination): Change type of offset to widest_int.
19206         (double_int_ext_for_comb): Delete.
19207         (wide_int_ext_for_comb): New.
19208         (aff_combination_const): Use widest_int instead of double_int.
19209         (aff_combination_scale): Likewise.
19210         (aff_combination_add_elt): Likewise.
19211         (aff_combination_constant_multiple_p): Likewise.
19212         (get_inner_reference_aff): Likewise.
19213         (aff_comb_cannot_overlap_p): Likewise.
19214         (aff_combination_zero_p): Use wide-int interfaces.
19215         * tree.c: Include tree.h.
19216         (init_ttree): Use make_int_cst.
19217         (tree_code_size): Removed code for INTEGER_CST case.
19218         (tree_size): Add INTEGER_CST case.
19219         (make_node_stat): Update comment.
19220         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
19221         (build_int_cst_type): Use wide-int interfaces.
19222         (double_int_to_tree): Likewise.
19223         (double_int_fits_to_tree_p): Delete.
19224         (force_fit_type_double): Delete.
19225         (force_fit_type): New.
19226         (int_cst_hash_hash): Use wide-int interfaces.
19227         (int_cst_hash_eq): Likewise.
19228         (build_int_cst_wide): Delete.
19229         (wide_int_to_tree): New.
19230         (cache_integer_cst): Use wide-int interfaces.
19231         (build_low_bits_mask): Likewise.
19232         (cst_and_fits_in_hwi): Likewise.
19233         (real_value_from_int_cst): Likewise.
19234         (make_int_cst_stat): New.
19235         (integer_zerop): Use wide_int interfaces.
19236         (integer_onep): Likewise.
19237         (integer_all_onesp): Likewise.
19238         (integer_pow2p): Likewise.
19239         (integer_nonzerop): Likewise.
19240         (tree_log2): Likewise.
19241         (tree_floor_log2): Likewise.
19242         (tree_ctz): Likewise.
19243         (int_size_in_bytes): Likewise.
19244         (mem_ref_offset): Return an offset_int rather than a double_int.
19245         (build_type_attribute_qual_variant): Use wide_int interfaces.
19246         (type_hash_eq): Likewise
19247         (tree_int_cst_equal): Likewise.
19248         (tree_int_cst_lt): Delete.
19249         (tree_int_cst_compare): Likewise.
19250         (tree_fits_shwi_p): Use wide_int interfaces.
19251         (tree_fits_uhwi_p): Likewise.
19252         (tree_int_cst_sign_bit): Likewise.
19253         (tree_int_cst_sgn): Likewise.
19254         (tree_int_cst_min_precision): Take a signop rather than a bool.
19255         (simple_cst_equal): Use wide_int interfaces.
19256         (compare_tree_int): Likewise.
19257         (iterative_hash_expr): Likewise.
19258         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
19259         INT_CST_LT.
19260         (get_type_static_bounds): Use wide_int interfaces.
19261         (tree_int_cst_elt_check_failed): New.
19262         (build_common_tree_nodes): Reordered to set prec before filling in
19263         value.
19264         (int_cst_value): Check cst_and_fits_in_hwi.
19265         (widest_int_cst_value): Use wide_int interfaces.
19266         (upper_bound_in_type): Likewise.
19267         (lower_bound_in_type): Likewise.
19268         (num_ending_zeros): Likewise.
19269         (drop_tree_overflow): Likewise.
19270         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
19271         (gen_conditions_for_pow_cst_base): Likewise.
19272         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
19273         (group_case_labels_stmt): Use wide-int interfaces.
19274         (verify_gimple_assign_binary): Likewise.
19275         (print_loop): Likewise.
19276         * tree-chrec.c (tree_fold_binomial): Likewise.
19277         * tree-core.h (struct tree_base): Add int_length.
19278         (struct tree_int_cst): Change rep of value.
19279         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
19280         (dr_may_alias_p): Likewise.
19281         (max_stmt_executions_tree): Likewise.
19282         * tree.def (INTEGER_CST): Update comment.
19283         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
19284         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
19285         * tree-dump.c: Include wide-int.h and wide-int-print.h.
19286         (dequeue_and_dump): Use wide-int interfaces.
19287         * tree.h: Include wide-int.h.
19288         (NULL_TREE): Moved to earlier loc in file.
19289         (TREE_INT_CST_ELT_CHECK): New.
19290         (tree_int_cst_elt_check_failed): New.
19291         (TYPE_SIGN): New.
19292         (TREE_INT_CST): Delete.
19293         (TREE_INT_CST_LOW): Use wide-int interfaces.
19294         (TREE_INT_CST_HIGH): Delete.
19295         (TREE_INT_CST_NUNITS): New.
19296         (TREE_INT_CST_EXT_NUNITS): Likewise.
19297         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
19298         (TREE_INT_CST_ELT): Likewise.
19299         (INT_CST_LT): Delete.
19300         (tree_int_cst_elt_check): New (two forms).
19301         (type_code_size): Update comment.
19302         (make_int_cst_stat, make_int_cst): New.
19303         (tree_to_double_int): Delete.
19304         (double_int_fits_to_tree_p): Delete.
19305         (force_fit_type_double): Delete.
19306         (build_int_cstu): Replace with out-of-line function.
19307         (build_int_cst_wide): Delete.
19308         (tree_int_cst_lt): Define inline.
19309         (tree_int_cst_le): New.
19310         (tree_int_cst_compare): Define inline.
19311         (tree_int_cst_min_precision): Take a signop rather than a bool.
19312         (wi::int_traits <const_tree>): New.
19313         (wi::int_traits <tree>): New.
19314         (wi::extended_tree): New.
19315         (wi::int_traits <wi::extended_tree>): New.
19316         (wi::to_widest): New.
19317         (wi::to_offset): New.
19318         (wi::fits_to_tree_p): New.
19319         (wi::min_value): New.
19320         (wi::max_value): New.
19321         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
19322         (copy_tree_body_r): Likewise.
19323         * tree-object-size.c (compute_object_offset): Likewise.
19324         (addr_object_size): Likewise.
19325         * tree-predcom.c: Include wide-int-print.h.
19326         (struct dref_d): Change type of offset to widest_int.
19327         (dump_dref): Call wide-int printer.
19328         (aff_combination_dr_offset): Use wide-int interfaces.
19329         (determine_offset): Take a widest_int pointer rather than a
19330         double_int pointer.
19331         (split_data_refs_to_components): Use wide-int interfaces.
19332         (suitable_component_p): Likewise.
19333         (order_drefs): Likewise.
19334         (add_ref_to_chain): Likewise.
19335         (valid_initializer_p): Likewise.
19336         (determine_roots_comp): Likewise.
19337         * tree-pretty-print.c: Include wide-int-print.h.
19338         (dump_generic_node): Use wide-int interfaces.
19339         * tree-sra.c (sra_ipa_modify_expr): Likewise.
19340         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
19341         (move_fixed_address_to_symbol): Likewise.
19342         (move_hint_to_base): Likewise.
19343         (move_pointer_to_base): Likewise.
19344         (move_variant_to_index): Likewise.
19345         (most_expensive_mult_to_index): Likewise.
19346         (addr_to_parts): Likewise.
19347         (copy_ref_info): Likewise.
19348         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
19349         (indirect_refs_may_alias_p): Likewise.
19350         (stmt_kills_ref_p_1): Likewise.
19351         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
19352         * tree-ssa-ccp.c: Update comment at top of file.  Include
19353         wide-int-print.h.
19354         (struct prop_value_d): Change type of mask to widest_int.
19355         (extend_mask): New function.
19356         (dump_lattice_value): Use wide-int interfaces.
19357         (get_default_value): Likewise.
19358         (set_constant_value): Likewise.
19359         (set_value_varying): Likewise.
19360         (valid_lattice_transition): Likewise.
19361         (set_lattice_value): Likewise.
19362         (value_to_double_int): Delete.
19363         (value_to_wide_int): New.
19364         (get_value_from_alignment): Use wide-int interfaces.
19365         (get_value_for_expr): Likewise.
19366         (do_dbg_cnt): Likewise.
19367         (ccp_finalize): Likewise.
19368         (ccp_lattice_meet): Likewise.
19369         (bit_value_unop_1): Use widest_ints rather than double_ints.
19370         (bit_value_binop_1): Likewise.
19371         (bit_value_unop): Use wide-int interfaces.
19372         (bit_value_binop): Likewise.
19373         (bit_value_assume_aligned): Likewise.
19374         (evaluate_stmt): Likewise.
19375         (ccp_fold_stmt): Likewise.
19376         (visit_cond_stmt): Likewise.
19377         (ccp_visit_stmt): Likewise.
19378         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19379         (constant_pointer_difference): Likewise.
19380         (associate_pointerplus): Likewise.
19381         (combine_conversions): Likewise.
19382         * tree-ssa-loop.h: Include wide-int.h.
19383         (struct tree_niter_desc): Change type of max to widest_int.
19384         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
19385         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
19386         (remove_redundant_iv_tests): Likewise.
19387         (canonicalize_loop_induction_variables): Likewise.
19388         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
19389         (constant_multiple_of): Take a widest_int pointer instead of
19390         a double_int pointer.
19391         (get_computation_aff): Use wide-int interfaces.
19392         (ptr_difference_cost): Likewise.
19393         (difference_cost): Likewise.
19394         (get_loop_invariant_expr_id): Likewise.
19395         (get_computation_cost_at): Likewise.
19396         (iv_elimination_compare_lt): Likewise.
19397         (may_eliminate_iv): Likewise.
19398         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
19399         instead of double_int.
19400         (max_loop_iterations): Likewise.
19401         (max_stmt_executions): Likewise.
19402         (estimated_stmt_executions): Likewise.
19403         * tree-ssa-loop-niter.c: Include wide-int-print.h.
19404         (split_to_var_and_offset): Use wide-int interfaces.
19405         (determine_value_range): Likewise.
19406         (bound_difference_of_offsetted_base): Likewise.
19407         (bounds_add): Take a widest_int instead of a double_int.
19408         (number_of_iterations_ne_max): Use wide-int interfaces.
19409         (number_of_iterations_ne): Likewise.
19410         (number_of_iterations_lt_to_ne): Likewise.
19411         (assert_loop_rolls_lt): Likewise.
19412         (number_of_iterations_lt): Likewise.
19413         (number_of_iterations_le): Likewise.
19414         (number_of_iterations_cond): Likewise.
19415         (number_of_iterations_exit): Likewise.
19416         (finite_loop_p): Likewise.
19417         (derive_constant_upper_bound_assign): Likewise.
19418         (derive_constant_upper_bound): Return a widest_int.
19419         (derive_constant_upper_bound_ops): Likewise.
19420         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
19421         (record_estimate): Take a widest_int rather than a double_int.
19422         (record_nonwrapping_iv): Use wide-int interfaces.
19423         (double_int_cmp): Delete.
19424         (wide_int_cmp): New.
19425         (bound_index): Take a widest_int rather than a double_int.
19426         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
19427         (maybe_lower_iteration_bound): Likewise.
19428         (estimate_numbers_of_iterations_loop): Likewise.
19429         (estimated_loop_iterations): Take a widest_int pointer than than
19430         a double_int pointer.
19431         (estimated_loop_iterations_int): Use wide-int interfaces.
19432         (max_loop_iterations): Take a widest_int pointer than than
19433         a double_int pointer.
19434         (max_loop_iterations_int): Use wide-int interfaces.
19435         (max_stmt_executions): Take a widest_int pointer than than
19436         a double_int pointer.
19437         (estimated_stmt_executions): Likewise.
19438         (n_of_executions_at_most): Use wide-int interfaces.
19439         (scev_probably_wraps_p): Likewise.
19440         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
19441         to real_to_integer.
19442         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
19443         interfaces.
19444         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
19445         double_ints.  Adjust for trailing_wide_ints <3> representation.
19446         (set_nonzero_bits): Likewise.
19447         (get_range_info): Return wide_ints rather than double_ints.
19448         Adjust for trailing_wide_ints <3> representation.
19449         (get_nonzero_bits): Likewise.
19450         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
19451         representation.
19452         * tree-ssanames.h (struct range_info_def): Replace min, max and
19453         nonzero_bits with a trailing_wide_ints <3>.
19454         (set_range_info): Use wide_int_refs rather than double_ints.
19455         (set_nonzero_bits): Likewise.
19456         (get_range_info): Return wide_ints rather than double_ints.
19457         (get_nonzero_bits): Likewise.
19458         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
19459         * tree-ssa-pre.c (phi_translate_1): Likewise.
19460         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
19461         (acceptable_pow_call): Likewise.
19462         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
19463         interfaces.
19464         (vn_reference_fold_indirect): Likewise.
19465         (vn_reference_maybe_forwprop_address): Likewise.
19466         (valueize_refs_1): Likewise.
19467         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
19468         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
19469         tree_int_cst_lt and tree_int_cst_le.
19470         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
19471         interfaces.
19472         (streamer_alloc_tree): Likewise.
19473         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
19474         (streamer_write_tree_header): Likewise.
19475         (streamer_write_integer_cst): Likewise.
19476         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
19477         (build_constructors): Likewise.
19478         (array_value_type): Likewise.
19479         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
19480         (vect_check_gather): Likewise.
19481         * tree-vect-generic.c (build_replicated_const): Likewise.
19482         (expand_vector_divmod): Likewise.
19483         * tree-vect-loop.c (vect_transform_loop): Likewise.
19484         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
19485         (vect_do_peeling_for_alignment): Likewise.
19486         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
19487         * tree-vrp.c: Include wide-int.h.
19488         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
19489         (extract_range_from_assert): Use wide-int interfaces.
19490         (vrp_int_const_binop): Likewise.
19491         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
19492         double_int pointers.
19493         (ranges_from_anti_range): Use wide-int interfaces.
19494         (quad_int_cmp): Delete.
19495         (quad_int_pair_sort): Likewise.
19496         (extract_range_from_binary_expr_1): Use wide-int interfaces.
19497         (extract_range_from_unary_expr_1): Likewise.
19498         (adjust_range_with_scev): Likewise.
19499         (masked_increment): Take and return wide_ints rather than double_ints.
19500         (register_edge_assert_for_2): Use wide-int interfaces.
19501         (check_array_ref): Likewise.
19502         (search_for_addr_array): Likewise.
19503         (maybe_set_nonzero_bits): Likewise.
19504         (union_ranges): Pass an integer of the correct type instead of
19505         using integer_one_node.
19506         (intersect_ranges): Likewise.
19507         (simplify_truth_ops_using_ranges): Likewise.
19508         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
19509         (range_fits_type_p): Likewise.
19510         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
19511         a bool.
19512         (simplify_conversion_using_ranges): Use wide-int interfaces.
19513         (simplify_float_conversion_using_ranges): Likewise.
19514         (vrp_finalize): Likewise.
19515         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
19516         (gimple_stringops_transform): Likewise.
19517         * varasm.c (decode_addr_const): Likewise.
19518         (const_hash_1): Likewise.
19519         (const_rtx_hash_1): Likewise
19520         (output_constant): Likewise.
19521         (array_size_for_constructor): Likewise.
19522         (output_constructor_regular_field): Likewise.
19523         (output_constructor_bitfield): Likewise.
19524         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
19525         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
19526         GENERATOR_FILEs.
19527         * gencheck.c: Define BITS_PER_UNIT.
19528         * wide-int.cc: New.
19529         * wide-int.h: New.
19530         * wide-int-print.cc: New.
19531         * wide-int-print.h: New.
19533 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19535         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
19537 2014-05-06  Richard Biener  <rguenther@suse.de>
19539         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
19540         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
19541         (TODO_verify_all): Adjust.
19542         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
19543         TODO_verify_stmts and TODO_verify_rtl_sharing.
19544         * bb-reorder.c: Likewise.
19545         * cfgexpand.c: Likewise.
19546         * cprop.c: Likewise.
19547         * cse.c: Likewise.
19548         * function.c: Likewise.
19549         * fwprop.c: Likewise.
19550         * gcse.c: Likewise.
19551         * gimple-ssa-isolate-paths.c: Likewise.
19552         * gimple-ssa-strength-reduction.c: Likewise.
19553         * ipa-split.c: Likewise.
19554         * loop-init.c: Likewise.
19555         * loop-unroll.c: Likewise.
19556         * lower-subreg.c: Likewise.
19557         * modulo-sched.c: Likewise.
19558         * postreload-gcse.c: Likewise.
19559         * predict.c: Likewise.
19560         * recog.c: Likewise.
19561         * sched-rgn.c: Likewise.
19562         * store-motion.c: Likewise.
19563         * tracer.c: Likewise.
19564         * trans-mem.c: Likewise.
19565         * tree-call-cdce.c: Likewise.
19566         * tree-cfg.c: Likewise.
19567         * tree-cfgcleanup.c: Likewise.
19568         * tree-complex.c: Likewise.
19569         * tree-eh.c: Likewise.
19570         * tree-emutls.c: Likewise.
19571         * tree-if-conv.c: Likewise.
19572         * tree-into-ssa.c: Likewise.
19573         * tree-loop-distribution.c: Likewise.
19574         * tree-object-size.c: Likewise.
19575         * tree-parloops.c: Likewise.
19576         * tree-pass.h: Likewise.
19577         * tree-sra.c: Likewise.
19578         * tree-ssa-ccp.c: Likewise.
19579         * tree-ssa-copy.c: Likewise.
19580         * tree-ssa-copyrename.c: Likewise.
19581         * tree-ssa-dce.c: Likewise.
19582         * tree-ssa-dom.c: Likewise.
19583         * tree-ssa-dse.c: Likewise.
19584         * tree-ssa-forwprop.c: Likewise.
19585         * tree-ssa-ifcombine.c: Likewise.
19586         * tree-ssa-loop-ch.c: Likewise.
19587         * tree-ssa-loop-ivcanon.c: Likewise.
19588         * tree-ssa-loop.c: Likewise.
19589         * tree-ssa-math-opts.c: Likewise.
19590         * tree-ssa-phiopt.c: Likewise.
19591         * tree-ssa-phiprop.c: Likewise.
19592         * tree-ssa-pre.c: Likewise.
19593         * tree-ssa-reassoc.c: Likewise.
19594         * tree-ssa-sink.c: Likewise.
19595         * tree-ssa-strlen.c: Likewise.
19596         * tree-ssa-tail-merge.c: Likewise.
19597         * tree-ssa-uncprop.c: Likewise.
19598         * tree-switch-conversion.c: Likewise.
19599         * tree-tailcall.c: Likewise.
19600         * tree-vect-generic.c: Likewise.
19601         * tree-vectorizer.c: Likewise.
19602         * tree-vrp.c: Likewise.
19603         * tsan.c: Likewise.
19604         * var-tracking.c: Likewise.
19605         * bt-load.c: Likewise.
19606         * cfgcleanup.c: Likewise.
19607         * combine-stack-adj.c: Likewise.
19608         * combine.c: Likewise.
19609         * compare-elim.c: Likewise.
19610         * config/epiphany/resolve-sw-modes.c: Likewise.
19611         * config/i386/i386.c: Likewise.
19612         * config/mips/mips.c: Likewise.
19613         * config/s390/s390.c: Likewise.
19614         * config/sh/sh_treg_combine.cc: Likewise.
19615         * config/sparc/sparc.c: Likewise.
19616         * dce.c: Likewise.
19617         * dse.c: Likewise.
19618         * final.c: Likewise.
19619         * ifcvt.c: Likewise.
19620         * mode-switching.c: Likewise.
19621         * passes.c: Likewise.
19622         * postreload.c: Likewise.
19623         * ree.c: Likewise.
19624         * reg-stack.c: Likewise.
19625         * regcprop.c: Likewise.
19626         * regrename.c: Likewise.
19627         * web.c: Likewise.
19629 2014-05-06  Richard Biener  <rguenther@suse.de>
19631         PR middle-end/61070
19632         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
19633         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
19635 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
19637         PR ipa/60965
19638         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
19640 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
19641             Tom de Vries  <tom@codesourcery.com>
19643         * target.def (call_fusage_contains_non_callee_clobbers): New
19644         DEFHOOKPOD.
19645         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
19646         Hooks to @menu.
19647         (@node Miscellaneous Register Hooks): New node.
19648         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
19649         * doc/tm.texi: Regenerate.
19651 2014-05-05  Marek Polacek  <polacek@redhat.com>
19653         PR driver/61065
19654         * opts.c (common_handle_option): Call error_at instead of warning_at.
19656 2014-05-05  Richard Biener  <rguenther@suse.de>
19658         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
19659         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
19660         under the TODO_verify_il umbrella.
19662 2014-05-05  Richard Biener  <rguenther@suse.de>
19664         * passes.c (execute_function_todo): Move TODO_verify_flow under
19665         the TODO_verify_ul umbrella.
19667 2014-05-05  Richard Biener  <rguenther@suse.de>
19669         PR middle-end/61010
19670         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
19671         X & CST away from a CST that is the mask of a mode.
19673 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19675         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
19676         int argument to enum machine_mode.
19677         (picochip_class_max_nregs): Ditto.
19678         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
19679         (picochip_class_max_nregs): Ditto.
19681 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19683         * target.def: Add new target hook.
19684         * doc/tm.texi: Regenerate.
19685         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
19686         * targhooks.c (default_keep_leaf_when_profiled): New function.
19688         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
19689         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
19691 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
19693         PR tree-optimization/60363
19694         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
19695         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
19696         (update_destination_phis): New parameter.
19697         (create_edge_and_update_destination_phis): Ditto.
19698         (ssa_fix_duplicate_block_edges): Pass new arguments.
19699         (thread_single_edge): Ditto.
19701 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
19703         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
19704         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
19705         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
19706         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
19707         Use RS6000_BTM_HARD_FLOAT.
19708         (BU_MISC_2): Likewise.
19709         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
19710         RS6000_BTM_HARD_FLOAT.
19711         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
19712         is explicitly used.
19713         (rs6000_invalid_builtin): Add hard floating builtin support.
19714         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
19715         hard float builtins.
19716         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
19718 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
19720         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
19721         Add missing function* argument.
19723 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
19725         * lra-constraints.c (valid_address_p): Move earlier in file.
19726         Add a constraint argument to the address_info version.
19727         (satisfies_memory_constraint_p): New function.
19728         (satisfies_address_constraint_p): Likewise.
19729         (process_alt_operands, curr_insn_transform): Use them.
19730         (process_address): Pass the constraint to valid_address_p when
19731         checking address operands.
19733 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
19735         * config/mips/mips.c (mips_isa_rev): New variable.
19736         (mips_set_architecture): Set it.
19737         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
19738         from mips_isa_rev.
19739         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
19740         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
19741         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
19742         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
19743         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
19744         conditions in terms of mips_isa_rev.
19745         (mips_isa_rev): Declare.
19747 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
19749         * config/sh/sh-mem.cc: Use tabs instead of spaces.
19750         (prob_unlikely, prob_likely): Make variables const.
19752 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
19754         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
19756 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
19758         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
19760 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
19762         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
19763         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
19764         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
19765         functions.
19766         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
19767         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
19768         sh_pass_in_reg_p.
19769         Replace usage of ROUND_REG with sh_round_reg.
19770         Use CEIL instead of ROUND_ADVANCE.
19772 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
19774         PR target/61026
19775         * config/sh/sh.c: Include stdlib headers before everything else.
19777 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
19779         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
19780         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
19781         (gimplify_adjust_omp_clauses): Simd region is never
19782         directly nested in combined parallel.  Instead, for linear
19783         with copyin/copyout, if in combined for simd loop, make decl
19784         firstprivate/lastprivate on OMP_FOR.
19785         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
19786         expand_omp_for_static_chunk): When setting endvar, also set
19787         fd->loop.v to the same value.
19789 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
19791         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
19793 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
19795         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
19796         expression.
19798 2014-05-02  Marek Polacek  <polacek@redhat.com>
19800         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
19802 2014-05-02  Kito Cheng  <kito@0xlab.org>
19804         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
19805         to a C expression marco.
19806         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
19807         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
19808         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
19809         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
19810         HONOR_REG_ALLOC_ORDER.
19811         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
19813 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19815         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
19817 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19819         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
19821 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
19823         * tree-if-conv.c (is_cond_scalar_reduction): New function.
19824         (convert_scalar_cond_reduction): Likewise.
19825         (predicate_scalar_phi): Add recognition and transformation
19826         of simple conditioanl reduction to be vectorizable.
19828 2014-05-01  Marek Polacek  <polacek@redhat.com>
19830         PR c/43245
19831         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
19833 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
19835         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
19836         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
19837         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
19838         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
19839         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
19840         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
19841         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
19842         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
19844 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
19846         * config/arc/arc.opt (mlra): Move comment above option name
19847         to avoid mis-parsing as language options.
19849 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19851         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
19852         * config/sol2.h: ... here.
19853         * config/sol2-10.h: Remove.
19855         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
19856         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
19857         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
19858         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
19859         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
19860         * config/sol2.h: ... here.
19861         (SECTION_NAME_FORMAT): Don't redefine.
19862         (STARTFILE_ARCH32_SPEC): Rename to ...
19863         (STARTFILE_ARCH_SPEC): ... this.
19864         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
19865         * config/sparc/sol2.h: ... here.
19866         (SECTION_NAME_FORMAT): Don't undef.
19867         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
19868         (SUBTARGET_EXTRA_SPECS): Remove.
19869         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
19871         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
19872         (MD_STARTFILE_PREFIX): Remove.
19873         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
19874         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
19875         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
19876         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
19877         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
19878         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
19879         * config/i386/sol2.h: ... here.
19880         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
19881         * config/i386/sol2-bi.h: Remove.
19882         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
19883         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
19885         * config/i386/t-sol2-64: Rename to ...
19886         * config/i386/t-sol2: ... this.
19887         * config/sparc/t-sol2-64: Rename to ...
19888         * config/sparc/t-sol2: ... this.
19890         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
19891         sol2_tm_file_head, sol2_tm_file_tail.
19892         Include ${cpu_type}/sol2.h before sol2.h.
19893         Remove sol2-10.h.
19894         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
19895         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
19896         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
19897         Reflect i386/t-sol2-64 renaming.
19898         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
19899         Reflect sparc/t-sol2-64 renaming.
19901 2014-04-30  Richard Biener  <rguenther@suse.de>
19903         * passes.c (execute_function_todo): Move TODO_verify_stmts
19904         and TODO_verify_ssa under the TODO_verify_il umbrella.
19905         * tree-ssa.h (verify_ssa): Adjust prototype.
19906         * tree-ssa.c (verify_ssa): Add parameter to tell whether
19907         we should verify SSA operands.
19908         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
19909         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
19910         whether we should verify whether not throwing stmts have EH info.
19911         * graphite-scop-detection.c (create_sese_edges): Adjust.
19912         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
19913         * tree-eh.c (lower_try_finally_switch): Do not add the
19914         default case label twice.
19916 2014-04-30  Marek Polacek  <polacek@redhat.com>
19918         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
19919         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
19920         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
19921         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
19923 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
19925         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
19926         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
19927         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
19928         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
19929         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
19930         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
19931         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
19932         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
19934 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
19936         * tree-cfg.c (dump_function_to_file): Dump the return type of
19937         functions, in a line to itself before the function body, mimicking
19938         the layout of a C function.
19940 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
19942         PR tree-optimization/60971
19943         * tree-tailcall.c (process_assignment): Reject conversions which
19944         reduce precision.
19946 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
19948         * calls.c (initialize_argument_information): Always treat
19949         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
19950         (expand_call): Likewise.
19951         (emit_library_call_calue_1): Likewise.
19952         * expr.c (PUSH_ARGS_REVERSED): Do not define.
19953         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
19954         code accordingly.
19956 2014-04-29  Nick Clifton  <nickc@redhat.com>
19958         * config/msp430/msp430.md (umulsidi): Fix typo.
19959         (mulhisi3): Enable even inside interrupt handlers.
19960         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
19961         bigger return address pushed in large mode.
19963 2014-04-29  Nick Clifton  <nickc@redhat.com>
19965         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
19966         (arc_init_reg_tables): Use a machine_mode enum to iterate over
19967         available modes.
19968         * config/m32r/m32r.c (init_reg_tables): Likewise.
19969         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
19970         enum to hold the modes.
19972 2014-04-29  Richard Biener  <rguenther@suse.de>
19974         * dominance.c (free_dominance_info): Add overload with
19975         function parameter.
19976         (dom_info_state): Likewise.
19977         (dom_info_available_p): Likewise.
19978         * basic-block.h (free_dominance_info, dom_info_state,
19979         dom_info_available_p): Declare overloads.
19980         * passes.c (execute_function_todo): Verify that verifiers
19981         don't change dominator info state.  Drop dominator info
19982         for IPA pass invocations.
19983         * cgraph.c (release_function_body): Restore asserts that
19984         dominator information is released.
19986 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
19988         * doc/invoke.texi: Fix typo.
19989         * tree-vrp.c: Fix typos.
19990         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
19992 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19994         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
19996 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
19998         * config/aarch64/aarch64-builtins.c
19999         (aarch64_types_storestruct_lane_qualifiers): New.
20000         (TYPES_STORESTRUCT_LANE): Likewise.
20001         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
20002         (st3_lane): Likewise.
20003         (st4_lane): Likewise.
20004         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
20005         (vec_store_lanesci_lane<mode>): Likewise.
20006         (vec_store_lanesxi_lane<mode>): Likewise.
20007         (aarch64_st2_lane<VQ:mode>): Likewise.
20008         (aarch64_st3_lane<VQ:mode>): Likewise.
20009         (aarch64_st4_lane<VQ:mode>): Likewise.
20010         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
20011         * config/aarch64/arm_neon.h
20012         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
20013         use new macro arguments.
20014         (__ST3_LANE_FUNC): Likewise.
20015         (__ST4_LANE_FUNC): Likewise.
20016         * config/aarch64/iterators.md (V_TWO_ELEM): New.
20017         (V_THREE_ELEM): Likewise.
20018         (V_FOUR_ELEM): Likewise.
20020 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
20022         * doc/gimple.texi: Replace the description of the now-defunct
20023         union gimple_statement_d with a diagram showing the
20024         gimple_statement_base class hierarchy and its relationships to
20025         the GSS_ and GIMPLE_ enums.
20027 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
20029         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
20030         * config/aarch64/aarch64.c
20031         (aarch64_cannot_change_mode_class): Weaken conditions.
20032         (aarch64_modes_tieable_p): New.
20033         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
20035 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
20037         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20038         (loadsync_<mode>): Change mode.
20039         (load_quadpti, store_quadpti): New.
20040         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20041         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20043 2014-04-28  Martin Jambor  <mjambor@suse.cz>
20045         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
20046         same alias type as the original statement.
20047         (subreplacement_assignment_data): New type.
20048         (handle_unscalarized_data_in_subtree): New type of parameter,
20049         generate new memory accesses with same alias type as the original
20050         statement.
20051         (load_assign_lhs_subreplacements): Likewise.
20052         (sra_modify_constructor_assign): Generate new memory accesses with
20053         same alias type as the original statement.
20055 2014-04-28  Richard Biener  <rguenther@suse.de>
20057         * tree-pass.h (TODO_verify_il): Define.
20058         (TODO_verify_all): Complete properly.
20059         * passes.c (execute_function_todo): Move existing loop-closed
20060         SSA verification under TODO_verify_il.
20061         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
20062         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
20063         Fix tree sharing issue.
20065 2014-04-28  Richard Biener  <rguenther@suse.de>
20067         PR middle-end/60092
20068         * builtins.def (DEF_C11_BUILTIN): Add.
20069         (BUILT_IN_ALIGNED_ALLOC): Likewise.
20070         * coretypes.h (enum function_class): Add function_c11_misc.
20071         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20072         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
20073         (call_may_clobber_ref_p_1): Likewise.
20074         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20075         (mark_all_reaching_defs_necessary_1): Likewise.
20076         (propagate_necessity): Likewise.
20077         (eliminate_unnecessary_stmts): Likewise.
20078         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
20080 2014-04-28  Richard Biener  <rguenther@suse.de>
20082         * tree-vrp.c (vrp_var_may_overflow): Remove.
20083         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
20084         with overflow immediately bump to one before that value and
20085         let iteration figure out overflow status.
20087 2014-04-28  Richard Biener  <rguenther@suse.de>
20089         * configure.ac: Do valgrind header checks unconditionally.
20090         Add --enable-valgrind-annotations.
20091         * system.h: Guard valgrind header inclusion with
20092         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
20093         * alloc-pool.c (pool_alloc, pool_free): Use
20094         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
20095         to guard possibly dead code.
20096         * config.in: Regenerated.
20097         * configure: Likewise.
20099 2014-04-28  Jeff Law  <law@redhat.com>
20101         PR tree-optimization/60902
20102         * tree-ssa-threadedge.c
20103         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
20104         over real defs when invalidating outputs from statements that do not
20105         produce useful outputs for threading.
20107 2014-04-28  Richard Biener  <rguenther@suse.de>
20109         PR tree-optimization/60979
20110         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
20111         SCOPs that end in a block with a successor with abnormal
20112         predecessors.
20114 2014-04-28  Richard Biener  <rguenther@suse.de>
20116         * tree-pass.h (execute_pass_list): Adjust prototype.
20117         * passes.c (pass_manager::execute_early_local_passes): Adjust.
20118         (do_per_function): Change callback signature, push all actual
20119         work to the callbals.
20120         (do_per_function_toporder): Likewise.
20121         (execute_function_dump): Adjust.
20122         (execute_function_todo): Likewise.
20123         (clear_last_verified): Likewise.
20124         (verify_curr_properties): Likewise.
20125         (update_properties_after_pass): Likewise.
20126         (execute_pass_list_1): Split out from ...
20127         (execute_pass_list): ... here.  Adjust.
20128         (execute_ipa_pass_list): Likewise.
20129         * cgraphunit.c (cgraph_add_new_function): Adjust.
20130         (analyze_function): Likewise.
20131         (expand_function): Likewise.
20132         * cgraph.c (release_function_body): Free dominance info
20133         here instead of asserting it was magically freed elsewhere.
20135 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
20137         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
20138         * configure: Regenerate.
20139         * config/sparc/sparc.opt (muser-mode): New option.
20140         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
20141         for LEON3.
20142         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
20143         * doc/invoke.texi (SPARC options): Document -muser-mode.
20145 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
20147         * cselib.c (find_slot_memmode): Delete.
20148         (cselib_hasher): Change compare_type to a struct.
20149         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
20150         constants.
20151         (preserve_constants_and_equivs): Adjust for new compare_type.
20152         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
20153         (wrap_constant): Delete.
20154         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
20156 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
20158         * doc/install.texi (Building with profile feedback): Remove
20159         outdated sentence.
20161 2014-04-26  Tom de Vries  <tom@codesourcery.com>
20163         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
20164         array accesses.
20166 2014-04-25  Cary Coutant  <ccoutant@google.com>
20168         PR debug/60929
20169         * dwarf2out.c (should_move_die_to_comdat): A type definition
20170         can contain a subprogram definition, but don't move it to a
20171         comdat unit.
20172         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
20173         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
20174         from original DIE.
20175         (clone_tree_hash): Rename to...
20176         (clone_tree_partial): ...this; change callers.  Copy
20177         DW_TAG_subprogram DIEs as declarations.
20178         (copy_decls_walk): Don't copy children of a declaration into a
20179         type unit.
20181 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
20183         PR target/60969
20184         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
20185         alternative 12.
20187 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
20189         * config/arm/predicates.md (call_insn_operand): Add long_call check.
20190         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
20191         reg for long_call.
20192         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
20193         restriction.
20195 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20197         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
20199 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20201         PR tree-optimization/60930
20202         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
20203         creating a multiply candidate by folding two constant
20204         multiplicands when the result overflows.
20206 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
20208         PR tree-optimization/60960
20209         * tree-vect-generic.c (expand_vector_operation): Only call
20210         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
20212 2014-04-25  Tom de Vries  <tom@codesourcery.com>
20214         * expr.c (clobber_reg_mode): New function.
20215         * expr.h (clobber_reg): New function.
20217 2014-04-25  Tom de Vries  <tom@codesourcery.com>
20219         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
20220         clobbers.
20222 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
20223             Tom de Vries  <tom@codesourcery.com>
20225         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
20226         handle.
20227         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
20228         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
20229         new argument to find_all_hard_reg_sets call.
20231 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20233         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
20234         Use HOST_WIDE_INT_C for mask literal.
20235         (aarch_rev16_shleft_mask_imm_p): Likewise.
20237 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
20239         PR target/60941
20240         * config/sparc/sparc.md (ashlsi3_extend): Delete.
20242 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
20244         PR preprocessor/56540
20245         * config/i386/i386-c.c (ix86_target_macros): Define
20246         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
20248 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20250         * configure.ac (tga_func): Remove.
20251         (LIB_TLS_SPEC): Remove.
20252         * configure: Regenerate.
20253         * config.in: Regenerate.
20254         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
20256 2014-04-25  Richard Biener  <rguenther@suse.de>
20258         PR ipa/60912
20259         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
20260         call stmt use/clobber sets during stmt walk instead of
20261         walking the possibly incomplete set of caller edges.
20263 2014-04-25  Richard Biener  <rguenther@suse.de>
20265         PR ipa/60911
20266         * passes.c (apply_ipa_transforms): Inline into only caller ...
20267         (execute_one_pass): ... here.  Properly bring in function
20268         bodies for nodes we want to apply IPA transforms to.
20270 2014-04-24  Cong Hou  <congh@google.com>
20272         PR tree-optimization/60896
20273         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
20274         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
20275         (vect_mark_pattern_stmts): Set the def type of all statements in
20276         PATTERN_DEF_SEQ as vect_internal_def.
20278 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
20280         * doc/extend.texi (PowerPC Built-in Functions): Document new
20281         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
20282         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
20284         * config/rs6000/predicates.md (const_0_to_3_operand): New
20285         predicate to match 0..3 integer constants.
20287         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
20288         to support adding miscellaneous builtin functions.
20289         (BU_DFP_MISC_2): Likewise.
20290         (BU_P7_MISC_1): Likewise.
20291         (BU_P7_MISC_2): Likewise.
20292         (BU_P8V_MISC_3): Likewise.
20293         (BU_MISC_1): Likewise.
20294         (BU_MISC_2): Likewise.
20295         (DIVWE): Add extended divide builtin functions.
20296         (DIVWEO): Likewise.
20297         (DIVWEU): Likewise.
20298         (DIVWEUO): Likewise.
20299         (DIVDE): Likewise.
20300         (DIVDEO): Likewise.
20301         (DIVDEU): Likewise.
20302         (DIVDEUO): Likewise.
20303         (DXEX): Add decimal floating-point builtin functions.
20304         (DXEXQ): Likewise.
20305         (DDEDPD): Likewise.
20306         (DDEDPDQ): Likewise.
20307         (DENBCD): Likewise.
20308         (DENBCDQ): Likewise.
20309         (DIEX): Likewise.
20310         (DIEXQ): Likewise.
20311         (DSCLI): Likewise.
20312         (DSCLIQ): Likewise.
20313         (DSCRI): Likewise.
20314         (DSCRIQ): Likewise.
20315         (CDTBCD): Add new BCD builtin functions.
20316         (CBCDTD): Likewise.
20317         (ADDG6S): Likewise.
20318         (BCDADD): Likewise.
20319         (BCDADD_LT): Likewise.
20320         (BCDADD_EQ): Likewise.
20321         (BCDADD_GT): Likewise.
20322         (BCDADD_OV): Likewise.
20323         (BCDSUB): Likewise.
20324         (BCDSUB_LT): Likewise.
20325         (BCDSUB_EQ): Likewise.
20326         (BCDSUB_GT): Likewise.
20327         (BCDSUB_OV): Likewise.
20328         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
20329         (UNPACK_TD): Likewise.
20330         (PACK_TF): Likewise.
20331         (UNPACK_TF): Likewise.
20332         (UNPACK_TF_0): Likewise.
20333         (UNPACK_TF_1): Likewise.
20334         (PACK_V1TI): Likewise.
20335         (UNPACK_V1TI): Likewise.
20337         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
20338         support for decimal floating point builtin functions.
20339         (rs6000_expand_ternop_builtin): Add checks for the new builtin
20340         functions that take constant arguments.
20341         (rs6000_invalid_builtin): Add decimal floating point builtin support.
20342         (rs6000_init_builtins): Setup long double, _Decimal64, and
20343         _Decimal128 types for new builtin functions.
20344         (builtin_function_type): Set the unsigned flags appropriately for
20345         the new builtin functions.
20346         (rs6000_opt_masks): Add support for decimal floating point builtin
20347         functions.
20349         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
20350         floating point builtin functions.
20351         (RS6000_BTM_COMMON): Likewise.
20352         (RS6000_BTI_long_double): Likewise.
20353         (RS6000_BTI_dfloat64): Likewise.
20354         (RS6000_BTI_dfloat128): Likewise.
20355         (long_double_type_internal_node): Likewise.
20356         (dfloat64_type_internal_node): Likewise.
20357         (dfloat128_type_internal_node): Likewise.
20359         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
20360         2.07 bcd arithmetic instructions.
20361         (UNSPEC_BCDSUB): Likewise.
20362         (UNSPEC_BCD_OVERFLOW): Likewise.
20363         (UNSPEC_BCD_ADD_SUB): Likewise.
20364         (bcd_add_sub): Likewise.
20365         (BCD_TEST): Likewise.
20366         (bcd<bcd_add_sub>): Likewise.
20367         (bcd<bcd_add_sub>_test): Likewise.
20368         (bcd<bcd_add_sub>_test2): Likewise.
20369         (bcd<bcd_add_sub>_<code>): Likewise.
20370         (peephole2 for combined bcd ops): Likewise.
20372         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
20373         decimal floating point builtin functions.
20374         (UNSPEC_DENBCD): Likewise.
20375         (UNSPEC_DXEX): Likewise.
20376         (UNSPEC_DIEX): Likewise.
20377         (UNSPEC_DSCLI): Likewise.
20378         (UNSPEC_DSCRI): Likewise.
20379         (D64_D128): Likewise.
20380         (dfp_suffix): Likewise.
20381         (dfp_ddedpd_<mode>): Likewise.
20382         (dfp_denbcd_<mode>): Likewise.
20383         (dfp_dxex_<mode>): Likewise.
20384         (dfp_diex_<mode>): Likewise.
20385         (dfp_dscli_<mode>): Likewise.
20386         (dfp_dscri_<mode>): Likewise.
20388         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
20389         builtin functions.
20390         (UNSPEC_CDTBCD): Likewise.
20391         (UNSPEC_CBCDTD): Likewise.
20392         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
20393         (UNSPEC_DIVEO): Likewise.
20394         (UNSPEC_DIVEU): Likewise.
20395         (UNSPEC_DIVEUO): Likewise.
20396         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
20397         pack/unpack 128-bit types.
20398         (UNSPEC_PACK_128BIT): Likewise.
20399         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
20400         (udiv<mode>3): Use idiv_ldiv mode attribute.
20401         (div<mode>3): Likewise.
20402         (addg6s): Add new BCD builtin functions.
20403         (cdtbcd): Likewise.
20404         (cbcdtd): Likewise.
20405         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
20406         (div_extend): Likewise.
20407         (div<div_extend>_<mode>"): Likewise.
20408         (FP128_64): Add support for new builtin functions to pack/unpack
20409         128-bit types.
20410         (unpack<mode>): Likewise.
20411         (unpacktf_0): Likewise.
20412         (unpacktf_1): Likewise.
20413         (unpack<mode>_dm): Likewise.
20414         (unpack<mode>_nodm): Likewise.
20415         (pack<mode>): Likewise.
20416         (unpackv1ti): Likewise.
20417         (packv1ti): Likewise.
20419 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
20421         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
20422         is disabled.
20424 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
20426         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
20427         * gimplify.c (omp_is_private): Change last argument's type to int.
20428         Only diagnose lastprivate if the simd argument is 1, only diagnose
20429         linear if the simd argument is 2.
20430         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
20431         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
20432         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
20433         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
20434         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
20435         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
20436         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
20437         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
20438         * tree-nested.c (convert_nonlocal_omp_clauses,
20439         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
20441 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
20443         PR target/60822
20444         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
20445         operand 1.
20447 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
20449         * flag-types.h (enum ivar_visibility): Add.
20451 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
20453         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
20454         function * argument.
20456 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
20458         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
20460 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
20461             Tom de Vries  <tom@codesourcery.com>
20463         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
20464         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
20465         reg-note.
20466         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
20467         * emit-rtl.c (try_split): Same.
20469 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
20470             Tom de Vries  <tom@codesourcery.com>
20472         * common.opt (fuse-caller-save): New option.
20474 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
20476         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
20477         elements for big-endian.
20479 2014-04-24  Richard Biener  <rguenther@suse.de>
20481         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
20482         during TER and instead use the sepops interface for expanding
20483         non-GIMPLE_SINGLE_RHS.
20485 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20487         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
20488         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
20490 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20492         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
20493         assembler 64-bit option.
20494         * configure: Regenerate.
20496 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20498         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
20499         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
20500         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
20501         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
20502         (TARGET_CRYPTO): Take TARGET_SIMD into account.
20504 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20506         * config/aarch64/aarch64-builtins.c
20507         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
20508         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
20509         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
20510         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
20511         builtins.
20512         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
20513         (Vrevsuff): New mode attribute.
20515 2014-04-24  Terry Guo  <terry.guo@arm.com>
20517         * config/arm/arm.h (machine_function): Define variable
20518         after_arm_reorg here.
20519         * config/arm/arm.c (after_arm_reorg): Remove the definition.
20520         (arm_split_constant): Update the way to access variable
20521         after_arm_reorg.
20522         (arm_reorg): Ditto.
20523         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
20525 2014-04-23  Tom de Vries  <tom@codesourcery.com>
20527         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
20529 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
20531         * is-a.h: Update comments to reflect the following changes to the
20532         "pointerness" of the API, making the template parameter match the
20533         return type, allowing use of is-a.h with typedefs of pointers.
20534         (is_a_helper::cast): Return a T rather then a pointer to a T, so
20535         that the return type matches the parameter to the is_a_helper.
20536         (as_a): Likewise.
20537         (dyn_cast): Likewise.
20539         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
20540         pointer from the is-a.h API.
20542         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
20543         (is_a_helper <cgraph_node *>::test): ...this, matching change to
20544         is-a.h API.
20545         (is_a_helper <varpool_node>::test): Likewise, convert to...
20546         (is_a_helper <varpool_node *>::test): ...this.
20548         (varpool_first_variable): Update for removal of implicit pointer
20549         from the is-a.h API.
20550         (varpool_next_variable): Likewise.
20551         (varpool_first_static_initializer): Likewise.
20552         (varpool_next_static_initializer): Likewise.
20553         (varpool_first_defined_variable): Likewise.
20554         (varpool_next_defined_variable): Likewise.
20555         (cgraph_first_defined_function): Likewise.
20556         (cgraph_next_defined_function): Likewise.
20557         (cgraph_first_function): Likewise.
20558         (cgraph_next_function): Likewise.
20559         (cgraph_first_function_with_gimple_body): Likewise.
20560         (cgraph_next_function_with_gimple_body): Likewise.
20561         (cgraph_alias_target): Likewise.
20562         (varpool_alias_target): Likewise.
20563         (cgraph_function_or_thunk_node): Likewise.
20564         (varpool_variable_node): Likewise.
20565         (symtab_real_symbol_p): Likewise.
20566         * cgraphunit.c (referred_to_p): Likewise.
20567         (analyze_functions): Likewise.
20568         (handle_alias_pairs): Likewise.
20569         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
20570         * gimple-ssa.h (gimple_vuse_op): Likewise.
20571         (gimple_vdef_op): Likewise.
20572         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
20573         * gimple.c (gimple_build_asm_1): Likewise.
20574         (gimple_build_try): Likewise.
20575         (gimple_build_resx): Likewise.
20576         (gimple_build_eh_dispatch): Likewise.
20577         (gimple_build_omp_for): Likewise.
20578         (gimple_omp_for_set_clauses): Likewise.
20580         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
20581         (is_a_helper <gimple_statement_asm *>::test): ...this.
20582         (is_a_helper <gimple_statement_bind>::test): Convert to...
20583         (is_a_helper <gimple_statement_bind *>::test): ...this.
20584         (is_a_helper <gimple_statement_call>::test): Convert to...
20585         (is_a_helper <gimple_statement_call *>::test): ...this.
20586         (is_a_helper <gimple_statement_catch>::test): Convert to...
20587         (is_a_helper <gimple_statement_catch *>::test): ...this.
20588         (is_a_helper <gimple_statement_resx>::test): Convert to...
20589         (is_a_helper <gimple_statement_resx *>::test): ...this.
20590         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
20591         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
20592         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
20593         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
20594         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
20595         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
20596         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
20597         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
20598         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
20599         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
20600         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
20601         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
20602         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
20603         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
20604         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
20605         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
20606         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
20607         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
20608         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
20609         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
20610         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
20611         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
20612         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
20613         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
20614         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
20615         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
20616         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
20617         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
20618         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
20619         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
20620         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
20621         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
20622         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
20623         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
20624         (is_a_helper <gimple_statement_phi>::test): Convert to...
20625         (is_a_helper <gimple_statement_phi *>::test): ...this.
20626         (is_a_helper <gimple_statement_transaction>::test): Convert to...
20627         (is_a_helper <gimple_statement_transaction *>::test): ...this.
20628         (is_a_helper <gimple_statement_try>::test): Convert to...
20629         (is_a_helper <gimple_statement_try *>::test): ...this.
20630         (is_a_helper <gimple_statement_wce>::test): Convert to...
20631         (is_a_helper <gimple_statement_wce *>::test): ...this.
20632         (is_a_helper <const gimple_statement_asm>::test): Convert to...
20633         (is_a_helper <const gimple_statement_asm *>::test): ...this.
20634         (is_a_helper <const gimple_statement_bind>::test): Convert to...
20635         (is_a_helper <const gimple_statement_bind *>::test): ...this.
20636         (is_a_helper <const gimple_statement_call>::test): Convert to...
20637         (is_a_helper <const gimple_statement_call *>::test): ...this.
20638         (is_a_helper <const gimple_statement_catch>::test): Convert to...
20639         (is_a_helper <const gimple_statement_catch *>::test): ...this.
20640         (is_a_helper <const gimple_statement_resx>::test): Convert to...
20641         (is_a_helper <const gimple_statement_resx *>::test): ...this.
20642         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
20643         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
20644         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
20645         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
20646         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
20647         Convert to...
20648         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
20649         ...this.
20650         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
20651         Convert to...
20652         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
20653         ...this.
20654         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
20655         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
20656         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
20657         to...
20658         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
20659         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
20660         to...
20661         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
20662         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
20663         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
20664         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
20665         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
20666         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
20667         to...
20668         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
20669         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
20670         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
20671         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
20672         to...
20673         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
20674         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
20675         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
20676         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
20677         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
20678         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
20679         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
20680         (is_a_helper <const gimple_statement_phi>::test): Convert to...
20681         (is_a_helper <const gimple_statement_phi *>::test): ...this.
20682         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
20683         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
20684         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
20685         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
20686         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
20687         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
20688         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
20689         to...
20690         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
20691         ...this.
20692         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
20693         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
20695         (gimple_use_ops): Update for removal of implicit pointer from the
20696         is-a.h API.
20697         (gimple_set_use_ops): Likewise.
20698         (gimple_vuse): Likewise.
20699         (gimple_vdef): Likewise.
20700         (gimple_vuse_ptr): Likewise.
20701         (gimple_vdef_ptr): Likewise.
20702         (gimple_set_vuse): Likewise.
20703         (gimple_set_vdef): Likewise.
20704         (gimple_omp_return_set_lhs): Likewise.
20705         (gimple_omp_return_lhs): Likewise.
20706         (gimple_omp_return_lhs_ptr): Likewise.
20707         (gimple_call_fntype): Likewise.
20708         (gimple_call_set_fntype): Likewise.
20709         (gimple_call_set_internal_fn): Likewise.
20710         (gimple_call_use_set): Likewise.
20711         (gimple_call_clobber_set): Likewise.
20712         (gimple_bind_vars): Likewise.
20713         (gimple_bind_set_vars): Likewise.
20714         (gimple_bind_body_ptr): Likewise.
20715         (gimple_bind_set_body): Likewise.
20716         (gimple_bind_add_stmt): Likewise.
20717         (gimple_bind_block): Likewise.
20718         (gimple_bind_set_block): Likewise.
20719         (gimple_asm_ninputs): Likewise.
20720         (gimple_asm_noutputs): Likewise.
20721         (gimple_asm_nclobbers): Likewise.
20722         (gimple_asm_nlabels): Likewise.
20723         (gimple_asm_input_op): Likewise.
20724         (gimple_asm_input_op_ptr): Likewise.
20725         (gimple_asm_output_op): Likewise.
20726         (gimple_asm_output_op_ptr): Likewise.
20727         (gimple_asm_set_output_op): Likewise.
20728         (gimple_asm_clobber_op): Likewise.
20729         (gimple_asm_set_clobber_op): Likewise.
20730         (gimple_asm_label_op): Likewise.
20731         (gimple_asm_set_label_op): Likewise.
20732         (gimple_asm_string): Likewise.
20733         (gimple_catch_types): Likewise.
20734         (gimple_catch_types_ptr): Likewise.
20735         (gimple_catch_handler_ptr): Likewise.
20736         (gimple_catch_set_types): Likewise.
20737         (gimple_catch_set_handler): Likewise.
20738         (gimple_eh_filter_types): Likewise.
20739         (gimple_eh_filter_types_ptr): Likewise.
20740         (gimple_eh_filter_failure_ptr): Likewise.
20741         (gimple_eh_filter_set_types): Likewise.
20742         (gimple_eh_filter_set_failure): Likewise.
20743         (gimple_eh_must_not_throw_fndecl): Likewise.
20744         (gimple_eh_must_not_throw_set_fndecl): Likewise.
20745         (gimple_eh_else_n_body_ptr): Likewise.
20746         (gimple_eh_else_e_body_ptr): Likewise.
20747         (gimple_eh_else_set_n_body): Likewise.
20748         (gimple_eh_else_set_e_body): Likewise.
20749         (gimple_try_eval_ptr): Likewise.
20750         (gimple_try_cleanup_ptr): Likewise.
20751         (gimple_try_set_eval): Likewise.
20752         (gimple_try_set_cleanup): Likewise.
20753         (gimple_wce_cleanup_ptr): Likewise.
20754         (gimple_wce_set_cleanup): Likewise.
20755         (gimple_phi_capacity): Likewise.
20756         (gimple_phi_num_args): Likewise.
20757         (gimple_phi_result): Likewise.
20758         (gimple_phi_result_ptr): Likewise.
20759         (gimple_phi_set_result): Likewise.
20760         (gimple_phi_arg): Likewise.
20761         (gimple_phi_set_arg): Likewise.
20762         (gimple_resx_region): Likewise.
20763         (gimple_resx_set_region): Likewise.
20764         (gimple_eh_dispatch_region): Likewise.
20765         (gimple_eh_dispatch_set_region): Likewise.
20766         (gimple_omp_critical_name): Likewise.
20767         (gimple_omp_critical_name_ptr): Likewise.
20768         (gimple_omp_critical_set_name): Likewise.
20769         (gimple_omp_for_clauses): Likewise.
20770         (gimple_omp_for_clauses_ptr): Likewise.
20771         (gimple_omp_for_set_clauses): Likewise.
20772         (gimple_omp_for_collapse): Likewise.
20773         (gimple_omp_for_index): Likewise.
20774         (gimple_omp_for_index_ptr): Likewise.
20775         (gimple_omp_for_set_index): Likewise.
20776         (gimple_omp_for_initial): Likewise.
20777         (gimple_omp_for_initial_ptr): Likewise.
20778         (gimple_omp_for_set_initial): Likewise.
20779         (gimple_omp_for_final): Likewise.
20780         (gimple_omp_for_final_ptr): Likewise.
20781         (gimple_omp_for_set_final): Likewise.
20782         (gimple_omp_for_incr): Likewise.
20783         (gimple_omp_for_incr_ptr): Likewise.
20784         (gimple_omp_for_set_incr): Likewise.
20785         (gimple_omp_for_pre_body_ptr): Likewise.
20786         (gimple_omp_for_set_pre_body): Likewise.
20787         (gimple_omp_parallel_clauses): Likewise.
20788         (gimple_omp_parallel_clauses_ptr): Likewise.
20789         (gimple_omp_parallel_set_clauses): Likewise.
20790         (gimple_omp_parallel_child_fn): Likewise.
20791         (gimple_omp_parallel_child_fn_ptr): Likewise.
20792         (gimple_omp_parallel_set_child_fn): Likewise.
20793         (gimple_omp_parallel_data_arg): Likewise.
20794         (gimple_omp_parallel_data_arg_ptr): Likewise.
20795         (gimple_omp_parallel_set_data_arg): Likewise.
20796         (gimple_omp_task_clauses): Likewise.
20797         (gimple_omp_task_clauses_ptr): Likewise.
20798         (gimple_omp_task_set_clauses): Likewise.
20799         (gimple_omp_task_child_fn): Likewise.
20800         (gimple_omp_task_child_fn_ptr): Likewise.
20801         (gimple_omp_task_set_child_fn): Likewise.
20802         (gimple_omp_task_data_arg): Likewise.
20803         (gimple_omp_task_data_arg_ptr): Likewise.
20804         (gimple_omp_task_set_data_arg): Likewise.
20805         (gimple_omp_taskreg_clauses): Likewise.
20806         (gimple_omp_taskreg_clauses_ptr): Likewise.
20807         (gimple_omp_taskreg_set_clauses): Likewise.
20808         (gimple_omp_taskreg_child_fn): Likewise.
20809         (gimple_omp_taskreg_child_fn_ptr): Likewise.
20810         (gimple_omp_taskreg_set_child_fn): Likewise.
20811         (gimple_omp_taskreg_data_arg): Likewise.
20812         (gimple_omp_taskreg_data_arg_ptr): Likewise.
20813         (gimple_omp_taskreg_set_data_arg): Likewise.
20814         (gimple_omp_task_copy_fn): Likewise.
20815         (gimple_omp_task_copy_fn_ptr): Likewise.
20816         (gimple_omp_task_set_copy_fn): Likewise.
20817         (gimple_omp_task_arg_size): Likewise.
20818         (gimple_omp_task_arg_size_ptr): Likewise.
20819         (gimple_omp_task_set_arg_size): Likewise.
20820         (gimple_omp_task_arg_align): Likewise.
20821         (gimple_omp_task_arg_align_ptr): Likewise.
20822         (gimple_omp_task_set_arg_align): Likewise.
20823         (gimple_omp_single_clauses): Likewise.
20824         (gimple_omp_single_clauses_ptr): Likewise.
20825         (gimple_omp_single_set_clauses): Likewise.
20826         (gimple_omp_target_clauses): Likewise.
20827         (gimple_omp_target_clauses_ptr): Likewise.
20828         (gimple_omp_target_set_clauses): Likewise.
20829         (gimple_omp_target_child_fn): Likewise.
20830         (gimple_omp_target_child_fn_ptr): Likewise.
20831         (gimple_omp_target_set_child_fn): Likewise.
20832         (gimple_omp_target_data_arg): Likewise.
20833         (gimple_omp_target_data_arg_ptr): Likewise.
20834         (gimple_omp_target_set_data_arg): Likewise.
20835         (gimple_omp_teams_clauses): Likewise.
20836         (gimple_omp_teams_clauses_ptr): Likewise.
20837         (gimple_omp_teams_set_clauses): Likewise.
20838         (gimple_omp_sections_clauses): Likewise.
20839         (gimple_omp_sections_clauses_ptr): Likewise.
20840         (gimple_omp_sections_set_clauses): Likewise.
20841         (gimple_omp_sections_control): Likewise.
20842         (gimple_omp_sections_control_ptr): Likewise.
20843         (gimple_omp_sections_set_control): Likewise.
20844         (gimple_omp_for_set_cond): Likewise.
20845         (gimple_omp_for_cond): Likewise.
20846         (gimple_omp_atomic_store_set_val): Likewise.
20847         (gimple_omp_atomic_store_val): Likewise.
20848         (gimple_omp_atomic_store_val_ptr): Likewise.
20849         (gimple_omp_atomic_load_set_lhs): Likewise.
20850         (gimple_omp_atomic_load_lhs): Likewise.
20851         (gimple_omp_atomic_load_lhs_ptr): Likewise.
20852         (gimple_omp_atomic_load_set_rhs): Likewise.
20853         (gimple_omp_atomic_load_rhs): Likewise.
20854         (gimple_omp_atomic_load_rhs_ptr): Likewise.
20855         (gimple_omp_continue_control_def): Likewise.
20856         (gimple_omp_continue_control_def_ptr): Likewise.
20857         (gimple_omp_continue_set_control_def): Likewise.
20858         (gimple_omp_continue_control_use): Likewise.
20859         (gimple_omp_continue_control_use_ptr): Likewise.
20860         (gimple_omp_continue_set_control_use): Likewise.
20861         (gimple_transaction_body_ptr): Likewise.
20862         (gimple_transaction_label): Likewise.
20863         (gimple_transaction_label_ptr): Likewise.
20864         (gimple_transaction_set_body): Likewise.
20865         (gimple_transaction_set_label): Likewise.
20867         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
20868         * ipa-inline-analysis.c (inline_write_summary): Likewise.
20869         * ipa-ref.c (ipa_record_reference): Likewise.
20870         * ipa-reference.c (analyze_function): Likewise.
20871         (ipa_reference_write_optimization_summary): Likewise.
20872         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
20873         (address_taken_from_non_vtable_p): Likewise.
20874         (comdat_can_be_unshared_p_1): Likewise.
20875         * lto-cgraph.c (lto_output_ref): Likewise.
20876         (add_references): Likewise.
20877         (compute_ltrans_boundary): Likewise.
20878         (output_symtab): Likewise.
20879         (input_ref): Likewise.
20880         (input_cgraph_1): Likewise.
20881         (output_cgraph_opt_summary): Likewise.
20882         * lto-streamer-out.c (lto_output): Likewise.
20883         (output_symbol_p): Likewise.
20884         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
20885         (lsei_start_function_in_partition): Likewise.
20886         (lsei_next_variable_in_partition): Likewise.
20887         (lsei_start_variable_in_partition): Likewise.
20888         * symtab.c (insert_to_assembler_name_hash): Likewise.
20889         (unlink_from_assembler_name_hash): Likewise.
20890         (symtab_unregister_node): Likewise.
20891         (symtab_remove_node): Likewise.
20892         (dump_symtab_node): Likewise.
20893         (verify_symtab_base): Likewise.
20894         (verify_symtab_node): Likewise.
20895         (symtab_make_decl_local): Likewise.
20896         (symtab_alias_ultimate_target): Likewise.
20897         (symtab_resolve_alias): Likewise.
20898         (symtab_get_symbol_partitioning_class): Likewise.
20899         * tree-phinodes.c (allocate_phi_node): Likewise.
20900         (reserve_phi_args_for_new_edge): Likewise.
20901         (remove_phi_args): Likewise.
20902         * varpool.c (varpool_node_for_asm): Likewise.
20903         (varpool_remove_unreferenced_decls): Likewise.
20905 2014-04-23  Jeff Law  <law@redhat.com>
20907         PR tree-optimization/60902
20908         * tree-ssa-threadedge.c
20909         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
20910         invalidate outputs from statements that do not produce useful
20911         outputs for threading.
20913 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
20915         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
20916         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
20917         machine descriptions for Stack Smashing Protector.
20919 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
20921         * aarch64.md (<optab>_rol<mode>3): New pattern.
20922         (<optab>_rolsi3_uxtw): Likewise.
20923         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
20925 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
20927         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
20928         (arm_cortex_a12_tune): Likewise.
20930 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20932         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
20934 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20936         * config/arm/arm.md (arm_rev16si2): New pattern.
20937         (arm_rev16si2_alt): Likewise.
20938         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
20940 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20942         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
20943         (rev16<mode>2_alt): Likewise.
20944         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
20945         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
20946         (aarch_rev16_shleft_mask_imm_p): Likewise.
20947         (aarch_rev16_p_1): Likewise.
20948         (aarch_rev16_p): Likewise.
20949         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
20950         (aarch_rev16_shright_mask_imm_p): Likewise.
20951         (aarch_rev16_shleft_mask_imm_p): Likewise.
20953 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20955         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
20956         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
20957         rev cost.
20958         (cortex_a53_extra_costs): Likewise.
20959         (cortex_a57_extra_costs): Likewise.
20960         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
20961         (cortexa7_extra_costs): Likewise.
20962         (cortexa8_extra_costs): Likewise.
20963         (cortexa12_extra_costs): Likewise.
20964         (cortexa15_extra_costs): Likewise.
20965         (v7m_extra_costs): Likewise.
20966         (arm_new_rtx_costs): Handle BSWAP.
20968 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20970         * config/arm/arm.c (cortexa8_extra_costs): New table.
20971         (arm_cortex_a8_tune): New tuning struct.
20972         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
20974 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20976         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
20978 2014-04-23  Richard Biener  <rguenther@suse.de>
20980         * Makefile.in (OBJS): Remove loop-unswitch.o.
20981         * tree-pass.h (make_pass_rtl_unswitch): Remove.
20982         * passes.def (pass_rtl_unswitch): Likewise.
20983         * loop-init.c (gate_rtl_unswitch): Likewise.
20984         (rtl_unswitch): Likewise.
20985         (pass_data_rtl_unswitch): Likewise.
20986         (pass_rtl_unswitch): Likewise.
20987         (make_pass_rtl_unswitch): Likewise.
20988         * rtl.h (reversed_condition): Likewise.
20989         (compare_and_jump_seq): Likewise.
20990         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
20991         and make static.
20992         * loop-unroll.c (compare_and_jump_seq): Likewise.
20994 2014-04-23  Richard Biener  <rguenther@suse.de>
20996         PR tree-optimization/60903
20997         * tree-ssa-loop-im.c (analyze_memory_references): Remove
20998         commented code block.
20999         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
21000         loop flags to newly created BBs and edges.
21002 2014-04-23  Nick Clifton  <nickc@redhat.com>
21004         * config/msp430/msp430.c (msp430_handle_option): Move function
21005         to msp430-common.c
21006         (msp430_option_override): Simplify mcu and mcpu option handling.
21007         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
21008         support for -mhwmult command line option.
21009         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
21010         -mhwmult command line option.
21011         (msp430_hwmult_enabled): Delete.
21012         (msp43o_output_labelref): Add support for -mhwmult command line option.
21013         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
21014         (umulsidi3): Likewise.
21015         * config/msp430/msp430.opt (mmcu): Add Report attribute.
21016         (mcpu, mlarge, msmall): Likewise.
21017         (mhwmult): New option.
21018         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
21019         prototype.
21020         (msp430_is_f5_mcu): Remove prototype.
21021         (msp430_use_f5_series_hwmult): Add prototype.
21022         * config/msp430/msp430-opts.h: New file.
21023         * common/config/msp430: New directory.
21024         * common/config/msp430/msp430-common.c: New file.
21025         * config.gcc (msp430): Remove target_has_targetm_common.
21026         * doc/invoke.texi: Document -mhwmult command line option.
21028 2014-04-23  Nick Clifton  <nickc@redhat.com>
21030         * config/i386/cygwin.h (ENDFILE_SPEC): Include
21031         default-manifest.o if it can be found in the search path.
21032         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
21034 2014-04-23  Terry Guo  <terry.guo@arm.com>
21036         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
21038 2014-04-23  Richard Biener  <rguenther@suse.de>
21040         PR middle-end/60895
21041         * tree-inline.c (declare_return_variable): Use mark_addressable.
21043 2014-04-23  Richard Biener  <rguenther@suse.de>
21045         PR middle-end/60891
21046         * loop-init.c (loop_optimizer_init): Make sure to apply
21047         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
21049 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
21051         PR sanitizer/60275
21052         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
21053         New options.
21054         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
21055         if flag_sanitize_undefined_trap_on_error.
21056         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
21057         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
21058         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
21059         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
21060         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
21061         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
21062         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
21063         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
21064         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
21065         * ubsan.c (ubsan_instrument_unreachable): Return
21066         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
21067         (ubsan_expand_null_ifn): Emit __builtin_trap ()
21068         if flag_sanitize_undefined_trap_on_error and
21069         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
21070         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
21071         instrument_bool_enum_load): Emit __builtin_trap () if
21072         flag_sanitize_undefined_trap_on_error and
21073         __builtin_handle_*_abort () if !flag_sanitize_recover.
21074         * doc/invoke.texi (-fsanitize-recover,
21075         -fsanitize-undefined-trap-on-error): Document.
21077 2014-04-22  Christian Bruel  <christian.bruel@st.com>
21079         * config/sh/sh.md (mov<mode>): Replace movQIHI.
21080          Force immediates to SImode.
21082 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
21084         * config/nios2/nios2.md (UNSPEC_ROUND): New.
21085         (lroundsfsi2): New.
21086         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
21087         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
21088         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
21089         (nios2_fpu_insn): Add entry for round.
21090         (N2FPU_NO_ERRNO_P): Define.
21091         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
21092         flag_errno_math.
21093         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
21095 2014-04-22  Richard Henderson  <rth@redhat.com>
21097         * config/aarch64/aarch64 (addti3, subti3): New expanders.
21098         (add<GPI>3_compare0): Remove leading * from name.
21099         (add<GPI>3_carryin): Likewise.
21100         (sub<GPI>3_compare0): Likewise.
21101         (sub<GPI>3_carryin): Likewise.
21102         (<su_optab>mulditi3): New expander.
21103         (multi3): New expander.
21104         (madd<GPI>): Remove leading * from name.
21106 2014-04-22  Martin Jambor  <mjambor@suse.cz>
21108         * cgraphclones.c (cgraph_function_versioning): Copy
21109         ipa_transforms_to_apply instead of asserting it is empty.
21111 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
21113         PR target/60868
21114         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
21115         on count_exp to get mode.
21117 2014-04-22  Andrew Pinski  <apinski@cavium.com>
21119         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21120         Handle TLS for ILP32.
21121         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
21122         (tlsie_small_<mode>): this and handle PTR.
21123         (tlsie_small_sidi): New pattern.
21124         (tlsle_small): Change to an expand to handle ILP32.
21125         (tlsle_small_<mode>): New pattern.
21126         (tlsdesc_small): Rename to ...
21127         (tlsdesc_small_<mode>): this and handle PTR.
21129 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21131         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
21133 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
21135         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21136         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
21137         (aarch64_types_signed_poly_qualifiers): Likewise.
21138         (aarch64_types_unsigned_signed_qualifiers): Likewise.
21139         (aarch64_types_poly_signed_qualifiers): Likewise.
21140         (TYPES_REINTERP_SS): Type macro added.
21141         (TYPES_REINTERP_SU): Likewise.
21142         (TYPES_REINTERP_SP): Likewise.
21143         (TYPES_REINTERP_US): Likewise.
21144         (TYPES_REINTERP_PS): Likewise.
21145         (aarch64_fold_builtin): New expression folding added.
21146         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
21147         Declarations removed.
21148         (REINTERP_SS): Declarations added.
21149         (REINTERP_US): Likewise.
21150         (REINTERP_PS): Likewise.
21151         (REINTERP_SU): Likewise.
21152         (REINTERP_SP): Likewise.
21153         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
21154         (vreinterpretq_p8_f64): Likewise.
21155         (vreinterpret_p16_f64): Likewise.
21156         (vreinterpretq_p16_f64): Likewise.
21157         (vreinterpret_f32_f64): Likewise.
21158         (vreinterpretq_f32_f64): Likewise.
21159         (vreinterpret_f64_f32): Likewise.
21160         (vreinterpret_f64_p8): Likewise.
21161         (vreinterpret_f64_p16): Likewise.
21162         (vreinterpret_f64_s8): Likewise.
21163         (vreinterpret_f64_s16): Likewise.
21164         (vreinterpret_f64_s32): Likewise.
21165         (vreinterpret_f64_s64): Likewise.
21166         (vreinterpret_f64_u8): Likewise.
21167         (vreinterpret_f64_u16): Likewise.
21168         (vreinterpret_f64_u32): Likewise.
21169         (vreinterpret_f64_u64): Likewise.
21170         (vreinterpretq_f64_f32): Likewise.
21171         (vreinterpretq_f64_p8): Likewise.
21172         (vreinterpretq_f64_p16): Likewise.
21173         (vreinterpretq_f64_s8): Likewise.
21174         (vreinterpretq_f64_s16): Likewise.
21175         (vreinterpretq_f64_s32): Likewise.
21176         (vreinterpretq_f64_s64): Likewise.
21177         (vreinterpretq_f64_u8): Likewise.
21178         (vreinterpretq_f64_u16): Likewise.
21179         (vreinterpretq_f64_u32): Likewise.
21180         (vreinterpretq_f64_u64): Likewise.
21181         (vreinterpret_s64_f64): Likewise.
21182         (vreinterpretq_s64_f64): Likewise.
21183         (vreinterpret_u64_f64): Likewise.
21184         (vreinterpretq_u64_f64): Likewise.
21185         (vreinterpret_s8_f64): Likewise.
21186         (vreinterpretq_s8_f64): Likewise.
21187         (vreinterpret_s16_f64): Likewise.
21188         (vreinterpretq_s16_f64): Likewise.
21189         (vreinterpret_s32_f64): Likewise.
21190         (vreinterpretq_s32_f64): Likewise.
21191         (vreinterpret_u8_f64): Likewise.
21192         (vreinterpretq_u8_f64): Likewise.
21193         (vreinterpret_u16_f64): Likewise.
21194         (vreinterpretq_u16_f64): Likewise.
21195         (vreinterpret_u32_f64): Likewise.
21196         (vreinterpretq_u32_f64): Likewise.
21198 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
21200         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21201         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
21202         (vreinterpret_p8_s8): Likewise.
21203         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
21204         (vreinterpret_p8_s16): Likewise.
21205         (vreinterpret_p8_s32): Likewise.
21206         (vreinterpret_p8_s64): Likewise.
21207         (vreinterpret_p8_f32): Likewise.
21208         (vreinterpret_p8_u8): Likewise.
21209         (vreinterpret_p8_u16): Likewise.
21210         (vreinterpret_p8_u32): Likewise.
21211         (vreinterpret_p8_u64): Likewise.
21212         (vreinterpret_p8_p16): Likewise.
21213         (vreinterpretq_p8_s8): Likewise.
21214         (vreinterpretq_p8_s16): Likewise.
21215         (vreinterpretq_p8_s32): Likewise.
21216         (vreinterpretq_p8_s64): Likewise.
21217         (vreinterpretq_p8_f32): Likewise.
21218         (vreinterpretq_p8_u8): Likewise.
21219         (vreinterpretq_p8_u16): Likewise.
21220         (vreinterpretq_p8_u32): Likewise.
21221         (vreinterpretq_p8_u64): Likewise.
21222         (vreinterpretq_p8_p16): Likewise.
21223         (vreinterpret_p16_s8): Likewise.
21224         (vreinterpret_p16_s16): Likewise.
21225         (vreinterpret_p16_s32): Likewise.
21226         (vreinterpret_p16_s64): Likewise.
21227         (vreinterpret_p16_f32): Likewise.
21228         (vreinterpret_p16_u8): Likewise.
21229         (vreinterpret_p16_u16): Likewise.
21230         (vreinterpret_p16_u32): Likewise.
21231         (vreinterpret_p16_u64): Likewise.
21232         (vreinterpret_p16_p8): Likewise.
21233         (vreinterpretq_p16_s8): Likewise.
21234         (vreinterpretq_p16_s16): Likewise.
21235         (vreinterpretq_p16_s32): Likewise.
21236         (vreinterpretq_p16_s64): Likewise.
21237         (vreinterpretq_p16_f32): Likewise.
21238         (vreinterpretq_p16_u8): Likewise.
21239         (vreinterpretq_p16_u16): Likewise.
21240         (vreinterpretq_p16_u32): Likewise.
21241         (vreinterpretq_p16_u64): Likewise.
21242         (vreinterpretq_p16_p8): Likewise.
21243         (vreinterpret_f32_s8): Likewise.
21244         (vreinterpret_f32_s16): Likewise.
21245         (vreinterpret_f32_s32): Likewise.
21246         (vreinterpret_f32_s64): Likewise.
21247         (vreinterpret_f32_u8): Likewise.
21248         (vreinterpret_f32_u16): Likewise.
21249         (vreinterpret_f32_u32): Likewise.
21250         (vreinterpret_f32_u64): Likewise.
21251         (vreinterpret_f32_p8): Likewise.
21252         (vreinterpret_f32_p16): Likewise.
21253         (vreinterpretq_f32_s8): Likewise.
21254         (vreinterpretq_f32_s16): Likewise.
21255         (vreinterpretq_f32_s32): Likewise.
21256         (vreinterpretq_f32_s64): Likewise.
21257         (vreinterpretq_f32_u8): Likewise.
21258         (vreinterpretq_f32_u16): Likewise.
21259         (vreinterpretq_f32_u32): Likewise.
21260         (vreinterpretq_f32_u64): Likewise.
21261         (vreinterpretq_f32_p8): Likewise.
21262         (vreinterpretq_f32_p16): Likewise.
21263         (vreinterpret_s64_s8): Likewise.
21264         (vreinterpret_s64_s16): Likewise.
21265         (vreinterpret_s64_s32): Likewise.
21266         (vreinterpret_s64_f32): Likewise.
21267         (vreinterpret_s64_u8): Likewise.
21268         (vreinterpret_s64_u16): Likewise.
21269         (vreinterpret_s64_u32): Likewise.
21270         (vreinterpret_s64_u64): Likewise.
21271         (vreinterpret_s64_p8): Likewise.
21272         (vreinterpret_s64_p16): Likewise.
21273         (vreinterpretq_s64_s8): Likewise.
21274         (vreinterpretq_s64_s16): Likewise.
21275         (vreinterpretq_s64_s32): Likewise.
21276         (vreinterpretq_s64_f32): Likewise.
21277         (vreinterpretq_s64_u8): Likewise.
21278         (vreinterpretq_s64_u16): Likewise.
21279         (vreinterpretq_s64_u32): Likewise.
21280         (vreinterpretq_s64_u64): Likewise.
21281         (vreinterpretq_s64_p8): Likewise.
21282         (vreinterpretq_s64_p16): Likewise.
21283         (vreinterpret_u64_s8): Likewise.
21284         (vreinterpret_u64_s16): Likewise.
21285         (vreinterpret_u64_s32): Likewise.
21286         (vreinterpret_u64_s64): Likewise.
21287         (vreinterpret_u64_f32): Likewise.
21288         (vreinterpret_u64_u8): Likewise.
21289         (vreinterpret_u64_u16): Likewise.
21290         (vreinterpret_u64_u32): Likewise.
21291         (vreinterpret_u64_p8): Likewise.
21292         (vreinterpret_u64_p16): Likewise.
21293         (vreinterpretq_u64_s8): Likewise.
21294         (vreinterpretq_u64_s16): Likewise.
21295         (vreinterpretq_u64_s32): Likewise.
21296         (vreinterpretq_u64_s64): Likewise.
21297         (vreinterpretq_u64_f32): Likewise.
21298         (vreinterpretq_u64_u8): Likewise.
21299         (vreinterpretq_u64_u16): Likewise.
21300         (vreinterpretq_u64_u32): Likewise.
21301         (vreinterpretq_u64_p8): Likewise.
21302         (vreinterpretq_u64_p16): Likewise.
21303         (vreinterpret_s8_s16): Likewise.
21304         (vreinterpret_s8_s32): Likewise.
21305         (vreinterpret_s8_s64): Likewise.
21306         (vreinterpret_s8_f32): Likewise.
21307         (vreinterpret_s8_u8): Likewise.
21308         (vreinterpret_s8_u16): Likewise.
21309         (vreinterpret_s8_u32): Likewise.
21310         (vreinterpret_s8_u64): Likewise.
21311         (vreinterpret_s8_p8): Likewise.
21312         (vreinterpret_s8_p16): Likewise.
21313         (vreinterpretq_s8_s16): Likewise.
21314         (vreinterpretq_s8_s32): Likewise.
21315         (vreinterpretq_s8_s64): Likewise.
21316         (vreinterpretq_s8_f32): Likewise.
21317         (vreinterpretq_s8_u8): Likewise.
21318         (vreinterpretq_s8_u16): Likewise.
21319         (vreinterpretq_s8_u32): Likewise.
21320         (vreinterpretq_s8_u64): Likewise.
21321         (vreinterpretq_s8_p8): Likewise.
21322         (vreinterpretq_s8_p16): Likewise.
21323         (vreinterpret_s16_s8): Likewise.
21324         (vreinterpret_s16_s32): Likewise.
21325         (vreinterpret_s16_s64): Likewise.
21326         (vreinterpret_s16_f32): Likewise.
21327         (vreinterpret_s16_u8): Likewise.
21328         (vreinterpret_s16_u16): Likewise.
21329         (vreinterpret_s16_u32): Likewise.
21330         (vreinterpret_s16_u64): Likewise.
21331         (vreinterpret_s16_p8): Likewise.
21332         (vreinterpret_s16_p16): Likewise.
21333         (vreinterpretq_s16_s8): Likewise.
21334         (vreinterpretq_s16_s32): Likewise.
21335         (vreinterpretq_s16_s64): Likewise.
21336         (vreinterpretq_s16_f32): Likewise.
21337         (vreinterpretq_s16_u8): Likewise.
21338         (vreinterpretq_s16_u16): Likewise.
21339         (vreinterpretq_s16_u32): Likewise.
21340         (vreinterpretq_s16_u64): Likewise.
21341         (vreinterpretq_s16_p8): Likewise.
21342         (vreinterpretq_s16_p16): Likewise.
21343         (vreinterpret_s32_s8): Likewise.
21344         (vreinterpret_s32_s16): Likewise.
21345         (vreinterpret_s32_s64): Likewise.
21346         (vreinterpret_s32_f32): Likewise.
21347         (vreinterpret_s32_u8): Likewise.
21348         (vreinterpret_s32_u16): Likewise.
21349         (vreinterpret_s32_u32): Likewise.
21350         (vreinterpret_s32_u64): Likewise.
21351         (vreinterpret_s32_p8): Likewise.
21352         (vreinterpret_s32_p16): Likewise.
21353         (vreinterpretq_s32_s8): Likewise.
21354         (vreinterpretq_s32_s16): Likewise.
21355         (vreinterpretq_s32_s64): Likewise.
21356         (vreinterpretq_s32_f32): Likewise.
21357         (vreinterpretq_s32_u8): Likewise.
21358         (vreinterpretq_s32_u16): Likewise.
21359         (vreinterpretq_s32_u32): Likewise.
21360         (vreinterpretq_s32_u64): Likewise.
21361         (vreinterpretq_s32_p8): Likewise.
21362         (vreinterpretq_s32_p16): Likewise.
21363         (vreinterpret_u8_s8): Likewise.
21364         (vreinterpret_u8_s16): Likewise.
21365         (vreinterpret_u8_s32): Likewise.
21366         (vreinterpret_u8_s64): Likewise.
21367         (vreinterpret_u8_f32): Likewise.
21368         (vreinterpret_u8_u16): Likewise.
21369         (vreinterpret_u8_u32): Likewise.
21370         (vreinterpret_u8_u64): Likewise.
21371         (vreinterpret_u8_p8): Likewise.
21372         (vreinterpret_u8_p16): Likewise.
21373         (vreinterpretq_u8_s8): Likewise.
21374         (vreinterpretq_u8_s16): Likewise.
21375         (vreinterpretq_u8_s32): Likewise.
21376         (vreinterpretq_u8_s64): Likewise.
21377         (vreinterpretq_u8_f32): Likewise.
21378         (vreinterpretq_u8_u16): Likewise.
21379         (vreinterpretq_u8_u32): Likewise.
21380         (vreinterpretq_u8_u64): Likewise.
21381         (vreinterpretq_u8_p8): Likewise.
21382         (vreinterpretq_u8_p16): Likewise.
21383         (vreinterpret_u16_s8): Likewise.
21384         (vreinterpret_u16_s16): Likewise.
21385         (vreinterpret_u16_s32): Likewise.
21386         (vreinterpret_u16_s64): Likewise.
21387         (vreinterpret_u16_f32): Likewise.
21388         (vreinterpret_u16_u8): Likewise.
21389         (vreinterpret_u16_u32): Likewise.
21390         (vreinterpret_u16_u64): Likewise.
21391         (vreinterpret_u16_p8): Likewise.
21392         (vreinterpret_u16_p16): Likewise.
21393         (vreinterpretq_u16_s8): Likewise.
21394         (vreinterpretq_u16_s16): Likewise.
21395         (vreinterpretq_u16_s32): Likewise.
21396         (vreinterpretq_u16_s64): Likewise.
21397         (vreinterpretq_u16_f32): Likewise.
21398         (vreinterpretq_u16_u8): Likewise.
21399         (vreinterpretq_u16_u32): Likewise.
21400         (vreinterpretq_u16_u64): Likewise.
21401         (vreinterpretq_u16_p8): Likewise.
21402         (vreinterpretq_u16_p16): Likewise.
21403         (vreinterpret_u32_s8): Likewise.
21404         (vreinterpret_u32_s16): Likewise.
21405         (vreinterpret_u32_s32): Likewise.
21406         (vreinterpret_u32_s64): Likewise.
21407         (vreinterpret_u32_f32): Likewise.
21408         (vreinterpret_u32_u8): Likewise.
21409         (vreinterpret_u32_u16): Likewise.
21410         (vreinterpret_u32_u64): Likewise.
21411         (vreinterpret_u32_p8): Likewise.
21412         (vreinterpret_u32_p16): Likewise.
21413         (vreinterpretq_u32_s8): Likewise.
21414         (vreinterpretq_u32_s16): Likewise.
21415         (vreinterpretq_u32_s32): Likewise.
21416         (vreinterpretq_u32_s64): Likewise.
21417         (vreinterpretq_u32_f32): Likewise.
21418         (vreinterpretq_u32_u8): Likewise.
21419         (vreinterpretq_u32_u16): Likewise.
21420         (vreinterpretq_u32_u64): Likewise.
21421         (vreinterpretq_u32_p8): Likewise.
21422         (vreinterpretq_u32_p16): Likewise.
21424 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
21426         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
21427         Pattern extended.
21428         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
21429         (sqabs): Likewise.
21430         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
21431         (vqnegd_s64): Likewise.
21432         (vqabs_s64): Likewise.
21433         (vqabsd_s64): Likewise.
21435 2014-04-22  Richard Henderson  <rth@redhat.com>
21437         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
21438         computation to the top of the loop.
21440 2014-04-22  Renlin  <renlin.li@arm.com>
21441             Jiong Wang  <jiong.wang@arm.com>
21443         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
21444         * config/aarch64/aarch64.c (aarch64_layout_frame)
21445         (aarch64_initial_elimination_offset): Likewise.
21447 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21449         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
21450         Fix indentation.
21452 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
21454         * machmode.h (bitwise_mode_for_mode): Declare.
21455         * stor-layout.h (bitwise_type_for_mode): Likewise.
21456         * stor-layout.c (bitwise_mode_for_mode): New function.
21457         (bitwise_type_for_mode): Likewise.
21458         * builtins.c (fold_builtin_memory_op): Use it instead of
21459         int_mode_for_mode and build_nonstandard_integer_type.
21461 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21463         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
21464         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
21465         (*-*-solaris2*): Simplify.
21466         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
21467         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
21468         *-*-solaris2.9* handling.
21470         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
21471         as bug.
21472         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
21473         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
21474         handling, simplify.
21475         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
21476         * configure: Regenerate.
21478         * config/i386/sol2-9.h: Remove.
21480         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
21481         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
21482         Remove Solaris 9 references.
21484 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
21486         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
21487         (floatuns<GPI:mode><GPF:mode>2): Remove.
21488         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
21489         and floatuns conversions.
21490         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
21491         and floatuns conversions.
21492         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
21493         (w1,w2): New mode attributes for inequal width conversions.
21495 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
21497         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
21498         the output asm format.
21500 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
21502         * config/aarch64/aarch64-simd.md
21503         (aarch64_cm<optab>di): Always split.
21504         (*aarch64_cm<optab>di): New.
21505         (aarch64_cmtstdi): Always split.
21506         (*aarch64_cmtstdi): New.
21508 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
21510         PR tree-optimization/60823
21511         * omp-low.c (ipa_simd_modify_function_body): Go through
21512         all SSA_NAMEs and for those refering to vector arguments
21513         which are going to be replaced adjust SSA_NAME_VAR and,
21514         if it is a default definition, change it into a non-default
21515         definition assigned at the beginning of function from new_decl.
21516         (ipa_simd_modify_stmt_ops): Rewritten.
21517         * tree-dfa.c (set_ssa_default_def): When removing default def,
21518         check for NULL loc instead of NULL *loc.
21520 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21522         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
21523         restrictions on core registers for DImode values in Thumb2.
21525 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
21527         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
21528         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
21530 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
21532         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
21533         (*iordi_notzesidi_di): Likewise.
21534         (*iordi_notsesidi_di): Likewise.
21536 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
21538         * config/arm/arm-protos.h (tune_params): New struct members.
21539         * config/arm/arm.c: Initialise tune_params per processor.
21540         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
21541         for speed, based on new tune_params.
21543 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
21545         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
21546         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
21547         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
21548         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
21549         * config/aarch64/arm_neon.h (vrnd_f64): Added.
21550         (vrnda_f64): Likewise.
21551         (vrndi_f64): Likewise.
21552         (vrndm_f64): Likewise.
21553         (vrndn_f64): Likewise.
21554         (vrndp_f64): Likewise.
21555         (vrndx_f64): Likewise.
21557 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21559         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
21560         GET_MODE_SIZE argument is enum machine_mode.
21562 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
21564         PR target/60910
21565         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
21566         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
21568 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
21570         PR middle-end/60281
21571         * asan.c (asan_emit_stack_protection): Force the base to align to
21572         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
21573         appropriate bits if STRICT_ALIGNMENT.
21574         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
21575         when asan is on.
21576         (expand_used_vars): Leave a space in the stack frame for alignment
21577         if STRICT_ALIGNMENT.
21579 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
21581         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
21582         than a gimple.
21583         (gimple_store_p): Likewise.
21584         (gimple_assign_load_p): Likewise.
21585         (gimple_assign_cast_p): Likewise.
21586         (gimple_clobber_p): Likewise.
21588         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
21589         rather than a gimple.
21590         (gimple_assign_cast_p): Likewise.
21592 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
21594         PR target/60735
21595         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
21596         If mode is DDmode and TARGET_E500_DOUBLE allow move.
21598         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
21599         more debug information for E500 if -mdebug=reg.
21601 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
21603         PR target/60909
21604         * config/i386/i386.c (ix86_expand_builtin)
21605         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
21606         register for target RTX.
21607         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
21609 2014-04-18  Cong Hou  <congh@google.com>
21611         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
21612         the widen-mult pattern by handling two operands with different sizes,
21613         and operands whose size is smaller than half of the result type.
21615 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
21617         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
21618         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
21619         (do_estimate_edge_time): Compute it.
21620         * ipa-inline.c (want_inline_small_function_p): Bypass
21621         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
21623 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
21625         * ipa-inline.c (spec_rem): New static variable.
21626         (dump_overall_stats): New function.
21627         (dump_inline_stats): New function.
21629 2014-04-18  Richard Henderson  <rth@redhat.com>
21631         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
21632         to GET_MODE_SIZE, not a reg_class_t.
21634 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21636         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
21637         (vsx_xxmrglw_<mode>): Likewise.
21639 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
21641         PR target/60876
21642         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
21643         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
21644         (rs6000_init_hard_regno_mode_ok): Likewise.
21646 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
21648         * ipa-inline.c (inline_small_functions): Account only non-cold
21649         functions.
21650         * doc/invoke.texi (inline-unit-growth): Update documentation.
21652 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
21654         * config/rs6000/rs6000.md (addti3, subti3): New.
21656 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
21658         PR target/60863
21659         * config/i386/i386.c (ix86_expand_clear): Remove outdated
21660         comment.  Check optimize_insn_for_size_p instead of
21661         optimize_insn_for_speed_p.
21663 2014-04-17  Martin Jambor  <mjambor@suse.cz>
21665         * gimple-iterator.c (gsi_start_edge): New function.
21666         * gimple-iterator.h (gsi_start_edge): Declare.
21667         * tree-sra.c (single_non_eh_succ): New function.
21668         (disqualify_ops_if_throwing_stmt): Renamed to
21669         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
21670         having one non-EH successor BB.
21671         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
21672         generate loads into replacements.
21673         (sra_modify_assign): Likewise and and also use the simple path for
21674         such statements.
21675         (sra_modify_function_body): Commit statements on edges.
21677 2014-04-17  Richard Biener  <rguenther@suse.de>
21679         PR middle-end/60849
21680         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
21681         comparison results and add clarifying comment.
21683 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
21685         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
21686         (blank_mode): Initialize it.
21687         (emit_mode_size_inline, emit_mode_nunits_inline,
21688         emit_mode_inner_inline): New functions.
21689         (emit_insn_modes_h): Call them and surround their output with
21690         #if GCC_VERSION >= 4001 ... #endif.
21691         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
21692         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
21693         mode_* arrays if the argument is __builtin_constant_p.
21694         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
21695         is enum machine_mode.
21697 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
21699         * passes.c (opt_pass::execute): Adjust.
21700         (pass_manager::execute_pass_mode_switching): Likewise.
21701         (early_local_passes::execute): Likewise.
21702         (execute_one_pass): Pass cfun to the pass's execute method.
21703         * tree-pass.h (opt_pass::execute): Add function * argument.
21704         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
21705         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
21706         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
21707         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21708         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
21709         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
21710         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
21711         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
21712         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
21713         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
21714         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
21715         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
21716         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
21717         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
21718         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
21719         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
21720         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
21721         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
21722         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
21723         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21724         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21725         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21726         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21727         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21728         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21729         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21730         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
21731         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
21732         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
21733         Adjust.
21735 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
21737         * passes.c (opt_pass::gate): Take function * argument.
21738         (gate_all_early_local_passes): Merge into
21739         (early_local_passes::gate): this.
21740         (gate_all_early_optimizations): Merge into
21741         (all_early_optimizations::gate): this.
21742         (gate_all_optimizations): Mege into
21743         (all_optimizations::gate): this.
21744         (gate_all_optimizations_g): Merge into
21745         (all_optimizations_g::gate): this.
21746         (gate_rest_of_compilation): Mege into
21747         (rest_of_compilation::gate): this.
21748         (gate_postreload): Merge into
21749         (postreload::gate): this.
21750         (dump_one_pass): Pass cfun to the pass's gate method.
21751         (execute_ipa_summary_passes): Likewise.
21752         (execute_one_pass): Likewise.
21753         (ipa_write_summaries_2): Likewise.
21754         (ipa_write_optimization_summaries_1): Likewise.
21755         (ipa_read_summaries_1): Likewise.
21756         (ipa_read_optimization_summaries_1): Likewise.
21757         (execute_ipa_stmt_fixups): Likewise.
21758         * tree-pass.h (opt_pass::gate): Add function * argument.
21759         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
21760         combine-stack-adj.c, combine.c, compare-elim.c,
21761         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21762         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
21763         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
21764         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
21765         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
21766         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
21767         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
21768         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
21769         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
21770         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
21771         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
21772         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
21773         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
21774         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
21775         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
21776         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21777         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21778         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21779         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21780         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21781         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21782         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21783         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
21784         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
21785         var-tracking.c, vtable-verify.c, web.c: Adjust.
21787 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
21789         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
21790         * configure: Regenerate.
21792 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
21794         * passes.c (dump_one_pass): don't check pass->has_gate.
21795         (execute_ipa_summary_passes): Likewise.
21796         (execute_one_pass): Likewise.
21797         (ipa_write_summaries_2): Likewise.
21798         (ipa_write_optimization_summaries_1): Likewise.
21799         (ipa_read_optimization_summaries_1): Likewise.
21800         (execute_ipa_stmt_fixups): Likewise.
21801         * tree-pass.h (pass_data::has_gate): Remove.
21802         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
21803         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
21804         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
21805         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21806         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
21807         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
21808         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
21809         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
21810         gimple-low.c, gimple-ssa-isolate-paths.c,
21811         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
21812         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
21813         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
21814         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
21815         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
21816         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
21817         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
21818         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
21819         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
21820         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
21821         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
21822         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
21823         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21824         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21825         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21826         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21827         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21828         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21829         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21830         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
21831         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
21832         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
21833         Adjust.
21835 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
21837         * pass_manager.h (pass_manager::register_dump_files_1): Remove
21838         declaration.
21839         * passes.c (pass_manager::register_dump_files_1): Merge into
21840         (pass_manager::register_dump_files): this, and remove its handling of
21841         properties since the pass always has the properties anyway.
21842         (pass_manager::pass_manager): Adjust.
21844 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
21846         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
21847         * passes.c (pass_manager::register_dump_files_1): Remove dead code
21848         dealing with properties.
21849         (pass_manager::register_dump_files): Adjust.
21851 2014-03-20  Mark Wielaard  <mjw@redhat.com>
21853         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
21854         then represent the bound as normal constant value.
21856 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
21858         PR target/60847
21859         Forward port from 4.8 branch
21860         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
21862         * config/i386/bmiintrin.h (_blsi_u32): New.
21863         (_blsi_u64): Ditto.
21864         (_blsr_u32): Ditto.
21865         (_blsr_u64): Ditto.
21866         (_blsmsk_u32): Ditto.
21867         (_blsmsk_u64): Ditto.
21868         (_tzcnt_u32): Ditto.
21869         (_tzcnt_u64): Ditto.
21871 2014-04-17  Kito Cheng  <kito@0xlab.org>
21873         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
21875 2014-04-17  Richard Biener  <rguenther@suse.de>
21877         PR middle-end/60849
21878         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
21879         boolean results for comparisons.
21881 2014-04-17  Richard Biener  <rguenther@suse.de>
21883         PR tree-optimization/60836
21884         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
21885         initial PHI args to be gimple values.
21887 2014-04-17  Richard Biener  <rguenther@suse.de>
21889         PR tree-optimization/60841
21890         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
21891         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
21892         of stmts to SLP build.
21893         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
21894         (vect_analyze_slp): Likewise.
21895         (vect_analyze_slp_instance): Likewise.
21896         (vect_build_slp_tree): Limit overall SLP tree growth.
21897         * tree-vectorizer.h (vect_analyze_data_refs,
21898         vect_analyze_slp): Adjust prototypes.
21900 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
21902         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
21903         Silvermont.
21905 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
21907         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
21908         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
21909         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
21910         for TARGET_SLOW_PSHUFB
21912 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
21914         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
21915         * config/i386/i386.c (intel_cost): Ditto.
21917 2014-04-17  Joey Ye  <joey.ye@arm.com>
21919         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
21921 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
21923         * opts.c (common_handle_option): Disable -fipa-reference coorectly
21924         with -fuse-profile.
21926 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
21928         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
21929         (type_all_derivations_known_p): New predicate.
21930         (type_all_ctors_visible_p): New predicate.
21931         (type_possibly_instantiated_p): New predicate.
21932         (get_odr_type): Compute all_derivations_known.
21933         (dump_odr_type): Dump the flag.
21934         (maybe_record_type): Cleanup.
21935         (record_target_from_binfo): Add bases_to_consider array;
21936         record bases for types w/o instances and skip CXX destructor.
21937         (possible_polymorphic_call_targets_1): Add bases_to_consider
21938         and consider_construction parameters; check if type may have instance.
21939         (get_polymorphic_call_info): Set maybe_in_construction to true
21940         when we know nothing.
21941         (record_targets_from_bases): Skip CXX destructors; they are
21942         never called for types in construction.
21943         (possible_polymorphic_call_targets): Do not record target when
21944         type may not have instance.
21946 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
21948         PR ipa/60854
21949         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
21950         external aliases alive, too.
21952 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
21954         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
21955         definition.
21957 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
21959         * final.c (compute_alignments): Do not apply loop alignment to a block
21960         falling through to the exit.
21962 2014-04-16  Catherine Moore  <clm@codesourcery.com>
21964         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
21965         Adjust constraints for microMIPS store patterns.
21967 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
21969         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
21971 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
21973         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
21974         (append_use): Run at -O0.
21975         (append_vdef): Likewise.
21976         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
21977         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
21979 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
21981         PR tree-optimization/60844
21982         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
21983         (propagate_op_to_single_use, remove_visited_stmt_chain,
21984         linearize_expr, repropagate_negates, reassociate_bb): Use it
21985         instead of gsi_remove.
21987 2014-04-16  Martin Jambor  <mjambor@suse.cz>
21989         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
21990         ipa_transforms_to_apply.
21991         (cgraph_function_versioning): Assert that old_node has empty
21992         ipa_transforms_to_apply.
21993         * trans-mem.c (ipa_tm_create_version): Likewise.
21994         * tree-inline.c (tree_function_versioning): Do not duplicate
21995         ipa_transforms_to_apply.
21997 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21999         PR target/60817
22000         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
22001         x86_64-*-* cases.
22002         Pass necessary as flags on 64-bit Solaris/x86.
22003         Use lowercase relocs for x86_64-*-*.
22004         * configure: Regenerate.
22006 2014-04-15  Jan Hubicka  <jh@suse.cz>
22008         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
22009         (maybe_record_node, likely_target_p): Use it.
22011 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22013         PR target/60839
22014         Revert following patch
22016         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22018         PR target/60735
22019         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
22020         software floating point or no floating point registers, do not
22021         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
22022         in GPRs that occurs after we tested for GPRs that would never be
22023         true.
22025         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
22026         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
22027         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
22028         specifically allow DDmode, since that does not use the SPE SIMD
22029         instructions.
22031 2014-03-21  Mark Wielaard  <mjw@redhat.com>
22033         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
22034         as unsigned or int depending on type and value used.
22036 2014-04-15  Richard Biener  <rguenther@suse.de>
22038         PR rtl-optimization/56965
22039         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
22040         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
22041         ... here.
22042         * alias.c (true_dependence_1): Do not call
22043         nonoverlapping_component_refs_p.
22044         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
22045         nonoverlapping_component_refs_p.
22046         (indirect_refs_may_alias_p): Likewise.
22048 2014-04-15  Teresa Johnson  <tejohnson@google.com>
22050         * cfg.c (dump_bb_info): Fix flags check.
22051         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
22053 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22055         PR rtl-optimization/60663
22056         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
22057         avoid 0 cost.
22059 2014-04-15  Richard Biener  <rguenther@suse.de>
22061         * lto-streamer.h (LTO_major_version): Bump to 4.
22063 2014-04-15  Richard Biener  <rguenther@suse.de>
22065         * common.opt (lto_partition_model): New enum.
22066         (flto-partition=): Merge separate options with a single with argument,
22067         add -flto-partition=one support.
22068         * flag-types.h (enum lto_partition_model): Declare.
22069         * opts.c (finish_options): Remove duplicate -flto-partition=
22070         option check.
22071         * lto-wrapper.c (run_gcc): Adjust.
22073 2014-04-15  Richard Biener  <rguenther@suse.de>
22075         * alias.c (ncr_compar): New function.
22076         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
22078 2014-04-15  Richard Biener  <rguenther@suse.de>
22080         * alias.c (record_component_aliases): Do not walk BINFOs.
22082 2014-04-15  Richard Biener  <rguenther@suse.de>
22084         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22085         Add struct function argument and adjust.
22086         (find_func_aliases_for_call): Likewise.
22087         (find_func_aliases): Likewise.
22088         (find_func_clobbers): Likewise.
22089         (intra_create_variable_infos): Likewise.
22090         (compute_points_to_sets): Likewise.
22091         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
22093 2014-04-15  Richard Biener  <rguenther@suse.de>
22095         * tree.c (iterative_hash_expr): Use enum tree_code_class
22096         to store TREE_CODE_CLASS.
22097         (tree_block): Likewise.
22098         (tree_set_block): Likewise.
22099         * tree.h (fold_build_pointer_plus_loc): Use
22100         convert_to_ptrofftype_loc.
22102 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
22104         PR plugins/59335
22105         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
22106         added in 4.9.
22108 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
22110         * cfgloop.h (struct loop): Move force_vectorize down.
22111         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
22112         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
22113         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
22114         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
22115         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
22116         * tree-core.h (enum annot_expr_kind): Add new kind values.
22117         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
22118         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
22119         kinds.
22120         * tree.def (ANNOTATE_EXPR): Tweak comment.
22122 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
22124         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
22125         cxa_pure_virtual).
22127 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
22129         * tree.h (TYPE_IDENTIFIER): Declare.
22130         * tree.c (subrange_type_for_debug_p): Use it.
22131         * godump.c (go_format_type): Likewise.
22132         * dwarf2out.c (is_cxx_auto, modified_type_die,
22133         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
22134         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
22136 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
22138         PR lto/60820
22139         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
22141 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
22143         * config/i386/i386.c (examine_argument): Return bool.  Return true if
22144         parameter should be passed in memory.
22145         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
22146         (construct_container): Update calls to examine_argument.
22147         (function_arg_advance_64): Ditto.
22148         (return_in_memory_32): Merge with ix86_return_in_memory.
22149         (return_in_memory_64): Ditto.
22150         (return_in_memory_ms_64): Ditto.
22152 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
22154         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
22155         * coverage.c (coverage_compute_profile_id): Handle externally visible
22156         symbols.
22158 2014-04-14  Martin Jambor  <mjambor@suse.cz>
22160         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
22161         DECL_DISREGARD_INLINE_LIMITS functions.
22163 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
22165         PR target/60827
22166         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
22168 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
22170         PR target/60827
22171         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
22172         optimize_insn_for_speed_p instead of
22173         optimize_function_for_speed_p.
22175 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
22177         * doc/invoke.texi (free): Document AArch64.
22179 2014-04-14  Richard Biener  <rguenther@suse.de>
22181         PR tree-optimization/60042
22182         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
22183         (insert_into_preds_of_block): Do not prevent PHI insertion
22184         for REFERENCE exprs here ...
22185         (eliminate_dom_walker::before_dom_children): ... but prevent
22186         their use here under similar conditions when applied to the
22187         IL after PRE optimizations.
22189 2014-04-14  Richard Biener  <rguenther@suse.de>
22191         * passes.def: Move early points-to after early SRA.
22193 2014-04-14  Richard Biener  <rguenther@suse.de>
22195         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
22196         check for which sign-changes we allow when forwarding
22197         a converted value into a switch.
22199 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
22201         * stor-layout.c (place_field): Finalize non-constant offset for the
22202         field, if any.
22204 2014-04-14  Richard Biener  <rguenther@suse.de>
22206         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
22207         as argument.
22208         (expand_switch_using_bit_tests_p): Likewise.
22209         (process_switch): Compute and pass on speed_p based on the
22210         switch stmt.
22211         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
22212         optimize_bb_for_speed_p.
22214 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
22216         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
22217         * function.h (struct function): Rename has_force_vect_loops into
22218         has_force_vectorize_loops.
22219         * lto-streamer-in.c (input_cfg): Adjust for renaming.
22220         (input_struct_function_base): Likewise.
22221         * lto-streamer-out.c (output_cfg): Likewise.
22222         (output_struct_function_base): Likewise.
22223         * omp-low.c (expand_omp_simd): Likewise.
22224         * tree-cfg.c (move_sese_region_to_fn): Likewise.
22225         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
22226         (version_loop_for_if_conversion): Likewise.
22227         (tree_if_conversion): Likewise.
22228         (main_tree_if_conversion): Likewise.
22229         (gate_tree_if_conversion): Likewise.
22230         * tree-inline.c (copy_loops): Likewise.
22231         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
22232         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
22233         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22234         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
22235         * tree-vectorizer.c (vectorize_loops): Likewise.
22236         * tree-vectorizer.h (unlimited_cost_model): Likewise.
22238 2014-04-14  Richard Biener  <rguenther@suse.de>
22240         PR lto/60720
22241         * lto-streamer-out.c (wrap_refs): New function.
22242         (lto_output): Wrap symbol references in global initializes in
22243         type-preserving MEM_REFs.
22245 2014-04-14  Christian Bruel  <christian.bruel@st.com>
22247         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
22249 2014-04-14  Christian Bruel  <christian.bruel@st.com>
22251         * config/sh/sh.md (setmemqi): New expand pattern.
22252         * config/sh/sh.h (CLEAR_RATIO): Define.
22253         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
22254         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
22256 2014-04-14  Richard Biener  <rguenther@suse.de>
22258         PR middle-end/55022
22259         * fold-const.c (negate_expr_p): Don't negate directional rounding
22260         division.
22261         (fold_negate_expr): Likewise.
22263 2014-04-14  Richard Biener  <rguenther@suse.de>
22265         PR tree-optimization/59817
22266         PR tree-optimization/60453
22267         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
22268         recursion to catch all CHRECs in the scalar evolution and restrict
22269         the predicate for the remains appropriately.
22271 2014-04-12  Catherine Moore  <clm@codesourcery.com>
22273         * config/mips/constraints.md: Add new register constraint "kb".
22274         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
22275         (*movhi_internal): Likewise.
22276         (*movqi_internal): Likewise.
22277         * config/mips/mips.h (M16_STORE_REGS): New register class.
22278         (REG_CLASS_NAMES): Add M16_STORE_REGS.
22279         (REG_CLASS_CONTENTS): Likewise.
22280         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
22282 2014-04-11  Tobias Burnus  <burnus@net-b.de>
22284         PR c/60194
22285         * doc/invoke.texi (-Wformat-signedness): Document it.
22286         (Wformat=2): Mention that this enables -Wformat-signedness.
22288 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22290         * common/config/epiphany/epiphany-common.c
22291         (epiphany_option_optimization_table): Enable section anchors by
22292         default at -O1 or higher.
22293         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
22294         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
22295         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
22296         carries no extra cost.
22297         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
22298         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
22299         * config/epiphany/predicates.md (memclob_operand): New predicate.
22300         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
22301         Use memclob_operand predicate and X constraint for operand 3.
22303 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22305         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
22306         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
22307         its operands.
22309 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22311         PR rtl-optimization/60651
22312         * mode-switching.c (optimize_mode_switching): Make sure to emit
22313         sets of a lower numbered entity before sets of a higher numbered
22314         entity to a mode of the same or lower priority.
22315         When creating a seginfo for a basic block that starts with a code
22316         label, move the insertion point past the code label.
22317         (new_seginfo): Document and enforce requirement that
22318         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
22319         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
22320         * doc/tm.texi: Regenerate.
22322 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22324         PR target/60811
22325         * config/arc/arc.c (arc_save_restore): Fix assert typo.
22327 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
22329         * BASE-VER: Set to 4.10.0.
22331 2014-04-11  Tobias Burnus  <burnus@net-b.de>
22333         PR other/59055
22334         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
22335         * doc/gcc.texi (Service): Update description in the @menu
22336         * doc/invoke.texi (Option Summary): Remove misplaced and
22337         duplicated @menu.
22339 2014-04-11  Steve Ellcey  <sellcey@mips.com>
22340             Jakub Jelinek  <jakub@redhat.com>
22342         PR middle-end/60556
22343         * expr.c (convert_move): Use emit_store_flag_force instead of
22344         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
22345         argument to it.
22347 2014-04-11  Richard Biener  <rguenther@suse.de>
22349         PR middle-end/60797
22350         * varasm.c (assemble_alias): Avoid endless error reporting
22351         recursion by setting TREE_ASM_WRITTEN.
22353 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22355         * config/s390/s390.md: Add a splitter for NOT rtx.
22357 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
22359         PR rtl-optimization/60663
22360         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
22362 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
22363             Jakub Jelinek  <jakub@redhat.com>
22365         PR lto/60567
22366         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
22367         flag from decl_node to node.
22369 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22371         PR debug/60655
22372         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
22373         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
22374         ameliorating the cases where it can be.
22376 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
22378         Revert
22379         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
22381         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22382         (loadsync_<mode>): Change mode.
22383         (load_quadpti, store_quadpti): New.
22384         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22385         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22386         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
22388 2014-04-09  Cong Hou  <congh@google.com>
22390         PR testsuite/60773
22391         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
22392         documentation.
22394 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22396         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
22397         instead of vnor to exploit possible fusion opportunity in the
22398         future.
22399         (altivec_expand_vec_perm_const_le): Likewise.
22401 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
22403         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22404         (loadsync_<mode>): Change mode.
22405         (load_quadpti, store_quadpti): New.
22406         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22407         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22409 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
22411         PR target/60763
22412         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
22413         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
22414         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
22416 2014-04-08  Richard Biener  <rguenther@suse.de>
22418         PR middle-end/60706
22419         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
22420         a 64bit widest int print double-int similar to on HWI64 hosts.
22422 2014-04-08  Richard Biener  <rguenther@suse.de>
22424         PR tree-optimization/60785
22425         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
22426         default defs properly.
22428 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
22430         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
22431         (Weffc++): Likewise.
22433 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
22435         * ipa-devirt.c (maybe_record_node): When node is not recorded,
22436         set completep to false rather than true.
22438 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
22440         PR target/60504
22441         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
22442         ARM_TARGET2_DWARF_FORMAT.
22444 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
22446         PR target/60609
22447         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
22448         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
22449         ADDR_DIFF_VEC.
22451 2014-04-07  Richard Biener  <rguenther@suse.de>
22453         PR tree-optimization/60766
22454         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
22455         (may_eliminate_iv): Convert cand_value_at result to desired type.
22457 2014-04-07  Jason Merrill  <jason@redhat.com>
22459         PR c++/60731
22460         * common.opt (-fno-gnu-unique): Add.
22461         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
22463 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22465         * haifa-sched.c: Fix outdated function reference and minor
22466         grammar errors in introductory comment.
22468 2014-04-07  Richard Biener  <rguenther@suse.de>
22470         PR middle-end/60750
22471         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
22472         for noreturn calls.
22473         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
22475 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
22477         PR debug/55794
22478         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
22479         size accounting for thunks.
22480         (pa_asm_output_mi_thunk): Use final_start_function() and
22481         final_end_function() to output function start and end directives.
22483 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
22485         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
22486         device specific ISA/ feature information. Remove short_sp and
22487         errata_skip ds.  Add avr_device_specific_features enum to have device
22488         specific info.
22489         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
22490         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
22491         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
22492         updated device specific info.
22493         * config/avr/avr-mcus.def: Merge device specific details to
22494         dev_attribute field.
22495         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
22496         errata_skip.
22497         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
22498         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
22499         assembler if RMW isa supported by current device.
22500         * config/avr/genmultilib.awk: Update as device info structure changed.
22501         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
22503 2014-04-04  Cong Hou  <congh@google.com>
22505         PR tree-optimization/60656
22506         * tree-vect-stmts.c (supportable_widening_operation):
22507         Fix a bug that elements in a vector with vect_used_by_reduction
22508         property are incorrectly reordered when the operation on it is not
22509         consistant with the one in reduction operation.
22511 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
22513         PR rtl-optimization/60155
22514         * gcse.c (record_set_data): New function.
22515         (single_set_gcse): New function.
22516         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
22517         (hoist_code): Likewise.
22518         (get_pressure_class_and_nregs): Likewise.
22520 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
22522         * explow.c (probe_stack_range): Emit a final optimization blockage.
22524 2014-04-04  Anthony Green  <green@moxielogic.com>
22526         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
22527         typos.
22529 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
22531         PR ipa/59626
22532         * lto-cgraph.c (input_overwrite_node): Check that partitioning
22533         flags are set only during streaming.
22534         * ipa.c (process_references, walk_polymorphic_call_targets,
22535         symtab_remove_unreachable_nodes): Drop bodies of always inline
22536         after early inlining.
22537         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
22539 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
22540         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22542         PR debug/60655
22543         * dwarf2out.c (const_ok_for_output_1): Reject expressions
22544         containing a NOT.
22546 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22548         PR bootstrap/60743
22549         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
22550         duration.
22551         (cortex_a53_fdivd): Likewise.
22553 2014-04-04  Martin Jambor  <mjambor@suse.cz>
22555         PR ipa/60640
22556         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
22557         Adjust all callers.
22558         * cgraph.c (clone_of_p): Also return true if thunks match.
22559         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
22560         cgraph_function_or_thunk_node and an obsolete comment.
22561         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
22562         file.
22563         (build_function_decl_skip_args): Likewise.
22564         (set_new_clone_decl_and_node_flags): New function.
22565         (duplicate_thunk_for_node): Likewise.
22566         (redirect_edge_duplicating_thunks): Likewise.
22567         (cgraph_clone_node): New parameter args_to_skip, pass it to
22568         redirect_edge_duplicating_thunks which is called instead of
22569         cgraph_redirect_edge_callee.
22570         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
22571         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
22573 2014-04-04  Jeff Law  <law@redhat.com>
22575         PR target/60657
22576         * config/arm/predicates.md (const_int_I_operand): New predicate.
22577         (const_int_M_operand): Similarly.
22578         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
22579         const_int_operand.
22580         (insv_t2, extv_reg, extzv_t2): Likewise.
22581         (load_multiple_with_writeback): Similarly for const_int_I_operand.
22582         (pop_multiple_with_writeback_and_return): Likewise.
22583         (vfp_pop_multiple_with_writeback): Likewise
22585 2014-04-04  Richard Biener  <rguenther@suse.de>
22587         PR ipa/60746
22588         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
22589         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
22590         non-GIMPLE_LABELs.
22591         * gimplify.h (gimple_add_tmp_var_fn): Declare.
22592         * gimplify.c (gimple_add_tmp_var_fn): New function.
22593         * gimple-expr.h (create_tmp_reg_fn): Declare.
22594         * gimple-expr.c (create_tmp_reg_fn): New function.
22595         * gimple-low.c (record_vars_into): Don't change cfun.
22596         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
22597         code generation without cfun.
22599 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
22601         PR bootstrap/60719
22602         * Makefile.in (install-driver): Fix shell scripting.
22604 2014-04-03  Cong Hou  <congh@google.com>
22606         PR tree-optimization/60505
22607         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
22608         threshold of number of iterations below which no vectorization
22609         will be done.
22610         * tree-vect-loop.c (new_loop_vec_info):
22611         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
22612         * tree-vect-loop.c (vect_analyze_loop_operations):
22613         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
22614         * tree-vect-loop.c (vect_transform_loop):
22615         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
22616         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
22617         of iterations of the loop and see if we should build the epilogue.
22619 2014-04-03  Richard Biener  <rguenther@suse.de>
22621         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
22622         (streamer_tree_cache_create): Adjust.
22623         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
22624         to allow optional nodes array.
22625         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
22626         (streamer_tree_cache_append): Likewise.
22627         (streamer_tree_cache_create): Create nodes array optionally
22628         as specified by parameter.
22629         * lto-streamer-out.c (create_output_block): Avoid maintaining
22630         the node array in the writer cache.
22631         (DFS_write_tree): Remove assertion.
22632         (produce_asm_for_decls): Free the out decl state hash table early.
22633         * lto-streamer-in.c (lto_data_in_create): Adjust for
22634         streamer_tree_cache_create prototype change.
22636 2014-04-03  Richard Biener  <rguenther@suse.de>
22638         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
22639         set TREE_CHAIN to NULL_TREE.
22641 2014-04-03  Richard Biener  <rguenther@suse.de>
22643         PR tree-optimization/60740
22644         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
22645         over all GIMPLE_COND operands.
22647 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
22649         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
22650         (Weffc++): Remove Scott's numbering, merge lists and reference
22651         Wnon-virtual-dtor.
22653 2014-04-03  Nick Clifton  <nickc@redhat.com>
22655         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
22656         properly.
22658 2014-04-03  Martin Jambor  <mjambor@suse.cz>
22660         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
22661         mention gcc_unreachable before failing.
22662         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
22663         removed symbols.
22665 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
22667         PR ipa/60659
22668         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
22669         inconsistent code and instead mark the context inconsistent.
22670         (possible_polymorphic_call_targets): For inconsistent contexts
22671         return empty complete list.
22673 2014-04-02  Anthony Green  <green@moxielogic.com>
22675         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
22676         (extendqisi2, extendhisi2): Define.
22677         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
22678         (WCHAR_TYPE): Change to unsigned int.
22680 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22682         PR tree-optimization/60733
22683         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
22684         insertion point for PHI candidates to be the end of the feeding
22685         block for the PHI argument.
22687 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
22689         PR rtl-optimization/60650
22690         * lra-constraints.c (process_alt_operands): Decrease reject for
22691         earlyclobber matching.
22693 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22695         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
22697 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22699         * config/spu/spu.c (pad_bb): Do not crash when the last
22700         insn is CODE_FOR_blockage.
22702 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22704         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
22705         lies outside the target mode.
22707 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22709         PR target/60735
22710         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
22711         software floating point or no floating point registers, do not
22712         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
22713         in GPRs that occurs after we tested for GPRs that would never be
22714         true.
22716         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
22717         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
22718         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
22719         specifically allow DDmode, since that does not use the SPE SIMD
22720         instructions.
22722 2014-04-02  Richard Biener  <rguenther@suse.de>
22724         PR middle-end/60729
22725         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
22726         MODE_INTs.  Properly use negv_optab.
22727         (expand_abs): Likewise.
22729 2014-04-02  Richard Biener  <rguenther@suse.de>
22731         PR bootstrap/60719
22732         * Makefile.in (install-driver): Guard extra installs with special
22733         names properly.
22735 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
22737         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22738         Document vec_vgbbd.
22740 2014-04-01  Richard Henderson  <rth@redhat.com>
22742         PR target/60704
22743         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
22744         alternative enabled before register allocation.
22746 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
22748         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
22749         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
22750         typo.
22751         (nios2_large_got_address): Remove unneeded 'sym' parameter.
22752         (nios2_got_address): Update nios2_large_got_address call site.
22753         (nios2_delegitimize_address): New function.
22754         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
22755         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
22756         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
22758 2014-04-01  Martin Husemann  <martin@duskware.de>
22760         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
22761         for -mabi=32.
22763 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
22765         PR rtl-optimization/60604
22766         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
22767         check from register_operand.
22768         (register_operand): Redefine in terms of general_operand.
22769         (nonmemory_operand): Use register_operand for the non-constant cases.
22771 2014-04-01  Richard Biener  <rguenther@suse.de>
22773         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
22775 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22777         * doc/invoke.texi (mapp-regs): Clarify.
22779 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
22781         * config/i386/avx512fintrin.h (__v32hi): Define type.
22782         (__v64qi): Likewise.
22783         (_mm512_set1_epi8): Define.
22784         (_mm512_set1_epi16): Define.
22785         (_mm512_set4_epi32): Define.
22786         (_mm512_set4_epi64): Define.
22787         (_mm512_set4_pd): Define.
22788         (_mm512_set4_ps): Define.
22789         (_mm512_setr4_epi64): Define.
22790         (_mm512_setr4_epi32): Define.
22791         (_mm512_setr4_pd): Define.
22792         (_mm512_setr4_ps): Define.
22793         (_mm512_setzero_epi32): Define.
22795 2014-03-31  Martin Jambor  <mjambor@suse.cz>
22797         PR middle-end/60647
22798         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
22799         callsite_arguments_match_p.  Updated all callers.  Also check types of
22800         corresponding formal parameters and actual arguments.
22801         (not_all_callers_have_enough_arguments_p) Renamed to
22802         some_callers_have_mismatched_arguments_p.
22804 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
22806         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
22808 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
22810         PR target/60034
22811         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
22812         section anchor.
22814 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
22816         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
22817         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
22818         Split out
22819         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
22820         Use FMAMODE_NOVF512 mode iterator.
22821         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
22822         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
22823         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
22824         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
22825         Split out
22826         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
22827         Use VF_128_256 mode iterator.
22828         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
22829         Ditto.
22831 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
22833         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
22834         static chain if needed.
22836 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
22838         PR target/60697
22839         * lra-constraints.c (index_part_to_reg): New.
22840         (process_address): Use it.
22842 2014-03-27  Jeff Law  <law@redhat.com>
22843             Jakub Jelinek  <jakub@redhat.com>
22845         PR target/60648
22846         * expr.c (do_tablejump): Use simplify_gen_binary rather than
22847         gen_rtx_{PLUS,MULT} to build up the address expression.
22849         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
22850         creating non-canonical RTL.
22852 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
22854         PR ipa/60243
22855         * ipa-inline.c (want_inline_small_function_p): Short circuit large
22856         functions; reorganize to make cheap checks first.
22857         (inline_small_functions): Do not estimate growth when dumping;
22858         it is expensive.
22859         * ipa-inline.h (inline_summary): Add min_size.
22860         (growth_likely_positive): New function.
22861         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
22862         (set_cond_stmt_execution_predicate): Cleanup.
22863         (estimate_edge_size_and_time): Compute min_size.
22864         (estimate_calls_size_and_time): Likewise.
22865         (estimate_node_size_and_time): Likewise.
22866         (inline_update_overall_summary): Update min_size.
22867         (do_estimate_edge_time): Likewise.
22868         (do_estimate_edge_size): Update.
22869         (do_estimate_edge_hints): Update.
22870         (growth_likely_positive): New function.
22872 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
22874         PR target/60693
22875         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
22876         also if addr has VOIDmode.
22878 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22880         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
22881         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
22882         Declare extern.
22883         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
22884         instructions as well as AdvancedSIMD loads.
22886 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22888         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
22889         Use crypto_aese type.
22890         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
22891         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
22892         crypto_aese, crypto_aesmc.  Move to types.md.
22893         * config/arm/types.md (crypto_aes): Split into crypto_aese,
22894         crypto_aesmc.
22895         * config/arm/iterators.md (crypto_type): Likewise.
22897 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
22899         * cgraph.c: Include expr.h and tree-dfa.h.
22900         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
22901         remove LHS.
22903 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
22905         PR target/60675
22906         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
22907         regs from checking multi-reg pseudos.
22909 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22911         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
22913 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22915         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
22916         if it would clobber the stack pointer, even temporarily.
22918 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
22920         * mode-switching.c: Make small adjustments to the top comment.
22922 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
22924         * config/rs6000/constraints.md (wD constraint): New constraint to
22925         match the constant integer to get the top DImode/DFmode out of a
22926         vector in a VSX register.
22928         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
22929         match the constant integer to get the top DImode/DFmode out of a
22930         vector in a VSX register.
22932         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
22933         for ISA 2.07.
22935         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22936         vbpermq builtins.
22938         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
22939         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
22941         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
22942         Optimize vec_extract of 64-bit values, where the value being
22943         extracted is in the top word, where we can use scalar
22944         instructions.  Add direct move and store support.  Combine the big
22945         endian/little endian vector select load support into a single insn.
22946         (vsx_extract_<mode>_internal1): Likewise.
22947         (vsx_extract_<mode>_internal2): Likewise.
22948         (vsx_extract_<mode>_load): Likewise.
22949         (vsx_extract_<mode>_store): Likewise.
22950         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
22951         combined into vsx_extract_<mode>_load.
22952         (vsx_extract_<mode>_one_le): Likewise.
22954         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
22955         define the top 64-bit vector element.
22957         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
22958         constraint.
22960         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22961         Document vec_vbpermq builtin.
22963         PR target/60672
22964         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
22965         enable use of xxsldwi and xxpermdi builtin functions.
22966         (vec_xxpermdi): Likewise.
22968         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22969         Document use of vec_xxsldwi and vec_xxpermdi builtins.
22971 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
22973         PR rtl-optimization/60650
22974         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
22975         first_p.  Use it.
22976         (find_spills_for): New.
22977         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
22978         Spill all pseudos on the second iteration.
22980 2014-03-27  Marek Polacek  <polacek@redhat.com>
22982         PR c/50347
22983         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
22984         types.
22986 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22988         * config/s390/s390.c (s390_can_use_return_insn): Check for
22989         call-saved FPRs on 31 bit.
22991 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
22993         PR middle-end/60682
22994         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
22995         if they need regimplification, just drop them instead of
22996         calling gimple_regimplify_operands on them.
22998 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23000         PR target/60580
23001         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
23002         (aarch64_frame_pointer_required): Adjust logic.
23003         (aarch64_can_eliminate): Adjust logic.
23004         (aarch64_override_options_after_change): Adjust logic.
23006 2014-03-27  Dehao Chen  <dehao@google.com>
23008         * ipa-inline.c (early_inliner): Update node's inline info.
23010 2014-03-26  Dehao Chen  <dehao@google.com>
23012         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
23013         compiler inserted conditional jumps for NAN float check.
23015 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
23017         * ubsan.h (ubsan_create_data): Change second argument's type
23018         to const location_t *.
23019         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
23020         _("<unknown>").
23021         (ubsan_create_data): Change second argument to const location_t *PLOC.
23022         Create Loc field whenever PLOC is non-NULL.
23023         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
23024         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
23025         callers.
23027         PR other/59545
23028         * real.c (real_to_integer2): Change type of low to UHWI.
23030 2014-03-26  Tobias Burnus  <burnus@net-b.de>
23032         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
23033         (CILK_SELF_SPECS): New define.
23034         (driver_self_specs): Use it.
23036 2014-03-26  Richard Biener  <rguenther@suse.de>
23038         * tree-pretty-print.c (percent_K_format): Implement special
23039         case for LTO and its stripped down BLOCK tree.
23041 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
23043         PR sanitizer/60636
23044         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
23046         * tree-vrp.c (simplify_internal_call_using_ranges): If only
23047         one range is range_int_cst_p, but not both, at least optimize
23048         addition/subtraction of 0 and multiplication by 0 or 1.
23049         * gimple-fold.c (gimple_fold_call): Fold
23050         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
23051         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
23052         INTEGER_CSTs, try to fold at least x * 0 and y - y.
23054 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
23056         PR rtl-optimization/60452
23057         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
23058         <case REG>: Return 1 for invalid offsets from the frame pointer.
23060 2014-03-26  Marek Polacek  <polacek@redhat.com>
23062         PR c/37428
23063         * doc/extend.texi (C Extensions): Mention variable-length arrays in
23064         a structure/union.
23066 2014-03-26  Marek Polacek  <polacek@redhat.com>
23068         PR c/39525
23069         * doc/extend.texi (Designated Inits): Describe what happens to omitted
23070         field members.
23072 2014-03-26  Marek Polacek  <polacek@redhat.com>
23074         PR other/59545
23075         * ira-color.c (update_conflict_hard_regno_costs): Perform the
23076         multiplication in unsigned type.
23078 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
23080         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
23082 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
23084         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
23086 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
23088         PR ipa/60315
23089         * cif-code.def (UNREACHABLE) New code.
23090         * ipa-inline.c (inline_small_functions): Skip edges to
23091         __builtlin_unreachable.
23092         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
23093         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
23094         predicate to __bulitin_unreachable.
23095         (set_cond_stmt_execution_predicate): Fix issue when
23096         invert_tree_comparison returns ERROR_MARK.
23097         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
23098         propagate to inline clones.
23099         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
23100         to unreachable.
23101         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
23102         * cgraphclones.c (cgraph_clone_node): If call destination is already
23103         ureachable, do not redirect it back.
23104         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
23105         unreachable.
23107 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
23109         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
23110         Do not modify inline clones.
23112 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
23114         * config/i386/i386.md (general_sext_operand): New mode attr.
23115         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
23116         don't generate (sign_extend (const_int)).
23117         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
23118         operands[2].  Use We constraint instead of <i> and
23119         <general_sext_operand> predicate instead of <general_operand>.
23120         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
23121         * config/i386/constraints.md (We): New constraint.
23122         * config/i386/predicates.md (x86_64_sext_operand,
23123         sext_operand): New predicates.
23125 2014-03-25  Martin Jambor  <mjambor@suse.cz>
23127         PR ipa/60600
23128         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
23129         inconsistent devirtualizations to __builtin_unreachable.
23131 2014-03-25  Marek Polacek  <polacek@redhat.com>
23133         PR c/35449
23134         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
23136 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
23138         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
23139         order of elements for big-endian.
23141 2014-03-25  Richard Biener  <rguenther@suse.de>
23143         PR middle-end/60635
23144         * gimplify-me.c (gimple_regimplify_operands): Update the
23145         re-gimplifed stmt.
23147 2014-03-25  Martin Jambor  <mjambor@suse.cz>
23149         PR ipa/59176
23150         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
23151         (lto_output_varpool_node): Likewise.
23152         (input_overwrite_node): Likewise.
23153         (input_varpool_node): Likewise.
23155 2014-03-25  Richard Biener  <rguenther@suse.de>
23157         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
23158         (run_gcc): Likewise.
23160 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
23162         * combine.c (simplify_compare_const): Add MODE argument.
23163         Handle mode_width 0 as very large mode_width.
23164         (try_combine, simplify_comparison): Adjust callers.
23166         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
23167         type to avoid signed integer overflow.
23168         * explow.c (plus_constant): Likewise.
23170 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23172         * doc/generic.texi: Correct typos.
23174 2014-03-24  Tobias Burnus  <burnus@net-b.de>
23176         * doc/invoke.texi (-flto): Expand section about
23177         using static libraries with LTO.
23179 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23181         PR rtl-optimization/60501
23182         * optabs.def (addptr3_optab): New optab.
23183         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
23184         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
23185         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
23187         * lra.c (emit_add3_insn): Use the addptr pattern if available.
23189         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
23191 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
23193         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
23194         _mm512_set1_pd.
23196         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
23197         (_mm256_undefined_ps): Define.
23198         (_mm256_undefined_pd): Define.
23199         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
23200         (_mm_undefined_pd): Define.
23201         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
23202         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
23203         (_mm512_undefined_ps): Define.
23204         (_mm512_undefined_pd): Define.
23205         Use _mm*_undefined_*.
23206         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
23208 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
23210         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
23211         (lshr_simd): DI mode added.
23212         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
23213         (aarch64_ushr_simddi): Likewise.
23214         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
23215         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
23216         (vshrd_n_u64): Likewise.
23218 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23220         * Makefile.in (s-macro_list): Depend on cc1.
23222 2014-03-23  Teresa Johnson  <tejohnson@google.com>
23224         * ipa-utils.c (ipa_print_order): Use specified dump file.
23226 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
23228         PR rtl-optimization/60601
23229         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
23231         * gcc.c (eval_spec_function): Initialize save_growing_value.
23233 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
23235         PR sanitizer/60613
23236         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
23237         code == MINUS_EXPR, never swap op0 with op1.
23239         * toplev.c (init_local_tick): Avoid signed integer multiplication
23240         overflow.
23241         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
23242         shift by first operand's bitsize.
23244 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
23246         PR target/60610
23247         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
23248         redefine to 1 or 0.
23249         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
23250         TARGET_ISA_64BIT_P(x).
23252 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23254         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
23255         pattern for vector nor instead of subtract from splat(-1).
23256         (altivec_expand_vec_perm_const_le): Likewise.
23258 2014-03-21  Richard Henderson  <rth@twiddle.net>
23260         PR target/60598
23261         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
23262         related insns after epilogue_completed.
23264 2014-03-21  Martin Jambor  <mjambor@suse.cz>
23266         PR ipa/59176
23267         * cgraph.h (symtab_node): New flag body_removed.
23268         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
23269         when removing bodies.
23270         * symtab.c (dump_symtab_base): Dump body_removed flag.
23271         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
23272         had their bodies removed.
23274 2014-03-21  Martin Jambor  <mjambor@suse.cz>
23276         PR ipa/60419
23277         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
23278         in the border.
23280 2014-03-21  Richard Biener  <rguenther@suse.de>
23282         PR tree-optimization/60577
23283         * tree-core.h (struct tree_base): Document nothrow_flag use
23284         in DECL_NONALIASED.
23285         * tree.h (DECL_NONALIASED): New.
23286         (may_be_aliased): Adjust.
23287         * coverage.c (build_var): Set DECL_NONALIASED.
23289 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23291         * expr.c (expand_expr_real_1): Remove outdated comment.
23293 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
23295         PR middle-end/60597
23296         * ira.c (adjust_cleared_regs): Call copy_rtx on
23297         *reg_equiv[REGNO (loc)].src_p before passing it to
23298         simplify_replace_fn_rtx.
23300         PR target/60568
23301         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
23302         into CONST, put pic register as first operand of PLUS.  Use
23303         gen_const_mem for both 32-bit and 64-bit PIC got loads.
23305 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23307         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
23309 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23311         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
23312         around for store forwarding issue in the FPU on the UT699.
23313         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
23314         loads and operations if -mfix-ut699 is specified.
23315         (divtf3_hq): Tweak attribute.
23316         (sqrttf2_hq): Likewise.
23318 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23320         * calls.c (store_one_arg): Remove incorrect const qualification on the
23321         type of the temporary.
23322         * cfgexpand.c (expand_return): Likewise.
23323         * expr.c (expand_constructor): Likewise.
23324         (expand_expr_real_1): Likewise.
23326 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23328         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
23329         of parts.
23331 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
23333         PR target/60039
23334         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
23336 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
23338         * config/arm/aarch-common-protos.h
23339         (alu_cost_table): Fix spelling of "extend".
23340         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
23342 2014-03-19  Richard Biener  <rguenther@suse.de>
23344         PR middle-end/60553
23345         * tree-core.h (tree_type_common): Re-order pointer members
23346         to reduce recursion depth during GC walks.
23348 2014-03-19  Marek Polacek  <polacek@redhat.com>
23350         PR sanitizer/60569
23351         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
23352         before accessing it.
23354 2014-03-19  Richard Biener  <rguenther@suse.de>
23356         PR lto/59543
23357         * lto-streamer-in.c (input_function): In WPA stage do not drop
23358         debug stmts.
23360 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
23362         PR tree-optimization/60559
23363         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
23364         with build_zero_cst assignment.
23366 2014-03-18  Kai Tietz  <ktietz@redhat.com>
23368         PR rtl-optimization/56356
23369         * sdbout.c (sdbout_parms): Verify that parms'
23370         incoming argument is valid.
23371         (sdbout_reg_parms): Likewise.
23373 2014-03-18  Richard Henderson  <rth@redhat.com>
23375         PR target/60562
23376         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
23377         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
23378         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
23380 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
23382         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
23383         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
23384         Italicize plugin event names in description.  Explain that
23385         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
23386         Remind that no GCC functions should be called after PLUGIN_FINISH.
23387         Explain what pragmas with expansion are.
23389 2014-03-18  Martin Liska  <mliska@suse.cz>
23391         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
23392         gimple call statement is update.
23393         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
23394         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
23396 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
23398         PR sanitizer/60557
23399         * ubsan.c (ubsan_instrument_unreachable): Call
23400         initialize_sanitizer_builtins.
23401         (ubsan_pass): Likewise.
23403         PR sanitizer/60535
23404         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
23405         varpool_finalize_decl instead of rest_of_decl_compilation.
23407 2014-03-18  Richard Biener  <rguenther@suse.de>
23409         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
23410         by using bitmap_and_compl instead of bitmap_and_compl_into.
23411         (df_rd_transfer_function): Likewise.
23413 2014-03-18  Richard Biener  <rguenther@suse.de>
23415         * doc/lto.texi (fresolution): Fix typo.
23417 2014-03-18  Richard Biener  <rguenther@suse.de>
23419         * doc/invoke.texi (flto): Update for changes in 4.9.
23421 2014-03-18  Richard Biener  <rguenther@suse.de>
23423         * doc/loop.texi: Remove section on the removed lambda framework.
23424         Update loop docs with recent changes in preserving loop structure.
23426 2014-03-18  Richard Biener  <rguenther@suse.de>
23428         * doc/lto.texi (-fresolution): Document.
23430 2014-03-18  Richard Biener  <rguenther@suse.de>
23432         * doc/contrib.texi: Adjust my name.
23434 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
23436         PR ipa/58721
23437         * internal-fn.c: Include diagnostic-core.h.
23438         (expand_BUILTIN_EXPECT): New function.
23439         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
23440         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
23441         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
23442         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
23443         IFN_BUILTIN_EXPECT.
23444         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
23445         Revert 3 argument __builtin_expect code.
23446         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
23447         * gimple-fold.c (gimple_fold_call): Likewise.
23448         * tree.h (fold_builtin_expect): New prototype.
23449         * builtins.c (build_builtin_expect_predicate): Add predictor
23450         argument, if non-NULL, create 3 argument __builtin_expect.
23451         (fold_builtin_expect): No longer static.  Add ARG2 argument,
23452         pass it through to build_builtin_expect_predicate.
23453         (fold_builtin_2): Adjust caller.
23454         (fold_builtin_3): Handle BUILT_IN_EXPECT.
23455         * internal-fn.def (BUILTIN_EXPECT): New.
23457 2014-03-18  Tobias Burnus  <burnus@net-b.de>
23459         PR ipa/58721
23460         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
23461         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
23462         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
23464 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
23466         PR ipa/58721
23467         * predict.c (combine_predictions_for_bb): Fix up formatting.
23468         (expr_expected_value_1, expr_expected_value): Add predictor argument,
23469         fill what it points to if non-NULL.
23470         (tree_predict_by_opcode): Adjust caller, use the predictor.
23471         * predict.def (PRED_COMPARE_AND_SWAP): Add.
23473 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
23475         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
23476         proper constant for the store mode.
23478 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
23480         * symtab.c (change_decl_assembler_name): Fix transparent alias
23481         chain construction.
23483 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
23485         * config/aarch64/aarch64.c: Correct the comments about the
23486         aarch64 stack layout.
23488 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
23490         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
23491         check for GF_OMP_FOR_KIND_FOR.
23493 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
23495         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
23496         ymm and zmm register names.
23498 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
23500         PR target/60516
23501         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
23502         note creation for the 2010-08-31 changes.
23504 2014-03-17  Marek Polacek  <polacek@redhat.com>
23506         PR middle-end/60534
23507         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
23508         as -fno-tree-loop-vectorize.
23509         (expand_omp_simd): Likewise.
23511 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
23513         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
23514         (eligible_for_call_delay): New prototype.
23515         * config/sparc/sparc.c (tls_call_delay): Rename into...
23516         (eligible_for_call_delay): ...this.  Return false if the instruction
23517         cannot be put in the delay slot of a branch.
23518         (eligible_for_restore_insn): Simplify.
23519         (eligible_for_return_delay): Return false if the instruction cannot be
23520         put in the delay slot of a branch and simplify.
23521         (eligible_for_sibcall_delay): Return false if the instruction cannot be
23522         put in the delay slot of a branch.
23523         * config/sparc/sparc.md (fix_ut699): New attribute.
23524         (tls_call_delay): Delete.
23525         (in_call_delay): Reimplement.
23526         (eligible_for_sibcall_delay): Rename into...
23527         (in_sibcall_delay): ...this.
23528         (eligible_for_return_delay): Rename into...
23529         (in_return_delay): ...this.
23530         (in_branch_delay): Reimplement.
23531         (in_uncond_branch_delay): Delete.
23532         (in_annul_branch_delay): Delete.
23534 2014-03-14  Richard Henderson  <rth@redhat.com>
23536         PR target/60525
23537         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
23538         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
23539         (*floathi<X87MODEF>2_i387_with_temp): Remove.
23540         (floathi splitters): Remove.
23541         (float<SWI48x>xf2): New pattern.
23542         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
23543         code that tried to handle DImode for 32-bit, but which was excluded
23544         by the pattern's condition.  Drop allocation of stack temporary.
23545         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
23546         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
23547         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
23548         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
23549         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
23550         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
23551         (*float<SWI48><MODEF>2_sse_interunit): Remove.
23552         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
23553         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
23554         (*float<SWI48x><X87MODEF>2_i387): Remove.
23555         (all float _with_temp splitters): Remove.
23556         (*float<SWI48x><MODEF>2_i387): New pattern.
23557         (*float<SWI48><MODEF>2_sse): New pattern.
23558         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
23559         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
23561 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
23562             Marek Polacek  <polacek@redhat.com>
23564         PR middle-end/60484
23565         * common.opt (dump_base_name_prefixed): New Variable.
23566         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
23567         if x_dump_base_name_prefixed is already set, set it at the end.
23569 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
23571         PR rtl-optimization/60508
23572         * lra-constraints.c (get_reload_reg): Add new parameter
23573         in_subreg_p.
23574         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
23575         Pass the new parameter values.
23577 2014-03-14  Richard Biener  <rguenther@suse.de>
23579         * common.opt: Revert unintented changes from r205065.
23580         * opts.c: Likewise.
23582 2014-03-14  Richard Biener  <rguenther@suse.de>
23584         PR middle-end/60518
23585         * cfghooks.c (split_block): Properly adjust all loops the
23586         block was a latch of.
23588 2014-03-14  Martin Jambor  <mjambor@suse.cz>
23590         PR lto/60461
23591         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
23592         and simplify it.
23594 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
23596         PR target/59396
23597         * config/avr/avr.c (avr_set_current_function): Pass function name
23598         through default_strip_name_encoding before sanity checking instead
23599         of skipping the first char of the assembler name.
23601 2014-03-13  Richard Henderson  <rth@redhat.com>
23603         PR debug/60438
23604         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
23605         (ix86_force_to_memory, ix86_free_from_memory): Remove.
23606         * config/i386/i386-protos.h: Likewise.
23607         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
23608         in the expander instead of a splitter.
23609         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
23610         any possibility of requiring a memory.
23611         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
23612         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
23613         (fp branch splitters): Update for ix86_split_fp_branch.
23614         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
23615         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
23616         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
23617         (*fop_<MODEF>_2_i387): Remove f/r alternative.
23618         (*fop_<MODEF>_3_i387): Likewise.
23619         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
23620         (splitters for the fop_* register patterns): Remove.
23621         (fscalexf4_i387): Rename from *fscalexf4_i387.
23622         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
23624 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
23626         PR tree-optimization/59779
23627         * tree-dfa.c (get_ref_base_and_extent): Use double_int
23628         type for bitsize and maxsize instead of HOST_WIDE_INT.
23630 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
23632         PR rtl-optimization/57320
23633         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
23634         the CFG after thread_prologue_and_epilogue_insns.
23636 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
23638         PR rtl-optimization/57189
23639         * lra-constraints.c (process_alt_operands): Disfavor spilling
23640         vector pseudos.
23642 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
23644         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
23646 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
23648         PR tree-optimization/59025
23649         PR middle-end/60418
23650         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
23651         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
23653 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
23655         PR target/60486
23656         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
23657         calls of avr_out_plus_1.
23659 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
23661         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
23662         BB's single pred and update the father loop's latch info later.
23664 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23666         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
23667         (VEC_M): Likewise.
23668         (VEC_N): Likewise.
23669         (VEC_R): Likewise.
23670         (VEC_base): Likewise.
23671         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
23672         registers, we need to swap double words in little endian mode.
23674         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
23675         to be a container mode for 128-bit integer operations added in ISA
23676         2.07.  Unlike TImode and PTImode, the preferred register set is
23677         the Altivec/VMX registers for the 128-bit operations.
23679         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
23680         declarations.
23681         (rs6000_split_128bit_ok_p): Likewise.
23683         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
23684         macros for creating ISA 2.07 normal and overloaded builtin
23685         functions with 3 arguments.
23686         (BU_P8V_OVERLOAD_3): Likewise.
23687         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
23688         for use as overloaded functions.
23689         (VPERM_1TI_UNS): Likewise.
23690         (VSEL_1TI): Likewise.
23691         (VSEL_1TI_UNS): Likewise.
23692         (ST_INTERNAL_1ti): Likewise.
23693         (LD_INTERNAL_1ti): Likewise.
23694         (XXSEL_1TI): Likewise.
23695         (XXSEL_1TI_UNS): Likewise.
23696         (VPERM_1TI): Likewise.
23697         (VPERM_1TI_UNS): Likewise.
23698         (XXPERMDI_1TI): Likewise.
23699         (SET_1TI): Likewise.
23700         (LXVD2X_V1TI): Likewise.
23701         (STXVD2X_V1TI): Likewise.
23702         (VEC_INIT_V1TI): Likewise.
23703         (VEC_SET_V1TI): Likewise.
23704         (VEC_EXT_V1TI): Likewise.
23705         (EQV_V1TI): Likewise.
23706         (NAND_V1TI): Likewise.
23707         (ORC_V1TI): Likewise.
23708         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
23709         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
23710         overloaded builtin.
23711         (VADDUQM): Likewise.
23712         (VSUBCUQ): Likewise.
23713         (VADDEUQM): Likewise.
23714         (VADDECUQ): Likewise.
23715         (VSUBEUQM): Likewise.
23716         (VSUBECUQ): Likewise.
23718         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
23719         __int128_t and __uint128_t types.
23720         (__uint128_type): Likewise.
23721         (altivec_categorize_keyword): Add support for vector __int128_t,
23722         vector __uint128_t, vector __int128, and vector unsigned __int128
23723         as a container type for TImode operations that need to be done in
23724         VSX/Altivec registers.
23725         (rs6000_macro_to_expand): Likewise.
23726         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
23727         to support 128-bit integer instructions vaddcuq, vadduqm,
23728         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
23729         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
23731         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
23732         for V1TImode, and set up preferences to use VSX/Altivec registers.
23733         Setup VSX reload handlers.
23734         (rs6000_debug_reg_global): Likewise.
23735         (rs6000_init_hard_regno_mode_ok): Likewise.
23736         (rs6000_preferred_simd_mode): Likewise.
23737         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
23738         (easy_altivec_constant): Likewise.
23739         (output_vec_const_move): Likewise.
23740         (rs6000_expand_vector_set): Convert V1TImode set and extract to
23741         simple move.
23742         (rs6000_expand_vector_extract): Likewise.
23743         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
23744         addressing.
23745         (rs6000_const_vec): Add support for V1TImode.
23746         (rs6000_emit_le_vsx_load): Swap double words when loading or
23747         storing TImode/V1TImode.
23748         (rs6000_emit_le_vsx_store): Likewise.
23749         (rs6000_emit_le_vsx_move): Likewise.
23750         (rs6000_emit_move): Add support for V1TImode.
23751         (altivec_expand_ld_builtin): Likewise.
23752         (altivec_expand_st_builtin): Likewise.
23753         (altivec_expand_vec_init_builtin): Likewise.
23754         (altivec_expand_builtin): Likewise.
23755         (rs6000_init_builtins): Add support for V1TImode type.  Add
23756         support for ISA 2.07 128-bit integer builtins.  Define type names
23757         for the VSX/Altivec vector types.
23758         (altivec_init_builtins): Add support for overloaded vector
23759         functions with V1TImode type.
23760         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
23761         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
23762         external function.
23763         (rs6000_split_128bit_ok_p): Likewise.
23764         (rs6000_handle_altivec_attribute): Create V1TImode from vector
23765         __int128_t and vector __uint128_t.
23767         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
23768         and mode attributes.
23769         (VSX_M): Likewise.
23770         (VSX_M2): Likewise.
23771         (VSm): Likewise.
23772         (VSs): Likewise.
23773         (VSr): Likewise.
23774         (VSv): Likewise.
23775         (VS_scalar): Likewise.
23776         (VS_double): Likewise.
23777         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
23779         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
23780         we support the ISA 2.07 128-bit integer arithmetic instructions.
23781         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
23782         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
23783         and TImode types for use with the builtin functions.
23784         (V1TI_type_node): Likewise.
23785         (unsigned_V1TI_type_node): Likewise.
23786         (intTI_type_internal_node): Likewise.
23787         (uintTI_type_internal_node): Likewise.
23789         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
23790         128-bit builtin functions.
23791         (UNSPEC_VADDEUQM): Likewise.
23792         (UNSPEC_VADDECUQ): Likewise.
23793         (UNSPEC_VSUBCUQ): Likewise.
23794         (UNSPEC_VSUBEUQM): Likewise.
23795         (UNSPEC_VSUBECUQ): Likewise.
23796         (VM): Add V1TImode to vector mode iterators.
23797         (VM2): Likewise.
23798         (VI_unit): Likewise.
23799         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
23800         (altivec_vaddcuq): Likewise.
23801         (altivec_vsubuqm): Likewise.
23802         (altivec_vsubcuq): Likewise.
23803         (altivec_vaddeuqm): Likewise.
23804         (altivec_vaddecuq): Likewise.
23805         (altivec_vsubeuqm): Likewise.
23806         (altivec_vsubecuq): Likewise.
23808         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
23809         mode iterators.
23810         (BOOL_128): Likewise.
23811         (BOOL_REGS_OUTPUT): Likewise.
23812         (BOOL_REGS_OP1): Likewise.
23813         (BOOL_REGS_OP2): Likewise.
23814         (BOOL_REGS_UNARY): Likewise.
23815         (BOOL_REGS_AND_CR0): Likewise.
23817         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
23818         128-bit integer builtin support.
23819         (vec_vadduqm): Likewise.
23820         (vec_vaddecuq): Likewise.
23821         (vec_vaddeuqm): Likewise.
23822         (vec_vsubecuq): Likewise.
23823         (vec_vsubeuqm): Likewise.
23824         (vec_vsubcuq): Likewise.
23825         (vec_vsubuqm): Likewise.
23827         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23828         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
23829         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
23830         128-bit integer add/subtract to ISA 2.07.
23832 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
23834         * config/arc/arc.c (arc_predicate_delay_insns):
23835         Fix third argument passed to conditionalize_nonjump.
23837 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
23839         * config/aarch64/aarch64-builtins.c
23840         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
23841         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
23842         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
23843         instead of __builtin_lfloor.
23844         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
23846 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
23848         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
23849         (tree_ssa_ifcombine_bb_1): New function.
23850         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
23851         is an empty forwarder block to then_bb or vice versa and then_bb
23852         and else_bb are effectively swapped.
23854 2014-03-12  Christian Bruel  <christian.bruel@st.com>
23856         PR target/60264
23857         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
23858         REG_CFA_DEF_CFA note.
23859         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
23860         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
23862 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23864         PR tree-optimization/60454
23865         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
23867 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23869         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
23870         Do not define target_cpu_default2 to generic.
23871         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
23872         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
23873         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
23875 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
23876             Marc Glisse  <marc.glisse@inria.fr>
23878         PR tree-optimization/60502
23879         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
23880         instead of build_low_bits_mask.
23882 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
23884         PR middle-end/60482
23885         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
23886         if there are multiple uses, but op doesn't live on E edge.
23887         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
23888         clobber stmts before __builtin_unreachable.
23890 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
23892         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
23893         hard_frame_pointer_rtx.
23894         * cse.c (cse_insn): Remove volatile check.
23895         * cselib.c (cselib_process_insn): Likewise.
23896         * dse.c (scan_insn): Likewise.
23898 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
23900         * config/arc/arc.c (conditionalize_nonjump): New function,
23901         broken out of ...
23902         (arc_ifcvt): ... this.
23903         (arc_predicate_delay_insns): Use it.
23905 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
23907         * config/arc/predicates.md (extend_operand): During/after reload,
23908         allow const_int_operand.
23909         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
23910         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
23911         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
23912         to "i".
23913         (umulsi3_highpart_i): Likewise.
23915 2014-03-11  Richard Biener  <rguenther@suse.de>
23917         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
23918         Add asserts to guard possible wrong-code bugs.
23920 2014-03-11  Richard Biener  <rguenther@suse.de>
23922         PR tree-optimization/60429
23923         PR tree-optimization/60485
23924         * tree-ssa-structalias.c (set_union_with_increment): Properly
23925         take into account all fields that overlap the shifted vars.
23926         (do_sd_constraint): Likewise.
23927         (do_ds_constraint): Likewise.
23928         (get_constraint_for_ptr_offset): Likewise.
23930 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
23932         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
23933         (nios2_compute_frame_layout):
23934         Add calculation of cfun->machine->fp_save_offset.
23935         (nios2_expand_prologue): Correct setting of frame pointer register
23936         in prologue.
23937         (nios2_expand_epilogue): Update recovery of stack pointer from
23938         frame pointer accordingly.
23939         (nios2_initial_elimination_offset): Update calculation of offset
23940         for eliminating to HARD_FRAME_POINTER_REGNUM.
23942 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
23944         PR ipa/60457
23945         * ipa.c (symtab_remove_unreachable_nodes): Don't call
23946         cgraph_get_create_node on VAR_DECLs.
23948 2014-03-10  Richard Biener  <rguenther@suse.de>
23950         PR middle-end/60474
23951         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
23953 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
23955         * config/vms/vms.opt (vms_float_format): New variable.
23957 2014-03-08  Tobias Burnus  <burnus@net-b.de>
23959         * doc/invoke.texi (-fcilkplus): Update implementation status.
23961 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
23962             Richard Biener  <rguenther@suse.de>
23964         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
23965         consistently accross all TUs.
23966         (run_gcc): Enable -fshort-double automatically at link at link-time
23967         and disallow override.
23969 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
23971         PR target/58271
23972         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
23973         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
23974         if they can't be used.
23976 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23978         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
23979         for Solaris 11/x86 ld.
23980         * configure: Regenerate.
23982 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23984         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
23985         (LIB_TLS_SPEC): Save as ld_tls_libs.
23986         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
23987         (HAVE_AS_IX86_TLSLDM): New test.
23988         * configure, config.in: Regenerate.
23989         * config/i386/i386.c (legitimize_tls_address): Fall back to
23990         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
23991         cannot support TLS_MODEL_LOCAL_DYNAMIC.
23992         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
23993         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
23995 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
23997         * common.opt (fira-loop-pressure): Mark as optimization.
23999 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
24001         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
24002         an OpenMP mappable type.
24004 2014-03-06  Matthias Klose  <doko@ubuntu.com>
24006         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
24007         MULTILIB_OSDIRNAMES is not defined.
24009 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
24010             Meador Inge  <meadori@codesourcery.com>
24012         PR target/58595
24013         * config/arm/arm.c (arm_tls_symbol_p): Remove.
24014         (arm_legitimize_address): Call legitimize_tls_address for any
24015         arm_tls_referenced_p expression, handle constant addend.  Call it
24016         before testing for !TARGET_ARM.
24017         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
24019 2014-03-06  Richard Biener  <rguenther@suse.de>
24021         PR middle-end/60445
24022         PR lto/60424
24023         PR lto/60427
24024         Revert
24025         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
24027         * tree-streamer.c (record_common_node): Assert we don't record
24028         nodes with type double.
24029         (preload_common_node): Skip type double, complex double and double
24030         pointer since it is now frontend dependent due to fshort-double option.
24032 2014-03-06  Richard Biener  <rguenther@suse.de>
24034         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
24035         or -fno-lto is specified and the linker has full plugin support.
24036         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
24037         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
24038         * lto-wrapper.c (merge_and_complain): Merge compile-time
24039         optimization levels.
24040         (run_gcc): And pass it through to the link options.
24042 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
24044         PR debug/60381
24045         Revert:
24046         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24047         PR debug/59992
24048         * cselib.c (remove_useless_values): Skip to avoid quadratic
24049         behavior if the condition moved from...
24050         (cselib_process_insn): ... here holds.
24052 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
24054         PR plugins/59335
24055         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
24056         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
24058         PR plugins/59335
24059         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
24060         (TM_H): Add x86-tune.def.
24062 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24064         * config/aarch64/aarch64.c (generic_tunings):
24065         Use cortexa57_extra_costs.
24067 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
24069         PR lto/60404
24070         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
24071         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
24072         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
24073         cost for in_lto_p.
24075 2014-03-04  Heiher  <r@hev.cc>
24077         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
24078         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
24080 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
24082         * config/i386/predicates.md (const2356_operand): Change to ...
24083         (const2367_operand): ... this.
24084         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
24085         const2367_operand.
24086         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24087         (*avx512pf_scatterpf<mode>sf): Ditto.
24088         (avx512pf_scatterpf<mode>df): Ditto.
24089         (*avx512pf_scatterpf<mode>df_mask): Ditto.
24090         (*avx512pf_scatterpf<mode>df): Ditto.
24091         * config/i386/i386.c (ix86_expand_builtin): Update
24092         incorrect hint operand error message.
24094 2014-03-04  Richard Biener  <rguenther@suse.de>
24096         * lto-section-in.c (lto_get_section_data): Fix const cast.
24098 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
24100         * tree-streamer.c (record_common_node): Assert we don't record
24101         nodes with type double.
24102         (preload_common_node): Skip type double, complex double and double
24103         pointer since it is now frontend dependent due to fshort-double option.
24105 2014-03-04  Richard Biener  <rguenther@suse.de>
24107         PR lto/60405
24108         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
24109         (lto_input_toplevel_asms): Likewise.
24110         * lto-section-in.c (lto_get_section_data): Instead do it here
24111         for every section.
24113 2014-03-04  Richard Biener  <rguenther@suse.de>
24115         PR tree-optimization/60382
24116         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
24117         dead PHIs a reduction.
24119 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
24121         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
24122         hint value.
24123         (_mm_prefetch): Move out of GCC target("sse") pragma.
24124         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
24125         GCC target("prfchw") pragma.
24126         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
24127         for locality <= 2.
24128         * config/i386/i386.c (ix86_option_override_internal): Enable
24129         -mprfchw with -mprefetchwt1.
24131 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
24133         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
24134         Mark as varying.
24136 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
24138         * opts.h (CL_PCH_IGNORE): Define.
24139         * targhooks.c (option_affects_pch_p):
24140         Return false for options that have CL_PCH_IGNORE set.
24141         * opt-functions.awk: Process PchIgnore.
24142         * doc/options.texi: Document PchIgnore.
24144         * config/arc/arc.opt (misize): Add PchIgnore property.
24146 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24148         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
24149         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
24150         constraint on constants to permit them being loaded into
24151         GENERAL_REGS or BASE_REGS.
24153 2014-03-03  Nick Clifton  <nickc@redhat.com>
24155         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
24156         anti-cacnonical alternatives.
24157         (negandhi3_real): New pattern.
24158         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
24160 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
24162         * config/avr/avr-mcus.def: Remove atxmega16x1.
24163         * config/avr/avr-tables.opt: Regenerate.
24164         * config/avr/t-multilib: Regenerate.
24165         * doc/avr-mmcu.texi: Regenerate.
24167 2014-03-03  Tobias Grosser  <tobias@grosser.es>
24168             Mircea Namolaru  <mircea.namolaru@inria.fr>
24170         PR tree-optimization/58028
24171         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
24172         scalar dimensions.
24174 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24176         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
24177         not handled by recognizers.
24179 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
24181         PR middle-end/60175
24182         * function.c (expand_function_end): Don't emit
24183         clobber_return_register sequence if clobber_after is a BARRIER.
24184         * cfgexpand.c (construct_exit_block): Append instructions before
24185         return_label to prev_bb.
24187 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24189         * config/rs6000/constraints.md: Document reserved use of "wc".
24191 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
24193         PR ipa/60150
24194         * ipa.c (function_and_variable_visibility): When dissolving comdat
24195         group, also set all symbols to local.
24197 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
24199         PR ipa/60306
24201         Revert:
24202         2013-12-14  Jan Hubicka  <jh@suse.cz>
24203         PR middle-end/58477
24204         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
24206 2014-03-02  Jon Beniston  <jon@beniston.com>
24208         PR bootstrap/48230
24209         PR bootstrap/50927
24210         PR bootstrap/52466
24211         PR target/46898
24212         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
24213           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
24214         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
24215         (simple_return, *simple_return): New patterns
24216         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
24217         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
24219 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
24221         * dwarf2out.c (gen_subprogram_die): Tidy.
24223 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
24225         PR target/60071
24226         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
24227         (*mov_t_msb_neg_negc): ... this new insn.
24229 2014-02-28  Jason Merrill  <jason@redhat.com>
24231         PR c++/58678
24232         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
24233         function.
24235 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
24237         PR c++/60314
24238         * dwarf2out.c (decltype_auto_die): New static.
24239         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
24240         (gen_type_die_with_usage): Handle 'decltype(auto)'.
24241         (is_cxx_auto): Likewise.
24243 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
24245         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
24246         we are not using general regs only.
24248 2014-02-28  Richard Biener  <rguenther@suse.de>
24250         PR target/60280
24251         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
24252         previous fix and only allow to remove trivial pre-headers
24253         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
24254         (remove_forwarder_block): Properly update the latch of a loop.
24256 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24258         PR debug/59992
24259         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
24260         (cselib_preserved_hash_table): New.
24261         (preserve_constants_and_equivs): Move preserved vals to it.
24262         (cselib_find_slot): Look it up first.
24263         (cselib_init): Initialize it.
24264         (cselib_finish): Release it.
24265         (dump_cselib_table): Dump it.
24267 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24269         PR debug/59992
24270         * cselib.c (remove_useless_values): Skip to avoid quadratic
24271         behavior if the condition moved from...
24272         (cselib_process_insn): ... here holds.
24274 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24276         PR debug/57232
24277         * var-tracking.c (vt_initialize): Apply the same condition to
24278         preserve the CFA base value.
24280 2014-02-28  Joey Ye  <joey.ye@arm.com>
24282         PR target/PR60169
24283         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
24284         if reload in progress or completed.
24286 2014-02-28  Tobias Burnus  <burnus@net-b.de>
24288         PR middle-end/60147
24289         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
24290         NAMELIST_DECL.
24292 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
24294         * doc/tm.texi.in (Condition Code Status): Update documention for
24295         relative locations of cc0-setter and cc0-user.
24297 2014-02-27  Jeff Law  <law@redhat.com>
24299         PR rtl-optimization/52714
24300         * combine.c (try_combine): When splitting an unrecognized PARALLEL
24301         into two independent simple sets, if I3 is a jump, ensure the
24302         pattern we place into I3 is a (set (pc) ...).
24304 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
24305             Jeff Law  <law@redhat.com>
24307         PR rtl-optimization/49847
24308         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
24309         are in different blocks.
24310         * doc/tm.texi (Condition Code Status): Update documention for
24311         relative locations of cc0-setter and cc0-user.
24313 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
24315         PR target/59222
24316         * lra.c (lra_emit_add): Check SUBREG too.
24318 2014-02-27  Andreas Schwab  <schwab@suse.de>
24320         * config/m68k/m68k.c (m68k_option_override): Disable
24321         -flive-range-shrinkage for classic m68k.
24322         (m68k_override_options_after_change): Likewise.
24324 2014-02-27  Marek Polacek  <polacek@redhat.com>
24326         PR middle-end/59223
24327         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
24328         -Wmaybe-uninitialized.
24330 2014-02-27  Alan Modra  <amodra@gmail.com>
24332         PR target/57936
24333         * reload1.c (emit_input_reload_insns): When reload_override_in,
24334         set old to rl->in_reg when rl->in_reg is a subreg.
24336 2014-02-26  Richard Biener  <rguenther@suse.de>
24338         PR bootstrap/60343
24339         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
24341 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
24343         * common/config/i386/predicates.md (const1256_operand): Remove.
24344         (const2356_operand): New.
24345         (const_1_to_2_operand): Remove.
24346         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24347         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24348         (*avx512pf_gatherpf<mode>sf): Ditto.
24349         (avx512pf_gatherpf<mode>df): Ditto.
24350         (*avx512pf_gatherpf<mode>df_mask): Ditto.
24351         (*avx512pf_gatherpf<mode>df): Ditto.
24352         (avx512pf_scatterpf<mode>sf): Ditto.
24353         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24354         (*avx512pf_scatterpf<mode>sf): Ditto.
24355         (avx512pf_scatterpf<mode>df): Ditto.
24356         (*avx512pf_scatterpf<mode>df_mask): Ditto.
24357         (*avx512pf_scatterpf<mode>df): Ditto.
24358         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
24360 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
24362         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
24363         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
24364         (_mm512_mask_testn_epi64_mask): Move to ...
24365         * config/i386/avx512cdintrin.h: Here.
24366         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
24367         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
24368         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
24369         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
24370         TARGET_AVX512F from TARGET_AVX512CD.
24372 2014-02-26  Richard Biener  <rguenther@suse.de>
24374         PR ipa/60327
24375         * ipa.c (walk_polymorphic_call_targets): Properly guard
24376         call to inline_update_overall_summary.
24378 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
24380         PR target/60280
24381         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
24382         and latches only if requested.  Fix latch if it is removed.
24383         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
24384         LOOPS_HAVE_PREHEADERS.
24386 2014-02-25  Andrew Pinski  <apinski@cavium.com>
24388         * builtins.c (expand_builtin_thread_pointer): Create a new target
24389         when the target is NULL.
24391 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
24393         PR rtl-optimization/60317
24394         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24395         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24396         * lra-assigns.c: Include params.h.
24397         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
24398         other reload pseudos considerations.
24400 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24402         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
24403         to use canonical form for nor<mode>3.
24405 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24407         PR target/55426
24408         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
24409         conversions.
24411 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
24413         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
24414         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
24415         (ix86_handle_option): Handle OPT_mprefetchwt1.
24416         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
24417         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24418         PREFETCHWT1 CPUID.
24419         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24420         OPTION_MASK_ISA_PREFETCHWT1.
24421         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
24422         (PTA_PREFETCHWT1): New.
24423         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
24424         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
24425         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
24426         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
24427         (*prefetch_avx512pf_<mode>_: Change into ...
24428         (*prefetch_prefetchwt1_<mode>: This.
24429         * config/i386/i386.opt (mprefetchwt1): New.
24430         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
24431         (_mm_prefetch): Handle intent to write.
24432         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
24434 2014-02-25  Richard Biener  <rguenther@suse.de>
24436         PR middle-end/60291
24437         * emit-rtl.c (mem_attrs_htab): Remove.
24438         (mem_attrs_htab_hash): Likewise.
24439         (mem_attrs_htab_eq): Likewise.
24440         (set_mem_attrs): Always allocate new mem-attrs when something changed.
24441         (init_emit_once): Do not allocate mem_attrs_htab.
24443 2014-02-25  Richard Biener  <rguenther@suse.de>
24445         PR lto/60319
24446         * lto-opts.c (lto_write_options): Output non-explicit conservative
24447         -fwrapv, -fno-trapv and -fno-strict-overflow.
24448         * lto-wrapper.c (merge_and_complain): Handle merging those options.
24449         (run_gcc): And pass them through.
24451 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
24453         * sel-sched.c (calculate_new_fences): New parameter ptime.
24454         Calculate it as a maximum over all fence cycles.
24455         (sel_sched_region_2): Adjust the call to calculate_new_fences.
24456         Print the final schedule timing when sched_verbose.
24458 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
24460         PR rtl-optimization/60292
24461         * sel-sched.c (fill_vec_av_set): Do not reset target availability
24462         bit fot the fence instruction.
24464 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
24466         * calls.h: Fix typo in comment.
24468 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
24470         * config/pa/pa.c (pa_output_move_double): Don't valididate when
24471         adjusting offsetable addresses.
24473 2014-02-24  Guozhi Wei  <carrot@google.com>
24475         * sparseset.h (sparseset_pop): Fix the wrong index.
24477 2014-02-24  Walter Lee  <walt@tilera.com>
24479         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
24480         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
24481         triplet.
24482         * common/config/tilegx/tilegx-common.c
24483         (TARGET_DEFAULT_TARGET_FLAGS): Define.
24484         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
24485         (LINK_SPEC): Ditto.
24486         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
24487         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
24488         (tilegx_gimplify_va_arg_expr): Handle big endian.
24489         (tilegx_expand_unaligned_load): Ditto.
24490         (tilegx_expand_unaligned_store): Ditto.
24491         (TARGET_RETURN_IN_MSB): New.
24492         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
24493         (TARGET_ENDIAN_DEFAULT): New.
24494         (TARGET_BIG_ENDIAN): Handle big endian.
24495         (BYTES_BIG_ENDIAN): Ditto.
24496         (WORDS_BIG_ENDIAN): Ditto.
24497         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
24498         (ENDIAN_SPEC): New.
24499         (EXTRA_SPECS): New.
24500         * config/tilegx/tilegx.md (extv): Handle big endian.
24501         (extzv): Ditto.
24502         (insn_st<n>): Ditto.
24503         (insn_st<n>_add<bitsuffix>): Ditto.
24504         (insn_stnt<n>): Ditto.
24505         (insn_stnt<n>_add<bitsuffix>):Ditto.
24506         (vec_interleave_highv8qi): Handle big endian.
24507         (vec_interleave_highv8qi_be): New.
24508         (vec_interleave_highv8qi_le): New.
24509         (insn_v1int_h): Handle big endian.
24510         (vec_interleave_lowv8qi): Handle big endian.
24511         (vec_interleave_lowv8qi_be): New.
24512         (vec_interleave_lowv8qi_le): New.
24513         (insn_v1int_l): Handle big endian.
24514         (vec_interleave_highv4hi): Handle big endian.
24515         (vec_interleave_highv4hi_be): New.
24516         (vec_interleave_highv4hi_le): New.
24517         (insn_v2int_h): Handle big endian.
24518         (vec_interleave_lowv4hi): Handle big endian.
24519         (vec_interleave_lowv4hi_be): New.
24520         (vec_interleave_lowv4hi_le): New.
24521         (insn_v2int_l): Handle big endian.
24522         (vec_interleave_highv2si): Handle big endian.
24523         (vec_interleave_highv2si_be): New.
24524         (vec_interleave_highv2si_le): New.
24525         (insn_v4int_h): Handle big endian.
24526         (vec_interleave_lowv2si): Handle big endian.
24527         (vec_interleave_lowv2si_be): New.
24528         (vec_interleave_lowv2si_le): New.
24529         (insn_v4int_l): Handle big endian.
24530         * config/tilegx/tilegx.opt (mbig-endian): New option.
24531         (mlittle-endian): New option.
24532         * doc/install.texi: Document tilegxbe-linux.
24533         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
24535 2014-02-24  Martin Jambor  <mjambor@suse.cz>
24537         PR ipa/60266
24538         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
24539         there are no parameter descriptors.
24541 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
24543         PR rtl-optimization/60268
24544         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
24545         initialization to ...
24546         (sched_rgn_init): ... here.
24547         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
24549 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
24551         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
24552         names.
24554 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
24556         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
24557         definition.
24559 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
24561         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
24562         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
24564 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
24566         * config/microblaze/predicates.md: Add cmp_op predicate.
24567         * config/microblaze/microblaze.md: Add branch_compare instruction
24568         which uses cmp_op predicate and emits cmp insn before branch.
24569         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
24570         to microblaze_expand_conditional_branch and consolidate logic.
24571         (microblaze_expand_conditional_branch): emit branch_compare
24572         insn instead of handling cmp op separate from branch insn.
24574 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24576         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
24577         to permit subregs.
24579 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24581         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
24582         define_insn with define_expand and new define_insn
24583         *altivec_lve<VI_char>x_internal.
24584         (altivec_stve<VI_char>x): Replace define_insn with define_expand
24585         and new define_insn *altivec_stve<VI_char>x_internal.
24586         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
24587         prototype.
24588         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
24589         lve*x built-ins.
24590         (altivec_expand_stvex_be): New function.
24592 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
24594         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
24595         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
24596         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
24597         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
24599 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
24601         PR target/60298
24602         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
24603         instead of emit_move_insn.
24605 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24607         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
24608         vspltw with vsldoi.
24609         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
24610         gen_altivec_vsumsws.
24612 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24614         * config/rs6000/altivec.md (altivec_lvxl): Rename as
24615         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
24616         (altivec_lvxl_<mode>): New define_expand incorporating
24617         -maltivec=be semantics where needed.
24618         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
24619         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
24620         semantics where needed.
24621         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
24622         (altivec_stvx_<mode>): New define_expand incorporating
24623         -maltivec=be semantics where needed.
24624         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
24625         VM2 iterator instead of V4SI.
24626         (altivec_stvxl_<mode>): New define_expand incorporating
24627         -maltivec=be semantics where needed.
24628         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
24629         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
24630         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
24631         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
24632         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
24633         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
24634         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
24635         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
24636         ALTIVEC_BUILTIN_STVXL.
24637         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
24638         (altivec_expand_stvx_be): Likewise.
24639         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
24640         (altivec_expand_lvx_be): Likewise.
24641         (altivec_expand_stvx_be): Likewise.
24642         (altivec_expand_builtin): Add cases for
24643         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
24644         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
24645         (altivec_init_builtins): Add definitions for
24646         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
24647         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
24649 2014-02-21  Catherine Moore  <clm@codesourcery.com>
24651         * doc/invoke.texi (mvirt, mno-virt): Document.
24652         * config/mips/mips.opt (mvirt): New option.
24653         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
24655 2014-02-21  Richard Biener  <rguenther@suse.de>
24657         PR tree-optimization/60276
24658         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
24659         (STMT_VINFO_MIN_NEG_DIST): New macro.
24660         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
24661         STMT_VINFO_MIN_NEG_DIST.
24662         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
24663         made for negative dependence distances still hold.
24665 2014-02-21  Richard Biener  <rguenther@suse.de>
24667         PR middle-end/60291
24668         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
24669         DECL_INITIAL for globals not in the current function context.
24671 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
24673         PR tree-optimization/56490
24674         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
24675         * tree-ssa-uninit.c: Include params.h.
24676         (compute_control_dep_chain): Add num_calls argument, return false
24677         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
24678         num_calls to recursive call.
24679         (find_predicates): Change dep_chain into normal array,
24680         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
24681         variable and adjust compute_control_dep_chain caller.
24682         (find_def_preds): Likewise.
24684 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
24686         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
24687         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
24689 2014-02-21  Nick Clifton  <nickc@redhat.com>
24691         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
24692         (pushhi1): Likewise.
24693         (popqi1): Add mode to pre_dec.
24694         (pophi1): Likewise.
24696 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
24698         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
24699         mode for mask of V8SFmode permutation.
24701 2014-02-20  Richard Henderson  <rth@redhat.com>
24703         PR c++/60272
24704         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
24705         a new pseudo for OLDVAL.
24707 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
24709         PR target/57896
24710         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
24711         gen_reg_rtx if d->testing_p.
24712         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
24713         if d->testing_p and we will certainly return true.
24714         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
24715         if d->testing_p.
24717 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
24719         * emit-rtl.c (gen_reg_rtx): Assert that
24720         crtl->emit.regno_pointer_align_length is non-zero.
24722 2014-02-20  Richard Henderson  <rth@redhat.com>
24724         PR c++/60272
24725         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
24726         on failure the store back into EXPECT.
24728 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
24729             Sandra Loosemore  <sandra@codesourcery.com>
24731         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
24732         * config/nios2/nios2.c (nios2_function_profiler): Add
24733         -fPIC (flag_pic == 2) support.
24734         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
24735         (nios2_large_offset_p): New function.
24736         (nios2_unspec_reloc_p): Move up position, update to use
24737         nios2_large_offset_p.
24738         (nios2_unspec_address): Remove function.
24739         (nios2_unspec_offset): New function.
24740         (nios2_large_got_address): New function.
24741         (nios2_got_address): Add large offset support.
24742         (nios2_legitimize_tls_address): Update usage of removed and new
24743         functions.
24744         (nios2_symbol_binds_local_p): New function.
24745         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
24746         (nios2_legitimize_address): Update to use nios2_large_offset_p.
24747         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
24748         (nios2_print_operand): Merge H/L processing, add hiadj/lo
24749         processing for (const (unspec ...)).
24750         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
24752 2014-02-20  Richard Biener  <rguenther@suse.de>
24754         * tree-cfg.c (replace_uses_by): Mark altered BBs before
24755         doing the substitution.
24756         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
24758 2014-02-20  Martin Jambor  <mjambor@suse.cz>
24760         PR ipa/55260
24761         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
24762         info when checking whether lattices are bottom.
24764 2014-02-20  Richard Biener  <rguenther@suse.de>
24766         PR middle-end/60221
24767         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
24768         regions at -O0.
24770 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
24772         PR ipa/58555
24773         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
24774         parameter specifying the scaling.
24775         (inline_call): Update.
24776         (want_inline_recursively): Guard division by zero.
24777         (recursive_inlining): Update.
24778         * ipa-inline.h (clone_inlined_nodes): Update.
24780 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
24782         PR target/60204
24783         * config/i386/i386.c (classify_argument): Pass structures of size
24784         64 bytes or less in register.
24786 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
24787             Kirill Yukhin  <kirill.yukhin@intel.com>
24789         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
24790         (_mm_rcp28_round_ss): Ditto.
24791         (_mm_rsqrt28_round_sd): Ditto.
24792         (_mm_rsqrt28_round_ss): Ditto.
24793         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
24794         (_mm_rcp14_round_ss): Ditto.
24795         (_mm_rsqrt14_round_sd): Ditto.
24796         (_mm_rsqrt14_round_ss): Ditto.
24797         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
24798         the first input operand, get rid of match_dup.
24799         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
24800         attribute to sse.
24801         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
24802         Ditto.
24803         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
24804         operand as the first input operand, set type attribute.
24805         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
24806         Set type attribute.
24807         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
24808         operand as the first input operand, set type attribute.
24810 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24812         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
24813         bit of zero.
24815 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
24817         PR target/60207
24818         * config/i386/i386.c (construct_container): Remove TFmode check
24819         for X86_64_INTEGER_CLASS.
24821 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
24823         PR target/59794
24824         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
24825         only when -Wpsabi is enabled.
24827 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
24829          PR target/59799
24830         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
24831         passing arrays in registers are the same as for structs, so remove the
24832         special case for them.
24834 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
24836         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
24837         destination type, extract only the valid bits if the source type is not
24838         integral and has a different mode.
24840 2014-02-19  Richard Biener  <rguenther@suse.de>
24842         PR ipa/60243
24843         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
24844         for all calls.
24846 2014-02-19  Richard Biener  <rguenther@suse.de>
24848         PR ipa/60243
24849         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
24850         (ipa_modify_call_arguments): Emit an argument load explicitely and
24851         preserve virtual SSA form there and for the replacement call.
24852         Do not update SSA form nor free dominance info.
24854 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
24856         * ipa.c (function_and_variable_visibility): Also clear WEAK
24857         flag when disolving COMDAT_GROUP.
24859 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
24861         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
24862         * ipa-prop.c (ipa_set_jf_known_type): Return early when
24863         not devirtualizing.
24864         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
24865         do more sanity checks.
24866         (detect_type_change): Return true when giving up early.
24867         (compute_complex_assign_jump_func): Fix type parameter of
24868         ipa_set_ancestor_jf.
24869         (compute_complex_ancestor_jump_func): Likewise.
24870         (update_jump_functions_after_inlining): Fix updating of
24871         ancestor function.
24872         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
24874 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
24876         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
24877         inline clones when edge disappears.
24879 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
24881         PR target/60203
24882         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
24883         Split 64-bit moves into 2 patterns.  Do not allow the use of
24884         direct move for TDmode in little endian, since the decimal value
24885         has little endian bytes within a word, but the 64-bit pieces are
24886         ordered in a big endian fashion, and normal subreg's of TDmode are
24887         not allowed.
24888         (mov<mode>_64bit_dm): Likewise.
24889         (movtd_64bit_nodm): Likewise.
24891 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
24893         PR tree-optimization/60174
24894         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
24895         statement of an SSA_NAME that occurs in an abnormal PHI node.
24897 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
24899         PR sanitizer/60142
24900         * final.c (SEEN_BB): Remove.
24901         (SEEN_NOTE, SEEN_EMITTED): Renumber.
24902         (final_scan_insn): Don't force_source_line on second
24903         NOTE_INSN_BASIC_BLOCK.
24905 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
24907         PR target/60205
24908         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
24909         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
24910         (type_natural_mode): Warn ABI change when %zmm register is not
24911         available for AVX512F vector value passing.
24913 2014-02-18  Kai Tietz  <ktietz@redhat.com>
24915         PR target/60193
24916         * config/i386/i386.c (ix86_expand_prologue): Use value in
24917         rax register as displacement when restoring %r10 or %rax.
24918         Fix wrong offset when restoring both registers.
24920 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
24922         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
24923         assertion with conditional return.
24925 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
24926             Uros Bizjak  <ubizjak@gmail.com>
24928         PR driver/60233
24929         * config/i386/driver-i386.c (host_detect_local_cpu): If
24930         YMM state is not saved by the OS, also clear has_f16c.  Move
24931         CPUID 0x80000001 handling before YMM state saving checking.
24933 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
24935         PR rtl-optimization/58960
24936         * haifa-sched.c (alloc_global_sched_pressure_data): New,
24937         factored out from ...
24938         (sched_init): ... here.
24939         (free_global_sched_pressure_data): New, factored out from ...
24940         (sched_finish): ... here.
24941         * sched-int.h (free_global_sched_pressure_data): Declare.
24942         * sched-rgn.c (nr_regions_initial): New static global.
24943         (haifa_find_rgns): Initialize it.
24944         (schedule_region): Disable sched-pressure for the newly
24945         generated regions.
24947 2014-02-17  Richard Biener  <rguenther@suse.de>
24949         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
24950         release SSA defs of pattern stmts.
24952 2014-02-17  Richard Biener  <rguenther@suse.de>
24954         * tree-inline.c (expand_call_inline): Release the virtual
24955         operand defined by the call we are about to inline.
24957 2014-02-17  Richard Biener  <rguenther@suse.de>
24959         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
24961 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
24962             Ilya Tocar  <ilya.tocar@intel.com>
24964         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
24965         arguments order in builtin.
24966         (_mm512_permutexvar_epi64): Ditto.
24967         (_mm512_mask_permutexvar_epi64): Ditto
24968         (_mm512_maskz_permutexvar_epi32): Ditto
24969         (_mm512_permutexvar_epi32): Ditto
24970         (_mm512_mask_permutexvar_epi32): Ditto
24972 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24974         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
24975         (p8_vmrgow): Likewise.
24977 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24979         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
24980         endian targets.
24982 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
24984         PR target/60203
24985         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
24986         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
24987         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
24988         using direct move instructions on ISA 2.07.  Also adjust
24989         instruction length for 64-bit.
24990         (mov<mode>_64bit, TFmode/TDmode): Likewise.
24991         (mov<mode>_32bit, TFmode/TDmode): Likewise.
24993 2014-02-15  Alan Modra  <amodra@gmail.com>
24995         PR target/58675
24996         PR target/57935
24997         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
24998         find_replacement on parts of insn rtl that might be reloaded.
25000 2014-02-15  Richard Biener  <rguenther@suse.de>
25002         PR tree-optimization/60183
25003         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
25004         (tree_ssa_phiprop): Calculate and free post-dominators.
25006 2014-02-14  Jeff Law  <law@redhat.com>
25008         PR rtl-optimization/60131
25009         * ree.c (get_extended_src_reg): New function.
25010         (combine_reaching_defs): Use it rather than assuming location of REG.
25011         (find_and_remove_re): Verify first operand of extension is
25012         a REG before adding the insns to the copy list.
25014 2014-02-14  Roland McGrath  <mcgrathr@google.com>
25016         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
25017         * configure: Regenerated.
25018         * config.in: Regenerated.
25019         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
25020         instead of ASM_SHORT.
25022 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
25023             Richard Earnshaw  <rearnsha@arm.com>
25025         PR rtl-optimization/59535
25026         * lra-constraints.c (process_alt_operands): Encourage alternative
25027         when unassigned pseudo class is superset of the alternative class.
25028         (inherit_reload_reg): Don't inherit when optimizing for code size.
25029         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
25030         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
25031         modes not less than 4 for Thumb1.
25033 2014-02-14  Kyle McMartin  <kyle@redhat.com>
25035         PR pch/60010
25036         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
25038 2014-02-14  Richard Biener  <rguenther@suse.de>
25040         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
25041         (get_frame_arg): Drop the assert with langhook types_compatible_p.
25042         Do not strip INDIRECT_REFs.
25044 2014-02-14  Richard Biener  <rguenther@suse.de>
25046         PR lto/60179
25047         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
25048         DECL_FUNCTION_SPECIFIC_TARGET.
25049         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
25050         * tree-streamer-out.c (pack_ts_target_option): Remove.
25051         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
25052         (write_ts_function_decl_tree_pointers): Do not stream
25053         DECL_FUNCTION_SPECIFIC_TARGET.
25054         * tree-streamer-in.c (unpack_ts_target_option): Remove.
25055         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
25056         (lto_input_ts_function_decl_tree_pointers): Do not stream
25057         DECL_FUNCTION_SPECIFIC_TARGET.
25059 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
25061         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
25062         (get_initial_def_for_induction, vectorizable_induction): Ignore
25063         debug stmts when looking for exit_phi.
25064         (vectorizable_live_operation): Fix up condition.
25066 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
25068         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
25069         nreverse() because it changes the content of original tree list.
25071 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
25073         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
25074         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
25076 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
25078         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
25079         GNU coding standards.
25081 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
25083         PR debug/60152
25084         * dwarf2out.c (gen_subprogram_die): Don't call
25085         add_calling_convention_attribute if subr_die is old_die.
25087 2014-02-13  Sharad Singhai  <singhai@google.com>
25089         * doc/optinfo.texi: Fix order of nodes.
25091 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
25093         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
25094         operands[2], not operands[3].
25096 2014-02-13  Richard Biener  <rguenther@suse.de>
25098         PR bootstrap/59878
25099         * doc/install.texi (ISL): Update recommended version to 0.12.2,
25100         mention the possibility of an in-tree build.
25101         (CLooG): Update recommended version to 0.18.1, mention the
25102         possibility of an in-tree build and clarify that the ISL
25103         bundled with CLooG does not work.
25105 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
25107         PR target/43546
25108         * expr.c (compress_float_constant): If x is a hard register,
25109         extend into a pseudo and then move to x.
25111 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25113         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
25114         caused by bad second argument to warning_at() with -mhotpatch and
25115         nested functions (e.g. with gfortran).
25117 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
25119         * opts.c (option_name): Remove "enabled by default" rider.
25121 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
25123         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
25125 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
25126             Uros Bizjak  <ubizjak@gmail.com>
25128         PR target/60151
25129         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
25130         * configure: Regenerated.
25132 2014-02-12  Richard Biener  <rguenther@suse.de>
25134         * vec.c (vec_prefix::calculate_allocation): Move as
25135         inline variant to vec.h.
25136         (vec_prefix::calculate_allocation_1): New out-of-line version.
25137         * vec.h (vec_prefix::calculate_allocation_1): Declare.
25138         (vec_prefix::m_has_auto_buf): Rename to ...
25139         (vec_prefix::m_using_auto_storage): ... this.
25140         (vec_prefix::calculate_allocation): Inline the easy cases
25141         and dispatch to calculate_allocation_1 which doesn't need the
25142         prefix address.
25143         (va_heap::reserve): Use gcc_checking_assert.
25144         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
25145         m_using_auto_storage.
25146         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
25147         member and adjust.
25148         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
25149         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
25150         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
25152 2014-02-12  Richard Biener  <rguenther@suse.de>
25154         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
25155         when we found a dependence.
25157 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
25159         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
25160         common code...
25161         (maybe_fold_stmt): ... into this new function.
25162         * omp-low.c (lower_omp): Update comment.
25164         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
25165         last use.
25167         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
25168         dereference.
25170 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
25172         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
25173         identifiers in comments.
25174         (cortexa53_extra_costs): Likewise.
25175         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
25176         (cortexa7_extra_costs): Likewise.
25177         (cortexa12_extra_costs): Likewise.
25178         (cortexa15_extra_costs): Likewise.
25179         (v7m_extra_costs): Likewise.
25181 2014-02-12  Richard Biener  <rguenther@suse.de>
25183         PR middle-end/60092
25184         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
25185         of posix_memalign being successful.
25186         (lower_stmt): Restrict lowering of posix_memalign to when
25187         -ftree-bit-ccp is enabled.
25189 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
25191         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
25192         arg_loc.
25193         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
25195 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
25197         PR rtl-optimization/60116
25198         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
25199         other_insn once the combination has been validated.
25201 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
25203         PR lto/59468
25204         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
25205         and wrapper.
25206         * ipa-devirt.c: Include demangle.h
25207         (odr_violation_reported): New static variable.
25208         (add_type_duplicate): Update odr_violations.
25209         (maybe_record_node): Add completep parameter; update it.
25210         (record_target_from_binfo): Add COMPLETEP parameter;
25211         update it as needed.
25212         (possible_polymorphic_call_targets_1): Likewise.
25213         (struct polymorphic_call_target_d): Add nonconstruction_targets;
25214         rename FINAL to COMPLETE.
25215         (record_targets_from_bases): Sanity check we found the binfo;
25216         fix COMPLETEP updating.
25217         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
25218         parameter, fix computing of COMPLETEP.
25219         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
25220         at LTO time do demangling.
25221         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
25222         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
25223         parameter.
25224         (gimple_get_virt_method_for_binfo): Likewise.
25225         * gimple-fold.h (gimple_get_virt_method_for_binfo,
25226         gimple_get_virt_method_for_vtable): Update prototypes.
25228 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
25230         PR target/49008
25231         * genautomata.c (add_presence_absence): Fix typo with
25232         {final_}presence_list.
25234 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
25236         PR target/60137
25237         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
25238         for VSX/Altivec vectors that land in GPR registers.
25240 2014-02-11  Richard Henderson  <rth@redhat.com>
25241             Jakub Jelinek  <jakub@redhat.com>
25243         PR debug/59776
25244         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
25245         around drhs if type conversion to lacc->type is not useless.
25247 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25249         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
25250         tuning struct.
25251         (cortex-a57.cortex-a53): Likewise.
25252         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
25254 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25256         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
25257         arm_restrict_it.
25259 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
25261         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
25262         add_options_for_arm_vfp3.
25264 2014-02-11  Jeff Law  <law@redhat.com>
25266         PR middle-end/54041
25267         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
25268         object with an undesirable mode.
25270 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25272         PR libgomp/60107
25273         * config/i386/sol2-9.h: New file.
25274         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
25275         *-*-solaris2.9*): Use it.
25277 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
25279         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
25280         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
25282 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
25284         * config/microblaze/microblaze.c: Extend mcpu version format
25286 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
25288         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
25290 2014-02-10  Richard Henderson  <rth@redhat.com>
25292         PR target/59927
25293         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
25294         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
25295         ms-abi vs -mno-accumulate-outgoing-args.
25296         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
25297         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
25298         respect to ms-abi.
25300 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25302         PR middle-end/60080
25303         * cfgexpand.c (expand_asm_operands): Attach source location to
25304         ASM_INPUT rtx objects.
25305         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
25307 2014-02-10  Nick Clifton  <nickc@redhat.com>
25309         * config/mn10300/mn10300.c (popcount): New function.
25310         (mn10300_expand_prologue): Include saved registers in stack usage
25311         count.
25313 2014-02-10  Jeff Law  <law@redhat.com>
25315         PR middle-end/52306
25316         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
25317         when changing the SET_DEST of a prior insn to avoid an input reload.
25319 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25321         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
25322         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
25323         -mcall-openbsd, or -mcall-linux.
25324         (CC1_ENDIAN_BIG_SPEC): Remove.
25325         (CC1_ENDIAN_LITTLE_SPEC): Remove.
25326         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25327         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
25328         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
25329         and %cc1_endian_default.
25330         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25332 2014-02-10  Richard Biener  <rguenther@suse.de>
25334         PR tree-optimization/60115
25335         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
25336         MEM_REF handling.  Properly verify that the accesses are not
25337         out of the objects bound.
25339 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25341         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
25342         coretex to cortex.
25344 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
25346         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
25347         proper constants and fix formatting.
25348         (possible_polymorphic_call_targets): Fix formatting.
25350 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
25351             Ilya Tocar  <ilya.tocar@intel.com>
25353         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
25354         (_mm512_loadu_epi32): Renamed into...
25355         (_mm512_loadu_si512): This.
25356         (_mm512_storeu_epi32): Renamed into...
25357         (_mm512_storeu_si512): This.
25358         (_mm512_maskz_ceil_ps): Removed.
25359         (_mm512_maskz_ceil_pd): Ditto.
25360         (_mm512_maskz_floor_ps): Ditto.
25361         (_mm512_maskz_floor_pd): Ditto.
25362         (_mm512_floor_round_ps): Ditto.
25363         (_mm512_floor_round_pd): Ditto.
25364         (_mm512_ceil_round_ps): Ditto.
25365         (_mm512_ceil_round_pd): Ditto.
25366         (_mm512_mask_floor_round_ps): Ditto.
25367         (_mm512_mask_floor_round_pd): Ditto.
25368         (_mm512_mask_ceil_round_ps): Ditto.
25369         (_mm512_mask_ceil_round_pd): Ditto.
25370         (_mm512_maskz_floor_round_ps): Ditto.
25371         (_mm512_maskz_floor_round_pd): Ditto.
25372         (_mm512_maskz_ceil_round_ps): Ditto.
25373         (_mm512_maskz_ceil_round_pd): Ditto.
25374         (_mm512_expand_pd): Ditto.
25375         (_mm512_expand_ps): Ditto.
25376         * config/i386/i386.c (ix86_builtins): Remove
25377         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
25378         (bdesc_args): Ditto.
25379         * config/i386/predicates.md (const1256_operand): New.
25380         (const_1_to_2_operand): Ditto.
25381         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
25382         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25383         (*avx512pf_gatherpf<mode>sf): Ditto.
25384         (avx512pf_gatherpf<mode>df): Ditto.
25385         (*avx512pf_gatherpf<mode>df_mask): Ditto.
25386         (*avx512pf_gatherpf<mode>df): Ditto.
25387         (avx512pf_scatterpf<mode>sf): Ditto.
25388         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25389         (*avx512pf_scatterpf<mode>sf): Ditto.
25390         (avx512pf_scatterpf<mode>df): Ditto.
25391         (*avx512pf_scatterpf<mode>df_mask): Ditto.
25392         (*avx512pf_scatterpf<mode>df): Ditto.
25393         (avx512f_expand<mode>): Removed.
25394         (<shift_insn><mode>3<mask_name>): Change predicate type.
25396 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
25398         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
25399         not at the end of datarefs vector use ordered_remove to avoid
25400         reordering datarefs vector.
25402         PR c/59984
25403         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
25404         mark local addressable non-static vars as GOVD_PRIVATE
25405         instead of GOVD_LOCAL.
25406         * omp-low.c (lower_omp_for): Move gimple_bind_vars
25407         and BLOCK_VARS of gimple_bind_block to new_stmt rather
25408         than copying them.
25410         PR middle-end/60092
25411         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
25412         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
25413         assume_aligned or alloc_align attributes.
25414         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
25415         arguments.  Handle also assume_aligned and alloc_align attributes.
25416         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
25417         calls to functions with assume_aligned or alloc_align attributes.
25418         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
25420 2014-02-08  Terry Guo  <terry.guo@arm.com>
25422         * doc/invoke.texi: Document ARM -march=armv7e-m.
25424 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
25426         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
25427         flag on __cilkrts_rethrow builtin.
25429         PR ipa/60026
25430         * ipa-cp.c (determine_versionability): Fail at -O0
25431         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
25432         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
25434         Revert:
25435         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
25437         PR ipa/60026
25438         * tree-inline.c (copy_forbidden): Fail for
25439         __attribute__((optimize (0))) functions.
25441 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
25443         * varpool.c: Include pointer-set.h.
25444         (varpool_remove_unreferenced_decls): Variables in other partitions
25445         will not be output; be however careful to not lose information
25446         about partitioning.
25448 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
25450         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
25451         lookup in the vtable constructor.
25453 2014-02-07  Jeff Law  <law@redhat.com>
25455         PR target/40977
25456         * config/m68k/m68k.md (ashldi_extsi): Turn into a
25457         define_insn_and_split.
25459         * ipa-inline.c (inline_small_functions): Fix typos.
25461 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25463         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
25464         (s390_can_use_return_insn): Declare.
25465         * config/s390/s390.h (EPILOGUE_USES): Define.
25466         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
25467         instructions.
25468         (s390_chunkify_start): Handle return JUMP_LABELs.
25469         (s390_early_mach): Emit a main_pool instruction on the entry edge.
25470         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
25471         (s390_can_use_return_insn): New functions.
25472         (s390_fix_long_loop_prediction): Handle conditional returns.
25473         (TARGET_SET_UP_BY_PROLOGUE): Define.
25474         * config/s390/s390.md (ANY_RETURN): New code iterator.
25475         (*creturn, *csimple_return, return, simple_return): New patterns.
25477 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25479         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
25480         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
25481         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
25482         REG_CFA_RESTORE list when deciding not to restore a register.
25484 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25486         * config/s390/s390.c: Include tree-pass.h and context.h.
25487         (s390_early_mach): New function, split out from...
25488         (s390_emit_prologue): ...here.
25489         (pass_data_s390_early_mach): New pass structure.
25490         (pass_s390_early_mach): New class.
25491         (s390_option_override): Create and register early_mach pass.
25492         Move to end of file.
25494 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25496         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
25497         to match for the exit block.
25499 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25501         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
25502         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
25503         Reject misaligned operands.
25505 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25507         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
25509 2014-02-07  Richard Biener  <rguenther@suse.de>
25511         PR middle-end/60092
25512         * gimple-low.c (lower_builtin_posix_memalign): New function.
25513         (lower_stmt): Call it to lower posix_memalign in a way
25514         to make alignment info accessible.
25516 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
25518         PR c++/60082
25519         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
25520         __builtin_setjmp_receiver.
25522 2014-02-07  Richard Biener  <rguenther@suse.de>
25524         PR middle-end/60092
25525         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
25526         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
25527         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25528         Handle BUILT_IN_POSIX_MEMALIGN.
25529         (find_func_clobbers): Likewise.
25530         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
25531         (call_may_clobber_ref_p_1): Likewise.
25533 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
25535         PR ipa/59918
25536         * ipa-devirt.c (record_target_from_binfo): Remove overactive
25537         sanity check.
25539 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
25541         PR ipa/59469
25542         * lto-cgraph.c (lto_output_node): Use
25543         symtab_get_symbol_partitioning_class.
25544         (lto_output_varpool_node): likewise.
25545         (symtab_get_symbol_partitioning_class): Move here from
25546         lto/lto-partition.c
25547         * cgraph.h (symbol_partitioning_class): Likewise.
25548         (symtab_get_symbol_partitioning_class): Declare.
25550 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
25552         * ggc.h (ggc_internal_cleared_alloc): New macro.
25553         * vec.h (vec_safe_copy): Handle memory stats.
25554         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
25555         * target-globals.c (save_target_globals): Likewise.
25557 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
25559         PR target/60077
25560         * expr.c (emit_move_resolve_push): Export; be bit more selective
25561         on when to clear alias set.
25562         * expr.h (emit_move_resolve_push): Declare.
25563         * function.h (struct function): Add tail_call_marked.
25564         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
25565         * config/i386/i386-protos.h (ix86_expand_push): Remove.
25566         * config/i386/i386.md (TImode move expander): De not call
25567         ix86_expand_push.
25568         (FP push expanders): Preserve memory attributes.
25569         * config/i386/sse.md (push<mode>1): Remove.
25570         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
25571         (ix86_expand_push): Remove.
25572         * config/i386/mmx.md (push<mode>1): Remove.
25574 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
25576         PR rtl-optimization/60030
25577         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
25578         lopart with paradoxical subreg before shifting it up by hprec.
25580 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25582         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
25583         Remove extra newline at end of file.
25584         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
25585         (arm_issue_rate): Handle cortexa57.
25586         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
25587         (cortex-a57.cortex-a53): Likewise.
25589 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
25591         PR target/59575
25592         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
25593         don't record in REG_FRAME_RELATED_EXPR registers not set in that
25594         bitmask.
25595         (arm_expand_prologue): Adjust all callers.
25596         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
25597         info, registers also at the lowest numbered registers side.  Use
25598         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
25599         XEXP.
25601         PR debug/59992
25602         * var-tracking.c (adjust_mems): Before adding a SET to
25603         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
25605 2014-02-06  Alan Modra  <amodra@gmail.com>
25607         PR target/60032
25608         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
25609         change SDmode to DDmode when lra_in_progress.
25611 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
25613         PR middle-end/59150
25614         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
25615         free_data_ref on the dr first, and before goto again also set dr
25616         to the next dr.  For simd_lane_access, free old datarefs[i] before
25617         overwriting it.  For get_vectype_for_scalar_type failure, don't
25618         free_data_ref if simd_lane_access.
25620         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
25622         PR target/60062
25623         * tree.h (opts_for_fn): New inline function.
25624         (opt_for_fn): Define.
25625         * config/i386/i386.c (ix86_function_regparm): Use
25626         opt_for_fn (decl, optimize) instead of optimize.
25628 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25630         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
25631         for SYMBOL_REF in large memory model.
25633 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25635         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
25636         and crypto support.
25637         (cortex-a57): Likewise.
25638         (cortex-a57.cortex-a53): Likewise.
25640 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
25641             Kugan Vivekanandarajah  <kuganv@linaro.org>
25643         * config/arm/arm.c (arm_vector_alignment_reachable): Check
25644         unaligned_access.
25645         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
25647 2014-02-06  Richard Biener  <rguenther@suse.de>
25649         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
25650         set_loop_copy and initialize_original_copy_tables.
25652 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
25654         * config/aarch64/aarch64-simd.md
25655         (aarch64_ashr_simddi): Change QI to SI.
25657 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
25658             Jakub Jelinek  <jakub@redhat.com>
25660         PR middle-end/60013
25661         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
25662         of the dataflow.
25664 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25666         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
25667         CODE_FOR_altivec_vpku[hw]um to
25668         CODE_FOR_altivec_vpku[hw]um_direct.
25669         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
25670         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
25671         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
25672         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
25674 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25676         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
25677         generation for -maltivec=be.
25678         (altivec_vsumsws): Simplify redundant test.
25680 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25682         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
25683         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
25684         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
25685         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
25686         gen_altivec_vpkuwum.
25687         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
25688         BYTES_BIG_ENDIAN.
25689         (altivec_vpks<VI_char>ss): Likewise.
25690         (altivec_vpks<VI_char>us): Likewise.
25691         (altivec_vpku<VI_char>us): Likewise.
25692         (altivec_vpku<VI_char>um): Likewise.
25693         (altivec_vpku<VI_char>um_direct): New (copy of
25694         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
25695         internal use).
25696         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
25697         target is little endian and -maltivec=be is not specified.
25698         (*altivec_vupkhs<VU_char>_direct): New (copy of
25699         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
25700         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
25701         target is little endian and -maltivec=be is not specified.
25702         (*altivec_vupkls<VU_char>_direct): New (copy of
25703         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
25704         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
25705         little endian and -maltivec=be is not specified.
25706         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
25707         little endian and -maltivec=be is not specified.
25709 2014-02-05  Richard Henderson  <rth@redhat.com>
25711         PR debug/52727
25712         * combine-stack-adj.c: Revert r206943.
25713         * sched-int.h (struct deps_desc): Add last_args_size.
25714         * sched-deps.c (init_deps): Initialize it.
25715         (sched_analyze_insn): Add OUTPUT dependencies between insns that
25716         contain REG_ARGS_SIZE notes.
25718 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
25720         * lto-cgraph.c (asm_nodes_output): Make global.
25721         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
25722         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
25723         (driver_handle_option): Handle OPT_fwpa.
25725 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
25727         PR ipa/59947
25728         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
25729         a comment typo and formatting issue.  If odr_hash hasn't been
25730         created, return vNULL and set *completep to false.
25732         PR middle-end/57499
25733         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
25734         bb with no successors.
25736 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
25738         PR target/59718
25739         * doc/invoke.texi (-march): Clarify documentation for ARM.
25740         (-mtune): Likewise.
25741         (-mcpu): Likewise.
25743 2014-02-05  Richard Biener  <rguenther@suse.de>
25745         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
25746         when not vectorizing because of too many alias checks.
25747         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
25748         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
25750 2014-02-05  Nick Clifton  <nickc@redhat.com>
25752         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
25753         accept extended registers in any mode when compiling for the MN10300.
25755 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
25757         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
25758         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
25759         sanitization attributes.
25760         (can_inline_edge_p): Likewise.
25761         (sanitize_attrs_match_for_inline_p): New function.
25763 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
25765         * ipa-prop.c (detect_type_change): Shor circuit testing of
25766         type changes on THIS pointer.
25768 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
25770         PR target/59777
25771         * config/pa/pa.c (legitimize_tls_address): Return original address
25772         if not passed a SYMBOL_REF rtx.
25773         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
25774         addresses.
25775         (pa_emit_move_sequence): Simplify TLS source operands.
25776         (pa_legitimate_constant_p): Reject all TLS constants.
25777         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
25778         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
25780 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
25782         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
25783         groups when we know they are controlled by LTO.
25784         * varasm.c (default_binds_local_p_1): If object is in other partition,
25785         it will be resolved locally.
25787 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25789         * config/host-linux.c (linux_gt_pch_use_address): Don't
25790         use SSIZE_MAX because it is not always defined.
25792 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
25794         PR bootstrap/59913
25795         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
25796         threshold for pseudo splitting.
25797         (update_ebb_live_info): Process call argument hard registers and
25798         hard registers from insn definition too.
25799         (max_small_class_regs_num): New constant.
25800         (inherit_in_ebb): Update live hard regs through EBBs.  Update
25801         reloads_num only for small register classes.  Don't split for
25802         outputs of jumps.
25804 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
25806         PR ipa/60058
25807         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
25808         is non-null.
25810 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
25812         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
25813         visibility is safe.
25815 2014-02-04  Marek Polacek  <polacek@redhat.com>
25817         * gdbinit.in (pel): Define.
25819 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25821         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
25822         behavior.
25824 2014-02-04  Richard Biener  <rguenther@suse.de>
25826         PR lto/59723
25827         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
25828         in function context local.
25829         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
25830         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
25831         similar to LTO_imported_decl_ref.
25833 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
25835         PR tree-optimization/60002
25836         * cgraphclones.c (build_function_decl_skip_args): Clear
25837         DECL_LANG_SPECIFIC.
25839         PR tree-optimization/60023
25840         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
25841         false to gsi_replace.
25842         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
25843         has been in some EH region and vec_stmt could throw, add
25844         vec_stmt into the same EH region.
25845         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
25846         has no lhs, ignore it.
25847         * internal-fn.c (expand_MASK_LOAD): Likewise.
25849         PR ipa/60026
25850         * tree-inline.c (copy_forbidden): Fail for
25851         __attribute__((optimize (0))) functions.
25853         PR other/58712
25854         * omp-low.c (simd_clone_struct_copy): If from->inbranch
25855         is set, copy one less argument.
25856         (expand_simd_clones): Don't subtract clone_info->inbranch
25857         from simd_clone_struct_alloc argument.
25859         PR rtl-optimization/57915
25860         * recog.c (simplify_while_replacing): If all unary/binary/relational
25861         operation arguments are constant, attempt to simplify those.
25863         PR middle-end/59261
25864         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
25865         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
25867 2014-02-04  Richard Biener  <rguenther@suse.de>
25869         PR tree-optimization/60012
25870         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
25871         TBAA disambiguation to all DDRs.
25873 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25875         PR target/59788
25876         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
25877         (LINK_SPEC): Use it for -shared, -shared-libgcc.
25879 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
25881         PR ipa/59882
25882         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
25884 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
25886         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
25887         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
25889 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
25891         PR ipa/59831
25892         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
25893         to figure out targets of polymorphic calls with known decl.
25894         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25895         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
25896         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
25897         (get_polymorphic_call_info): ... here.
25898         (get_polymorphic_call_info_from_invariant): New function.
25900 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
25902         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
25903         lookup via vtable pointer; check for type consistency
25904         and turn inconsitent facts into UNREACHABLE.
25905         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25906         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
25907         type inconsistent querries; return UNREACHABLE instead.
25909 2014-02-03  Richard Henderson  <rth@twiddle.net>
25911         PR tree-opt/59924
25912         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
25913         already processed this node.
25914         (normalize_one_pred_1): Pass along mark_set.
25915         (normalize_one_pred): Create and destroy a pointer_set_t.
25916         (normalize_one_pred_chain): Likewise.
25918 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
25920         PR gcov-profile/58602
25921         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
25923 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
25925         PR ipa/59831
25926         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
25927         -fno-devirtualize; try to devirtualize by the knowledge of
25928         virtual table pointer given by aggregate propagation.
25929         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
25930         (ipa_print_node_jump_functions): Dump also offset that
25931         is relevant for polymorphic calls.
25932         (determine_known_aggregate_parts): Add arg_type parameter; use it
25933         instead of determining the type from pointer type.
25934         (ipa_compute_jump_functions_for_edge): Update call of
25935         determine_known_aggregate_parts.
25936         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
25937         (gimple_get_virt_method_for_binfo): ... here; simplify using
25938         vtable_pointer_value_to_vtable.
25939         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
25940         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
25941         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
25942         (vtable_pointer_value_to_vtable): Break out from ...; handle also
25943         POINTER_PLUS_EXPR.
25944         (vtable_pointer_value_to_binfo): ... here.
25945         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
25947 2014-02-03  Teresa Johnson  <tejohnson@google.com>
25949         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
25950         redef of outer loop index variable.
25952 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
25954         PR c++/53017
25955         PR c++/59211
25956         * doc/extend.texi (Function Attributes): Typo.
25958 2014-02-03  Cong Hou  <congh@google.com>
25960         PR tree-optimization/60000
25961         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
25962         if the vectorized statement is a store.  A store statement can only
25963         appear at the end of pattern statements.
25965 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
25967         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
25968         (ix86_option_override_internal): Default long double to 64-bit for
25969         32-bit Bionic and to 128-bit for 64-bit Bionic.
25971         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
25972         TARGET_LONG_DOUBLE_128 is true.
25973         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
25975         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
25976         (mlong-double-64): Negate -mlong-double-128.
25977         (mlong-double-128): New option.
25979         * config/i386/i386-c.c (ix86_target_macros): Define
25980         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
25982         * doc/invoke.texi: Document -mlong-double-128.
25984 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
25986         PR rtl-optimization/60024
25987         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
25989 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
25991         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
25993 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
25995         PR rtl-optimization/57662
25996         * sel-sched.c (code_motion_path_driver): Do not mark already not
25997         existing blocks in the visiting bitmap.
25999 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
26001         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
26002         on the insn being emitted.
26004 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
26005             Will Deacon  <will.deacon@arm.com>
26007         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
26009 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26011         * config/arm/arm-tables.opt: Regenerate.
26013 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26015         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
26016         for vector types other than V16QImode.
26017         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
26018         define_expand, and call altivec_expand_vec_perm_le when producing
26019         code with little endian element order.
26020         (*altivec_vperm_<mode>_internal): New insn having previous
26021         behavior of altivec_vperm_<mode>.
26022         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
26023         altivec_expand_vec_perm_le when producing code with little endian
26024         element order.
26025         (*altivec_vperm_<mode>_uns_internal): New insn having previous
26026         behavior of altivec_vperm_<mode>_uns.
26028 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26030         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
26031         (altivec_vsumsws): Add handling for -maltivec=be with a little
26032         endian target.
26033         (altivec_vsumsws_direct): New.
26034         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
26035         gen_altivec_vsumsws.
26037 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
26039         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
26040         vtable_pointer_value_to_binfo): New functions.
26041         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
26042         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
26044 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
26046         * config/nios2/nios2.md (load_got_register): Initialize GOT
26047         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
26048         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
26050 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
26052         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
26053         preserverd by passthrough, do not propagate the type.
26055 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26057         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
26058         (mips_atomic_assign_expand_fenv): New function.
26059         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
26061 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26063         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
26064         (__builtin_mips_set_fcsr): Likewise.
26065         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
26066         MIPS_USI_FTYPE_VOID.
26067         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
26068         (mips16_expand_set_fcsr): Likewise.
26069         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
26070         (mips16_set_fcsr_stub): Likewise.
26071         (mips16_get_fcsr_one_only_stub): New class.
26072         (mips16_set_fcsr_one_only_stub): Likewise.
26073         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
26074         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
26075         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
26076         (hard_float): New availability predicate.
26077         (mips_builtins): Add get_fcsr and set_fcsr.
26078         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
26079         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
26080         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
26081         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
26082         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
26083         patterns.
26085 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26087         * config/mips/mips.c (mips_one_only_stub): New class.
26088         (mips_need_mips16_rdhwr_p): Replace with...
26089         (mips16_rdhwr_stub): ...this new variable.
26090         (mips16_stub_call_address): New function.
26091         (mips16_rdhwr_one_only_stub): New class.
26092         (mips_expand_thread_pointer): Use mips16_stub_call_address.
26093         (mips_output_mips16_rdhwr): Delete.
26094         (mips_finish_stub): New function.
26095         (mips_code_end): Use it to handle rdhwr stubs.
26097 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
26099         PR target/60017
26100         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
26101         when calculating size of integer atomic types.
26103 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
26105         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
26107 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
26109         PR tree-optimization/60003
26110         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
26111         * profile.c (branch_prob): Use gimple_call_builtin_p
26112         to check for BUILT_IN_SETJMP_RECEIVER.
26113         * tree-inline.c (copy_bb): Call notice_special_calls.
26115 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
26117         PR bootstrap/59985
26118         * lra-constraints.c (process_alt_operands): Update reload_sum only
26119         on the first pass.
26121 2014-01-31  Richard Henderson  <rth@redhat.com>
26123         PR middle-end/60004
26124         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
26125         until after else_eh is processed.
26127 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
26129         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
26130         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
26131         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
26132         in smmintrin.h, remove them.
26133         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
26134         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
26135         * config/i386/i386.md (ROUND_SAE): Fix value.
26136         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
26137         (const48_operand): New.
26138         * config/i386/subst.md (round), (round_expand): Use
26139         const_4_or_8_to_11_operand.
26140         (round_saeonly), (round_saeonly_expand): Use const48_operand.
26142 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
26144         * config/i386/constraints.md (Yk): Swap meaning with k.
26145         * config/i386/i386.md (movhi_internal): Change Yk to k.
26146         (movqi_internal): Ditto.
26147         (*k<logic><mode>): Ditto.
26148         (*andhi_1): Ditto.
26149         (*andqi_1): Ditto.
26150         (kandn<mode>): Ditto.
26151         (*<code>hi_1): Ditto.
26152         (*<code>qi_1): Ditto.
26153         (kxnor<mode>): Ditto.
26154         (kortestzhi): Ditto.
26155         (kortestchi): Ditto.
26156         (kunpckhi): Ditto.
26157         (*one_cmplhi2_1): Ditto.
26158         (*one_cmplqi2_1): Ditto.
26159         * config/i386/sse.md (): Change k to Yk.
26160         (avx512f_load<mode>_mask): Ditto.
26161         (avx512f_blendm<mode>): Ditto.
26162         (avx512f_store<mode>_mask): Ditto.
26163         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
26164         (avx512f_storedqu<mode>_mask): Ditto.
26165         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
26166         Ditto.
26167         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
26168         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
26169         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
26170         (avx512f_maskcmp<mode>3): Ditto.
26171         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
26172         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
26173         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
26174         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
26175         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
26176         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
26177         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
26178         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
26179         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
26180         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
26181         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
26182         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
26183         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
26184         (vec_extract_lo_<mode>_maskm): Ditto.
26185         (vec_extract_hi_<mode>_maskm): Ditto.
26186         (avx512f_vternlog<mode>_mask): Ditto.
26187         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
26188         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
26189         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
26190         (avx512f_<code>v8div16qi2_mask): Ditto.
26191         (avx512f_<code>v8div16qi2_mask_store): Ditto.
26192         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
26193         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
26194         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
26195         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
26196         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26197         (*avx512pf_gatherpf<mode>df_mask): Ditto.
26198         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26199         (*avx512pf_scatterpf<mode>df_mask): Ditto.
26200         (avx512cd_maskb_vec_dupv8di): Ditto.
26201         (avx512cd_maskw_vec_dupv16si): Ditto.
26202         (avx512f_vpermi2var<mode>3_maskz): Ditto.
26203         (avx512f_vpermi2var<mode>3_mask): Ditto.
26204         (avx512f_vpermi2var<mode>3_mask): Ditto.
26205         (avx512f_vpermt2var<mode>3_maskz): Ditto.
26206         (*avx512f_gathersi<mode>): Ditto.
26207         (*avx512f_gathersi<mode>_2): Ditto.
26208         (*avx512f_gatherdi<mode>): Ditto.
26209         (*avx512f_gatherdi<mode>_2): Ditto.
26210         (*avx512f_scattersi<mode>): Ditto.
26211         (*avx512f_scatterdi<mode>): Ditto.
26212         (avx512f_compress<mode>_mask): Ditto.
26213         (avx512f_compressstore<mode>_mask): Ditto.
26214         (avx512f_expand<mode>_mask): Ditto.
26215         * config/i386/subst.md (mask): Change k to Yk.
26216         (mask_scalar_merge): Ditto.
26217         (sd): Ditto.
26219 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
26221         * doc/extend.texi (Vector Extensions): Document ?: in C++.
26223 2014-01-31  Richard Biener  <rguenther@suse.de>
26225         PR middle-end/59990
26226         * builtins.c (fold_builtin_memory_op): Make sure to not
26227         use a floating-point mode or a boolean or enumeral type for
26228         the copy operation.
26230 2014-01-30  DJ Delorie  <dj@redhat.com>
26232         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
26233         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
26234         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
26235         whenever main() has an epilogue.
26237 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26239         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
26240         unused variable "field".
26241         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
26242         (vsx_mergeh_<mode>): Likewise.
26243         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
26244         (altivec_vmrghh): Likewise.
26245         (altivec_vmrghw): Likewise.
26246         (altivec_vmrglb): Likewise.
26247         (altivec_vmrglh): Likewise.
26248         (altivec_vmrglw): Likewise.
26249         (altivec_vspltb): Add missing uses.
26250         (altivec_vsplth): Likewise.
26251         (altivec_vspltw): Likewise.
26252         (altivec_vspltsf): Likewise.
26254 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
26256         PR target/59923
26257         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
26258         frame related instructions.
26260 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
26262         PR rtl-optimization/59959
26263         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
26264         any reload of register whose subreg is invalid.
26266 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
26268         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
26269         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
26270         Add missing return type - void.
26272 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26274         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
26275         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
26276         remove element index adjustment for endian (now handled in vsx.md
26277         and altivec.md).
26278         (altivec_expand_vec_perm_const): Use
26279         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
26280         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
26281         (vsx_xxspltw_<mode>): Adjust element index for little endian.
26282         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
26283         define_expand and a new define_insn *altivec_vspltb_internal;
26284         adjust for -maltivec=be on a little endian target.
26285         (altivec_vspltb_direct): New.
26286         (altivec_vsplth): Divide into a define_expand and a new
26287         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
26288         little endian target.
26289         (altivec_vsplth_direct): New.
26290         (altivec_vspltw): Divide into a define_expand and a new
26291         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
26292         little endian target.
26293         (altivec_vspltw_direct): New.
26294         (altivec_vspltsf): Divide into a define_expand and a new
26295         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
26296         a little endian target.
26298 2014-01-30  Richard Biener  <rguenther@suse.de>
26300         PR tree-optimization/59993
26301         * tree-ssa-forwprop.c (associate_pointerplus): Check we
26302         can propagate form the earlier stmt and avoid the transform
26303         when the intermediate result is needed.
26305 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
26307         * README.Portability: Fix typo.
26309 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
26311         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
26312         comparison_operator with ordered_comparison_operator.
26314 2014-01-30  Nick Clifton  <nickc@redhat.com>
26316         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
26317         Rename to mn10300_store_multiple_regs.
26318         * config/mn10300/mn10300.c: Likewise.
26319         * config/mn10300/mn10300.md (store_movm): Fix typo: call
26320         store_multiple_regs.
26321         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
26322         Call mn10300_store_multiple_regs.
26324 2014-01-30  Nick Clifton  <nickc@redhat.com>
26325             DJ Delorie  <dj@redhat.com>
26327         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
26328         %fp 2 to keep registers after it properly word-aligned.
26329         (rl78_alloc_physical_registers_umul): Handle the case where both
26330         input operands are the same.
26332 2014-01-30  Richard Biener  <rguenther@suse.de>
26334         PR tree-optimization/59903
26335         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
26336         check properly.
26338 2014-01-30  Jason Merrill  <jason@redhat.com>
26340         PR c++/59633
26341         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
26343         PR c++/59645
26344         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
26346 2014-01-30  Richard Biener  <rguenther@suse.de>
26348         PR tree-optimization/59951
26349         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
26351 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
26353         PR target/59784
26354         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
26355         SFmode to DFmode case.
26357 2014-01-29  DJ Delorie  <dj@redhat.com>
26359         * config/msp430/msp430.opt (-minrt): New.
26360         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
26361         if -minrt given.
26362         (ENDFILE_SPEC): Likewise.
26364 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
26366         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
26367         (estimate_function_body_sizes): Use it.
26369 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
26371         PR c++/58561
26372         * dwarf2out.c (is_cxx_auto): New.
26373         (is_base_type): Use it.
26374         (gen_type_die_with_usage): Likewise.
26376 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26378         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
26379         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
26380         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
26381         -maltivec=be with LE targets.
26382         (vsx_mergeh_<mode>): Likewise.
26383         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
26384         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
26385         (altivec_vmrghb): Replace with define_expand and new
26386         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
26387         (altivec_vmrghb_direct): New define_insn.
26388         (altivec_vmrghh): Replace with define_expand and new
26389         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
26390         (altivec_vmrghh_direct): New define_insn.
26391         (altivec_vmrghw): Replace with define_expand and new
26392         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
26393         (altivec_vmrghw_direct): New define_insn.
26394         (*altivec_vmrghsf): Adjust for endianness.
26395         (altivec_vmrglb): Replace with define_expand and new
26396         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
26397         (altivec_vmrglb_direct): New define_insn.
26398         (altivec_vmrglh): Replace with define_expand and new
26399         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
26400         (altivec_vmrglh_direct): New define_insn.
26401         (altivec_vmrglw): Replace with define_expand and new
26402         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
26403         (altivec_vmrglw_direct): New define_insn.
26404         (*altivec_vmrglsf): Adjust for endianness.
26405         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26406         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26407         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26408         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26409         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26410         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26411         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26412         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26414 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26416         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
26417         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
26418         whitespace.
26420 2014-01-29  Richard Biener  <rguenther@suse.de>
26422         PR tree-optimization/58742
26423         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
26424         associate_pointerplus_align.
26425         (associate_pointerplus_diff): New function.
26426         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
26427         and associate_pointerplus_diff.
26429 2014-01-29  Richard Biener  <rguenther@suse.de>
26431         * lto-streamer.h (LTO_major_version): Bump to 3.
26432         (LTO_minor_version): Reset to 0.
26434 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
26436         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
26437         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
26438         (arm_file_start): Generate correct asm header for armv7ve.
26439         * config/arm/bpabi.h: Add multilib support for armv7ve.
26440         * config/arm/driver-arm.c: Change the architectures of cortex-a7
26441         and cortex-a15 to armv7ve.
26442         * config/arm/t-aprofile: Add multilib support for armv7ve.
26443         * doc/invoke.texi: Document -march=armv7ve.
26445 2014-01-29  Richard Biener  <rguenther@suse.de>
26447         PR tree-optimization/58742
26448         * tree-ssa-forwprop.c (associate_plusminus): Return true
26449         if we changed sth, defer EH cleanup to ...
26450         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
26451         (simplify_mult): New function.
26453 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
26455         PR middle-end/59917
26456         PR tree-optimization/59920
26457         * tree.c (build_common_builtin_nodes): Remove
26458         __builtin_setjmp_dispatcher initialization.
26459         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
26460         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
26461         instead of gsi_after_labels + manually skipping debug stmts.
26462         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
26463         ignore bbs with IFN_ABNORMAL_DISPATCHER.
26464         * tree-inline.c (copy_edges_for_bb): Remove
26465         can_make_abnormal_goto argument, instead add abnormal_goto_dest
26466         argument.  Ignore computed_goto_p stmts.  Don't call
26467         make_abnormal_goto_edges.  If a call might need abnormal edges
26468         for non-local gotos, see if it already has an edge to
26469         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
26470         with true argument, don't do anything then, otherwise add
26471         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
26472         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
26473         caller.
26474         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
26475         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
26476         (lower_stmt): Don't set data->calls_builtin_setjmp.
26477         (lower_builtin_setjmp): Adjust comment.
26478         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
26479         * tree-cfg.c (found_computed_goto): Remove.
26480         (factor_computed_gotos): Remove.
26481         (make_goto_expr_edges): Return bool, true for computed gotos.
26482         Don't call make_abnormal_goto_edges.
26483         (build_gimple_cfg): Don't set found_computed_goto, don't call
26484         factor_computed_gotos.
26485         (computed_goto_p): No longer static.
26486         (make_blocks): Don't set found_computed_goto.
26487         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
26488         (make_edges): If make_goto_expr_edges returns true, push bb
26489         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
26490         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
26491         vector.  Record mapping between bbs and OpenMP regions if there
26492         are any, adjust make_gimple_omp_edges caller.  Call
26493         handle_abnormal_edges.
26494         (make_abnormal_goto_edges): Remove.
26495         * tree-cfg.h (make_abnormal_goto_edges): Remove.
26496         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
26497         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
26498         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
26499         * internal-fn.def (ABNORMAL_DISPATCHER): New.
26500         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
26501         filling *region also set *region_idx to (*region)->entry->index.
26503         PR other/58712
26504         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
26505         For REGs set ORIGINAL_REGNO.
26507 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
26509         * doc/md.texi: Mention that a target shouldn't implement
26510         vec_widen_(s|u)mul_even/odd pair if it is less efficient
26511         than hi/lo pair.
26513 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
26515         PR tree-optimization/59594
26516         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
26517         a copy of the datarefs vector rather than the vector itself.
26519 2014-01-28  Jason Merrill  <jason@redhat.com>
26521         PR c++/53756
26522         * dwarf2out.c (auto_die): New static.
26523         (gen_type_die_with_usage): Handle C++1y 'auto'.
26524         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
26525         on definition.
26527 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
26529         PR target/59672
26530         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
26531         (SPEC_X32): Likewise.
26532         (SPEC_64): Likewise.
26533         * config/i386/i386.c (ix86_option_override_internal): Turn off
26534         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
26535         for TARGET_16BIT.
26536         (x86_file_start): Output .code16gcc for TARGET_16BIT.
26537         * config/i386/i386.h (TARGET_16BIT): New macro.
26538         (TARGET_16BIT_P): Likewise.
26539         * config/i386/i386.opt: Add m16.
26540         * doc/invoke.texi: Document -m16.
26542 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
26544         PR preprocessor/59935
26545         * input.c (location_get_source_line): Bail out on when line number
26546         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
26548 2014-01-28  Richard Biener  <rguenther@suse.de>
26550         PR tree-optimization/58742
26551         * tree-ssa-forwprop.c (associate_plusminus): Handle
26552         pointer subtraction of the form (T)(P + A) - (T)P.
26554 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26556         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
26557         at const_int_cost.
26559 2014-01-28  Richard Biener  <rguenther@suse.de>
26561         Revert
26562         2014-01-28  Richard Biener  <rguenther@suse.de>
26564         PR rtl-optimization/45364
26565         PR rtl-optimization/59890
26566         * var-tracking.c (local_get_addr_clear_given_value): Handle
26567         already cleared slot.
26568         (val_reset): Handle not allocated local_get_addr_cache.
26569         (vt_find_locations): Use post-order on the inverted CFG.
26571 2014-01-28  Richard Biener  <rguenther@suse.de>
26573         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
26575 2014-01-28  Richard Biener  <rguenther@suse.de>
26577         PR rtl-optimization/45364
26578         PR rtl-optimization/59890
26579         * var-tracking.c (local_get_addr_clear_given_value): Handle
26580         already cleared slot.
26581         (val_reset): Handle not allocated local_get_addr_cache.
26582         (vt_find_locations): Use post-order on the inverted CFG.
26584 2014-01-28  Alan Modra  <amodra@gmail.com>
26586         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
26587         * configure.ac <recursive call for build != host>: Define
26588         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
26589         and LD_FOR_BUILD too.
26590         * configure: Regenerate.
26592 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
26594         * config/i386/i386.c (get_builtin_code_for_version): Separate
26595         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
26596         Broadwell from Haswell.
26598 2014-01-27  Steve Ellcey  <sellcey@mips.com>
26600         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
26601         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
26602         * config/mips/mips.c (mips_option_override): Change setting
26603         of TARGET_DSP.
26604         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
26605         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
26606         Change from Mask to Var.
26608 2014-01-27  Jeff Law  <law@redhat.com>
26610         * ipa-inline.c (inline_small_functions): Fix typo.
26612 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
26614         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
26615         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
26616         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
26617         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
26618         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
26619         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
26620         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
26621         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
26622         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
26623         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
26624         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
26625         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
26626         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
26627         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
26628         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
26629         (_mm512_storeu_epi64): Ditto.
26630         (_mm512_cmpge_epi32_mask): Ditto.
26631         (_mm512_cmpge_epu32_mask): Ditto.
26632         (_mm512_cmpge_epi64_mask): Ditto.
26633         (_mm512_cmpge_epu64_mask): Ditto.
26634         (_mm512_cmple_epi32_mask): Ditto.
26635         (_mm512_cmple_epu32_mask): Ditto.
26636         (_mm512_cmple_epi64_mask): Ditto.
26637         (_mm512_cmple_epu64_mask): Ditto.
26638         (_mm512_cmplt_epi32_mask): Ditto.
26639         (_mm512_cmplt_epu32_mask): Ditto.
26640         (_mm512_cmplt_epi64_mask): Ditto.
26641         (_mm512_cmplt_epu64_mask): Ditto.
26642         (_mm512_cmpneq_epi32_mask): Ditto.
26643         (_mm512_cmpneq_epu32_mask): Ditto.
26644         (_mm512_cmpneq_epi64_mask): Ditto.
26645         (_mm512_cmpneq_epu64_mask): Ditto.
26646         (_mm512_expand_pd): Ditto.
26647         (_mm512_expand_ps): Ditto.
26648         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
26649         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
26650         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
26651         * config/i386/i386.c (ix86_builtins): Add
26652         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
26653         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
26654         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
26655         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
26656         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
26657         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
26658         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
26659         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
26660         IX86_BUILTIN_PMOVUSQW512_MEM.
26661         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
26662         __builtin_ia32_pmovsqd512mem_mask,
26663         __builtin_ia32_pmovqd512mem_mask,
26664         __builtin_ia32_pmovusqw512mem_mask,
26665         __builtin_ia32_pmovsqw512mem_mask,
26666         __builtin_ia32_pmovqw512mem_mask,
26667         __builtin_ia32_pmovusdw512mem_mask,
26668         __builtin_ia32_pmovsdw512mem_mask,
26669         __builtin_ia32_pmovdw512mem_mask,
26670         __builtin_ia32_pmovqb512mem_mask,
26671         __builtin_ia32_pmovusqb512mem_mask,
26672         __builtin_ia32_pmovsqb512mem_mask,
26673         __builtin_ia32_pmovusdb512mem_mask,
26674         __builtin_ia32_pmovsdb512mem_mask,
26675         __builtin_ia32_pmovdb512mem_mask.
26676         (bdesc_args): Add __builtin_ia32_expanddf512,
26677         __builtin_ia32_expandsf512.
26678         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
26679         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
26680         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
26681         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
26682         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
26683         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
26684         (avx512f_<code>v8div16qi2_mask_store): This.
26685         (avx512f_expand<mode>): New.
26687 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
26689         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
26690         New.
26691         (_mm512_mask_prefetch_i64gather_pd): Ditto.
26692         (_mm512_prefetch_i32scatter_pd): Ditto.
26693         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
26694         (_mm512_prefetch_i64scatter_pd): Ditto.
26695         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
26696         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
26697         (_mm512_mask_prefetch_i64gather_ps): Ditto.
26698         (_mm512_prefetch_i32scatter_ps): Ditto.
26699         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
26700         (_mm512_prefetch_i64scatter_ps): Ditto.
26701         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
26702         * config/i386/i386-builtin-types.def: Define
26703         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
26704         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
26705         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
26706         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
26707         IX86_BUILTIN_SCATTERPFQPD.
26708         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
26709         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
26710         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
26711         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
26712         __builtin_ia32_scatterpfqps.
26713         (ix86_expand_builtin): Expand new built-ins.
26714         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
26715         fix memory access data type.
26716         (*avx512pf_gatherpf<mode>_mask): Ditto.
26717         (*avx512pf_gatherpf<mode>): Ditto.
26718         (avx512pf_scatterpf<mode>): Ditto.
26719         (*avx512pf_scatterpf<mode>_mask): Ditto.
26720         (*avx512pf_scatterpf<mode>): Ditto.
26721         (GATHER_SCATTER_SF_MEM_MODE): New.
26722         (avx512pf_gatherpf<mode>df): Ditto.
26723         (*avx512pf_gatherpf<mode>df_mask): Ditto.
26724         (*avx512pf_scatterpf<mode>df): Ditto.
26726 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
26728         PR bootstrap/59934
26729         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
26730         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
26731         reached.
26733 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
26735         * common/config/arm/arm-common.c
26736         (arm_rewrite_mcpu): Handle multiple names.
26737         * config/arm/arm.h
26738         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
26740 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
26742         * gimple-builder.h (create_gimple_tmp): Delete.
26744 2014-01-27  Christian Bruel  <christian.bruel@st.com>
26746         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
26747         words comparisons.
26749 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
26751         * config/pa/pa.md (call): Generate indirect long calls to non-local
26752         functions when outputing 32-bit code.
26753         (call_value): Likewise except for special call to buggy powf function.
26755         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
26756         portable runtime and PIC indirect calls.
26757         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
26758         and PIC call sequences.  Use ldo instead of blr to set return register
26759         in PIC call sequence.
26761 2014-01-25  Walter Lee  <walt@tilera.com>
26763         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
26764         avoid clobbering a live register.
26766 2014-01-25  Walter Lee  <walt@tilera.com>
26768         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
26769         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
26770         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
26771         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
26773 2014-01-25  Walter Lee  <walt@tilera.com>
26775         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
26776         arguments on even registers.
26777         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
26778         STACK_BOUNDARY.
26779         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
26780         (BIGGEST_ALIGNMENT): Ditto.
26781         (BIGGEST_FIELD_ALIGNMENT): Ditto.
26783 2014-01-25  Walter Lee  <walt@tilera.com>
26785         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
26786         insns before bundling.
26787         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
26789 2014-01-25  Walter Lee  <walt@tilera.com>
26791         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
26792         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
26793         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
26795 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
26797         * config/mips/constraints.md (kl): Delete.
26798         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
26799         define expands, using...
26800         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
26801         instructions for MIPS16.
26802         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
26803         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
26805 2014-01-25  Walter Lee  <walt@tilera.com>
26807         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
26808         (clzdi2): Ditto.
26809         (ffsdi2): Ditto.
26811 2014-01-25  Walter Lee  <walt@tilera.com>
26813         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
26814         (TARGET_EXPAND_TO_RTL_HOOK): Define.
26816 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
26818         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
26819         Handle XOR.
26821 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
26823         * print-rtl.c (in_call_function_usage): New var.
26824         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
26825         EXPR_LIST mode as mode and not as reg note name.
26827         PR middle-end/59561
26828         * cfgloopmanip.c (copy_loop_info): If
26829         loop->warned_aggressive_loop_optimizations, make sure
26830         the flag is set in target loop too.
26832 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
26834         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
26835         flag_cilkplus.
26836         * builtins.def: Likewise.
26837         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
26838         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
26839         * ira.c (ira_setup_eliminable_regset): Likewise.
26840         * omp-low.c (gate_expand_omp): Likewise.
26841         (execute_lower_omp): Likewise.
26842         (diagnose_sb_0): Likewise.
26843         (gate_diagnose_omp_blocks): Likewise.
26844         (simd_clone_clauses_extract): Likewise.
26845         (gate): Likewise.
26847 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26849         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
26850         correction for little endian...
26851         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
26852         here.
26854 2014-01-24  Jeff Law  <law@redhat.com>
26856         PR tree-optimization/59919
26857         * tree-vrp.c (find_assert_locations_1): Do not register asserts
26858         for non-returning calls.
26860 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
26862         * common/config/aarch64/aarch64-common.c
26863         (aarch64_rewrite_mcpu): Handle multiple names.
26864         * config/aarch64/aarch64.h
26865         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
26867 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
26869         * input.c (add_file_to_cache_tab): Handle the case where fopen
26870         returns NULL.
26872 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
26874         PR target/59929
26875         * config/i386/i386.md (pushsf splitter): Get stack adjustment
26876         from push operand if code of push isn't PRE_DEC.
26878 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
26880         PR target/59909
26881         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
26882         -mquad-memory-atomic.  Update -mquad-memory documentation to say
26883         it is only used for non-atomic loads/stores.
26885         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
26886         -mquad-memory or -mquad-memory-atomic switches.
26888         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
26889         -mquad-memory-atomic to ISA 2.07 support.
26891         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
26892         to separate support of normal quad word memory operations (ldq, stq)
26893         from the atomic quad word memory operations.
26895         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
26896         support to separate non-atomic quad word operations from atomic
26897         quad word operations.  Disable non-atomic quad word operations in
26898         little endian mode so that we don't have to swap words after the
26899         load and before the store.
26900         (quad_load_store_p): Add comment about atomic quad word support.
26901         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
26902         options printed with -mdebug=reg.
26904         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
26905         -mquad-memory-atomic as the test for whether we have quad word
26906         atomic instructions.
26907         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
26908         or -mp8-vector are used, allow byte/half-word atomic operations.
26910         * config/rs6000/sync.md (load_lockedti): Insure that the address
26911         is a proper indexed or indirect address for the lqarx instruction.
26912         On little endian systems, swap the hi/lo registers after the lqarx
26913         instruction.
26914         (load_lockedpti): Use indexed_or_indirect_operand predicate to
26915         insure the address is valid for the lqarx instruction.
26916         (store_conditionalti): Insure that the address is a proper indexed
26917         or indirect address for the stqcrx. instruction.  On little endian
26918         systems, swap the hi/lo registers before doing the stqcrx.
26919         instruction.
26920         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
26921         insure the address is valid for the stqcrx. instruction.
26923         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26924         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
26925         type of quad memory support is available.
26927 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
26929         PR regression/59915
26930         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
26931         there is a danger of looping.
26933 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
26935         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26936         force flag_ira_loop_pressure if set via command line.
26938 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
26940         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
26941         (ashr_simd): New builtin handling DI mode.
26942         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
26943         (aarch64_sshr_simddi): New match pattern.
26944         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
26945         (vshrd_n_s64): Likewise.
26946         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
26948 2014-01-23  Nick Clifton  <nickc@redhat.com>
26950         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
26951         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
26952         favour of mcu specific scripts.
26953         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
26954         430x multilibs.
26956 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
26957             Alex Velenko  <Alex.Velenko@arm.com>
26959         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
26960         (vaddv_s16): Likewise.
26961         (vaddv_s32): Likewise.
26962         (vaddv_u8): Likewise.
26963         (vaddv_u16): Likewise.
26964         (vaddv_u32): Likewise.
26965         (vaddvq_s8): Likewise.
26966         (vaddvq_s16): Likewise.
26967         (vaddvq_s32): Likewise.
26968         (vaddvq_s64): Likewise.
26969         (vaddvq_u8): Likewise.
26970         (vaddvq_u16): Likewise.
26971         (vaddvq_u32): Likewise.
26972         (vaddvq_u64): Likewise.
26973         (vaddv_f32): Likewise.
26974         (vaddvq_f32): Likewise.
26975         (vaddvq_f64): Likewise.
26976         (vmaxv_f32): Likewise.
26977         (vmaxv_s8): Likewise.
26978         (vmaxv_s16): Likewise.
26979         (vmaxv_s32): Likewise.
26980         (vmaxv_u8): Likewise.
26981         (vmaxv_u16): Likewise.
26982         (vmaxv_u32): Likewise.
26983         (vmaxvq_f32): Likewise.
26984         (vmaxvq_f64): Likewise.
26985         (vmaxvq_s8): Likewise.
26986         (vmaxvq_s16): Likewise.
26987         (vmaxvq_s32): Likewise.
26988         (vmaxvq_u8): Likewise.
26989         (vmaxvq_u16): Likewise.
26990         (vmaxvq_u32): Likewise.
26991         (vmaxnmv_f32): Likewise.
26992         (vmaxnmvq_f32): Likewise.
26993         (vmaxnmvq_f64): Likewise.
26994         (vminv_f32): Likewise.
26995         (vminv_s8): Likewise.
26996         (vminv_s16): Likewise.
26997         (vminv_s32): Likewise.
26998         (vminv_u8): Likewise.
26999         (vminv_u16): Likewise.
27000         (vminv_u32): Likewise.
27001         (vminvq_f32): Likewise.
27002         (vminvq_f64): Likewise.
27003         (vminvq_s8): Likewise.
27004         (vminvq_s16): Likewise.
27005         (vminvq_s32): Likewise.
27006         (vminvq_u8): Likewise.
27007         (vminvq_u16): Likewise.
27008         (vminvq_u32): Likewise.
27009         (vminnmv_f32): Likewise.
27010         (vminnmvq_f32): Likewise.
27011         (vminnmvq_f64): Likewise.
27013 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
27015         * config/aarch64/aarch64-simd.md
27016         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
27017         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
27018         (*aarch64_mul3_elt<mode>): Likewise.
27019         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
27020         (*aarch64_mul3_elt_to_64v2df): Likewise.
27021         (*aarch64_mla_elt<mode>): Likewise.
27022         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
27023         (*aarch64_mls_elt<mode>): Likewise.
27024         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
27025         (*aarch64_fma4_elt<mode>): Likewise.
27026         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
27027         (*aarch64_fma4_elt_to_64v2df): Likewise.
27028         (*aarch64_fnma4_elt<mode>): Likewise.
27029         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
27030         (*aarch64_fnma4_elt_to_64v2df): Likewise.
27031         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
27032         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
27033         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
27034         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
27035         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
27036         (aarch64_sqdmull_lane<mode>_internal): Likewise.
27037         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
27039 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
27041         * config/aarch64/aarch64-simd.md
27042         (aarch64_be_checked_get_lane<mode>): New define_expand.
27043         * config/aarch64/aarch64-simd-builtins.def
27044         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
27045         New builtin definition.
27046         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
27047         Use new safe be builtin.
27049 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
27051         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
27052         New define_insn.
27053         (aarch64_be_st1<mode>): Likewise.
27054         (aarch_ld1<VALL:mode>): Define_expand modified.
27055         (aarch_st1<VALL:mode>): Likewise.
27056         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
27057         (UNSPEC_ST1): Likewise.
27059 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
27061         * config/microblaze/microblaze.md: Add trap insn and attribute
27063 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
27065         PR preprocessor/58580
27066         * input.h (location_get_source_line): Take an additional line_size
27067         parameter.
27068         (void diagnostics_file_cache_fini): Declare new function.
27069         * input.c (struct fcache): New type.
27070         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
27071         New static constants.
27072         (diagnostic_file_cache_init, total_lines_num)
27073         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
27074         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
27075         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
27076         (get_next_line, read_next_line, goto_next_line, read_line_num):
27077         New static function definitions.
27078         (diagnostic_file_cache_fini): New function.
27079         (location_get_source_line): Take an additional output line_len
27080         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
27081         read_line_num.
27082         * diagnostic.c (diagnostic_finish): Call
27083         diagnostic_file_cache_fini.
27084         (adjust_line): Take an additional input parameter for the length
27085         of the line, rather than calculating it with strlen.
27086         (diagnostic_show_locus): Adjust the use of
27087         location_get_source_line and adjust_line with respect to their new
27088         signature.  While displaying a line now, do not stop at the first
27089         null byte.  Rather, display the zero byte as a space and keep
27090         going until we reach the size of the line.
27091         * Makefile.in: Add vec.o to OBJS-libcommon
27093 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
27094             Ilya Tocar  <ilya.tocar@intel.com>
27096         * config/i386/avx512fintrin.h (_mm512_kmov): New.
27097         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
27098         (__builtin_ia32_kmov16): Ditto.
27099         * config/i386/i386.md (UNSPEC_KMOV): New.
27100         (kmovw): Ditto.
27102 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
27104         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
27105         (_mm512_storeu_si512): Ditto.
27107 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
27109         PR target/52125
27110         * rtl.h (get_referenced_operands): Declare.
27111         * recog.c (get_referenced_operands): New function.
27112         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
27113         operands have been referenced when recording LO_SUM references.
27115 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
27117         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
27119 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
27121         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
27122         Enable for generic and recent AMD targets.
27124 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
27126         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
27127         ARG_SIZE note when adjustment was eliminated.
27129 2014-01-22  Jeff Law  <law@redhat.com>
27131         PR tree-optimization/59597
27132         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
27133         in file.  Accept new argument REGISTERING and use it to modify
27134         dump output appropriately.
27135         (register_jump_thread): Corresponding changes.
27136         (mark_threaded_blocks): Reinstate code to cancel unprofitable
27137         thread paths involving joiner blocks.  Add code to dump cancelled
27138         jump threading paths.
27140 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
27142         PR rtl-optimization/59477
27143         * lra-constraints.c (inherit_in_ebb): Process call for living hard
27144         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
27146 2014-01-22  Tom Tromey  <tromey@redhat.com>
27148         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
27149         PARAMS.
27150         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
27152 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27154         PR rtl-optimization/59896
27155         * lra-constraints.c (process_alt_operands): Check unused note for
27156         matched operands of insn with no output reloads.
27158 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
27160         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
27161         (mips_move_from_gpr_cost): Likewise.
27163 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27165         PR rtl-optimization/59858
27166         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
27167         ira_class_hard_regs_num.
27168         (process_alt_operands): Increase reject for dying matched operand.
27170 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
27172         PR target/59003
27173         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
27174         smaller than size, perform several stores or loads and stores
27175         at dst + count - size to store or copy all of size bytes, rather
27176         than just last modesize bytes.
27178 2014-01-20  DJ Delorie  <dj@redhat.com>
27180         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
27181         that CLOBBERs are REGs before propogating their values.
27183 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
27185         PR middle-end/59789
27186         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
27187         (cgraph_inline_failed_type): New function.
27188         * cgraph.h (DEFCIFCODE): Add type.
27189         (cgraph_inline_failed_type_t): New enum.
27190         (cgraph_inline_failed_type): New prototype.
27191         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
27192         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
27193         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
27194         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
27195         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
27196         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
27197         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
27198         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
27199         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
27200         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
27201         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
27202         OPTIMIZATION_MISMATCH.
27203         * tree-inline.c (expand_call_inline): Emit errors during
27204         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
27206 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
27208         PR target/59685
27209         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
27210         mode attribute in insn output.
27212 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
27214         * output.h (output_constant): Delete.
27215         * varasm.c (output_constant): Make private.
27217 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
27219         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
27221 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
27223         PR middle-end/59860
27224         * tree.h (fold_builtin_strcat): New prototype.
27225         * builtins.c (fold_builtin_strcat): No longer static.  Add len
27226         argument, if non-NULL, don't call c_strlen.  Optimize
27227         directly into __builtin_memcpy instead of __builtin_strcpy.
27228         (fold_builtin_2): Adjust fold_builtin_strcat caller.
27229         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
27231 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
27233         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
27234         for SImode_address_operand operands, having only a REG argument.
27236 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27238         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
27239         loader name using mbig-endian.
27240         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
27242 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
27244         * doc/invoke.texi (-march): Clarify documentation for AArch64.
27245         (-mtune): Likewise.
27246         (-mcpu): Likewise.
27248 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
27250         * config/aarch64/aarch64-protos.h
27251         (aarch64_cannot_change_mode_class_ptr): Declare.
27252         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
27253         aarch64_cannot_change_mode_class_ptr): New.
27254         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
27255         backend hook aarch64_cannot_change_mode_class.
27257 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
27259         * common/config/aarch64/aarch64-common.c
27260         (aarch64_handle_option): Don't handle any option order logic here.
27261         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
27262         selected_cpu, warn on architecture version mismatch.
27263         (aarch64_override_options): Fix parsing order for option strings.
27265 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27266             Iain Sandoe  <iain@codesourcery.com>
27268         PR bootstrap/59496
27269         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
27270         warning.  Amend comment to reflect current functionality.
27272 2014-01-20  Richard Biener  <rguenther@suse.de>
27274         PR middle-end/59860
27275         * builtins.c (fold_builtin_strcat): Remove case better handled
27276         by tree-ssa-strlen.c.
27278 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
27280         * config/aarch64/aarch64.opt
27281         (mcpu, march, mtune): Make case-insensitive.
27283 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
27285         PR target/59880
27286         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
27287         if operands[1] is a REG or ZERO_EXTEND of a REG.
27289 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
27291         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
27293 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
27295         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
27296         long non-pic millicode calls.
27298 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27300         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
27302 2014-01-19  Kito Cheng  <kito@0xlab.org>
27304         * builtins.c (expand_movstr): Check movstr expand done or fail.
27306 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
27307             H.J. Lu  <hongjiu.lu@intel.com>
27309         PR target/59379
27310         * config/i386/i386.md (*lea<mode>): Zero-extend return register
27311         to DImode for zero-extended addresses.
27313 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
27315         PR rtl-optimization/57763
27316         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
27317         on the new indirect jump_insn and increment LABEL_NUSES (label).
27319 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
27321         PR bootstrap/59580
27322         PR bootstrap/59583
27323         * config.gcc (x86_archs): New variable.
27324         (x86_64_archs): Likewise.
27325         (x86_cpus): Likewise.
27326         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
27327         --with-arch/--with-cpu= options.
27328         Support --with-arch=/--with-cpu={nehalem,westmere,
27329         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
27331 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
27333         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
27334         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
27336 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
27338         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
27340 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
27342         PR target/58944
27343         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
27344         clear cpp_get_options (parse_in)->warn_unused_macros for
27345         ix86_target_macros_internal with cpp_define.
27347 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
27349         * jump.c (delete_related_insns): Keep (use (insn))s.
27350         * reorg.c (redundant_insn): Check for barriers too.
27352 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27354         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
27356 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
27358         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
27359         call to $$dyncall when TARGET_LONG_CALLS is true.
27361 2014-01-17  Jeff Law  <law@redhat.com>
27363         * ree.c (combine_set_extension): Temporarily disable test for
27364         changing number of hard registers.
27366 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
27368         PR middle-end/58125
27369         * ipa-inline-analysis.c (inline_free_summary):
27370         Do not free summary of aliases.
27372 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
27374         PR middle-end/59706
27375         * gimplify.c (gimplify_expr): Use create_tmp_var
27376         instead of create_tmp_var_raw.  If cond doesn't have
27377         integral type, don't add the IFN_ANNOTATE builtin at all.
27379 2014-01-17  Martin Jambor  <mjambor@suse.cz>
27381         PR ipa/59736
27382         * ipa-cp.c (prev_edge_clone): New variable.
27383         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
27384         Also resize prev_edge_clone vector.
27385         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
27386         (ipcp_edge_removal_hook): New function.
27387         (ipcp_driver): Register ipcp_edge_removal_hook.
27389 2014-01-17  Andrew Pinski  <apinski@cavium.com>
27390             Steve Ellcey  <sellcey@mips.com>
27392         PR target/59462
27393         * config/mips/mips.c (mips_print_operand): Check operand mode instead
27394         of operator mode.
27396 2014-01-17  Jeff Law  <law@redhat.com>
27398         PR middle-end/57904
27399         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
27400         so that pass_ccp runs first.
27402 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27404         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
27405         (ix86_adjust_cost): Use !TARGET_XXX.
27406         (do_reorder_for_imul): Likewise.
27407         (swap_top_of_ready_list): Likewise.
27408         (ix86_sched_reorder): Likewise.
27410 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27412         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27413         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
27414         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
27415         (intel_memset): New.  Duplicate slm_memset.
27416         (intel_cost): New.  Duplicate slm_cost.
27417         (m_INTEL): New macro.
27418         (processor_target_table): Add "intel".
27419         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
27420         with PROCESSOR_INTEL for "intel".
27421         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
27422         PROCESSOR_SILVERMONT.
27423         (ix86_issue_rate): Likewise.
27424         (ix86_adjust_cost): Likewise.
27425         (ia32_multipass_dfa_lookahead): Likewise.
27426         (swap_top_of_ready_list): Likewise.
27427         (ix86_sched_reorder): Likewise.
27428         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
27429         instead of TARGET_OPT_AGU.
27430         * config/i386/i386.h (TARGET_INTEL): New.
27431         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
27432         (processor_type): Add PROCESSOR_INTEL.
27433         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
27434         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
27436 2014-01-17  Marek Polacek  <polacek@redhat.com>
27438         PR c/58346
27439         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
27440         size is zero.
27442 2014-01-17  Richard Biener  <rguenther@suse.de>
27444         PR tree-optimization/46590
27445         * opts.c (default_options_table): Add entries for
27446         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
27447         all enabled at -O1 but not for -Og.
27448         * common.opt (fbranch-count-reg): Remove Init(1).
27449         (fmove-loop-invariants): Likewise.
27450         (ftree-pta): Likewise.
27452 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
27454         * config/i386/i386.c (ix86_data_alignment): For compatibility with
27455         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
27456         decls to at least the GCC 4.8 used alignments.
27458         PR fortran/59440
27459         * tree-nested.c (convert_nonlocal_reference_stmt,
27460         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
27461         of GIMPLE_BIND stmts, adjust associated decls.
27463 2014-01-17  Richard Biener  <rguenther@suse.de>
27465         PR tree-optimization/46590
27466         * vec.h (vec<>::bseach): New member function implementing
27467         binary search according to C89 bsearch.
27468         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
27469         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
27470         bitmap pointer again.  Make accesses_in_loop a flat array.
27471         (mem_ref_obstack): New global.
27472         (outermost_indep_loop): Adjust for mem_ref->stored changes.
27473         (mark_ref_stored): Likewise.
27474         (ref_indep_loop_p_2): Likewise.
27475         (set_ref_stored_in_loop): New helper function.
27476         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
27477         (memref_free): Adjust.
27478         (record_mem_ref_loc): Simplify.
27479         (gather_mem_refs_stmt): Adjust.
27480         (sort_locs_in_loop_postorder_cmp): New function.
27481         (analyze_memory_references): Sort accesses_in_loop after
27482         loop postorder number.
27483         (find_ref_loc_in_loop_cmp): New function.
27484         (for_all_locs_in_loop): Find relevant cluster of locs in
27485         accesses_in_loop and iterate without recursion.
27486         (execute_sm): Avoid uninit warning.
27487         (struct ref_always_accessed): Simplify.
27488         (ref_always_accessed::operator ()): Likewise.
27489         (ref_always_accessed_p): Likewise.
27490         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
27491         loop postorder numbers here.
27492         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
27493         numbers.
27495 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
27497         PR c++/57945
27498         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
27499         on decls for which assemble_alias has been called.
27501 2014-01-17  Nick Clifton  <nickc@redhat.com>
27503         * config/msp430/msp430.opt: (mcpu): New option.
27504         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
27505         (msp430_option_override): Parse target_cpu.  If the MCU name
27506         matches a generic string, clear target_mcu.
27507         (msp430_attr): Allow numeric interrupt values up to 63.
27508         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
27509         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
27510         option.
27511         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
27512         Add mcpu matches.
27513         * config/msp430/msp430.md (popm): Use %J rather than %I.
27514         (addsi3): Use msp430_nonimmediate_operand for operand 2.
27515         (addhi_cy_i): Use immediate_operand for operand 2.
27516         * doc/invoke.texi: Document -mcpu option.
27518 2014-01-17  Richard Biener  <rguenther@suse.de>
27520         PR rtl-optimization/38518
27521         * df.h (df_analyze_loop): Declare.
27522         * df-core.c: Include cfgloop.h.
27523         (df_analyze_1): Split out main part of df_analyze.
27524         (df_analyze): Adjust.
27525         (loop_inverted_post_order_compute): New function.
27526         (loop_post_order_compute): Likewise.
27527         (df_analyze_loop): New function avoiding whole-function
27528         postorder computes.
27529         * loop-invariant.c (find_defs): Use df_analyze_loop.
27530         (find_invariants): Adjust.
27531         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
27533 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
27535         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
27536         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
27538 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
27540         * ipa-ref.c (ipa_remove_stmt_references): Fix references
27541         traversal when removing references.
27543 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
27545         PR ipa/59775
27546         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
27548 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
27550         PR middle-end/56791
27551         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
27552         pushing a reload for an autoinc when we had previously reloaded an
27553         inner part of the address.
27555 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
27557         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
27558         field.
27559         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
27560         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
27561         when not giving up or versioning for alias only because of
27562         loop->safelen.
27563         (vect_analyze_data_ref_dependences): Set to true.
27564         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
27565         is a GIMPLE_PHI.
27566         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
27567         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
27568         to the condition.
27570         PR middle-end/58344
27571         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
27573         PR target/59839
27574         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
27575         operand 0 predicate for gathers, use a new pseudo as subtarget.
27577 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
27579         PR middle-end/59609
27580         * lra-constraints.c (process_alt_operands): Add printing debug info.
27581         Check absence of input/output reloads for matched operands too.
27583 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
27585         PR rtl-optimization/59835
27586         * ira.c (ira_init_register_move_cost): Increase cost for
27587         impossible modes.
27589 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
27591         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
27593 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
27595         PR target/59780
27596         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
27597         non-register objects.  Use gen_(high/low)part more consistently.
27598         Fix assertions.
27600 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
27602         PR target/59844
27603         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
27604         endian support, remove tests for WORDS_BIG_ENDIAN.
27605         (p8_mfvsrd_3_<mode>): Likewise.
27606         (reload_gpr_from_vsx<mode>): Likewise.
27607         (reload_gpr_from_vsxsf): Likewise.
27608         (p8_mfvsrd_4_disf): Likewise.
27610 2014-01-16  Richard Biener  <rguenther@suse.de>
27612         PR rtl-optimization/46590
27613         * lcm.c (compute_antinout_edge): Use postorder iteration.
27614         (compute_laterin): Use inverted postorder iteration.
27616 2014-01-16  Nick Clifton  <nickc@redhat.com>
27618         PR middle-end/28865
27619         * varasm.c (output_constant): Return the number of bytes actually
27620         emitted.
27621         (output_constructor_array_range): Update the field size with the
27622         number of bytes emitted by output_constant.
27623         (output_constructor_regular_field): Likewise.  Also do not
27624         complain if the total number of bytes emitted is now greater
27625         than the expected fieldpos.
27626         * output.h (output_constant): Update prototype and descriptive comment.
27628 2014-01-16  Marek Polacek  <polacek@redhat.com>
27630         PR middle-end/59827
27631         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
27632         it is error_mark_node.
27634 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
27636         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
27637         VALID_AVX256_REG_OR_OI_MODE.
27639 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
27641         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
27642         current procedure should be profiled.
27644 2014-01-15  Andrew Pinski  <apinski@cavium.com>
27646         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
27647         of moving from/to the STACK_REG register class.
27649 2014-01-15  Richard Henderson  <rth@redhat.com>
27651         PR debug/54694
27652         * reginfo.c (global_regs_decl): Globalize.
27653         * rtl.h (global_regs_decl): Declare.
27654         * ira.c (do_reload): Diagnose frame_pointer_needed and it
27655         reserved via global_regs.
27657 2014-01-15  Teresa Johnson  <tejohnson@google.com>
27659         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
27661 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
27663         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
27664         and vmulosh rather than call gen_vec_widen_smult_*.
27665         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
27666         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
27667         (vec_widen_smult_even_v16qi): Likewise.
27668         (vec_widen_umult_even_v8hi): Likewise.
27669         (vec_widen_smult_even_v8hi): Likewise.
27670         (vec_widen_umult_odd_v16qi): Likewise.
27671         (vec_widen_smult_odd_v16qi): Likewise.
27672         (vec_widen_umult_odd_v8hi): Likewise.
27673         (vec_widen_smult_odd_v8hi): Likewise.
27674         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
27675         vmuloub rather than call gen_vec_widen_umult_*.
27676         (vec_widen_umult_lo_v16qi): Likewise.
27677         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
27678         vmulosb rather than call gen_vec_widen_smult_*.
27679         (vec_widen_smult_lo_v16qi): Likewise.
27680         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
27681         rather than call gen_vec_widen_umult_*.
27682         (vec_widen_umult_lo_v8hi): Likewise.
27683         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
27684         rather than call gen_vec_widen_smult_*.
27685         (vec_widen_smult_lo_v8hi): Likewise.
27687 2014-01-15  Jeff Law  <law@redhat.com>
27689         PR tree-optimization/59747
27690         * ree.c (find_and_remove_re): Properly handle case where a second
27691         eliminated extension requires widening a copy created for elimination
27692         of a prior extension.
27693         (combine_set_extension): Ensure that the number of hard regs needed
27694         for a destination register does not change when we widen it.
27696 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27698         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
27699         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
27700         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
27701         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
27702         (avr-*-rtems*): Likewise.
27703         (bfin*-rtems*): Likewise.
27704         (moxie-*-rtems*): Likewise.
27705         (h8300-*-rtems*): Likewise.
27706         (i[34567]86-*-rtems*): Likewise.
27707         (lm32-*-rtems*): Likewise.
27708         (m32r-*-rtems*): Likewise.
27709         (m68k-*-rtems*): Likewise.
27710         (microblaze*-*-rtems*): Likewise.
27711         (mips*-*-rtems*): Likewise.
27712         (powerpc-*-rtems*): Likewise.
27713         (sh-*-rtems*): Likewise.
27714         (sparc-*-rtems*): Likewise.
27715         (sparc64-*-rtems*): Likewise.
27716         (v850-*-rtems*): Likewise.
27717         (m32c-*-rtems*): Likewise.
27719 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
27721         PR rtl-optimization/59511
27722         * ira.c (ira_init_register_move_cost): Use memory costs for some
27723         cases of register move cost calculations.
27724         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
27725         instead of BB frequency.
27726         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
27727         * lra-assigns.c (find_hard_regno_for): Ditto.
27729 2014-01-15  Richard Biener  <rguenther@suse.de>
27731         PR tree-optimization/59822
27732         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
27733         (vectorizable_load): Use it to hoist defs of uses of invariant
27734         loads out of the loop.
27736 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
27737             Kugan Vivekanandarajah  <kuganv@linaro.org>
27739         PR target/59695
27740         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
27741         truncation.
27743 2014-01-15  Richard Biener  <rguenther@suse.de>
27745         PR rtl-optimization/59802
27746         * lcm.c (compute_available): Use inverted postorder to seed
27747         the initial worklist.
27749 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27751         PR target/59803
27752         * config/s390/s390.c (s390_preferred_reload_class): Don't return
27753         ADDR_REGS for invalid symrefs in non-PIC code.
27755 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
27757         PR other/58712
27758         * builtins.c (determine_block_size): Initialize *probable_max_size
27759         even if len_rtx is CONST_INT.
27761 2014-01-14  Andrew Pinski  <apinski@cavium.com>
27763         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
27764         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
27765         (cortexa53_tunings): Likewise.
27766         (aarch64_sched_issue_rate): New function.
27767         (TARGET_SCHED_ISSUE_RATE): Define.
27769 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
27771         * ira-costs.c (find_costs_and_classes): Add missed
27772         ira_init_register_move_cost_if_necessary.
27774 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
27776         PR target/59787
27777         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
27779 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
27781         PR target/59794
27782         * config/i386/i386.c (type_natural_mode): Add a bool parameter
27783         to indicate if type is used for function return value.  Warn ABI
27784         change if the vector mode isn't available for function return value.
27785         (ix86_function_arg_advance): Pass false to type_natural_mode.
27786         (ix86_function_arg): Likewise.
27787         (ix86_gimplify_va_arg): Likewise.
27788         (function_arg_32): Don't warn ABI change.
27789         (ix86_function_value): Pass true to type_natural_mode.
27790         (ix86_return_in_memory): Likewise.
27791         (ix86_struct_value_rtx): Removed.
27792         (TARGET_STRUCT_VALUE_RTX): Likewise.
27794 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27796         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
27797         converting a conditional jump into a conditional return.
27799 2014-01-14  Richard Biener  <rguenther@suse.de>
27801         PR tree-optimization/58921
27802         PR tree-optimization/59006
27803         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
27804         hoisting invariant stmts.
27805         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
27806         invariant loads on the preheader edge if possible.
27808 2014-01-14  Joey Ye  <joey.ye@arm.com>
27810         * doc/plugin.texi (Building GCC plugins): Update to C++.
27812 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
27814         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
27815         (_mm_rcp28_round_ss): Ditto.
27816         (_mm_rsqrt28_round_sd): Ditto.
27817         (_mm_rsqrt28_round_ss): Ditto.
27818         (_mm_rcp28_sd): Ditto.
27819         (_mm_rcp28_ss): Ditto.
27820         (_mm_rsqrt28_sd): Ditto.
27821         (_mm_rsqrt28_ss): Ditto.
27822         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
27823         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
27824         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
27825         (IX86_BUILTIN_RCP28SD): Ditto.
27826         (IX86_BUILTIN_RCP28SS): Ditto.
27827         (IX86_BUILTIN_RSQRT28SD): Ditto.
27828         (IX86_BUILTIN_RSQRT28SS): Ditto.
27829         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
27830         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
27831         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
27832         (ix86_expand_special_args_builtin): Expand new FTYPE.
27833         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
27834         (srcp14<mode>): Make insn unary.
27835         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
27836         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
27837         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
27838         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
27839         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
27840         Fix rounding: make it SAE only.
27841         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27842         Ditto.
27843         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27844         Ditto.
27845         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
27846         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
27847         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
27848         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
27849         (round_saeonly_mask_scalar_operand4): Ditto.
27850         (round_saeonly_mask_scalar_op3): Ditto.
27851         (round_saeonly_mask_scalar_op4): Ditto.
27853 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27855         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27856         Implement -maltivec=be for vec_insert and vec_extract.
27858 2014-01-10  DJ Delorie  <dj@redhat.com>
27860         * config/msp430/msp430.md (call_internal): Don't allow memory
27861         references with SP as the base register.
27862         (call_value_internal): Likewise.
27863         * config/msp430/constraints.md (Yc): New.  For memory references
27864         that don't use SP as a base register.
27866         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
27867         "an integer without a # prefix"
27868         * config/msp430/msp430.md (epilogue_helper): Use it.
27870 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
27872         PR target/59617
27873         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
27874         AVX512F gather builtins.
27875         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
27876         on gather decls with INTEGER_TYPE masktype.
27877         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
27878         directly into the builtin rather than hoisting it before loop.
27880         PR tree-optimization/59387
27881         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
27882         (scev_const_prop): If folded_casts and type has undefined overflow,
27883         use force_gimple_operand instead of force_gimple_operand_gsi and
27884         for each added stmt if it is assign with
27885         arith_code_with_undefined_signed_overflow, call
27886         rewrite_to_defined_overflow.
27887         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
27888         gimple-fold.h instead.
27889         (arith_code_with_undefined_signed_overflow,
27890         rewrite_to_defined_overflow): Moved to ...
27891         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
27892         rewrite_to_defined_overflow): ... here.  No longer static.
27893         Include gimplify-me.h.
27894         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
27895         rewrite_to_defined_overflow): New prototypes.
27897 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27899         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
27901 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
27903         * builtins.c (get_object_alignment_2): Minor tweak.
27904         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
27906 2014-01-13  Christian Bruel  <christian.bruel@st.com>
27908         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
27909         optimized non constant lengths.
27911 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
27913         PR libgomp/59194
27914         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
27915         load as __atomic_load_N if possible.
27917 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
27919         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
27920         target parameter.
27921         (rs6000_expand_builtin): Adjust call.
27923 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
27925         PR target/58115
27926         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
27927         * config/rs6000/rs6000.c: Include target-globals.h.
27928         (rs6000_set_current_function): Instead of doing target_reinit
27929         unconditionally, use save_target_globals_default_opts and
27930         restore_target_globals.
27932         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
27933         FPSCR.
27934         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
27935         (rs6000_expand_builtin): Handle mffs and mtfsf.
27936         (rs6000_init_builtins): Define mffs and mtfsf.
27937         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
27938         (rs6000_mffs): New pattern.
27939         (rs6000_mtfsf): New pattern.
27941 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
27943         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
27944         Start narrowing with START.  Apply candidate-use pair
27945         and check overall cost in narrowing.
27946         (iv_ca_prune): Pass new argument.
27948 2014-01-10  Jeff Law  <law@redhat.com>
27950         PR middle-end/59743
27951         * ree.c (combine_reaching_defs): Ensure the defining statement
27952         occurs before the extension when optimizing extensions with
27953         different source and destination hard registers.
27955 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
27957         PR ipa/58585
27958         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
27959         vtables into the type inheritance graph.
27961 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
27963         PR rtl-optimization/59754
27964         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
27965         modes in the REGNO != REGNO case.
27967 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27969         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
27971 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
27973         PR tree-optimization/59745
27974         * tree-predcom.c (tree_predictive_commoning_loop): Call
27975         free_affine_expand_cache if giving up because components is NULL.
27977         * target-globals.c (save_target_globals): Allocate < 4KB structs using
27978         GC in payload of target_globals struct instead of allocating them on
27979         the heap and the larger structs separately using GC.
27980         * target-globals.h (struct target_globals): Make regs, hard_regs,
27981         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
27982         of GTY((skip)) and change type to void *.
27983         (reset_target_globals): Cast loads from those fields to corresponding
27984         types.
27986 2014-01-10  Steve Ellcey  <sellcey@mips.com>
27988         PR plugins/59335
27989         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
27990         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
27991         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
27993 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
27995         PR target/59744
27996         * aarch64-modes.def (CC_Zmode): New flags mode.
27997         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
27998         represents an equality.
27999         (aarch64_get_condition_code): Handle CC_Zmode.
28000         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
28002 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28004         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
28005         extraction in good case.
28007 2014-01-10  Richard Biener  <rguenther@suse.de>
28009         PR tree-optimization/59374
28010         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
28011         checking after SLP discovery.  Mark stmts not participating
28012         in any SLP instance properly.
28014 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28016         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
28017         when handling a SET rtx.
28019 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28021         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
28022         (cortex-a57): Likewise.
28023         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
28025 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28027         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
28028         non-iwmmxt builtins.
28030 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
28032         PR ipa/58252
28033         PR ipa/59226
28034         * ipa-devirt.c record_target_from_binfo): Take as argument
28035         stack of binfos and lookup matching one for virtual inheritance.
28036         (possible_polymorphic_call_targets_1): Update.
28038 2014-01-10  Huacai Chen  <chenhc@lemote.com>
28040         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
28041         kernel strings for Loongson-2E/2F/3A.
28043 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
28045         PR middle-end/59670
28046         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
28047         is_gimple_call before calling gimple_call_internal_p.
28049 2014-01-09  Steve Ellcey  <sellcey@mips.com>
28051         * Makefile.in (TREE_FLOW_H): Remove.
28052         (TREE_SSA_H): Add file names from tree-flow.h.
28053         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
28054         * tree.h: Remove tree-flow.h reference.
28055         * hash-table.h: Remove tree-flow.h reference.
28056         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
28057         reference with tree-ssa-loop.h.
28059 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28061         * doc/invoke.texi: Add -maltivec={be,le} options, and document
28062         default element-order behavior for -maltivec.
28063         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
28064         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
28065         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
28066         when targeting big endian, at least for now.
28067         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
28069 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
28071         PR middle-end/47735
28072         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
28073         var satisfies use_register_for_decl, just take into account type
28074         alignment, rather than decl alignment.
28076         PR tree-optimization/59622
28077         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
28078         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
28079         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
28080         Don't devirtualize for inplace at all.  For targets.length () == 1,
28081         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
28083 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
28085         * config/i386/i386.md (cpu): Remove the unused btver1.
28087 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
28089         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
28091 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
28093         PR target/58115
28094         * tree-core.h (struct target_globals): New forward declaration.
28095         (struct tree_target_option): Add globals field.
28096         * tree.h (TREE_TARGET_GLOBALS): Define.
28097         (prepare_target_option_nodes_for_pch): New prototype.
28098         * target-globals.h (struct target_globals): Define even if
28099         !SWITCHABLE_TARGET.
28100         * tree.c (prepare_target_option_node_for_pch,
28101         prepare_target_option_nodes_for_pch): New functions.
28102         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
28103         * config/i386/i386.c: Include target-globals.h.
28104         (ix86_set_current_function): Instead of doing target_reinit
28105         unconditionally, use save_target_globals_default_opts and
28106         restore_target_globals.
28108 2014-01-09  Richard Biener  <rguenther@suse.de>
28110         PR tree-optimization/59715
28111         * tree-cfg.h (split_critical_edges): Declare.
28112         * tree-cfg.c (split_critical_edges): Export.
28113         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
28115 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
28117         * cfgexpand.c (expand_stack_vars): Optionally disable
28118         asan stack protection.
28119         (expand_used_vars): Likewise.
28120         (partition_stack_vars): Likewise.
28121         * asan.c (asan_emit_stack_protection): Optionally disable
28122         after return stack usage.
28123         (instrument_derefs): Optionally disable memory access instrumentation.
28124         (instrument_builtin_call): Likewise.
28125         (instrument_strlen_call): Likewise.
28126         (asan_protect_global): Optionally disable global variables protection.
28127         * doc/invoke.texi: Added doc for new options.
28128         * params.def: Added new options.
28129         * params.h: Likewise.
28131 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
28133         PR rtl-optimization/59724
28134         * ifcvt.c (cond_exec_process_if_block): Don't call
28135         flow_find_head_matching_sequence with 0 longest_match.
28136         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
28137         non-active insns if !stop_after.
28138         (try_head_merge_bb): Revert 2014-01-07 changes.
28140 2014-01-08  Jeff Law  <law@redhat.com>
28142         * ree.c (get_sub_rtx): New function, extracted from...
28143         (merge_def_and_ext): Here.
28144         (combine_reaching_defs): Use get_sub_rtx.
28146 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
28148         * cgraph.h (varpool_variable_node): Do not choke on null node.
28150 2014-01-08  Catherine Moore  <clm@codesourcery.com>
28152         * config/mips/mips.md (simple_return): Attempt to use JRC
28153         for microMIPS.
28154         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
28156 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
28158         PR rtl-optimization/59137
28159         * reorg.c (steal_delay_list_from_target): Call update_block for
28160         elided insns.
28161         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
28163 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28165         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
28166         two duplicate entries.
28168 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
28170         Revert:
28171         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
28173         * config/mips/mips.c (mips_truncated_op_cost): New function.
28174         (mips_rtx_costs): Adjust test for BADDU.
28175         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
28177         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
28179         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
28180         (*baddu_si): ...this new pattern.
28182 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
28184         PR ipa/59722
28185         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
28187 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28189         PR middle-end/57748
28190         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
28191         inner_reference_p.
28192         (expand_expr, expand_normal): Adjust.
28193         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
28194         inner_reference_p. Use inner_reference_p to expand inner references.
28195         (store_expr): Adjust.
28196         * cfgexpand.c (expand_call_stmt): Adjust.
28198 2014-01-08  Rong Xu  <xur@google.com>
28200         * gcov-io.c (gcov_var): Move from gcov-io.h.
28201         (gcov_position): Ditto.
28202         (gcov_is_error): Ditto.
28203         (gcov_rewrite): Ditto.
28204         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
28205         only part to libgcc/libgcov.h.
28207 2014-01-08  Marek Polacek  <polacek@redhat.com>
28209         PR middle-end/59669
28210         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
28212 2014-01-08  Marek Polacek  <polacek@redhat.com>
28214         PR sanitizer/59667
28215         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
28217 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
28219         PR rtl-optimization/59649
28220         * stor-layout.c (get_mode_bounds): For BImode return
28221         0 and STORE_FLAG_VALUE.
28223 2014-01-08  Richard Biener  <rguenther@suse.de>
28225         PR middle-end/59630
28226         * gimple.h (is_gimple_builtin_call): Remove.
28227         (gimple_builtin_call_types_compatible_p): New.
28228         (gimple_call_builtin_p): New overload.
28229         * gimple.c (is_gimple_builtin_call): Remove.
28230         (validate_call): Rename to ...
28231         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
28232         check return types.
28233         (validate_type): New static function.
28234         (gimple_call_builtin_p): New overload and adjust.
28235         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
28236         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
28237         (gimple_fold_stmt_to_constant_1): Likewise.
28238         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
28240 2014-01-08  Richard Biener  <rguenther@suse.de>
28242         PR middle-end/59471
28243         * gimplify.c (gimplify_expr): Gimplify register-register type
28244         VIEW_CONVERT_EXPRs to separate stmts.
28246 2014-01-07  Jeff Law  <law@redhat.com>
28248         PR middle-end/53623
28249         * ree.c (combine_set_extension): Handle case where source
28250         and destination registers in an extension insn are different.
28251         (combine_reaching_defs): Allow source and destination registers
28252         in extension to be different under limited circumstances.
28253         (add_removable_extension): Remove restriction that the
28254         source and destination registers in the extension are the same.
28255         (find_and_remove_re): Emit a copy from the extension's
28256         destination to its source after the defining insn if
28257         the source and destination registers are different.
28259         PR middle-end/59285
28260         * ifcvt.c (merge_if_block): If we are merging a block with more than
28261         one successor with a block with no successors, remove any BARRIER
28262         after the second block.
28264 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
28266         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
28268 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
28270         PR target/59652
28271         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
28272         for 14-bit register offsets when INT14_OK_STRICT is false.
28274 2014-01-07  Roland Stigge  <stigge@antcom.de>
28275             Michael Meissner  <meissner@linux.vnet.ibm.com>
28277         PR 57386/target
28278         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
28279         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
28281 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
28283         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
28284         -mcpu.
28286 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
28288         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
28289         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
28290         rtx is const0_rtx or not.
28292 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
28294         PR target/58115
28295         * target-globals.c (save_target_globals): Remove this_fn_optab
28296         handling.
28297         * toplev.c: Include optabs.h.
28298         (target_reinit): Temporarily restore the global options if another
28299         set of options are in force.
28301 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
28303         PR rtl-optimization/58668
28304         * cfgcleanup.c (flow_find_cross_jump): Don't count
28305         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
28306         to determine what is counted.
28307         (flow_find_head_matching_sequence): Use active_insn_p to determine
28308         what is counted.
28309         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
28310         counting change.
28311         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
28312         determine what is counted.
28314         PR tree-optimization/59643
28315         * tree-predcom.c (split_data_refs_to_components): If one dr is
28316         read and one write, determine_offset fails and the write isn't
28317         in the bad component, just put the read into the bad component.
28319 2014-01-07  Mike Stump  <mikestump@comcast.net>
28320             Jakub Jelinek  <jakub@redhat.com>
28322         PR pch/59436
28323         * tree-core.h (struct tree_optimization_option): Change optabs
28324         type from unsigned char * to void *.
28325         * optabs.c (init_tree_optimization_optabs): Adjust
28326         TREE_OPTIMIZATION_OPTABS initialization.
28328 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
28330         PR target/59644
28331         * config/i386/i386.h (struct machine_function): Add
28332         no_drap_save_restore field.
28333         * config/i386/i386.c (ix86_save_reg): Use
28334         !cfun->machine->no_drap_save_restore instead of
28335         crtl->stack_realign_needed.
28336         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
28337         this function clears frame_pointer_needed.  Set
28338         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
28339         and DRAP reg is needed.
28341 2014-01-06  Marek Polacek  <polacek@redhat.com>
28343         PR c/57773
28344         * doc/implement-c.texi: Mention that other integer types are
28345         permitted as bit-field types in strictly conforming mode.
28347 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
28349         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
28350         is newly allocated.
28352 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
28354         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
28356 2014-01-06  Martin Jambor  <mjambor@suse.cz>
28358         PR ipa/59008
28359         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
28360         to int.
28361         * ipa-prop.c (ipa_print_node_params): Fix indentation.
28363 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
28365         PR debug/59350
28366         PR debug/59510
28367         * var-tracking.c (add_stores): Preserve the value of the source even if
28368         we don't record the store.
28370 2014-01-06  Terry Guo  <terry.guo@arm.com>
28372         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
28374 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
28376         PR bootstrap/59541
28377         * config/darwin.c (darwin_function_section): Adjust return values to
28378         correspond to optimisation changes made in r206070.
28380 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
28382         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
28383         from prefetch_block tune setting.
28384         (nocona_cost): Correct size of prefetch block to 64.
28386 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28388         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
28389         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
28390         used to save the static chain register in the computation of the offset
28391         from which the FP registers need to be restored.
28393 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
28395         PR tree-optimization/59519
28396         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
28397         ICE if get_current_def (current_new_name) is already non-NULL, as long
28398         as it is a phi result of some other phi in *new_exit_bb that has
28399         the same argument.
28401         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
28402         or vmovdqu* for misaligned_operand.
28403         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
28404         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
28405         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
28406         aligned_mem for AVX512F masked aligned load and store builtins and for
28407         non-temporal moves.
28409 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
28411         PR tree-optimization/59651
28412         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
28413         Address range for negative step should be added by TYPE_SIZE_UNIT.
28415 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
28417         * config/m68k/m68k.c (handle_move_double): Handle pushes with
28418         overlapping registers also for registers other than the stack pointer.
28420 2014-01-03  Marek Polacek  <polacek@redhat.com>
28422         PR other/59661
28423         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
28424         __builtin_FILE.
28426 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
28428         PR target/59625
28429         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
28430         asm goto as jump.
28432         * config/i386/i386.md (MODE_SIZE): New mode attribute.
28433         (push splitter): Use <P:MODE_SIZE> instead of
28434         GET_MODE_SIZE (<P:MODE>mode).
28435         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
28436         (mov -1, reg peephole2): Likewise.
28437         * config/i386/sse.md (*mov<mode>_internal,
28438         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
28439         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
28440         *<code><mode>3, *andnot<mode>3<mask_name>,
28441         <mask_codefor><code><mode>3<mask_name>): Likewise.
28442         * config/i386/subst.md (mask_mode512bit_condition,
28443         sd_mask_mode512bit_condition): Likewise.
28445 2014-01-02  Xinliang David Li  <davidxl@google.com>
28447         PR tree-optimization/59303
28448         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
28449         (dump_predicates): Better output format.
28450         (pred_equal_p): New function.
28451         (is_neq_relop_p): Ditto.
28452         (is_neq_zero_form_p): Ditto.
28453         (pred_expr_equal_p): Ditto.
28454         (pred_neg_p): Ditto.
28455         (simplify_pred): Ditto.
28456         (simplify_preds_2): Ditto.
28457         (simplify_preds_3): Ditto.
28458         (simplify_preds_4): Ditto.
28459         (simplify_preds): Ditto.
28460         (push_pred): Ditto.
28461         (push_to_worklist): Ditto.
28462         (get_pred_info_from_cmp): Ditto.
28463         (is_degenerated_phi): Ditto.
28464         (normalize_one_pred_1): Ditto.
28465         (normalize_one_pred): Ditto.
28466         (normalize_one_pred_chain): Ditto.
28467         (normalize_preds): Ditto.
28468         (normalize_cond_1): Remove function.
28469         (normalize_cond): Ditto.
28470         (is_gcond_subset_of): Ditto.
28471         (is_subset_of_any): Ditto.
28472         (is_or_set_subset_of): Ditto.
28473         (is_and_set_subset_of): Ditto.
28474         (is_norm_cond_subset_of): Ditto.
28475         (pred_chain_length_cmp): Ditto.
28476         (convert_control_dep_chain_into_preds): Type change.
28477         (find_predicates): Ditto.
28478         (find_def_preds): Ditto.
28479         (destroy_predicates_vecs): Ditto.
28480         (find_matching_predicates_in_rest_chains): Ditto.
28481         (use_pred_not_overlap_with_undef_path_pred): Ditto.
28482         (is_pred_expr_subset): Ditto.
28483         (is_pred_chain_subset_of): Ditto.
28484         (is_included_in): Ditto.
28485         (is_superset_of): Ditto.
28487 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
28489         Update copyright years.
28491 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
28493         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
28494         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
28495         config/arc/arc.md, config/arc/arc.opt,
28496         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
28497         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
28498         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
28499         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
28500         config/linux-protos.h, config/linux.c, config/winnt-c.c,
28501         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
28502         vtable-verify.c, vtable-verify.h: Use the standard form for the
28503         copyright notice.
28505 2014-01-02  Tobias Burnus  <burnus@net-b.de>
28507         * gcc.c (process_command): Update copyright notice dates.
28508         * gcov-dump.c: Ditto.
28509         * gcov.c: Ditto.
28510         * doc/cpp.texi: Bump @copying's copyright year.
28511         * doc/cppinternals.texi: Ditto.
28512         * doc/gcc.texi: Ditto.
28513         * doc/gccint.texi: Ditto.
28514         * doc/gcov.texi: Ditto.
28515         * doc/install.texi: Ditto.
28516         * doc/invoke.texi: Ditto.
28518 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
28520         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
28522 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
28524         * config/i386/sse.md (*mov<mode>_internal): Guard
28525         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
28527         PR rtl-optimization/59647
28528         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
28529         new_rtx into UNSIGNED_FLOAT rtxes.
28531 Copyright (C) 2014 Free Software Foundation, Inc.
28533 Copying and distribution of this file, with or without modification,
28534 are permitted in any medium without royalty provided the copyright
28535 notice and this notice are preserved.