* explow.c (convert_memory_address_addr_space_1): Mark in_const
[official-gcc.git] / gcc / ChangeLog
blob4316fa268adfaf6f3a4529335b8237343e780b81
1 2014-10-15  Andreas Schwab  <schwab@suse.de>
3         * explow.c (convert_memory_address_addr_space_1): Mark in_const
4         as ATTRIBUTE_UNUSED.
6 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
8         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
9         (decide_unrolling): ... this one.
10         (peel_loops_completely): Remove.
11         (decide_peel_simple): Remove.
12         (decide_peel_once_rolling): Remove.
13         (decide_peel_completely): Remove.
14         (peel_loop_simple): Remove.
15         (peel_loop_completely): Remove.
16         (unroll_and_peel_loops): Rename to ...
17         (unroll_loops): ... this one; handle only unrolling.
18         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
19         LPT_PEEL_SIMPLE.
20         (UAP_PEEL): Remove.
21         (unroll_and_peel_loops): Remove.
22         (unroll_loops): New.
23         * passes.def: Replace
24         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
25         * loop-init.c (gate_rtl_unroll_and_peel_loops,
26         rtl_unroll_and_peel_loops): Rename to ...
27         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
28         (pass_rtl_unroll_and_peel_loops): Rename to ...
29         (pass_rtl_unroll_loops): ... this one.
30         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
31         (make_pass_rtl_unroll_loops): New.
32         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
33         (canonicalize_loop_induction_variables): Update.
35 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
37         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
38         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
39         !TARGET_HARD_FLOAT_POSTINC.
40         (*lsip, *ssip): new instructions.
42 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
44         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
45         remove.
47 2014-10-14  Andrew Pinski  <apinski@cavium.com>
49         * explow.c (convert_memory_address_addr_space): Rename to ...
50         (convert_memory_address_addr_space_1): This.  Add in_const argument.
51         Inside a CONST RTL, permute the conversion and addition of constant
52         for zero and sign extended pointers.
53         (convert_memory_address_addr_space): New function.
55 2014-10-14  Andrew Pinski  <apinski@cavium.com>
57         Revert:
58         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
60         PR middle-end/49721
61         * explow.c (convert_memory_address_addr_space): Also permute the
62         conversion and addition of constant for zero-extend.
64 2014-10-14  DJ Delorie  <dj@redhat.com>
66         * config/msp430/msp430-modes.def (PSI): Add.
68         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
69         (msp430_hard_regno_nregs_with_padding): New.
70         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
71         (msp430_hard_regno_nregs_has_padding): New.
72         (msp430_hard_regno_nregs_with_padding): New.
73         (msp430_unwind_word_mode): Use PSImode instead of SImode.
74         (msp430_addr_space_legitimate_address_p): New.
75         (msp430_asm_integer): New.
76         (msp430_init_dwarf_reg_sizes_extra): New.
77         (msp430_print_operand): Use X suffix for PSImode even in small model.
78         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
79         (PTR_SIZE): ...but 4 bytes for EH.
80         (SIZE_TYPE): Use __int20.
81         (PTRDIFF_TYPE): Likewise.
82         (INCOMING_FRAME_SP_OFFSET): Adjust.
83         * config/msp430/msp430.md (movqi_topbyte): New.
84         (movpsi): Use fixed suffixes.
85         (movsipsi2): Enable for 430X, not large model.
86         (extendhipsi2): Likewise.
87         (zero_extendhisi2): Likewise.
88         (zero_extendhisipsi2): Likewise.
89         (extend_and_shift1_hipsi2): Likewise.
90         (extendpsisi2): Likewise.
91         (*bitbranch<mode>4_z): Fix suffix logic.
93 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
95         PR ada/62019
96         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
97         do not choke on null node.
98         <VAR_DECL>: Likewise.
100 2014-10-14  DJ Delorie  <dj@redhat.com>
102         * machmode.h (int_n_data_t): New.
103         (int_n_enabled_p): New.
104         (int_n_data): New.
105         * tree.c (int_n_enabled_p): New.
106         (int_n_trees): New.
107         (make_or_reuse_type): Check for all __intN types, not just
108         __int128.
109         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
110         entries.
111         * tree.h (int128_integer_type_node): Remove.
112         (int128_unsigned_type_node): Remove.
113         (int_n_trees_t): New.
114         (int_n_enabled_p): New.
115         (int_n_trees): New.
116         * toplev.c (standard_type_bitsize): New.
117         (do_compile): Check which __intN types are enabled for the current
118         run.
119         * builtin-types.def (BT_INT128): Remove.
120         (BT_UINT128): Remove.
121         * machmode.def: Add macro to create __int128 for all targets.
122         * stor-layout.c (mode_for_size): Support __intN types.
123         (smallest_mode_for_size): Likewise.
124         (initialize_sizetypes): Support __intN types.
125         * genmodes.c (struct mode_data): Add int_n field.
126         (blank_mode): Likewise.
127         (INT_N): New.
128         (make_int_n): New.
129         (emit_insn_modes_h): Count __intN entries and define
130         NUM_INT_N_ENTS.
131         (emit_mode_int_n): New.
132         (emit_insn_modes_c): Call it.
133         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
134         types, not just __int128.
135         * tree-core.h (integer_type_kind): Remove __int128-specific
136         entries, reserve spots for __intN entries.
138         * config/msp430/msp430-modes.def (PSI): Add.
140 2014-10-14  Kito Cheng  <kito@0xlab.org>
142         * ira.c: Fix typo in comment.
143         * ira.h: Ditto.
144         * ira-build.c: Ditto.
145         * ira-color.c: Ditto.
146         * ira-emit.c: Ditto.
147         * ira-int.h: Ditto.
148         * ira-lives.c: Ditto.
150 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
152         PR rtl-optimization/63475
153         * alias.c (true_dependence_1): Always use get_addr to extract
154         true address operands from x_addr and mem_addr.  Use extracted
155         address operands to check for references with alignment ANDs.
156         Use extracted address operands with find_base_term and
157         base_alias_check. For noncanonicalized operands call canon_rtx with
158         extracted address operand.
159         (write_dependence_1): Ditto.
160         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
162 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
164         PR target/63534
165         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
166         __morestack local.
168 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
169             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
170             Anna Tikhonova  <anna.tikhonova@intel.com>
171             Ilya Tocar  <ilya.tocar@intel.com>
172             Andrey Turetskiy  <andrey.turetskiy@intel.com>
173             Ilya Verbin  <ilya.verbin@intel.com>
174             Kirill Yukhin  <kirill.yukhin@intel.com>
175             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
177         * config/i386/i386.c
178         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
179         (ix86_expand_int_vcond): Ditto.
181 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
182             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
183             Anna Tikhonova  <anna.tikhonova@intel.com>
184             Ilya Tocar  <ilya.tocar@intel.com>
185             Andrey Turetskiy  <andrey.turetskiy@intel.com>
186             Ilya Verbin  <ilya.verbin@intel.com>
187             Kirill Yukhin  <kirill.yukhin@intel.com>
188             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
190         * config/i386/i386.c
191         (emit_reduc_half): Handle V64QI and V32HI mode.
192         * config/i386/sse.md
193         (define_mode_iterator VI_AVX512BW): New.
194         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
196 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
197             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
198             Anna Tikhonova  <anna.tikhonova@intel.com>
199             Ilya Tocar  <ilya.tocar@intel.com>
200             Andrey Turetskiy  <andrey.turetskiy@intel.com>
201             Ilya Verbin  <ilya.verbin@intel.com>
202             Kirill Yukhin  <kirill.yukhin@intel.com>
203             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
205         * config/i386/sse.md
206         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
208 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
209             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
210             Anna Tikhonova  <anna.tikhonova@intel.com>
211             Ilya Tocar  <ilya.tocar@intel.com>
212             Andrey Turetskiy  <andrey.turetskiy@intel.com>
213             Ilya Verbin  <ilya.verbin@intel.com>
214             Kirill Yukhin  <kirill.yukhin@intel.com>
215             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
217         * config/i386/i386.c
218         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
219         * config/i386/sse.md
220         (define_mode_iterator VI): Add V64QI and V32HI modes.
222 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
223             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
224             Anna Tikhonova  <anna.tikhonova@intel.com>
225             Ilya Tocar  <ilya.tocar@intel.com>
226             Andrey Turetskiy  <andrey.turetskiy@intel.com>
227             Ilya Verbin  <ilya.verbin@intel.com>
228             Kirill Yukhin  <kirill.yukhin@intel.com>
229             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
231         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
233 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
234             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
235             Anna Tikhonova  <anna.tikhonova@intel.com>
236             Ilya Tocar  <ilya.tocar@intel.com>
237             Andrey Turetskiy  <andrey.turetskiy@intel.com>
238             Ilya Verbin  <ilya.verbin@intel.com>
239             Kirill Yukhin  <kirill.yukhin@intel.com>
240             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
242         * config/i386/sse.md
243         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
244         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
246 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
247             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
248             Anna Tikhonova  <anna.tikhonova@intel.com>
249             Ilya Tocar  <ilya.tocar@intel.com>
250             Andrey Turetskiy  <andrey.turetskiy@intel.com>
251             Ilya Verbin  <ilya.verbin@intel.com>
252             Kirill Yukhin  <kirill.yukhin@intel.com>
253             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
255         * config/i386/sse.md
256         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
257         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
259 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
260             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
261             Anna Tikhonova  <anna.tikhonova@intel.com>
262             Ilya Tocar  <ilya.tocar@intel.com>
263             Andrey Turetskiy  <andrey.turetskiy@intel.com>
264             Ilya Verbin  <ilya.verbin@intel.com>
265             Kirill Yukhin  <kirill.yukhin@intel.com>
266             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
268         * config/i386/sse.md
269         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
270         (define_mode_iterator VI2_AVX2): Add V32HI mode.
271         (define_expand "mul<mode>3<mask_name>"): Add masking.
272         (define_insn "*mul<mode>3<mask_name>"): Ditto.
273         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
274         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
275         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
276         (define_mode_attr SDOT_PMADD_SUF): Ditto.
277         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
278         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
279         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
280         (define_insn "avx2_packusdw"): Delete.
281         (define_insn "sse4_1_packusdw"): Ditto.
282         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
284 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
285             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
286             Anna Tikhonova  <anna.tikhonova@intel.com>
287             Ilya Tocar  <ilya.tocar@intel.com>
288             Andrey Turetskiy  <andrey.turetskiy@intel.com>
289             Ilya Verbin  <ilya.verbin@intel.com>
290             Kirill Yukhin  <kirill.yukhin@intel.com>
291             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
293         * config/i386/sse.md
294         (define_insn "vec_dup<mode>"): Update constraints.
296 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
297             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
298             Anna Tikhonova  <anna.tikhonova@intel.com>
299             Ilya Tocar  <ilya.tocar@intel.com>
300             Andrey Turetskiy  <andrey.turetskiy@intel.com>
301             Ilya Verbin  <ilya.verbin@intel.com>
302             Kirill Yukhin  <kirill.yukhin@intel.com>
303             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
305         * config/i386/sse.md
306         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
307         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
308         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
310 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
311             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
312             Anna Tikhonova  <anna.tikhonova@intel.com>
313             Ilya Tocar  <ilya.tocar@intel.com>
314             Andrey Turetskiy  <andrey.turetskiy@intel.com>
315             Ilya Verbin  <ilya.verbin@intel.com>
316             Kirill Yukhin  <kirill.yukhin@intel.com>
317             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
319         * config/i386/sse.md
320         (define_expand "mul<mode>3<mask_name>"): Add masking.
322 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
323             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
324             Anna Tikhonova  <anna.tikhonova@intel.com>
325             Ilya Tocar  <ilya.tocar@intel.com>
326             Andrey Turetskiy  <andrey.turetskiy@intel.com>
327             Ilya Verbin  <ilya.verbin@intel.com>
328             Kirill Yukhin  <kirill.yukhin@intel.com>
329             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
331         * config/i386/sse.md
332         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
333         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
335 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
336             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
337             Anna Tikhonova  <anna.tikhonova@intel.com>
338             Ilya Tocar  <ilya.tocar@intel.com>
339             Andrey Turetskiy  <andrey.turetskiy@intel.com>
340             Ilya Verbin  <ilya.verbin@intel.com>
341             Kirill Yukhin  <kirill.yukhin@intel.com>
342             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
344         * config/i386/sse.md
345         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
346         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
347         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
348         Ditto.
350 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
351             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
352             Anna Tikhonova  <anna.tikhonova@intel.com>
353             Ilya Tocar  <ilya.tocar@intel.com>
354             Andrey Turetskiy  <andrey.turetskiy@intel.com>
355             Ilya Verbin  <ilya.verbin@intel.com>
356             Kirill Yukhin  <kirill.yukhin@intel.com>
357             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
359         * config/i386/sse.md
360         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
361         use VF_128_256 mode iterator and update assembler emit code.
362         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
363         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
364         Add masking, use VF_128_256 mode iterator.
365         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
366         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
367         Add masking, use VF_128_256 mode iterator and update assembler emit
368         code.
369         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
370         (define_mode_attr avx512flogicsuff): Delete.
371         (define_insn "avx512f_<logic><mode>"): Ditto.
372         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
373         MODE_TI.
374         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
376 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
377             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
378             Anna Tikhonova  <anna.tikhonova@intel.com>
379             Ilya Tocar  <ilya.tocar@intel.com>
380             Andrey Turetskiy  <andrey.turetskiy@intel.com>
381             Ilya Verbin  <ilya.verbin@intel.com>
382             Kirill Yukhin  <kirill.yukhin@intel.com>
383             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
385         * config/i386/sse.md
386         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
387         (define_expand "vashr<mode>3<mask_name>"): Add masking,
388         use VI12_128 mode iterator.
389         (define_expand "ashrv2di3<mask_name>"): New.
391 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
392             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
393             Anna Tikhonova  <anna.tikhonova@intel.com>
394             Ilya Tocar  <ilya.tocar@intel.com>
395             Andrey Turetskiy  <andrey.turetskiy@intel.com>
396             Ilya Verbin  <ilya.verbin@intel.com>
397             Kirill Yukhin  <kirill.yukhin@intel.com>
398             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
400         * config/i386/i386.c
401         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
402         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
403         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
404         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
405         CODE_FOR_avx512vl_ucmpv4si3_mask.
406         * config/i386/sse.md
407         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
408         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
409         (define_insn
410         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
411         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
412         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
413         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
414         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
415         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
417 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
418             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
419             Anna Tikhonova  <anna.tikhonova@intel.com>
420             Ilya Tocar  <ilya.tocar@intel.com>
421             Andrey Turetskiy  <andrey.turetskiy@intel.com>
422             Ilya Verbin  <ilya.verbin@intel.com>
423             Kirill Yukhin  <kirill.yukhin@intel.com>
424             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
426         * config/i386/sse.md
427         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
428         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
429         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
430         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
431         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
432         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
433         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
434         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
435         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
437 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
438             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
439             Anna Tikhonova  <anna.tikhonova@intel.com>
440             Ilya Tocar  <ilya.tocar@intel.com>
441             Andrey Turetskiy  <andrey.turetskiy@intel.com>
442             Ilya Verbin  <ilya.verbin@intel.com>
443             Kirill Yukhin  <kirill.yukhin@intel.com>
444             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
446         * config/i386/sse.md
447         (define_insn "avx512f_blendm<mode>"): Delete.
448         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
449         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
450         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
451         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
452         (define_insn
453         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
454         Remove.
455         (define_insn
456         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
457         New.
458         (define_insn
459         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
460         Ditto.
461         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
462         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
463         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
464         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
465         Delete.
466         (define_insn
467         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
468         New.
469         (define_insn
470         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
471         Ditto.
472         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
473         Delete.
474         (define_insn
475         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
476         New.
477         (define_insn
478         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
479         Ditto.
481 2014-10-14  Richard Biener  <rguenther@suse.de>
483         PR tree-optimization/63512
484         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
485         modified.
487 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
489         PR target/63260
490         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
491         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
492         of FPSCR.
493         (negsf2_i): Rename to *negsf2_i.
494         (abssf2_i): Rename to *abssf2_i.
495         (negdf2_i): Rename to *negdf2_i.
496         (absdf2_i): Rename to *absdf2_i.
498 2014-10-14  Felix Yang  <felix.yang@huawei.com>
499             Jeff Law  <law@redhat.com>
501         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
502         "replace" into boolean bitfields; turn member "loop_depth" into a short
503         integer; add new member "no_equiv" and "reserved".
504         (no_equiv): Set no_equiv of struct equivalence if register is marked
505         as having no known equivalence.
506         (update_equiv_regs): Check all definitions for a multiple-set
507         register to make sure that the RHS have the same value.
509 2014-10-13  Richard Henderson  <rth@redhat.com>
511         * combine-stack-adj.c (no_unhandled_cfa): New.
512         (maybe_merge_cfa_adjust): New.
513         (combine_stack_adjustments_for_block): Use them.
515 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
517         * Makefile.in (TAGS): Tag ../include files.
519 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
521         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
522         to rs6000_dbx_register_number.
523         (DWARF_FRAME_REGNUM): Redefine as identity map.
524         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
525         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
526         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
527         argument to handle .debug_frame and .eh_frame directly.  Always
528         translate SPE high register numbers.  Add special treatment for CR,
529         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
531         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
532         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
533         (RS6000_USE_DWARF_NUMBERING): Define.
534         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
535         (RS6000_USE_DWARF_NUMBERING): Define.
536         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
537         (RS6000_USE_DWARF_NUMBERING): Define.
538         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
539         (RS6000_USE_DWARF_NUMBERING): Define.
540         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
541         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
543 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
545         * config/i386/i386.c (ix86_address_cost): Lower cost for
546         when address contains GOT register.
548 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
549             Vladimir Makarov  <vmakarov@redhat.com>
551         PR target/8340
552         PR middle-end/47602
553         PR rtl-optimization/55458
554         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
555         (ix86_init_pic_reg): New.
556         (ix86_select_alt_pic_regnum): Add check on pseudo register.
557         (ix86_save_reg): Likewise.
558         (ix86_expand_prologue): Remove PIC register initialization
559         now performed in ix86_init_pic_reg.
560         (ix86_output_function_epilogue): Add check on pseudo register.
561         (set_pic_reg_ever_alive): New.
562         (legitimize_pic_address): Replace df_set_regs_ever_live with new
563         set_pic_reg_ever_alive.
564         (legitimize_tls_address): Likewise.
565         (ix86_pic_register_p): New check.
566         (ix86_delegitimize_address): Add check on pseudo register.
567         (ix86_expand_call): Insert move from pseudo PIC register to ABI
568         defined REAL_PIC_OFFSET_TABLE_REGNUM.
569         (TARGET_INIT_PIC_REG): New.
570         (TARGET_USE_PSEUDO_PIC_REG): New.
571         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
572         if pic_offset_table_rtx exists.
573         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
574         Document.
575         * doc/tm.texi: Regenerate.
576         * function.c (assign_parms): Generate pseudo register for PIC.
577         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
578         register.
579         * ira-color.c (color_pass): Add check on pseudo register.
580         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
581         register.
582         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
583         register.
584         (ira): Add target specific PIC register initialization.
585         (do_reload): Keep PIC pseudo register.
586         * lra-assigns.c (spill_for): Add checks on pseudo register.
587         * lra-constraints.c (contains_symbol_ref_p): New.
588         (lra_constraints): Enable lra risky transformations when PIC is pseudo
589         register.
590         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
591         * target.def (use_pseudo_pic_reg): New.
592         (init_pic_reg): New.
594 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
596         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
597         Remove m_SILVERMONT and m_INTEL from the tune.
599 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
601         PR libfortran/63471
602         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
603         when _HPUX_SOURCE is defined.
605 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
607         PR tree-optimization/62127
608         * tree.c (remap_type_1): When remapping array, remap
609         also its type.
611 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
613         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
614         longer impact parallelization.
616 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
618         PR bootstrap/63496
619         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
621 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
623         * asan.c (instrument_derefs): BIT_FIELD_REF added.
625 2014-10-13  Richard Biener  <rguenther@suse.de>
627         PR tree-optimization/63419
628         * gimple-fold.h (gimple_convert): New function.
629         * gimple-fold.c (gimple_convert): Likewise.
630         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
631         to split out required conversions early.
633 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
635         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
636         Add the parts of an insn in reverse order, with the pattern at
637         the top of the queue.  Detect when we're iterating over a SEQUENCE
638         pattern and in that case just consider patterns of subinstructions.
640 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
642         PR target/59401
643         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
644         of rtx.
645         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
646         insn walking.
647         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
648         address.  Use def chains to handle GBR clobbering call insns.
650 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
652         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
653         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
654         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
655         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
656         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
657         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
658         * doc/gty.texi (for_user): Document new option.
659         * gengtype.c (create_user_defined_type): Don't try to get a struct for
660         char.
661         (walk_type): Don't error out on for_user option.
662         (write_func_for_structure): Emit user marking routines if requested by
663         for_user option.
664         (write_local_func_for_structure): Likewise.
665         (main): Mark types with for_user option as used.
666         * ggc.h (gt_pch_nx): Add overload for unsigned int.
667         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
668         * hash-table.h (ggc_hasher): New struct.
669         (hash_table::create_ggc): New function.
670         (gt_pch_nx): New overload for hash_table.
672 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
674         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
675         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
676         * config/sh/sh.c: Likewise.
677         * config/sh/sh-mem.cc: Likewise.
678         * config/sh/sh.md: Likewise.
679         * config/sh/predicates.md: Likewise.
680         * config/sh/sync.md: Likewise.
682 2014-10-11  Martin Liska  <mliska@suse.cz>
684         PR middle-end/63376
685         * cgraphunit.c (symbol_table::process_new_functions): Missing call
686         for call_cgraph_insertion_hooks added.
688 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
690         PR c/63495
691         * stor-layout.c (min_align_of_type): Don't decrease alignment
692         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
693         TYPE_USER_ALIGN is set.
695 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
697         PR rtl-optimization/63483
698         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
699         references when alignment ANDs are involved.
700         (write_dependence_p): Ditto.
701         (may_alias_p): Ditto.
703 2014-10-10  Marek Polacek  <polacek@redhat.com>
705         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
706         * doc/invoke.texi: Document -fsanitize=object-size.
707         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
708         or it into SANITIZE_UNDEFINED.
709         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
710         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
711         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
712         * opts.c (common_handle_option): Handle -fsanitize=object-size.
713         * ubsan.c: Include tree-object-size.h.
714         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi. 
715         (ubsan_expand_bounds_ifn): Use false instead of 0.
716         (ubsan_expand_objsize_ifn): New function.
717         (instrument_object_size): New function.
718         (pass_ubsan::execute): Add object size instrumentation.
719         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
721 2014-10-10  Richard Henderson  <rth@redhat.com>
723         PR target/63404
724         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
725         Restrict the set of expressions we're willing to move.
727 2014-10-10  Jeff Law  <law@redhat.com>
729         * ira.c (struct equivalence): Promote INIT_INSNs field to
730         an rtx_insn_list.  Add comments.
731         (no_equiv): Promote LIST to an rtx_insn_list.  Update
732         testing for and creating the special marker.  Use methods
733         to extract the insn and next pointers.  Promote INSN to an
734         rtx_insn.
735         (update_equiv_regs): Update test for special marker in the
736         INIT_INSNs list.
738 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
740         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
741         * configure: Regenerate.
742         * config/aarch64/aarch64.c (aarch64_override_options): Handle
743         TARGET_FIX_ERR_A53_835769_DEFAULT.
744         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
745         value to 2.
746         * doc/install.texi (aarch64*-*-*): Document 
747         new --enable-fix-cortex-a53-835769 option.
749 2014-10-10  Kyrylo Tkachov<kyrylo.tkachov@arm.com>
750             Ramana Radhakrishnan<ramana.radhakrishnan@arm.com>
752         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
753         (ADJUST_INSN_LENGTH): Define.
754         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
755         * config/aarch64/aarch64.c (is_mem_p): New function.
756         (is_memory_op): Likewise.
757         (aarch64_prev_real_insn): Likewise.
758         (is_madd_op): Likewise.
759         (dep_between_memop_and_curr): Likewise.
760         (aarch64_madd_needs_nop): Likewise.
761         (aarch64_final_prescan_insn): Likewise.
762         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
763         and -mno-fix-cortex-a53-835769 options.
765 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
767         PR tree-optimization/63464
768         * tree-switch-conversion.c (struct case_bit_test): Remove
769         hi and lo fields, add wide_int mask field.
770         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
771         hi/lo fields into wide_int mask operations, optimize by pretending
772         minval to be 0 if maxval is small enough.
773         (process_switch): Adjust caller.
775 2014-10-10  Richard Biener  <rguenther@suse.de>
777         PR tree-optimization/63379
778         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
779         a neutral operand for min/max when it is not a reduction chain.
781 2014-10-10  Richard Biener  <rguenther@suse.de>
783         PR tree-optimization/63476
784         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
785         (BB_LIVE_VOP_ON_EXIT): New define.
786         (create_expression_by_pieces): Assign VUSEs to stmts.
787         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
788         (pass_pre::execute): Assert virtual SSA form is up-to-date
789         after insertion.
791 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
793         * lra-assigns.c (assign_by_spills): Error out on spill failure.
795 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
797         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
798         assertion.
800 2014-10-09  Richard Biener  <rguenther@suse.de>
802         PR tree-optimization/63380
803         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
804         may trap.
806 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
808         * config/avr/avr.opt (mmcu=): Change to have a string value.
809         (mn-flash=, mskip-bug, march=, mrmw): New options.
810         (HeaderInclude): New.
811         (mmcu=): Remove Var / Init clauses.
812         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
813         -specs option.
814         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
815         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
816         (SYMBOL_FLAG_IO_LOW): Define.
817         (avr_device_to_as, avr_device_to_ld): Don't declare.
818         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
819         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
820         (EXTRA_SPEC_FUNCTIONS): Don't define.
821         (ASM_SPEC): Translate -arch= option to -mmcu= option.
822         (LINK_SPEC): Translate -arch= option to -m= option.
823         Don't use device_to_ld / device_to_data_start.
824         (STARTFILE_SPEC): Now empty.
825         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
826         * config/avr/gen-avr-mmcu-specs.c: New file.
827         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
828         (s-device-specs): Likewise.
829         (GCC_PASSES): Add s-device-specs.
830         (install-driver): Depend on install-device-specs.
831         (install-device-specs): New rule.
832         * config/avr/avr.c (avr_option_override): Look up mcu arch by
833         avr_arch_index and provide fallback initialization for avr_n_flash.
834         (varasm.h): #include.
835         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
836         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
837         (avr_attribute_table): Add "io", "address" and "io_low".
838         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
839         Add special handling for symbols with "io" and/or "address" attributes.
840         (avr_asm_asm_output_aligned_bss): New function.
841         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
842         as appropriate.  Handle io_low attribute.
843         (avr_out_sbxx_branch): Handle symbolic io addresses.
844         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
845         avr_n_flash instead of avr_current_device->n_flash.
846         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
847         (avr_emit_movmemhi): Likewise.
848         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
849         Use TARGET_RMW instead of avr_current_device->dev_attributes.
850         Don't define avr_current_device->macro (that's the specfile's job).
851         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
852         * config/avr/avr.c (avr_2word_insn_p): Likewise.
853         * config/avr/avr.md (*cpse.ne): Likewise.
854         (mov<mode>): Use avr_eval_addr_attrib.
855         (cbi): Change constraint for low_io_address_operand operand to "i".
856         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
857         * config/avr/predicates.md (io_address_operand):
858         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
859         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
860         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
861         Update prototype.
862         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
863         * config/avr/genmultilib.awk: Use -march=.
864         Remove Multilib matches processing.
865         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
866         * config/avr/avr-arch.h: Add double include guard.
867         (avr_mcu_t) <library_name>: Update comment.
868         * config/avr/driver-avr.c (avr_device_to_as): Delete.
869         (avr_device_to_ld, avr_device_to_data_start): Likewise.
870         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
871         (avr_device_to_sp8): Likewise.
872         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
874         * doc/extend.texi (io, address): Document new AVR variable attributes.
875         (io_low): Likewise.
877 2014-10-09  Marek Polacek  <polacek@redhat.com>
879         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
881 2014-10-08  Richard Biener  <rguenther@suse.de>
883         PR tree-optimization/61969
884         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
885         variables.
887 2014-10-09  Richard Biener  <rguenther@suse.de>
889         PR tree-optimization/63445
890         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
891         overflow for non-equality compares.
893 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
895         PR rtl-optimization/57003
896         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
897         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
898         killing regs_invalidated_by_call.
900 2014-10-08  Teresa Johnson  <tejohnson@google.com>
902         PR bootstrap/63432.
903         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
904         (ssa_fix_duplicate_block_edges): Invoke it.
905         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
907 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
909         PR target/52941
910         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
911         atomic_fetch_<fetchop_name>si_hard,
912         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
913         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
914         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
915         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
917 2014-10-08  Rong Xu  <xur@google.com>
919         * gcov-tool.c (profile_overlap): New driver function
920         to compute profile overlap. 
921         (print_overlap_usage_message): New.
922         (overlap_usage): New.
923         (do_overlap): New.
924         (print_usage): Add calls to overlap function.
925         (main): Ditto.
926         * doc/gcov-tool.texi: Add documentation.
928 2014-10-08  Steve Ellcey  <sellcey@mips.com>
930         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
931         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
933 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
935         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
936         pattern matching of MEM_REF.
937         (check_stmt_for_type_change): Update.
939 2014-10-08  Steve Ellcey  <sellcey@mips.com>
941         * config/mips/linux64.h: Remove.
942         * config/mips/gnu-user64.h: Remove.
943         * gcc.config (mips*-*-*): Remove references to linux64.h and
944         gnu-user64.h
945         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
946         with modified version from gnu-user64.h.
947         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
948         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
949         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
950         linux64.h.
951         (GNU_USER_LINK_EMULATION64): Ditto.
952         (GNU_USER_LINK_EMULATIONN32): Ditto.
953         (GLIBC_DYNAMIC_LINKER32): Ditto.
954         (GLIBC_DYNAMIC_LINKER64): Ditto.
955         (GLIBC_DYNAMIC_LINKERN32): Ditto.
956         (UCLIBC_DYNAMIC_LINKER32): Ditto.
957         (UCLIBC_DYNAMIC_LINKER64): Ditto.
958         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
959         (BIONIC_DYNAMIC_LINKERN32): Ditto.
960         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
961         (GLIBC_DYNAMIC_LINKER): Delete.
962         (UCLIBC_DYNAMIC_LINKER): Delete.
964 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
965             Richard Biener  <rguenther@suse.de>
967         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
968         Get address space from operand 0 (BASE).
970 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
972         PR target/61387
973         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
975 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
977         * dwarf2out.c: Remove current_function_has_inlines.
978         (gen_subprogram_die): Same.
979         (gen_inlined_subroutine_die): Same.
981 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
983         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
984         type.
985         (_addcarry_u64): Ditto.
986         (_addcarryx_u64): Ditto.
988 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
990         * cgraph.h (cgraph_node::get_fun): Declare.
991         * cgraph.c (cgraph_node::get_fun): New method.
992         * ipa-inline.c (can_inline_edge_p): Use it.
994 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
996         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
997         and -ftrapping-math.
998         * lto-wrapper.c (merge_and_complain): Likewise.
999         (run_gcc): Likewise.
1001 2014-10-06  Rong Xu  <xur@google.com>
1003         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
1004         * tree-profile.c: (params.h): New include.
1005         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
1006         and __gcov_indirect_call_topn_counters for
1007         indirect_call_topn_profile.
1008         (gimple_init_edge_profiler): New decls for
1009         __gcov_indirect_call_topn_profiler.
1010         (gimple_gen_ic_profiler): Generate the correct profiler call.
1011         (gimple_gen_ic_func_profiler): Fix format.
1012         * value-prof.c (params.h): New include.
1013         (dump_histogram_value): Hanlde indirect_call_topn counters.
1014         (stream_in_histogram_value): Ditto.
1015         (gimple_indirect_call_to_profile): Use indirect_call_topn
1016         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
1017         (gimple_find_values_to_profile): Hanlde indirect_call_topn
1018         counters.
1019         * value-prof.h (enum hist_type): Histrogram type for
1020         indirect_call_topn counters.
1021         * profile.c (instrument_values): Instrument
1022         indirect_call_topn counters.
1024 2014-10-06  Rong Xu  <xur@google.com>
1026         * Makefile.in: Fix dependence.
1027         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
1028         indirect call topn profiler.
1029         * gcov-io.h: Ditto.
1031 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1033         * calls.c (expand_call): Do not use the target as the return slot if
1034         it is not sufficiently aligned.
1036 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1038         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
1039         discussion of permutes and why we don't handle them.
1041 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1043         * config/sparc/predicates.md (int_register_operand): Delete.
1045 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1047         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
1049 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
1051         * ubsan.h (ubsan_get_source_location): New prototype.
1052         * ubsan.c (ubsan_source_location_type): New variable.
1053         Function renamed to ...
1054         (ubsan_get_source_location_type): ... this.  Cache
1055         return value in ubsan_source_location_type variable.
1056         (ubsan_source_location, ubsan_create_data): Use
1057         ubsan_get_source_location_type instead of
1058         ubsan_source_location_type.
1059         * asan.c (asan_protect_global): Don't protect globals
1060         with ubsan_get_source_location_type () type.
1061         (asan_add_global): Provide global decl location info
1062         if possible.
1064 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
1066         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
1067         sanity check.
1069 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
1071         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
1072         on size.
1073         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
1074         into vptr pointer.
1075         (ipa_polymorphic_call_context::dump): Fix formating.
1076         (walk_ssa_copies): Add logic avoiding loops; update uses.
1077         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
1079 2014-10-02  Mark Wielaard  <mjw@redhat.com>
1081         PR debug/63239
1082         * dwarf2out.c (gen_subprogram_die): When a member function is
1083         explicitly deleted then add a DW_AT_GNU_deleted attribute.
1084         * langhooks.h (struct lang_hooks_for_decls): Add
1085         function_decl_deleted_p langhook.
1086         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
1087         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
1089 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
1091         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
1092         NULL pointer checks.
1093         (ipa_polymorphic_call_context::get_dynamic_type): Return true
1094         if type doesn't change.
1095         * cgraph.h (cgraph_indirect_call_info): New flag.
1096         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
1097         (cgraph_node::dump): Dump it.
1098         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
1099         of context.get_dynamic_type.
1100         (ipa_make_edge_direct_to_target): Do not speculate
1101         edge that is already speuclative.
1102         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
1103         speculate to __builtin_unreachable
1104         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
1105         vptr_changed.
1106         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
1108 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
1110         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
1111         get_dynamic_type; drop TODO.
1112         * ipa-polymorphic-call.c
1113         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
1114         for otr_type to be unknown.
1116 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
1118         * common/config/score/score-common.c: Remove.
1119         * config.gcc: Remove support for score-*.
1120         * config/score/constraints.md: Remove.
1121         * config/score/elf.h: Remove.
1122         * config/score/predicates.md: Remove.
1123         * config/score/score-conv.h: Remove.
1124         * config/score/score-generic.md: Remove.
1125         * config/score/score-modes.def: Remove.
1126         * config/score/score-protos.h: Remove.
1127         * config/score/score.c: Remove.
1128         * config/score/score.h: Remove.
1129         * config/score/score.md: Remove.
1130         * config/score/score.opt: Remove.
1131         * doc/md.texi: Don't document score-*.
1133 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
1135         PR pch/63429
1136         * genconditions.c: Directly include ggc.h before rtl.h.
1138 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
1140         * ipa-polymorphic-call.c
1141         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
1142         code determining speculative type.
1143         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
1145 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1147         * altivec.md (altivec_lvsl): New define_expand.
1148         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
1149         (altivec_lvsr): New define_expand.
1150         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
1151         * rs6000.c (rs6000_expand_builtin): Change to use
1152         altivec_lvs[lr]_direct; remove commented-out code.
1154 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1156         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1157         Issue a warning message when vec_lvsl or vec_lvsr is used with a
1158         little endian target.
1160 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1162         * tree-pretty-print.c (dump_location): Make it extern. Dump also
1163         the column.
1164         * tree-pretty-print.h (dump_location): Declare.
1165         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
1166         (pp_gimple_stmt_1): Likewise.
1167         (dump_implicit_edges): Likewise.
1168         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
1169         LOCATION_LINE.
1172 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
1174         * gcc.c (driver::global_initializations): Remove "const" so
1175         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
1176         and decoded_options_count.
1178 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1180         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
1181         macro.
1182         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
1183         TARGET_E500_DOUBLE case here.
1185 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
1187         PR c++/54427
1188         PR c++/57198
1189         PR c++/58845
1190         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
1192 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
1194         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
1195         * lto-cgraph.c (lto_output_edge, input_edge): Stream
1196         in_polymorphic_cdtor
1197         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
1198         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
1199         * cgraphclones.c (cgraph_edge::clone): Likewise.
1200         * ipa-prop.c (update_jump_functions_after_inlining,
1201         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
1202         to possible_dynamic_type_change.
1203         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
1204         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
1205         IN_POLY_CDOTR argument.
1207         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
1208         for BASE and OUTER_TYPE being NULL.
1209         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
1210         in_poly_cdtor parameter.
1212 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
1214         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
1215         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
1216         TARGET_AVX512F.
1217         (expand_vec_perm_1): Likewise.
1219 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
1220             Uros Bizjak  <ubizjak@gmail.com>
1222         PR tree-optimization/61403
1223         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
1224         error in comment.  Also optimize 256-bit vectors for AVX2
1225         or AVX (floating vectors only), provided the first permutation
1226         can be performed in one insn.
1228 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
1230         * gcc.c (class driver): New class.
1231         (main): Reimplement in terms of driver::main, moving most of the
1232         locals to be locals within individual methods of class driver.
1233         The remaining locals "explicit_link_files", "decoded_options" and
1234         "decoded_options_count" are used by multiple driver:: methods, and
1235         so become member data.  Doing so isolates the argc/argv reads and
1236         writes.  Replace "goto out" with a special exit code from
1237         new method driver::prepare_infiles.  Split out the old
1238         implementation of main into the following...
1239         (driver::main): New function, corresponding to the old "main"
1240         implementation.
1241         (driver::set_progname): New function, taken from the old
1242         "main" implementation.
1243         (driver::expand_at_files): Likewise.
1244         (driver::decode_argv): Likewise.
1245         (driver::global_initializations): Likewise.
1246         (driver::build_multilib_strings): Likewise.
1247         (driver::set_up_specs): Likewise.
1248         (driver::putenv_COLLECT_GCC): Likewise.
1249         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
1250         (driver::handle_unrecognized_options): Likewise.
1251         (driver::maybe_print_and_exit): Likewise.
1252         (driver::prepare_infiles): Likewise.
1253         (driver::do_spec_on_infiles): Likewise.
1254         (driver::maybe_run_linker): Likewise.
1255         (driver::final_actions): Likewise.
1256         (driver::get_exit_code): Likewise.
1258 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
1260         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
1261         don't emit empty ctors.
1263 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
1265         * convert.c (convert_to_integer): Do not introduce useless conversions
1266         between integral types.
1268 2014-10-03  David Sherwood  <david.sherwood@arm.com>
1270         * ira-int.h (ira_allocno): Mark hard_regno as signed.
1272 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
1274         * lra-constraints.c (inherit_in_ebb): Handle calls with
1275         multiple return values.
1276         * caller-save.c (save_call_clobbered_regs): Likewise.
1278 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
1280         * tree-vect-data-refs.c (vect_permute_load_chain,
1281         vect_shift_permute_load_chain): Fix a typo in temporary var names,
1282         suffle3 to shuffle3.
1284         PR libgomp/61200
1285         * omp-low.c (taskreg_contexts): New variable.
1286         (scan_omp_parallel): Push newly created context into taskreg_contexts
1287         vector and move record layout code to finish_taskreg_scan.
1288         (scan_omp_task): Likewise.
1289         (finish_taskreg_scan): New function.
1290         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
1291         vector elements and release it.
1293         PR target/62128
1294         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
1295         of palignr arguments can't be used due to min 0 or max - min
1296         too high, try also op0, op1 order of palignr arguments.
1298 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
1300         * cgraph.h (ipa_polymorphic_call_context):
1301         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
1302         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
1303         * ipa-polymorphic-call.c
1304         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
1305         past end of dynamic types.
1306         (ipa_polymorphic_call_context::stream_out,
1307         speculative_outer_type): Stream dynamic flag.
1308         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
1309         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
1310         Clear DYNAMIC.
1311         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
1312         set it.
1313         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
1314         * ipa-prop.c (update_jump_functions_after_inlining,
1315         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
1317 2014-10-02  Teresa Johnson  <tejohnson@google.com>
1319         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
1320         up when synthesizing counts to avoid rounding errors.
1322 2014-10-02  Teresa Johnson  <tejohnson@google.com>
1324         PR middle-end/63422
1325         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
1326         asserts to handle incoming insanities.
1328 2014-10-02  Martin Jambor  <mjambor@suse.cz>
1330         PR tree-optimization/63375
1331         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
1332         references.
1334 2014-10-02  Olivier Hainque  <hainque@adacore.com>
1336         * Makefile.in (CROSS): Define, to @CROSS.
1338 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
1340         PR target/62128
1341         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
1342         if it expands to a single insn only.
1343         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
1344         fail unless in_order is true.  Add forward declaration.
1345         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
1346         is useful for one_operand_p.
1347         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
1349 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
1351         * cgraphclones.c (build_function_type_skip_args): Do not make new
1352         type variant of old.
1354 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
1356         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
1357         when speculation is added.
1358         (ipa_edge_args): Add polymorphic_call_contexts.
1359         (ipa_get_ith_polymorhic_call_context): New accesor.
1360         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
1361         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
1362         (ipa_compute_jump_functions_for_edge): Compute contexts.
1363         (update_jump_functions_after_inlining): Update contexts.
1364         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
1365         update dumping; add speculative edge creation.
1366         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
1367         context updating.
1368         (update_indirect_edges_after_inlining): Pass down context.
1369         (ipa_edge_duplication_hook): Duplicate contexts.
1370         (ipa_write_node_info): Stream out contexts.
1371         (ipa_read_node_info): Stream in contexts.
1372         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
1373         types.
1374         (try_speculative_devirtualization): New function.
1375         * ipa-utils.h (try_speculative_devirtualization): Declare.
1377 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
1379         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
1380         dumping during WPA.
1382 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
1384         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
1385         type variants.
1387 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
1389         * ipa-polymorphic-call.c
1390         (ipa_polymorphic_call_context::restrict_to_inner_class):
1391         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
1392         use speculation_consistent_p to do so; Add CONSDER_BASES
1393         and CONSIDER_PLACEMENT_NEW parameters.
1394         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
1395         short circuit obvious cases.
1396         (ipa_polymorphic_call_context::dump): Improve formatting.
1397         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
1398         combine_speculation_with to record speculations; Do not ICE when
1399         object is located in pointer type decl; do not ICE for methods
1400         of UNION_TYPE; do not record nonpolymorphic types.
1401         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
1402         (ipa_polymorphic_call_context::combine_speculation_with): New method.
1403         (ipa_polymorphic_call_context::combine_with): New method.
1404         (ipa_polymorphic_call_context::make_speculative): Move here; use
1405         combine speculation.
1406         * cgraph.h (ipa_polymorphic_call_context): Update
1407         restrict_to_inner_class prototype; add offset_by, make_speculative,
1408         combine_with, useless_p, combine_speculation_with and
1409         speculation_consistent_p methods.
1410         (ipa_polymorphic_call_context::offset_by): New method.
1411         (ipa_polymorphic_call_context::useless_p): New method.
1413 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1415         PR rtl-optimization/62151
1416         * combine.c (can_combine_p): Allow the destination register of INSN
1417         to be clobbered in I3.
1418         (subst): Do not substitute into clobbers of registers.
1420 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
1422         PR debug/63342
1423         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
1424         offset, TARGET_MEM_REF and SSA_NAME.
1426         * config/i386/i386.c (expand_vec_perm_palignr): Handle
1427         256-bit vectors for TARGET_AVX2.
1429         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
1430         dfirst permutation.
1432         PR target/63428
1433         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
1434         argument to avx2_permv2ti.
1436 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1438         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
1440 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
1442         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
1443         (fmod<mode>3): Ditto.
1444         (fpremxf4_i387): Ditto.
1445         (reminderxf3): Ditto.
1446         (reminder<mode>3): Ditto.
1447         (fprem1xf4_i387): Ditto.
1449 2014-09-30  Teresa Johnson  <tejohnson@google.com>
1451         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
1452         duplicate_blocks bitmap.
1453         (remove_ctrl_stmt_and_useless_edges): Ditto.
1454         (create_block_for_threading): Ditto.
1455         (compute_path_counts): New function.
1456         (update_profile): Ditto.
1457         (recompute_probabilities): Ditto.
1458         (update_joiner_offpath_counts): Ditto.
1459         (freqs_to_counts_path): Ditto.
1460         (clear_counts_path): Ditto.
1461         (ssa_fix_duplicate_block_edges): Update profile info.
1462         (ssa_create_duplicates): Pass new parameter.
1463         (ssa_redirect_edges): Remove old profile update.
1464         (thread_block_1): New duplicate_blocks bitmap,
1465         remove old profile update.
1466         (thread_single_edge): Pass new parameter.
1468 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
1470         PR middle-end/62120
1471         * varasm.c (decode_reg_name_and_count): Check availability for
1472         registers from ADDITIONAL_REGISTER_NAMES.
1474 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
1476         PR plugins/63410
1477         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
1478         (PLUGIN_HEADERS): Add pass-instances.def.
1480 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
1482         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
1483         iterator.
1484         * config/aarch64/aarch64-simd.md
1485         (aarch64_sqdmull_laneq<mode>): Expand iterator.
1486         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
1487         (vqdmulls_lane_s32): Fix return type.
1488         (vqdmulls_laneq_s32): New.
1490 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
1492         PR inline-asm/63282
1493         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
1494         or invert_jump_1 if jump isn't any_condjump_p.
1496 2014-09-30  Terry Guo  <terry.guo@arm.com>
1498         * config/arm/arm-cores.def (cortex-m7): New core name.
1499         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
1500         (fpv5-d16): Ditto.
1501         * config/arm/arm-tables.opt: Regenerated.
1502         * config/arm/arm-tune.md: Regenerated.
1503         * config/arm/arm.h (TARGET_VFP5): New macro.
1504         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
1505         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
1506         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
1507         * doc/invoke.texi: Document new cpu and fpu names.
1509 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
1511         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
1512         before sinking insn.
1514 2014-09-30  David Sherwood  <david.sherwood@arm.com>
1516         * ira-int.h (ira_allocno): Add "wmode" field.
1517         * ira-build.c (create_insn_allocnos): Add new "parent" function
1518         parameter.
1519         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
1520         that cannot be accessed in wmode.
1522 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
1524         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
1525         integer overflow.
1527 2014-09-29  Andi Kleen  <ak@linux.intel.com>
1529         * opts.c (print_filtered_help): Print --param min/max/default
1530         with -Q.
1532 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1534         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
1536 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
1538         * tree-vrp.c (get_single_symbol): New function.
1539         (build_symbolic_expr): Likewise.
1540         (symbolic_range_based_on_p): New predicate.
1541         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
1542         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
1543         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
1544         operand is symbolic and based on the other operand.
1546 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
1548         * config/microblaze/microblaze.md (call_internal1): Use VOID
1549         instead of SI to fix "((void (*)(void)) 0)()" issue
1551 2014-09-29  Nick Clifton  <nickc@redhat.com>
1553         * config/msp430/msp430.c (msp430_expand_prologue): Return a
1554         CLOBBER rtx for naked functions.
1555         (msp430_expand_epilogue): Likewise.
1556         (msp430_use_f5_series_hwmult): Cache result.
1557         (use_32bit_hwmult): Cache result.
1558         (msp430_no_hwmult): New function.
1559         (msp430_output_labelref): Use it.
1561 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
1563         PR middle-end/63247
1564         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
1565         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
1566         use the alignment of avar rather than ovar.
1568 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
1570         * config/pa/pa.c (pa_output_function_epilogue): Only update
1571         last_address when a nonnote insn is found.
1573 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
1575         PR ipa/60665
1576         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
1578 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
1580         PR ipa/62121
1581         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
1582         fix pasto in checking array size.
1584 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
1586         PR middle-end/35545
1587         * passes.def (pass_tracer): Move before last dominator pass.
1589 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
1591         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
1592         users.
1593         (run_attempt): Handle errors of "pex_run" invocation.
1595 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
1597         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
1598         (CC1_SPEC): Define.
1599         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
1600         (TARGET_ASAN_SHADOW_OFFSET): Define.
1602 2014-09-26  Martin Liska  <mliska@suse.cz>
1604         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
1605         introduced.
1606         * cgraph.h: Likewise.
1607         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
1608         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
1609         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
1610         * tree-ssa-alias.h: Likewise.
1612 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
1613             Max Ostapenko  <m.ostapenko@partner.samsung.com>
1615         * common.opt: New option.
1616         * doc/invoke.texi: Describe new option.
1617         * gcc.c (execute): Don't free first string early, but at the end
1618         of the function.  Call retry_ice if compiler exited with
1619         ICE_EXIT_CODE.
1620         (main): Factor out common code.
1621         (print_configuration): New function.
1622         (files_equal_p): Likewise.
1623         (check_repro): Likewise.
1624         (run_attempt): Likewise.
1625         (do_report_bug): Likewise.
1626         (append_text): Likewise.
1627         (try_generate_repro): Likewise
1629 2014-09-25  Andi Kleen  <ak@linux.intel.com>
1631         * config/i386/i386.c (x86_print_call_or_nop): New function.
1632         (x86_function_profiler): Support -mnop-mcount and
1633         -mrecord-mcount.
1634         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
1635         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
1637 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
1639         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
1640         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
1641         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
1642         Remove.
1644 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
1646         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
1647         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
1648         types_odr_comparable): Declare.
1649         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
1650         * ipa-polymorphic-call.c: New file.
1651         (contains_polymorphic_type_p, possible_placement_new,
1652         ipa_polymorphic_call_context::restrict_to_inner_class,
1653         contains_type_p, decl_maybe_in_construction_p,
1654         ipa_polymorphic_call_context::stream_out,
1655         ipa_polymorphic_call_context::debug,
1656         ipa_polymorphic_call_context::stream_in,
1657         ipa_polymorphic_call_context::set_by_decl,
1658         ipa_polymorphic_call_context::set_by_invariant,
1659         walk_ssa_copies,
1660         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1661         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
1662         extr_type_from_vtbl_ptr_store, record_known_type
1663         check_stmt_for_type_change,
1664         ipa_polymorphic_call_context::get_dynamic_type): Move here from
1665         ipa-devirt.c
1666         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
1667         and streamer-hooks.h
1668         (contains_polymorphic_type_p, possible_placement_new,
1669         ipa_polymorphic_call_context::restrict_to_inner_class,
1670         contains_type_p, decl_maybe_in_construction_p,
1671         ipa_polymorphic_call_context::stream_out,
1672         ipa_polymorphic_call_context::debug,
1673         ipa_polymorphic_call_context::stream_in,
1674         ipa_polymorphic_call_context::set_by_decl,
1675         ipa_polymorphic_call_context::set_by_invariant,
1676         walk_ssa_copies,
1677         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1678         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
1679         extr_type_from_vtbl_ptr_store, record_known_type
1680         check_stmt_for_type_change,
1681         ipa_polymorphic_call_context::get_dynamic_type): Move to
1682         ipa-polymorphic-call.c
1683         (type_all_derivations_known_p, types_odr_comparable,
1684         types_must_be_same_for_odr): Export.
1685         (type_known_to_have_no_deriavations_p): New function.
1686         * Makefile.in: Add ipa-polymorphic-call.c
1688 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
1690         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
1691         for better storage.
1692         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
1693         (possible_polymorphic_call_targets): Instead of computing both
1694         speculative and non-speculative answers, do just one at a time.
1695         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
1696         (dump_targets): Break out from ...
1697         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
1698         and non-speculative lists.
1699         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
1700         * ipa-utils.h (possible_polymorphic_call_targets): Update.
1702 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
1704         PR rtl-optimization/63348
1705         * emit-rtl.c (try_split): Do not emit extra barrier.
1707 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
1709         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
1710         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
1711         new predicates.
1712         (aarch64_<sur>shll2_n<mode>): Likewise.
1713         (aarch64_<sur>shr_n<mode>): Likewise.
1714         (aarch64_<sur>sra_n<mode>: Likewise.
1715         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
1716         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
1717         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
1718         * config/aarch64/iterators.md (ve_mode): New.
1719         (offsetlr): Remap to infix text for use in new predicates.
1720         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
1721         (aarch64_simd_shift_imm_hi): Likewise.
1722         (aarch64_simd_shift_imm_si): Likewise.
1723         (aarch64_simd_shift_imm_di): Likewise.
1724         (aarch64_simd_shift_imm_offset_qi): Likewise.
1725         (aarch64_simd_shift_imm_offset_hi): Likewise.
1726         (aarch64_simd_shift_imm_offset_si): Likewise.
1727         (aarch64_simd_shift_imm_offset_di): Likewise.
1728         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
1729         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
1730         (aarch64_simd_shift_imm_bitsize_si): Likewise.
1731         (aarch64_simd_shift_imm_bitsize_di): Likewise.
1733 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
1735         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
1736         new created BB as the intersection of live-in from "old_dest" and
1737         live-out from "bb".
1739 2014-09-25  Felix Yang  <felix.yang@huawei.com>
1741         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
1742         * genautomata.c (merge_states): Ditto.
1744 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
1746         PR target/62218
1747         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
1748         in instruction sequence.
1750 2014-09-25  Nick Clifton  <nickc@redhat.com>
1752         PR target/62218
1753         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
1754         in instruction sequence.
1756 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1758         PR target/63335
1759         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
1760         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
1762 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1763             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1764             Anna Tikhonova  <anna.tikhonova@intel.com>
1765             Ilya Tocar  <ilya.tocar@intel.com>
1766             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1767             Ilya Verbin  <ilya.verbin@intel.com>
1768             Kirill Yukhin  <kirill.yukhin@intel.com>
1769             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1771         * config/i386/sse.md
1772         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
1773         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
1774         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
1775         (define_expand "<avx512>_perm<mode>_mask"): ... this.
1776         Use VI8F_256_512 mode iterator.
1777         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
1778         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
1780 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1781             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1782             Anna Tikhonova  <anna.tikhonova@intel.com>
1783             Ilya Tocar  <ilya.tocar@intel.com>
1784             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1785             Ilya Verbin  <ilya.verbin@intel.com>
1786             Kirill Yukhin  <kirill.yukhin@intel.com>
1787             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1789         * config/i386/sse.md
1790         (define_insn "avx_movshdup256<mask_name>"): Add masking.
1791         (define_insn "sse3_movshdup<mask_name>"): Ditto.
1792         (define_insn "avx_movsldup256<mask_name>"): Ditto.
1793         (define_insn "sse3_movsldup<mask_name>"): Ditto.
1794         (define_insn "vec_dupv2df<mask_name>"): Ditto.
1795         (define_insn "*vec_concatv2df"): Add EVEX version.
1797 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1798             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1799             Anna Tikhonova  <anna.tikhonova@intel.com>
1800             Ilya Tocar  <ilya.tocar@intel.com>
1801             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1802             Ilya Verbin  <ilya.verbin@intel.com>
1803             Kirill Yukhin  <kirill.yukhin@intel.com>
1804             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1806         * config/i386/sse.md
1807         (define_insn "vec_set<mode>_0"): Add EVEX version.
1809 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1810             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1811             Anna Tikhonova  <anna.tikhonova@intel.com>
1812             Ilya Tocar  <ilya.tocar@intel.com>
1813             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1814             Ilya Verbin  <ilya.verbin@intel.com>
1815             Kirill Yukhin  <kirill.yukhin@intel.com>
1816             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1818         * config/i386/sse.md
1819         (define_insn
1820         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
1821         New.
1822         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
1823         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
1824         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
1825         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
1826         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
1827         (define_expand "sse2_cvtpd2ps_mask): New.
1828         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
1829         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
1831 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1832             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1833             Anna Tikhonova  <anna.tikhonova@intel.com>
1834             Ilya Tocar  <ilya.tocar@intel.com>
1835             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1836             Ilya Verbin  <ilya.verbin@intel.com>
1837             Kirill Yukhin  <kirill.yukhin@intel.com>
1838             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1840         * config/i386/i386.c
1841         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
1842         (ufix_notruncv8dfv8si2_mask_round): ... this.
1843         * config/i386/sse.md
1844         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
1845         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
1846         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
1847         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
1848         (define_expand "sse2_cvtpd2dq"): Delete.
1849         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
1850         make 2nd operand const0 vector.
1851         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
1852         Delete.
1853         (define_mode_attr pd2udqsuff): New.
1854         (define_insn
1855         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
1856         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
1857         (define_insn "*avx_cvttpd2dq256_2"): Delete.
1858         (define_expand "sse2_cvttpd2dq"): Ditto.
1859         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
1860         make 2nd operand const0 vector.
1862 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
1864         PR tree-optimization/63341
1865         * tree-vectorizer.h (vect_create_data_ref_ptr,
1866         vect_create_addr_base_for_vector_ref): Add another tree argument
1867         defaulting to NULL_TREE.
1868         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
1869         argument, pass it down to vect_create_addr_base_for_vector_ref.
1870         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
1871         add that to base_offset too if non-NULL.
1872         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
1873         for dr_explicit_realign_optimized set it to vector byte size
1874         - 1 instead of setting offset, pass byte_offset down to
1875         vect_create_data_ref_ptr.
1877 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
1879         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
1880         forgotten debug output; canonicalize querries more wtih LTO.
1882 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
1884         * cgraph.h (class ipa_polymorphic_call_context): Move here from
1885         ipa-utils.h; add stream_int and stream_out methods.
1886         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
1887         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
1888         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
1889         add CONTEXT.
1890         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1891         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1892         ipa_polymorphic_call_context::clear_speculation,
1893         ipa_polymorphic_call_context::clear_outer_type): Move here from
1894         ipa-utils.h
1895         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
1896         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1897         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1898         ipa_polymorphic_call_context::clear_speculation,
1899         ipa_polymorphic_call_context::clear_outer_type): Likewise.
1900         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
1901         streamer-hooks.h
1902         (ipa_polymorphic_call_context::stream_out): New method.
1903         (ipa_polymorphic_call_context::stream_in): New method.
1904         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
1905         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
1906         OUTER_TYPE.
1907         (ipa_analyze_call_uses): Simplify.
1908         (update_indirect_edges_after_inlining): Do not care about outer_type.
1909         (ipa_write_indirect_edge_info): Update.
1910         (ipa_write_indirect_edge_info): Likewise.
1911         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
1912         (dump_edge_flags): Break out from ...
1913         (cgraph_node::dump): ... here; dump indirect edges.
1915 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
1917         * ipa-utils.h (polymorphic_call_context): Add
1918         metdhos dump, debug and clear_outer_type.
1919         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
1920         (ipa_polymorphic_call_context::clear_outer_type): New method.
1921         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
1922         * ipa-devirt.c (types_odr_comparable): New function.
1923         (types_must_be_same_for_odr): New function.
1924         (odr_subtypes_equivalent_p): Simplify.
1925         (possible_placement_new): Break out from ...
1926         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
1927         be more cuatious about returning false in cases the context may be
1928         valid in derived type or via placement new.
1929         (contains_type_p): Clear maybe_derived_type
1930         (ipa_polymorphic_call_context::dump): New method.
1931         (ipa_polymorphic_call_context::debug): New method.
1932         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
1933         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
1934         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
1935         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
1936         to suceed on all valid cases; remove confused sanity check.
1937         (dump_possible_polymorphic_call_targets): Simplify.
1939 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
1941         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
1942         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
1943         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
1944         varpool.c: Rename all instances of DECL_ABSTRACT to
1945         DECL_ABSTRACT_P.
1947 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1949         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
1950         special handling for stores whose SET_SRC is an UNSPEC (such as
1951         UNSPEC_STVE).
1953 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
1955         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
1956         !REG_P (src) to release more instruction sink opportunities.
1958 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
1960         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
1961         move costs for 128-bit types.
1963 2014-09-24  Martin Jambor  <mjambor@suse.cz>
1965         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
1966         when duplicating a PASS_THROUGH jump function when creating a
1967         speculative edge.
1969 2014-09-24  Marek Polacek  <polacek@redhat.com>
1971         PR c/61405
1972         PR c/53874
1973         * asan.c (maybe_instrument_call): Add default case.
1974         * ipa-pure-const.c (special_builtin_state): Likewise.
1975         * predict.c (expr_expected_value_1): Likewise.
1976         * lto-streamer-out.c (write_symbol): Initialize variable.
1978 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1980         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
1981         the lane.
1982         (vmuld_laneq_f64): Likewise.
1983         (vmuls_lane_f32): Likewise.
1984         (vmuls_laneq_f32): Likewise.
1986 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
1988         PR bootstrap/63235
1989         * varpool.c (varpool_node::add): Pass decl attributes
1990         to lookup_attribute.
1992 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
1994         PR sanitizer/63316
1995         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
1997 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1999         PR tree-optimization/63266
2000         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
2001         marker for unknown byte value.
2002         (MARKER_MASK): New macro.
2003         (MARKER_BYTE_UNKNOWN): New macro.
2004         (HEAD_MARKER): New macro.
2005         (do_shift_rotate): Mark bytes with unknown values due to sign
2006         extension when doing an arithmetic right shift. Replace hardcoded
2007         mask for marker by new MARKER_MASK macro.
2008         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
2009         numbers accordingly.
2011 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2012             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2013             Anna Tikhonova  <anna.tikhonova@intel.com>
2014             Ilya Tocar  <ilya.tocar@intel.com>
2015             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2016             Ilya Verbin  <ilya.verbin@intel.com>
2017             Kirill Yukhin  <kirill.yukhin@intel.com>
2018             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2020         * config/i386/sse.md
2021         (define_insn
2022         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
2023         Add masking.
2024         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
2025         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
2027 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2028             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2029             Anna Tikhonova  <anna.tikhonova@intel.com>
2030             Ilya Tocar  <ilya.tocar@intel.com>
2031             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2032             Ilya Verbin  <ilya.verbin@intel.com>
2033             Kirill Yukhin  <kirill.yukhin@intel.com>
2034             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2036         * config/i386/sse.md
2037         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
2038         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
2039         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
2040         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
2041         (define_expand "avx512vl_pshuflw_mask"): New.
2042         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
2043         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
2044         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
2045         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
2046         (define_expand "avx512vl_pshufhw_mask"): New.
2047         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
2049 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2050             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2051             Anna Tikhonova  <anna.tikhonova@intel.com>
2052             Ilya Tocar  <ilya.tocar@intel.com>
2053             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2054             Ilya Verbin  <ilya.verbin@intel.com>
2055             Kirill Yukhin  <kirill.yukhin@intel.com>
2056             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2058         * config/i386/i386.c
2059         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
2060         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
2061         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
2062         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
2063         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
2064         * config/i386/sse.md
2065         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
2066         (define_insn
2067         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
2068         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
2069         (define_insn
2070         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
2071         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
2072         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
2073         (define_expand "avx512vl_pshufd_mask"): New.
2074         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
2076 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2077             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2078             Anna Tikhonova  <anna.tikhonova@intel.com>
2079             Ilya Tocar  <ilya.tocar@intel.com>
2080             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2081             Ilya Verbin  <ilya.verbin@intel.com>
2082             Kirill Yukhin  <kirill.yukhin@intel.com>
2083             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2085         * config/i386/i386.c
2086         (CODE_FOR_avx2_extracti128): Rename to ...
2087         (CODE_FOR_avx_vextractf128v4di): this.
2088         (CODE_FOR_avx2_inserti128): Rename to ...
2089         (CODE_FOR_avx_vinsertf128v4di): this.
2090         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
2091         CODE_FOR_avx_vextractf128v4di.
2092         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
2093         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
2094         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
2095         CODE_FOR_avx512vl_vinsertv8si.
2096         * config/i386/sse.md
2097         (define_expand
2098         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
2099         AVX512_VEC mode iterator.
2100         (define_insn
2101         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
2102         Ditto.
2103         (define_expand
2104         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
2105         AVX512_VEC_2 mode iterator.
2106         (define_insn "vec_set_lo_<mode><mask_name>"): New.
2107         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2108         (define_expand "avx512vl_vinsert<mode>"): Ditto.
2109         (define_insn "avx2_vec_set_lo_v4di"): Delete.
2110         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
2111         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
2112         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2113         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
2114         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2115         (define_expand "avx2_extracti128"): Delete.
2116         (define_expand "avx2_inserti128"): Ditto.
2118 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2119             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2120             Anna Tikhonova  <anna.tikhonova@intel.com>
2121             Ilya Tocar  <ilya.tocar@intel.com>
2122             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2123             Ilya Verbin  <ilya.verbin@intel.com>
2124             Kirill Yukhin  <kirill.yukhin@intel.com>
2125             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2127         * config/i386/sse.md
2128         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
2129         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
2130         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
2131         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
2132         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
2133         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
2134         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
2135         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
2136         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
2137         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
2138         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
2139         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
2140         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
2142 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
2144         PR rtl-optimization/63210
2145         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
2146         HARD_REGNO is not available for CONFLICT_A.
2148 2014-09-23  Andi Kleen  <ak@linux.intel.com>
2150         * cgraph.h (symtab_node): Add no_reorder attribute.
2151         (symbol_table::output_asm_statements): Remove.
2152         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
2153         (cgraph_node::create_version_clone): Dito.
2154         (symbol_table::output_asm_statements): Remove.
2155         * trans-mem.c (ipa_tm_create_version_alias): Dito.
2156         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
2157         (output_in_order): Add no_reorder flag. Only handle no_reorder
2158         nodes when set.
2159         (symbol_table::compile): Add separate pass for no_reorder nodes.
2160         (process_common_attributes): Set no_reorder flag in symtab node.
2161         Add node argument.
2162         (process_function_and_variable_attributes): Pass symtab nodes to
2163         process_common_attributes.
2164         * doc/extend.texi (no_reorder): Document no_reorder attribute.
2165         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
2166         (lto_output_varpool_node): Dito.
2167         (input_overwrite_node): Dito.
2168         (input_varpool_node): Dito.
2169         * varpool.c (varpool_node::add): Set no_reorder attribute.
2170         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
2171         (symbol_table::output_variables): Dito.
2172         * symtab.c (symtab_node::dump_base): Print no_reorder.
2174 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
2176         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
2177         be INVALID_REGNUM.
2179 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
2181         * configure: Regenerate.
2183 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
2185         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
2186         when result_mode == shift_mode.
2188 2014-09-23  Kostya Serebryany  <kcc@google.com>
2190         Update to match the changed asan API.
2191         * asan.c (asan_global_struct): Update the __asan_global definition
2192         to match the new API.
2193         (asan_add_global): Ditto.
2194         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
2195         to __asan_init_v4.
2197 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2199         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
2200         refine the constraints used on 32/64-bit floating point moves.
2201         (f32_av): Likewise.
2202         (f64_vsx): Likewise.
2203         (f64_dm): Likewise.
2204         (f64_av): Likewise.
2205         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
2206         (BOOL_REGS_OP1): Likewise.
2207         (BOOL_REGS_OP2): Likewise.
2208         (BOOL_REGS_UNARY): Likewise.
2209         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
2210         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
2211         for moves involving VSX registers.  Do not use constraints that
2212         target VSX registers for decimal types.
2213         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
2214         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
2216 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
2218         * tree.h (int_bit_position): Turn into inline function;
2219         implement using wide int.
2220         * tree.c (int_bit_position): Remove.
2222 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
2224         PR bootstrap/63280
2225         * target-globals.c (target_globals::~target_globals): Fix location
2226         of ira_int destruction.
2228 2014-09-23  Renlin Li  <renlin.li@arm.com>
2230         * config/aarch64/aarch64.md (return): New.
2231         (simple_return): Likewise.
2232         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
2233         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
2235 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
2237         * common/config/aarch64/aarch64-common.c:
2238         (default_options aarch_option_optimization_table):
2239         Default to -fsched-pressure.
2241 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
2243         * cfgcleanup.c (try_optimize_cfg): Do not remove label
2244         with LABEL_PRESERVE_P flag set.
2246 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2247             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2248             Anna Tikhonova  <anna.tikhonova@intel.com>
2249             Ilya Tocar  <ilya.tocar@intel.com>
2250             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2251             Ilya Verbin  <ilya.verbin@intel.com>
2252             Kirill Yukhin  <kirill.yukhin@intel.com>
2253             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2255         * config/i386/sse.md
2256         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
2257         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
2258         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
2259         (define_insn "sse2_shufpd_v2df_mask"): New.
2261 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2262             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2263             Anna Tikhonova  <anna.tikhonova@intel.com>
2264             Ilya Tocar  <ilya.tocar@intel.com>
2265             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2266             Ilya Verbin  <ilya.verbin@intel.com>
2267             Kirill Yukhin  <kirill.yukhin@intel.com>
2268             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2270         * config/i386/sse.md
2271         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
2272         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
2273         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
2274         (define_insn "sse_shufps_v4sf_mask"): New.
2276 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2277             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2278             Anna Tikhonova  <anna.tikhonova@intel.com>
2279             Ilya Tocar  <ilya.tocar@intel.com>
2280             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2281             Ilya Verbin  <ilya.verbin@intel.com>
2282             Kirill Yukhin  <kirill.yukhin@intel.com>
2283             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2285         * config/i386/sse.md
2286         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
2287         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
2288         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
2289         (define_insn "unpcklps128_mask"): New.
2291 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2292             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2293             Anna Tikhonova  <anna.tikhonova@intel.com>
2294             Ilya Tocar  <ilya.tocar@intel.com>
2295             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2296             Ilya Verbin  <ilya.verbin@intel.com>
2297             Kirill Yukhin  <kirill.yukhin@intel.com>
2298             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2300         * config/i386/sse.md
2301         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
2302         (define_insn "avx512vl_unpckhpd128_mask"): New.
2303         (define_expand "avx_movddup256<mask_name>"): Add masking.
2304         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
2305         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
2306         (define_insn "avx512vl_unpcklpd128_mask"): New.
2308 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
2310         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2311         * doc/tm.texi: Regenerate.
2312         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
2313         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2314         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
2315         Remove.
2316         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2317         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2318         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2319         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2320         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
2321         Remove.
2322         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2323         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2324         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2325         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2326         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2327         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2328         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2329         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2330         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2331         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2332         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
2333         Remove.
2335 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
2337         * tree-ssa-ccp.c (prop_value_d): Rename to ...
2338         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
2339         * ipa-prop.c (struct type_change_info): Rename to ...
2340         (prop_type_change_info): ... this; update uses.
2341         * ggc-page.c (globals): Rename to ...
2342         (static struct ggc_globals): ... this; update uses.
2343         * tree-ssa-loop-im.c (mem_ref): Rename to ...
2344         (im_mem_ref): ... this; update uses.
2345         * ggc-common.c (loc_descriptor): Rename to ...
2346         (ggc_loc_descriptor): ... this; update uses.
2347         * lra-eliminations.c (elim_table): Rename to ...
2348         (lra_elim_table): ... this; update uses.
2349         * bitmap.c (output_info): Rename to ...
2350         (bitmap_output_info): ... this; update uses.
2351         * gcse.c (expr): Rename to ...
2352         (gcse_expr) ... this; update uses.
2353         (occr): Rename to ...
2354         (gcse_occr): .. this; update uses.
2355         * tree-ssa-copy.c (prop_value_d): Rename to ...
2356         (prop_value_t): ... this.
2357         * predict.c (block_info_def): Rename to ...
2358         (block_info): ... this; update uses.
2359         (edge_info_def): Rename to ...
2360         (edge_info): ... this; update uses.
2361         * profile.c (bb_info): Rename to ...
2362         (bb_profile_info): ... this; update uses.
2363         * alloc-pool.c (output_info): Rename to ...
2364         (pool_output_info): ... this; update uses.
2365         * ipa-cp.c (topo_info): Rename to ..
2366         (ipa_topo_info): ... this; update uses.
2367         * tree-nrv.c (nrv_data): Rename to ...
2368         (nrv_data_t): ... this; update uses.
2369         * ipa-split.c (bb_info): Rename to ...
2370         (split_bb_info): ... this one.
2371         * profile.h (edge_info): Rename to ...
2372         (edge_profile_info): ... this one; update uses.
2373         * dse.c (bb_info): Rename to ...
2374         (dse_bb_info): ... this one; update uses.
2375         * cprop.c (occr): Rename to ...
2376         (cprop_occr): ... this one; update uses.
2377         (expr): Rename to ...
2378         (cprop_expr): ... this one; update uses.
2380 2014-09-22  Jason Merrill  <jason@redhat.com>
2382         * Makefile.in (check-parallel-%): Add @.
2384 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
2386         * config/aarch64/geniterators.sh: New.
2387         * config/aarch64/iterators.md (VDQF_DF): New.
2388         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
2389         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
2391 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
2393         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
2394         -lnosys when -msim absent.
2396 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
2398         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
2400 2014-09-22  Richard Biener  <rguenther@suse.de>
2402         * gimplify.c (gimplify_init_constructor): Do not leave
2403         non-GIMPLE vector constructors around.
2404         * tree-cfg.c (verify_gimple_assign_single): Verify that
2405         CONSTRUCTORs have gimple elements.
2407 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
2409         PR debug/63328
2410         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
2411         insert a debug source bind stmt setting DEBUG_EXPR_DECL
2412         instead of a normal gimple assignment stmt.
2414 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
2416         * config/bfin/bfin.md: Fix use of constraints in define_split.
2418 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
2420         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
2421         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
2423 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
2425         * hard-reg-set.h: Include hash-table.h.
2426         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
2427         field.
2428         * target-globals.c (target_globals::~target_globals): Call
2429         hard_regs->finalize.
2430         * rtl.h (subreg_shape): New structure.
2431         (shape_of_subreg): New function.
2432         (simplifiable_subregs): Declare.
2433         * reginfo.c (simplifiable_subreg): New structure.
2434         (simplifiable_subregs_hasher): Likewise.
2435         (simplifiable_subregs): New function.
2436         (invalid_mode_changes): Delete.
2437         (alid_mode_changes, valid_mode_changes_obstack): New variables.
2438         (record_subregs_of_mode): Remove subregs_of_mode parameter.
2439         Record valid mode changes in valid_mode_changes.
2440         (find_subregs_of_mode): Remove subregs_of_mode parameter.
2441         Update calls to record_subregs_of_mode.
2442         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
2443         handling.  Initialize new variables.  Update call to
2444         find_subregs_of_mode.
2445         (invalid_mode_change_p): Check new variables instead of
2446         invalid_mode_changes.
2447         (finish_subregs_of_mode): Finalize new variables instead of
2448         invalid_mode_changes.
2449         (target_hard_regs::finalize): New function.
2450         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
2451         even when CLASS_CANNOT_CHANGE_MODE is undefined.
2453 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
2455         * combine.c (subst): Use simplify_subreg_regno rather than
2456         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
2458 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
2460         * rtl.h (subreg_info): Expand commentary
2461         * rtlanal.c (subreg_get_info): Likewise.
2463 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
2465         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
2466         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
2467         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
2469 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
2471         * config/arm/arm.c: #include "tm-constrs.h"
2472         (thumb1_size_rtx_costs): Adjust rtx costs.
2474 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
2476         * configure.ac (target_header_dir): Move block defining
2477         this to before the block setting inhibit_libc.
2478         (inhibit_libc): When considering $with_headers, just
2479         check it it's explicitly "no".  If not, also check if
2480         $target_header_dir/stdio.h is present.  If not, set
2481         inhibit_libc=true.
2482         * configure: Regenerate.
2484 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
2486         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
2488 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2490         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
2491         insn for divides by integer powers of two.
2492         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
2493         (mod<mode>3): Fix formatting.
2494         (three anonymous define_insn and two define_split): Delete.
2496 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2498         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
2499         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
2500         (floatdisf2_internal2): Ditto.
2501         (ashrdi3_no_power): Ditto.  Fix formatting.
2503 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2505         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
2506         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
2507         Tidy.
2509 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2511         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
2512         constant, use addsi3 directly.
2513         (three anonymous define_insn, two define_split): Delete.
2514         (sub<mode>3): Move.  Do not allow constant second operand.
2515         Generate different insn for constant first operand.
2516         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
2517         (subf<mode>3_imm): New.
2518         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
2519         (*plus_ltu<mode>): Only handle registers.
2520         (*plus_ltu<mode>_1): New.  Handle integer third operand.
2521         (*plus_gtu<mode>): Only handle registers.
2522         (*plus_gtu<mode>_1): New.  Handle integer third operand.
2524 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2526         * config/rs6000/rs6000.md (iorxor): New code_iterator.
2527         (iorxor): New code_attr.
2528         (IORXOR): New code_attr.
2529         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
2530         (ior<mode>3, xor<mode>3): Delete.
2531         (<iorxor><mode>3): New.
2532         (splitter for "big" integer ior, xor): New.
2533         (*bool<mode>3): Move.  Also handle AND.
2534         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
2535         (splitter for "big" integer ior, xor): Delete.
2537 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2539         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
2540         (two anonymous define_insn and two define_split): Delete.
2541         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
2543 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2545         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
2546         (two anonymous define_insn and two define_split): Delete.
2547         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
2549 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2551         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
2553 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2555         * config/rs6000/predicates.md (ca_operand): Allow subregs.
2556         (input_operand): Do not allow ca_operand.
2557         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
2558         carry bit, allow SImode and Pmode.
2559         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
2561 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
2563         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
2564         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
2565         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
2566         (*call_rex64_ms_sysv): Remove.
2567         (*call_value_rex64_ms_sysv): Ditto.
2568         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
2570 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
2572         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
2573         operand 3 to "CnL".
2575 2014-09-20  Andreas Schwab  <schwab@suse.de>
2577         * config/ia64/ia64.md: Remove constraints from define_split
2578         patterns.
2580 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2582         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
2583         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
2584         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
2585         (get_dynamic_type): Remove.
2586         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
2587         (clear_speculation): Bring to ipa-deivrt.h
2588         (get_class_context): Rename to ...
2589         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
2590         (contains_type_p): Update.
2591         (get_dynamic_type): Rename to ...
2592         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
2593         (possible_polymorphic_call_targets): UPdate.
2594         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
2595         * ipa-prop.c (ipa_analyze_call_uses): Update.
2597 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2599         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
2600         privatize dynamic TLS variables.
2602 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2604         * diagnostic.c (warning_n): New function.
2605         * diagnostic-core.h (warning_n): Declare.
2606         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
2607         output dynamic counts when available.
2609 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2611         PR tree-optimization/63255
2612         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
2613         issue in setting body_removed flag.
2615 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2617         PR c++/61825
2618         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
2619         that visibility change is possible
2620         (handle_weakref_attribute): Likewise.
2621         * cgraph.h (symtab_node): Add method get_create and
2622         field refuse_visibility_changes.
2623         (symtab_node::get_create): New method.
2624         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
2625         * varasm.c (mark_weak): Verify that visibility change is
2626         possible.
2628 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
2630         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
2631         for base_reg_operand to be common between LO_SUM and PLUS.
2632         (fusion_gpr_mem_combo): New predicate to match a fused address
2633         that combines the addis and memory offset address.
2635         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
2636         calling signature.
2637         (emit_fusion_gpr_load): Likewise.
2639         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
2640         signature to pass each argument separately, rather than
2641         using an operands array.  Rewrite the insns found by peephole2 to
2642         be a single insn, rather than hoping the insns will still be
2643         together when the peephole pass is done.  Drop being called via a
2644         normal peephole.
2645         (emit_fusion_gpr_load): Change calling signature to be called from
2646         the fusion_gpr_load_<mode> insns with a combined memory address
2647         instead of the peephole pass passing the addis and offset
2648         separately.
2650         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
2651         fusion.
2652         (power8 fusion peephole): Drop support for doing power8 via a
2653         normal peephole that was created by the peephole2 pass.
2654         (power8 fusion peephole2): Create a new insn with the fused
2655         address, so that the fused operation is kept together after
2656         register allocation is done.
2657         (fusion_gpr_load_<mode>): Likewise.
2659 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2661         PR lto/63286
2662         * tree.c (need_assembler_name_p): Do not mangle variadic types.
2664 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
2666         * recog.c (scratch_operand): Do not simply allow all hard registers:
2667         only allow those that are allocatable.
2669 2014-09-19  Felix Yang  <felix.yang@huawei.com>
2671         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
2672         comments and fix spacing to conform to coding style.
2674 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2676         * genrecog.c (validate_pattern): Allow empty constraints in
2677         a match_scratch.
2679 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
2681         * dwarf2out.c (decl_ultimate_origin): Update comment.
2682         * tree.c (block_ultimate_origin): Same.
2684 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2686         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
2687         Update GCC version name to GCC 5.
2688         (rs6000_function_arg_boundary): Likewise.
2689         (rs6000_function_arg): Likewise.
2691 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2693         * config/sh/sh.md: Fix use of constraints in define_split.
2695 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
2697         PR ipa/61998
2698         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
2700 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2702         * doc/md.texi (Modifiers): Consistently use "read/write"
2703         nomenclature rather than "input/output".
2704         * genrecog.c (constraints_supported_in_insn_p): New.
2705         (validate_pattern): If needed, also check constraints on
2706         MATCH_SCRATCH operands.
2707         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
2708         operands with no '=' or '+' modifier.
2710 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2712         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
2713         scratch register as written.
2715 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2717         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
2718         assignment.
2720 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2722         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
2723         expanders.
2725 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2727         PR target/62662
2728         * config/s390/s390.c (s390_emit_epilogue): When doing the return
2729         address load optimization force s390_optimize_prologue to leave it
2730         that way.  Only do the optimization if we already decided to push
2731         r14 into a stack slot.
2733 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
2735         * asan.c (build_check_stmt): Alignment arg was added.
2736         (asan_expand_check_ifn): Optimization for alignment >= 8.
2738 2014-09-19  Olivier Hainque  <hainque@adacore.com>
2740         * config/i386/vxworksae.h: Remove obsolete definitions.
2741         (STACK_CHECK_PROTECT): Define.
2742         * config/i386/vx-common.h: Remove.  Merge contents within
2743         config/i386/vxworks.h.
2744         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
2745         i386/vx-common.h.
2747 2014-09-19  Olivier Hainque  <hainque@adacore.com>
2749         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
2750         * config/rs6000/t-vxworksmils: New file.
2751         * config/rs6000/vxworksmils.h: New file.
2753 2014-09-19  Olivier Hainque  <hainque@adacore.com>
2755         * varasm.c (default_section_type_flags): Flag .persistent.bss
2756         sections as SECTION_BSS.
2758 2014-09-19  Nick Clifton  <nickc@redhat.com>
2760         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
2761         pop'ed registers so that DCE does not eliminate them.
2763 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
2765         PR lto/63298
2766         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
2768 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
2770         * system.h (LIBGCC2_TF_CEXT): Poison.
2771         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
2772         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
2773         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
2774         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
2775         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
2776         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
2777         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
2778         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
2779         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
2781 2014-09-19  Kito Cheng  <kito@0xlab.org>
2783         * except.h: Fix header guard.
2784         * addresses.h: Add missing header guard.
2785         * cfghooks.h: Likewise.
2786         * collect-utils.h: Likewise.
2787         * collect2-aix.h: Likewise.
2788         * conditions.h: Likewise.
2789         * cselib.h: Likewise.
2790         * dwarf2asm.h: Likewise.
2791         * graphds.h: Likewise.
2792         * graphite-scop-detection.h: Likewise.
2793         * gsyms.h: Likewise.
2794         * hw-doloop.h: Likewise.
2795         * incpath.h: Likewise.
2796         * ipa-inline.h: Likewise.
2797         * ipa-ref.h: Likewise.
2798         * ira-int.h: Likewise.
2799         * ira.h: Likewise.
2800         * lra-int.h: Likewise.
2801         * lra.h: Likewise.
2802         * lto-section-names.h: Likewise.
2803         * read-md.h: Likewise.
2804         * reload.h: Likewise.
2805         * rtl-error.h: Likewise.
2806         * sdbout.h: Likewise.
2807         * targhooks.h: Likewise.
2808         * tree-affine.h: Likewise.
2809         * xcoff.h: Likewise.
2810         * xcoffout.h: Likewise.
2812 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
2814         PR debug/63285
2815         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
2816         if advance != 0.
2818 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
2820         PR target/61360
2821         * lra.c (lra): Call recog_init.
2823 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
2825         PR c++/62017
2826         * asan.c (transform_statements): Don't instrument clobber statements.
2828 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2830         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
2831         to neon_load1_1reg<q>.
2833 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
2835         PR debug/63284
2836         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
2837         if there are only debug stmts after the noreturn call, instead
2838         remove the debug stmts.
2840 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
2842         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
2843         (odr_types_equivalent_p): Use pair hash.
2844         (odr_subtypes_equivalent_p): Likewise, do structural compare
2845         on ODR types that may be mismatched.
2846         (warn_odr): Support warning when only one field is given.
2847         (odr_types_equivalent_p): Strenghten comparsions made;
2848         support VOIDtype.
2849         (add_type_duplicate): Update VISITED hash set.
2851 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2853         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
2854         Enable selection of 'posix' or no thread model.
2856 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
2858         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
2859         when architecture is older than ARMv7.
2861 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
2863         PR target/61853
2864         * config/pa/pa.c (pa_function_value): Directly handle aggregates
2865         that fit exactly in a word or double word.
2867 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
2869         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
2870         zmm/k regs support.
2872 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2873             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2874             Anna Tikhonova  <anna.tikhonova@intel.com>
2875             Ilya Tocar  <ilya.tocar@intel.com>
2876             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2877             Ilya Verbin  <ilya.verbin@intel.com>
2878             Kirill Yukhin  <kirill.yukhin@intel.com>
2879             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2881         * config/i386/i386.c
2882         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
2883         * config/i386/sse.md
2884         (define_mode_iterator VI48F_256): New.
2885         (define_mode_attr extract_type): Ditto.
2886         (define_mode_attr extract_suf): Ditto.
2887         (define_mode_iterator AVX512_VEC): Ditto.
2888         (define_expand
2889         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
2890         AVX512_VEC.
2891         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
2892         (define_insn
2893         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
2894         Ditto.
2895         (define_mode_attr extract_type_2): Ditto.
2896         (define_mode_attr extract_suf_2): Ditto.
2897         (define_mode_iterator AVX512_VEC_2): Ditto.
2898         (define_expand
2899         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
2900         AVX512_VEC_2 mode iterator.
2901         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
2902         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
2903         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
2904         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
2905         (define_split for V16FI mode): Ditto.
2906         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
2907         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
2908         (define_split for VI8F_256 mode): Ditto.
2909         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
2910         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
2911         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
2912         (define_split for VI4F_256 mode): Ditto.
2913         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
2914         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
2915         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
2916         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
2917         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
2918         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
2919         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
2920         Update `type' attribute, remove explicit `memory' attribute calculation.
2922 2014-09-16  Kito Cheng  <kito@0xlab.org>
2924         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
2925         ira_spilled_reg_stack_slots_num if using lra.
2926         (do_reload): Remove release ira_spilled_reg_stack_slots part.
2927         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
2928         make sure not using lra.
2929         (ira_reuse_stack_slot): Likewise.
2930         (ira_mark_new_stack_slot): Likewise.
2932 2014-09-15  Andi Kleen  <ak@linux.intel.com>
2934         * function.c (allocate_struct_function): Force
2935         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
2936         profiling is disabled.
2938 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
2940         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
2941         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
2942         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
2943         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
2944         macro with statically checked member functions.
2945         * rtl.h (rtx_insn::deleted): New method.
2946         (rtx_insn::set_deleted): Likewise.
2947         (rtx_insn::set_undeleted): Likewise.
2948         (INSN_DELETED_P): Remove.
2950 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
2952         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
2953         result of emit_jump_insn_before to a new variable.
2954         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
2955         (mark_jump_label_1): Likewise.
2956         (mark_jump_label_asm): Likewise.
2957         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
2958         * rtl.h (mark_jump_label): Adjust.
2960 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
2962         * Makefile.in (dg_target_exps): Remove.
2963         (check_gcc_parallelize): Change to just an upper bound number.
2964         (check-%-subtargets): Always print the non-parallelized goals.
2965         (check_p_vars, check_p_comma, check_p_subwork): Remove.
2966         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
2967         check_p_numbers3, check_p_numbers4, check_p_numbers5,
2968         check_p_numbers6): New variables.
2969         (check_p_numbers): Set to sequence from 1 to 9999.
2970         (check_p_subdirs): Set to sequence from 1 to minimum of
2971         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
2972         or 128.
2973         (check-%, check-parallel-%): Rewritten so that for parallelized
2974         testing each job runs all the *.exp files, with
2975         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
2977 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
2979         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
2980         rtx to rtx_insn *.
2981         (arc_sets_cc_p): Likewise.
2982         * config/arc/arc.c (arc_print_operand): Use methods of
2983         "final_sequence" for clarity, and to enable strengthening of
2984         locals "jump" and "delay" from rtx to rtx_insn *.
2985         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
2986         rtx_insn *; use method of rtx_sequence for typesafety.
2987         (arc_get_insn_variants): Use insn method of rtx_sequence for
2988         typesafety.
2989         (arc_pad_return): Likewise.
2990         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
2991         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
2992         dyn_cast to rtx_sequence *, using insn method for typesafety.
2993         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
2994         rtx_sequence * and use insn method when invoking get_attr_length.
2995         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
2996         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
2997         rtx_sequence *, introducing a local "seq", using its insn method
2998         from typesafety and clarity.
2999         (add_sched_insns_for_speculation): Strengthen local "next" from
3000         rtx to rtx_insn *.
3001         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
3002         (predicate_insn): Likewise.
3003         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
3004         second param.
3005         * config/cris/cris.c (cris_notice_update_cc): Likewise.
3006         * config/epiphany/epiphany-protos.h
3007         (extern void epiphany_insert_mode_switch_use): Likewise for param
3008         "insn".
3009         (get_attr_sched_use_fpu): Likewise for param.
3010         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
3011         Likewise for param "insn".
3012         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
3013         param "insn" of "target_insert_mode_switch_use" callback.
3014         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
3015         (frv_issues_to_branch_unit_p): Likewise.
3016         (frv_pack_insn_p): Likewise.
3017         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
3018         const rtx * (i.e. mutable rtx_def * const *) to
3019         rtx_insn * const *.
3020         * config/i386/i386-protos.h (standard_sse_constant_opcode):
3021         Strengthen first param from rtx to rtx_insn *.
3022         (output_fix_trunc): Likewise.
3023         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
3024         (output_fix_trunc): Likewise.
3025         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
3026         local "insn".
3027         (min_insn_size): Likewise for param "insn".
3028         (get_mem_group): Likewise.
3029         (is_cmp): Likewise.
3030         (get_insn_path): Likewise.
3031         (get_insn_group): Likewise.
3032         (count_num_restricted): Likewise.
3033         (fits_dispatch_window): Likewise.
3034         (add_insn_window): Likewise.
3035         (add_to_dispatch_window): Likewise.
3036         (debug_insn_dispatch_info_file): Likewise.
3037         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
3038         first param.
3039         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
3040         "cmp" and local "prev".
3041         (m32c_output_compare): Likewise for param "insn".
3042         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
3043         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
3044         (define_predicate "large_insn_p"): Likewise.
3045         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
3046         param from rtx to rtx_insn *.
3047         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
3048         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
3049         (m68k_sched_attr_size): Likewise.
3050         (sched_get_opxy_mem_type): Likewise for param "insn".
3051         (m68k_sched_attr_op_mem): Likewise.
3052         (sched_mem_operand_p): Likewise.
3053         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
3054         * config/mep/mep.c (mep_multi_slot): Likewise.
3055         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
3056         first param.
3057         (mips_sync_loop_insns): Likewise.
3058         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
3059         method of "final_sequence" for typesafety.
3060         (mips_process_sync_loop): Strengthen param "insn" from rtx to
3061         rtx_insn *.
3062         (mips_output_sync_loop): Likewise.
3063         (mips_sync_loop_insns): Likewise.
3064         (mips_74k_agen_init): Likewise.
3065         (mips_sched_init): Use NULL rather than NULL_RTX when working with
3066         insns.
3067         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
3068         Strengthen param "insn" from rtx to rtx_insn *.
3069         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
3070         local "insn".
3071         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
3072         param.
3073         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
3074         "insn".  Use method of rtx_sequence for typesafety.
3075         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
3076         rtx_insn *.
3077         (branch_needs_nop_p): Likewise.
3078         (use_skip_p): Likewise.
3079         (pa_insn_refs_are_delayed): Likewise.
3080         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
3081         for locals "insn", "ninsn".
3082         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
3083         "insn".
3084         (is_cracked_insn): Likewise.
3085         (is_branch_slot_insn): Likewise.
3086         (is_nonpipeline_insn): Likewise.
3087         (insn_terminates_group_p): Likewise.
3088         (insn_must_be_first_in_group): Likewise.
3089         (insn_must_be_last_in_group): Likewise.
3090         (force_new_group): Likewise for param "next_insn".
3091         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
3092         "insn".
3093         (s390_sched_score): Likewise.
3094         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
3095         (rtx sfunc_uses_reg): Likewise for sole param.
3096         * config/sh/sh.c (sh_print_operand): Use insn method of
3097         final_sequence for typesafety.
3098         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
3099         Use insn method of final_sequence for typesafety.
3100         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
3101         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
3102         for param.
3103         (eligible_for_return_delay): Likewise.
3104         (eligible_for_sibcall_delay): Likewise.
3105         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
3106         (eligible_for_return_delay): Likewise.
3107         (eligible_for_sibcall_delay): Likewise.
3108         * config/stormy16/stormy16-protos.h
3109         (xstormy16_output_cbranch_hi): Likewise for final param.
3110         (xstormy16_output_cbranch_si): Likewise.
3111         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
3112         (xstormy16_output_cbranch_si): Likewise.
3113         * config/v850/v850-protos.h (notice_update_cc): Likewise.
3114         * config/v850/v850.c (notice_update_cc): Likewise.
3116         * final.c (get_attr_length_1): Strengthen param "insn" and param
3117         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
3118         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
3119         (get_attr_min_length): Likewise.
3120         (shorten_branches): Likewise for signature of locals "length_fun"
3121         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
3122         from a checked cast and use its methods for clarity and to enable
3123         strengthening local "inner_insn" from rtx to rtx_insn *.
3124         * genattr.c (gen_attr): When writing out the prototypes of the
3125         various generated "get_attr_" functions, strengthen the params of
3126         the non-const functions from rtx to rtx_insn *.
3127         Similarly, strengthen the params of insn_default_length,
3128         insn_min_length, insn_variable_length_p, insn_current_length.
3129         (main): Similarly, strengthen the param of num_delay_slots,
3130         internal_dfa_insn_code, insn_default_latency, bypass_p,
3131         insn_latency, min_issue_delay, print_reservation,
3132         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
3133         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
3134         to hook_int_rtx_insn_unreachable.
3135         * genattrtab.c (write_attr_get): When writing out the generated
3136         "get_attr_" functions, strengthen the param "insn" from rtx to
3137         rtx_insn *, eliminating a checked cast.
3138         (make_automaton_attrs): When writing out prototypes of
3139         "internal_dfa_insn_code_", "insn_default_latency_" functions
3140         and the "internal_dfa_insn_code" and "insn_default_latency"
3141         callbacks, strengthen their params from rtx to rtx_insn *
3142         * genautomata.c (output_internal_insn_code_evaluation): When
3143         writing out code, add a checked cast from rtx to rtx_insn * when
3144         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
3145         (output_dfa_insn_code_func): Strengthen param of generated
3146         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
3147         (output_trans_func): Likewise for generated function
3148         "state_transition".
3149         (output_internal_insn_latency_func): When writing out generated
3150         function "internal_insn_latency", rename params from "insn" and
3151         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
3152         locals "insn" and "insn2" as rtx_insn * with checked casts once
3153         we've proven that we're not dealing with const0_rtx.
3154         (output_insn_latency_func):  Strengthen param of generated
3155         function "insn_latency" from rtx to rtx_insn *.
3156         (output_print_reservation_func): Likewise for generated function
3157         "print_reservation".
3158         (output_insn_has_dfa_reservation_p): Likewise for generated
3159         function "insn_has_dfa_reservation_p".
3160         * hooks.c (hook_int_rtx_unreachable): Rename to...
3161         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
3162         from rtx to rtx_insn *.
3163         * hooks.h (hook_int_rtx_unreachable): Likewise.
3164         (extern int hook_int_rtx_insn_unreachable): Likewise.
3165         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
3166         (get_attr_min_length): Likewise.
3167         * recog.c (get_enabled_alternatives): Likewise.
3168         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
3169         * reorg.c (find_end_label): Introduce local rtx "pat" and
3170         strengthen local "insn" from rtx to rtx_insn *.
3171         (redundant_insn): Use insn method of "seq" rather than element for
3172         typesafety; strengthen local "control" from rtx to rtx_insn *.
3173         * resource.c (mark_referenced_resources): Add checked cast to
3174         rtx_insn * within INSN/JUMP_INSN case.
3175         (mark_set_resources): Likewise.
3176         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
3177         rtx to rtx_insn *.
3179 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
3181         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
3182         param "label" from rtx to rtx_insn *.
3183         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
3184         and local "op".
3185         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
3186         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
3187         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
3188         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
3189         * final.c (default_label_align_after_barrier_max_skip): Strengthen
3190         param from rtx to rtx_insn *.
3191         (default_loop_align_max_skip): Likewise.
3192         (default_label_align_max_skip): Likewise.
3193         (default_jump_align_max_skip): Likewise.
3194         * target.def (label_align_after_barrier_max_skip): Likewise.
3195         (loop_align_max_skip): Likewise.
3196         (label_align_max_skip): Likewise.
3197         (jump_align_max_skip): Likewise.
3198         * targhooks.h (default_label_align_after_barrier_max_skip):
3199         Likewise.
3200         (default_loop_align_max_skip): Likewise.
3201         (default_label_align_max_skip): Likewise.
3202         (default_jump_align_max_skip): Likewise.
3204 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
3206         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
3207         from const_rtx to const rtx_insn *.  Update union members from rtx
3208         to rtx_insn *.
3209         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
3210         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
3211         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
3212         strengthen both params from const_rtx to const rtx_insn *.
3213         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
3214         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
3215         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
3216         rtx_insn *.
3217         * target.def (can_follow_jump): Strengthen both params from
3218         const_rtx to const rtx_insn *, and update default implementation
3219         from hook_bool_const_rtx_const_rtx_true to
3220         hook_bool_const_rtx_insn_const_rtx_insn_true.
3222 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
3224         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
3225         "insn" from rtx to rtx_insn *.
3226         * sched-int.h (deps_start_bb): Likewise for 2nd param.
3228 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3229             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3230             Anna Tikhonova  <anna.tikhonova@intel.com>
3231             Ilya Tocar  <ilya.tocar@intel.com>
3232             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3233             Ilya Verbin  <ilya.verbin@intel.com>
3234             Kirill Yukhin  <kirill.yukhin@intel.com>
3235             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3237         * config/i386/sse.md
3238         (define_insn "vcvtph2ps<mask_name>"): Add masking.
3239         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
3240         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
3241         (define_expand "vcvtps2ph_mask"): New.
3242         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
3243         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
3244         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
3246 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3247             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3248             Anna Tikhonova  <anna.tikhonova@intel.com>
3249             Ilya Tocar  <ilya.tocar@intel.com>
3250             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3251             Ilya Verbin  <ilya.verbin@intel.com>
3252             Kirill Yukhin  <kirill.yukhin@intel.com>
3253             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3255         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
3256         New.
3257         (define_mode_iterator VI24_AVX512BW_1): Ditto.
3258         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
3259         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
3260         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
3261         also for TARGET_AVX512VL.
3262         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
3264 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
3266         * doc/install.texi (Options specification): add
3267         --disable-libsanitizer item.
3269 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
3270             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3272         PR target/61407
3273         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
3274         and above.
3275         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
3276         kernel version check to avoid incrementing it after every major OS X
3277         release.
3278         (darwin_default_min_version): Avoid static memory buffer.
3280 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
3282         * tree.c (need_assembler_name_p): Store C++ type mangling only
3283         for aggregates.
3285 2014-09-13  Marek Polacek  <polacek@redhat.com>
3287         * tree.c (protected_set_expr_location): Don't check whether T is
3288         non-null here.
3290 2014-09-12  DJ Delorie  <dj@redhat.com>
3292         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
3293         (extend_and_shift1_hipsi2): Likewise.
3294         (extend_and_shift2_hipsi2): Likewise.
3296 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
3298         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
3299         with NULL when dealing with an insn.
3300         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
3301         from rtx to rtx_insn *.
3302         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
3303         const_rtx to const rtx_insn *.
3304         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
3306 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
3308         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
3309         assert.
3311 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
3313         * target.def (libgcc_floating_mode_supported_p): New hook.
3314         * targhooks.c (default_libgcc_floating_mode_supported_p): New
3315         function.
3316         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
3317         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
3318         (LIBGCC2_HAS_TF_MODE): Remove.
3319         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
3320         * doc/tm.texi: Regenerate.
3321         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
3322         machine mode.
3323         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
3324         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
3325         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
3326         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
3327         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3328         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
3329         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
3330         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
3331         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
3332         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
3333         function.
3334         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3335         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3336         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3337         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3338         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3339         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3340         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3341         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
3342         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
3343         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
3344         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3345         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
3346         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
3347         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
3348         Remove.
3349         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
3350         New macro.
3351         (ia64_libgcc_floating_mode_supported_p): New function.
3352         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
3353         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
3354         (IA64_NO_LIBGCC_TFMODE): Define.
3355         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
3356         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
3357         macro.
3358         (pdp11_scalar_mode_supported_p): New function.
3359         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
3360         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
3362 2014-09-12  Richard Biener  <rguenther@suse.de>
3364         PR middle-end/63237
3365         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
3367 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
3369         * tree.c (integer_each_onep): New function.
3370         * tree.h (integer_each_onep): Declare it.
3371         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
3372         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
3373         (X & 1) == 0 for vector and complex.
3375 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3377         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
3378         for A57.
3379         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
3380         cost to spilling from integer to FP registers.
3382 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3384         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
3385         move handling.
3386         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
3387         are now handled correctly.
3389 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3391         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
3392         handling of CALLER_SAVE_REGS and POINTER_REGS.
3394 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3396         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
3397         the number of hard registers.
3399 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3400             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3401             Anna Tikhonova  <anna.tikhonova@intel.com>
3402             Ilya Tocar  <ilya.tocar@intel.com>
3403             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3404             Ilya Verbin  <ilya.verbin@intel.com>
3405             Kirill Yukhin  <kirill.yukhin@intel.com>
3406             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3408         * config/i386/sse.md
3409         (define_mode_iterator VI48_AVX512VL): New.
3410         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
3411         "avx512f_vternlog<mode>_maskz" and update mode iterator.
3412         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
3413         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
3414         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
3415         "avx512f_vternlog<mode>_mask" and update mode iterator.
3416         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
3417         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
3418         iterator.
3419         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
3420         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
3421         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
3422         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
3423         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
3424         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
3426 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3427             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3428             Anna Tikhonova  <anna.tikhonova@intel.com>
3429             Ilya Tocar  <ilya.tocar@intel.com>
3430             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3431             Ilya Verbin  <ilya.verbin@intel.com>
3432             Kirill Yukhin  <kirill.yukhin@intel.com>
3433             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3435         * config/i386/sse.md (VI128_256): Delete.
3436         (define_mode_iterator VI124_256): New.
3437         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
3438         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
3439         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
3440         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
3441         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
3442         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
3443         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
3444         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
3445         iterator.
3446         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
3447         in presence of AVX-512.
3449 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3450             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3451             Anna Tikhonova  <anna.tikhonova@intel.com>
3452             Ilya Tocar  <ilya.tocar@intel.com>
3453             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3454             Ilya Verbin  <ilya.verbin@intel.com>
3455             Kirill Yukhin  <kirill.yukhin@intel.com>
3456             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3458         * config/i386/sse.md
3459         (define_expand "<avx512>_gathersi<mode>"): Rename from
3460         "avx512f_gathersi<mode>".
3461         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
3462         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
3463         (define_expand "<avx512>_gatherdi<mode>"): Rename from
3464         "avx512f_gatherdi<mode>".
3465         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
3466         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
3467         wide versions.
3468         (define_expand "<avx512>_scattersi<mode>"): Rename from
3469         "avx512f_scattersi<mode>".
3470         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
3471         (define_expand "<avx512>_scatterdi<mode>"): Rename from
3472         "avx512f_scatterdi<mode>".
3473         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
3475 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
3477         * ira.h (ira_finish_once): Delete.
3478         * ira-int.h (target_ira_int::~target_ira_int): Declare.
3479         (target_ira_int::free_ira_costs): Likewise.
3480         (target_ira_int::free_register_move_costs): Likewise.
3481         (ira_finish_costs_once): Delete.
3482         * ira.c (free_register_move_costs): Replace with...
3483         (target_ira_int::free_register_move_costs): ...this new function.
3484         (target_ira_int::~target_ira_int): Define.
3485         (ira_init): Call free_register_move_costs as a member function rather
3486         than a global function.
3487         (ira_finish_once): Delete.
3488         * ira-costs.c (free_ira_costs): Replace with...
3489         (target_ira_int::free_ira_costs): ...this new function.
3490         (ira_init_costs): Call free_ira_costs as a member function rather
3491         than a global function.
3492         (ira_finish_costs_once): Delete.
3493         * target-globals.c (target_globals::~target_globals): Call the
3494         target_ira_int destructor.
3495         * toplev.c: Include lra.h.
3496         (finalize): Call lra_finish_once rather than ira_finish_once.
3498 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
3500         * common.opt (flto-odr-type-merging): New flag.
3501         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
3502         (types_same_for_odr): Likewise.
3503         (odr_subtypes_equivalent_p): Likewise.
3504         (add_type_duplicate): Do not walk type variants.
3505         (register_odr_type): New function.
3506         * ipa-utils.h (register_odr_type): Declare.
3507         (odr_type_p): New function.
3508         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
3509         TYPE_DECLs
3510         * doc/invoke.texi (-flto-odr-type-merging): Document.
3511         * tree.c (need_assembler_name_p): Compute ODR names when asked
3512         for it.
3513         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
3515 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3517         PR target/63228
3518         * config/i386/i386.c (ix86_option_override_internal): Also turn
3519         off OPTION_MASK_ABI_X32 for -m16.
3521 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
3523         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
3524         GPR instead of P.
3526 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
3528         PR target/58757
3529         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
3530         Directly forward to __*_DENORM_MIN__.
3532 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
3534         * rtl.h (LABEL_REF_LABEL): New macro.
3536         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
3537         of XEXP (, 0), where we know that we have a LABEL_REF.
3538         * cfgbuild.c (make_edges): Likewise.
3539         (purge_dead_tablejump_edges): Likewise.
3540         * cfgexpand.c (convert_debug_memory_address): Likewise.
3541         * cfgrtl.c (patch_jump_insn): Likewise.
3542         * combine.c (distribute_notes): Likewise.
3543         * cse.c (hash_rtx_cb): Likewise.
3544         (exp_equiv_p): Likewise.
3545         (fold_rtx): Likewise.
3546         (check_for_label_ref): Likewise.
3547         * cselib.c (rtx_equal_for_cselib_1): Likewise.
3548         (cselib_hash_rtx): Likewise.
3549         * emit-rtl.c (mark_label_nuses): Likewise.
3550         * explow.c (convert_memory_address_addr_space): Likewise.
3551         * final.c (output_asm_label): Likewise.
3552         (output_addr_const): Likewise.
3553         * gcse.c (add_label_notes): Likewise.
3554         * genconfig.c (walk_insn_part): Likewise.
3555         * genrecog.c (validate_pattern): Likewise.
3556         * ifcvt.c (cond_exec_get_condition): Likewise.
3557         (noce_emit_store_flag): Likewise.
3558         (noce_get_alt_condition): Likewise.
3559         (noce_get_condition): Likewise.
3560         * jump.c (maybe_propagate_label_ref): Likewise.
3561         (mark_jump_label_1): Likewise.
3562         (redirect_exp_1): Likewise.
3563         (rtx_renumbered_equal_p): Likewise.
3564         * lra-constraints.c (operands_match_p): Likewise.
3565         * reload.c (operands_match_p): Likewise.
3566         (find_reloads): Likewise.
3567         * reload1.c (set_label_offsets): Likewise.
3568         * reorg.c (get_branch_condition): Likewise.
3569         * rtl.c (rtx_equal_p_cb): Likewise.
3570         (rtx_equal_p): Likewise.
3571         * rtlanal.c (reg_mentioned_p): Likewise.
3572         (rtx_referenced_p): Likewise.
3573         (get_condition): Likewise.
3574         * sched-vis.c (print_value): Likewise.
3575         * varasm.c (const_hash_1): Likewise.
3576         (compare_constant): Likewise.
3577         (const_rtx_hash_1): Likewise.
3578         (output_constant_pool_1): Likewise.
3580 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
3582         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
3583         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
3584         instead of minus.
3585         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
3586         cr6_test_for_lt_reverse): Ditto.
3588 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
3590         PR c++/61489
3591         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
3593 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
3595         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
3596         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
3597         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
3598         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
3599         Delete.
3601         (aarch64_fold_builtin): Remove all reinterpret cases.
3603         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
3605         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
3607         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
3608         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
3609         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
3610         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
3611         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
3612         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
3613         aarch64_reinterpretv2df<mode>): Delete.
3615         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
3617         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
3618         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
3619         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
3620         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
3621         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
3622         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
3623         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
3624         vreinterpret_u32_f64): Use cast.
3626         * config/aarch64/iterators.md (VD_RE): Delete.
3628 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
3630         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
3631         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
3632         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
3633         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
3634         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
3635         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
3636         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
3637         Replace inline assembler with __aarch64_vset_lane_any.
3639 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
3641         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
3642         types.
3643         (vmull_high_lane_s32): Likewise.
3644         (vmull_high_lane_u16): Likewise.
3645         (vmull_high_lane_u32): Likewise.
3647 2014-09-11  Jason Merrill  <jason@redhat.com>
3649         PR c++/58678
3650         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
3652 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
3654         PR target/63223
3655         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
3656         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
3657         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
3659 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3660             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3661             Anna Tikhonova  <anna.tikhonova@intel.com>
3662             Ilya Tocar  <ilya.tocar@intel.com>
3663             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3664             Ilya Verbin  <ilya.verbin@intel.com>
3665             Kirill Yukhin  <kirill.yukhin@intel.com>
3666             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3668         * config/i386/sse.md
3669         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
3670         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
3671         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
3672         New.
3673         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
3674         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
3675         iterator.
3676         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
3677         New.
3678         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
3679         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
3680         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
3681         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
3682         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
3683         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
3684         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
3685         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
3686         iterator.
3687         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
3688         New.
3689         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
3690         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
3691         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
3693 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
3695         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
3696         to access removed nodes.
3698 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
3700         PR tree-optimization/63186
3701         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
3702         (mark_nonssa_use): Likewise.
3703         (verify_non_ssa_vars): Verify all header blocks for label
3704         definitions.
3706 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3707             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3708             Anna Tikhonova  <anna.tikhonova@intel.com>
3709             Ilya Tocar  <ilya.tocar@intel.com>
3710             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3711             Ilya Verbin  <ilya.verbin@intel.com>
3712             Kirill Yukhin  <kirill.yukhin@intel.com>
3713             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3715         * config/i386/sse.md
3716         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
3717         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
3718         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
3719         "<avx2_avx512f>_permvar<mode><mask_name>".
3720         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
3721         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
3722         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
3723         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
3724         Ditto.
3725         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
3726         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
3727         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
3728         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
3730 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
3732         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
3733         V2DF, V4SF, DF, and DI modes.
3734         (vsx_fmav2df2): Likewise.
3735         (vsx_float_fix_<mode>2): Likewise.
3736         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
3738 2014-09-10  Xinliang David Li  <davidxl@google.com>
3740         PR target/63209
3741         * config/arm/arm.md (movcond_addsi): Handle case where source
3742         and target operands are the same.
3744 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
3746         * final.c (this_is_asm_operands): Strengthen this variable from
3747         rtx to const rtx_insn *.
3748         * output.h (this_is_asm_operands): Likewise.
3749         * rtl-error.c (location_for_asm): Strengthen param "insn" from
3750         const_rtx to const rtx_insn *.
3751         (diagnostic_for_asm): Likewise.
3752         * rtl-error.h (error_for_asm): Likewise.
3753         (warning_for_asm): Likewise.
3755 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
3757         * genextract.c (print_header): When writing out insn_extract to
3758         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
3759         * recog.h (insn_extract): Strengthen the param from rtx to
3760         rtx_insn *.
3762 2014-09-10  Mike Stump  <mikestump@comcast.net>
3764         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
3765         8.6.1.
3767 2014-09-10  Martin Jambor  <mjambor@suse.cz>
3769         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
3770         (analyze): Do not set analyze flag if expand_thunk returns false;.
3771         (create_wrapper): Likewise.
3772         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
3774 2014-09-10  Martin Jambor  <mjambor@suse.cz>
3776         PR ipa/61654
3777         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
3778         new decl properly.  Analyze the new thunk if it is expanded.
3780 2014-09-10  Andreas Schwab  <schwab@suse.de>
3782         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
3783         [USED_FOR_TARGET]: Define.
3785 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
3787         * config/mips/mips.c (mips_secondary_reload_class): Handle
3788         regno < 0 case.
3790 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
3792         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
3793         assignment.
3795 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
3797         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
3798         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
3799         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
3800         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
3801         flag_delete_null_pointer_checks for them.
3802         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
3803         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
3804         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
3805         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
3806         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
3807         stmt's iterator.
3808         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
3809         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
3810         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
3811         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
3812         * doc/invoke.texi (-fsanitize=nonnull-attribute,
3813         -fsanitize=returns-nonnull-attribute): Document.
3815         * ubsan.h (struct ubsan_mismatch_data): Removed.
3816         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
3817         * ubsan.c (ubsan_source_location): For unknown locations,
3818         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
3819         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
3820         Allow more than one location and arbitrary extra arguments passed
3821         in ... instead of through MISMATCH pointer.
3822         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
3823         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
3824         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
3825         callers.
3827 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3828             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3829             Anna Tikhonova  <anna.tikhonova@intel.com>
3830             Ilya Tocar  <ilya.tocar@intel.com>
3831             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3832             Ilya Verbin  <ilya.verbin@intel.com>
3833             Kirill Yukhin  <kirill.yukhin@intel.com>
3834             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3836         * config/i386/sse.md
3837         (define_mode_iterator VI48F): New.
3838         (define_insn "<avx512>_compress<mode>_mask"): Rename from
3839         "avx512f_compress<mode>_mask" and update mode iterator.
3840         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
3841         "avx512f_compressstore<mode>_mask" and update mode iterator.
3842         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
3843         "avx512f_expand<mode>_maskz" and update mode iterator.
3844         (define_insn "<avx512>_expand<mode>_mask"): Rename from
3845         "avx512f_expand<mode>_mask" and update mode iterator.
3847 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3848             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3849             Anna Tikhonova  <anna.tikhonova@intel.com>
3850             Ilya Tocar  <ilya.tocar@intel.com>
3851             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3852             Ilya Verbin  <ilya.verbin@intel.com>
3853             Kirill Yukhin  <kirill.yukhin@intel.com>
3854             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3856         * config/i386/i386.c
3857         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
3858         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
3859         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
3860         avx512dq_rangepv4sf_mask.
3861         * config/i386/sse.md
3862         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
3863         UNSPEC_RANGE.
3864         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
3865         (define_insn "reduces<mode>"): Ditto.
3866         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
3867         Ditto.
3868         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
3869         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
3870         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
3872 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3873             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3874             Anna Tikhonova  <anna.tikhonova@intel.com>
3875             Ilya Tocar  <ilya.tocar@intel.com>
3876             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3877             Ilya Verbin  <ilya.verbin@intel.com>
3878             Kirill Yukhin  <kirill.yukhin@intel.com>
3879             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3881         * config/i386/i386.c
3882         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
3883         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
3884         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
3885         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
3886         avx512vl_getmantv2df_mask.
3887         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
3888         avx512f_vgetmantv4sf_round.
3889         * config/i386/sse.md
3890         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
3891         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
3892         mode iterator.
3893         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
3894         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
3895         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
3896         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
3897         iterator..
3898         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
3899         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
3900         update mode iterator.
3901         (define_expand
3902         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
3903         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
3904         mode iterator.
3905         (define_insn
3906         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
3907         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
3908         update mode iterator.
3909         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
3910         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
3911         iterator..
3912         (define_insn
3913         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
3914         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
3915         mode iterator..
3916         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
3917         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
3918         update mode iterator.
3919         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
3920         "avx512f_getmant<mode><round_saeonly_name>".
3922 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
3924         PR ipa/63166
3925         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
3927 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3928             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3929             Anna Tikhonova  <anna.tikhonova@intel.com>
3930             Ilya Tocar  <ilya.tocar@intel.com>
3931             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3932             Ilya Verbin  <ilya.verbin@intel.com>
3933             Kirill Yukhin  <kirill.yukhin@intel.com>
3934             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3936         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
3937         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
3938         (define_mode_iterator FMAMODE_AVX512): New.
3939         (define_mode_iterator FMAMODE): Remove conditions.
3940         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
3941         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
3942         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
3943         mode iterator.
3944         (define_mode_iterator FMAMODE_NOVF512): Remove.
3945         (define_insn "*fma_fmadd_<mode>"): Rename from
3946         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
3947         FMAMODE mode iterator.
3948         (define_mode_iterator VF_SF_AVX512VL): New.
3949         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
3950         Use VF_SF_AVX512VL mode iterator.
3951         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
3952         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3953         iterator.
3954         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
3955         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3956         iterator.
3957         (define_insn "*fma_fmsub_<mode>"): Rename from
3958         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
3959         FMAMODE mode iterator.
3960         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
3961         Use VF_SF_AVX512VL mode iterator.
3962         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
3963         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3964         iterator.
3965         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
3966         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3967         iterator.
3968         (define_insn "*fma_fnmadd_<mode>"): Rename from
3969         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
3970         use FMAMODE mode iterator.
3971         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
3972         Use VF_SF_AVX512VL mode iterator.
3973         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
3974         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
3975         iterator.
3976         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
3977         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3978         iterator.
3979         (define_insn "*fma_fnmsub_<mode>"): Rename from
3980         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
3981         FMAMODE mode iterator.
3982         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
3983         Use VF_SF_AVX512VL mode iterator.
3984         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
3985         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
3986         iterator.
3987         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
3988         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
3989         iterator.
3990         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
3991         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
3992         use VF_AVX512VL mode iterator.
3993         (define_insn "*fma_fmaddsub_<mode>"): Rename from
3994         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
3995         remove subst usage.
3996         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
3997         Use VF_SF_AVX512VL mode iterator.
3998         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
3999         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
4000         iterator.
4001         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
4002         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4003         iterator.
4004         (define_insn "*fma_fmsubadd_<mode>"): Rename from
4005         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
4006         remove usage of subst.
4007         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
4008         Use VF_SF_AVX512VL mode iterator.
4009         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
4010         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
4011         iterator.
4012         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
4013         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4014         iterator.
4016 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
4018         Revert r213751:
4019         * calls.c (precompute_arguments): Check
4020          promoted_for_signed_and_unsigned_p and set the promoted mode.
4021         (promoted_for_signed_and_unsigned_p): New function.
4022         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
4023         and set the promoted mode.
4024         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
4025         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
4026         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
4028 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4030         * opth-gen.awk: Generate mapping from cpp message reasons to the
4031         options that enable them.
4032         * doc/options.texi (CppReason): Document.
4034 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4036         * doc/invoke.texi (Wnormalized=): Update.
4038 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
4040         PR target/63195
4041         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
4042         operands.  Split off the constant operand alternative to ...
4043         (*bool<mode>3_imm): New.
4045 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
4047         * rtl.h (single_set_2): Strengthen first param from const_rtx to
4048         const rtx_insn *, and move prototype to above...
4049         (single_set): ...this.  Convert this from a macro to an inline
4050         function, enforcing the requirement that the param is a const
4051         rtx_insn *.
4052         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
4054         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
4055         Strengthen both params from rtx to rtx_insn *.
4056         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
4057         Likewise; introduce locals "producer_set", "consumer_set", using
4058         them in place of "producer" and "consumer" when dealing with SET
4059         rather than insn.
4060         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
4061         when invoking single_set in region guarded by INSN_P.
4062         (avr_out_bitop): Likewise.
4063         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
4064         region guarded by GET_CODE check, using methods to strengthen
4065         local "this_insn" from rtx to rtx_insn *, and for clarity.
4066         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
4067         Strengthen local "insn" from rtx to rtx_insn *.
4068         (define_insn_and_split "xload<mode>_A"): Likewise.
4069         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
4070         "insn".
4071         (find_load): Likewise for return type.
4072         (workaround_speculation): Likewise for both locals named
4073         "load_insn".
4074         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
4075         local "cc0_user".
4076         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
4077         for local "prev".
4078         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
4079         param 2.
4080         * config/h8300/h8300.c (notice_update_cc): Likewise.
4081         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
4082         "insn" and "dep_insn".
4083         (exact_store_load_dependency): Likewise for both params.
4084         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
4085         since this now clashes with inline function.  Instead, delay
4086         calling single_set until the point where its needed, and then
4087         assign the result to "compare_set" and rework the conditional that
4088         follows.
4089         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
4090         local "last" from rtx to rtx_insn *.
4091         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
4092         second param.
4093         (mips_store_data_bypass_p): Likewise for both params.
4094         * config/mips/mips.c (mips_load_store_insns): Likewise for second
4095         param.
4096         (mips_store_data_bypass_p): Likewise for both params.
4097         (mips_orphaned_high_part_p): Likewise for param "insn".
4098         * config/mn10300/mn10300.c (extract_bundle): Likewise.
4099         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
4100         Introduce local rtx "insn2_pat".
4101         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
4102         "ninsn".
4103         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
4104         Introduce local rtx "set", using it in place of "insn" for the
4105         result of single_set.  This appears to fix a bug, since the call
4106         to find_regno_note on a SET does nothing.
4107         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
4108         params from rtx to rtx_insn *.
4109         (set_to_load_agen): Likewise.
4110         * config/s390/s390.c (s390_label_align): Likewise for local
4111         "prev_insn".  Introduce new rtx locals "set" and "src", using
4112         them in place of "prev_insn" for the results of single_set
4113         and SET_SRC respectively.
4114         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
4115         Introduce new rtx local "set" using in place of "jump" for the
4116         result of single_set.  Use SET_SRC (set) rather than plain
4117         XEXP (set, 1).
4118         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
4119         rtx to rtx_insn *.
4120         (noncall_uses_reg): Likewise.
4121         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
4122         guarded by GET_CODE check, using its methods for clarity, and to
4123         enable strengthening local "this_insn" from rtx to rtx_insn *.
4124         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
4125         "insn" from rtx to rtx_insn *.
4126         (define_expand "umulhisi3"): Likewise.
4127         (define_expand "smulsi3_highpart"): Likewise.
4128         (define_expand "umulsi3_highpart"): Likewise.
4129         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
4130         local "after".  Replace GET_CODE check with a dyn_cast,
4131         introducing new local rtx_sequence * "seq", using insn method for
4132         typesafety.
4134         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
4135         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
4136         place of "insn" once we're dealing with patterns rather than the
4137         input insn.
4138         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
4139         (scan_trace): Likewise for local "elt", updating lookups within
4140         sequence to use insn method rather than element method.
4141         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
4142         to rtx_insn *.
4143         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
4144         * ifcvt.c (noce_try_abs): Likewise for local "insn".
4145         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
4146         invoking single_set.
4147         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
4148         "insn" from rtx to rtx_insn *.
4149         (skip_usage_debug_insns): Likewise for return type, adding a
4150         checked cast.
4151         (check_secondary_memory_needed_p): Likewise for local "insn".
4152         (inherit_reload_reg): Likewise.
4153         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
4154         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
4155         checked casts.
4156         (store_data_bypass_p): Likewise for both params.
4157         (if_test_bypass_p): Likewise.
4158         * recog.h (store_data_bypass_p): Likewise for both params.
4159         (if_test_bypass_p): Likewise.
4160         * reload.c (find_equiv_reg): Likewise for local "where".
4161         * reorg.c (delete_jump): Likewise for param "insn".
4162         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
4163         to const rtx_insn *.
4164         * store-motion.c (replace_store_insn): Likewise for param "del".
4165         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
4166         and use its methods for clarity, and to strengthen local "del"
4167         from rtx to rtx_insn *.
4168         (build_store_vectors): Use insn method of "st" when calling
4169         replace_store_insn for typesafety and clarity.
4171 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4173         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
4174         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
4175         on how to make it legal in future.
4177 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
4179         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
4180         to rtx_insn *.
4181         (restinsn): Likewise.
4182         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
4183         Likewise for param.
4184         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
4185         Likewise.
4186         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
4187         first param.
4188         (arc_hazard): Likewise for both params.
4189         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
4190         checked casts to rtx_sequence * and uses of the insn method for
4191         type-safety.
4192         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
4193         (arc_adjust_insn_length): Likewise for param "insn".
4194         (struct insn_length_parameters_s): Likewise for first param of
4195         "get_variants" callback field.
4196         (arc_get_insn_variants): Likewise for first param and local
4197         "inner".  Replace a check of GET_CODE with a dyn_cast to
4198         rtx_sequence *, using methods for type-safety and clarity.
4199         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
4200         rtx_sequence * and uses of the insn method for type-safety when
4201         invoking arc_adjust_insn_length.
4202         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
4203         for param.
4204         (arm_address_offset_is_imm): Likewise.
4205         (struct tune_params): Likewise for params 1 and 3 of the
4206         "sched_adjust_cost" callback field.
4207         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
4208         params 1 and 3 ("insn" and "dep").
4209         (xscale_sched_adjust_cost): Likewise.
4210         (fa726te_sched_adjust_cost): Likewise.
4211         (cortexa7_older_only): Likewise for param "insn".
4212         (cortexa7_younger): Likewise.
4213         (arm_attr_length_move_neon): Likewise.
4214         (arm_address_offset_is_imm): Likewise.
4215         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
4216         * config/avr/avr.c (avr_notice_update_cc): Likewise.
4217         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
4218         (workaround_speculation): Likewise for local "last_condjump".
4219         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
4220         (shadow_or_blockage_p): Likewise.
4221         (get_unit_reqs): Likewise.
4222         (get_unit_operand_masks): Likewise.
4223         (c6x_registers_update): Likewise.
4224         (returning_call_p): Likewise.
4225         (can_use_callp): Likewise.
4226         (convert_to_callp): Likewise.
4227         (find_last_same_clock): Likwise for local "t".
4228         (reorg_split_calls): Likewise for local "shadow".
4229         (hwloop_pattern_reg): Likewise for param "insn".
4230         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
4231         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
4232         (frv_extract_membar): Likewise.
4233         (frv_optimize_membar_local): Strengthen param "last_membar" from
4234         rtx * to rtx_insn **.
4235         (frv_optimize_membar_global): Strengthen param "membar" from rtx
4236         to rtx_insn *.
4237         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
4238         to rtx_insn **.
4239         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
4240         both params from rtx to rtx_insn *.
4241         (ia64_ld_address_bypass_p): Likewise.
4242         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
4243         "insn".
4244         (ia64_safe_type): Likewise.
4245         (group_barrier_needed): Likewise.
4246         (safe_group_barrier_needed): Likewise.
4247         (ia64_single_set): Likewise.
4248         (is_load_p): Likewise.
4249         (record_memory_reference): Likewise.
4250         (get_mode_no_for_insn): Likewise.
4251         (important_for_bundling_p): Likewise.
4252         (unknown_for_bundling_p): Likewise.
4253         (ia64_st_address_bypass_p): Likewise for both params.
4254         (ia64_ld_address_bypass_p): Likewise.
4255         (expand_vselect): Introduce new local rtx_insn * "insn", using it
4256         in place of rtx "x" after the emit_insn call.
4257         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
4258         Strengthen param from rtx to rtx_insn *.
4259         (ix86_agi_dependent): Likewise for both params.
4260         (ix86_attr_length_immediate_default): Likewise for param 1.
4261         (ix86_attr_length_address_default): Likewise for param.
4262         (ix86_attr_length_vex_default): Likewise for param 1.
4263         * config/i386/i386.c (ix86_attr_length_immediate_default):
4264         Likewise for param "insn".
4265         (ix86_attr_length_address_default): Likewise.
4266         (ix86_attr_length_vex_default): Likewise.
4267         (ix86_agi_dependent): Likewise for both params.
4268         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
4269         (vselect_insn): Likewise for this variable.
4270         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
4271         for param 1.
4272         (m68k_sched_attr_opy_type): Likewise.
4273         * config/m68k/m68k.c (sched_get_operand): Likewise.
4274         (sched_attr_op_type): Likewise.
4275         (m68k_sched_attr_opx_type): Likewise.
4276         (m68k_sched_attr_opy_type): Likewise.
4277         (sched_get_reg_operand): Likewise.
4278         (sched_get_mem_operand): Likewise.
4279         (m68k_sched_address_bypass_p): Likewise for both params.
4280         (sched_get_indexed_address_scale): Likewise.
4281         (m68k_sched_indexed_address_bypass_p): Likewise.
4282         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
4283         (m68k_sched_indexed_address_bypass_p): Likewise.
4284         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
4285         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
4286         removing another.
4287         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
4288         params from rtx to rtx_insn *.
4289         (mips_fmadd_bypass): Likewise.
4290         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
4291         (mips_linked_madd_p): Likewise.
4292         (mips_macc_chains_last_hilo): Likewise for this variable.
4293         (mips_macc_chains_record): Likewise for param.
4294         (vr4130_last_insn): Likewise for this variable.
4295         (vr4130_swap_insns_p): Likewise for both params.
4296         (mips_ls2_variable_issue): Likewise for param.
4297         (mips_need_noat_wrapper_p): Likewise for param "insn".
4298         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
4299         in place of "x" after the emit_insn.
4300         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
4301         params from rtx to rtx_insn *.
4302         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
4303         (pa_combine_instructions): Introduce local "par" for result of
4304         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
4305         to make_insn_raw.
4306         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
4307         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
4308         (rl78_alloc_physical_registers_op1): Likewise.
4309         (rl78_alloc_physical_registers_op2): Likewise.
4310         (rl78_alloc_physical_registers_ro1): Likewise.
4311         (rl78_alloc_physical_registers_cmp): Likewise.
4312         (rl78_alloc_physical_registers_umul): Likewise.
4313         (rl78_alloc_address_registers_macax): Likewise.
4314         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
4315         * config/s390/predicates.md (execute_operation): Likewise for
4316         local "insn".
4317         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
4318         params.
4319         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
4320         (addr_generation_dependency_p): Likewise for param "insn".
4321         (s390_agen_dep_p): Likewise for both params.
4322         (s390_fpload_toreg): Likewise for param "insn".
4323         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
4324         * config/sh/sh.c (sh_loop_align): Likewise for param and local
4325         "next".
4326         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
4327         * config/sh/sh_treg_combine.cc
4328         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
4329         and local "i".
4330         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
4331         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
4332         "and_insn", "load", "shift".
4333         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
4334         "insn".
4335         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
4336         for XEXP (note, 0) of the REG_CC_SETTER note.
4337         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
4338         rtx_insn *, eliminating a checked cast made redundant by this.
4339         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
4340         to rtx_insn *.
4341         * genattr.c (main): When writing out the prototype to
4342         const_num_delay_slots, strengthen the param from rtx to
4343         rtx_insn *.
4344         * genattrtab.c (write_const_num_delay_slots): Likewise when
4345         writing out the implementation of const_num_delay_slots.
4346         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
4347         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
4348         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
4349         favor of new rtx locals "src" and "set" and new local rtx_insn *
4350         "insn" and "seq".
4351         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
4352         to rtx_insn *.
4353         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
4354         locals "cond", "if_then_else", "set" and new rtx_insn * locals
4355         "insn" and "seq".
4356         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
4357         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
4358         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
4359         the top-level scope, replacing with new more tightly-scoped rtx
4360         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
4361         "new_insn", "copy_of_insn_b", and make local rtx "set" more
4362         tightly-scoped.
4363         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
4364         rtx_insn *.
4365         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
4366         "move_insn".
4367         (ira_setup_alts): Likewise for param "insn".
4368         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
4369         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
4370         and an rtx_insn *.
4371         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
4372         new more-tightly scoped rtx locals "add3_insn", "insn",
4373         "add2_insn" and rtx_insn * "move_insn".
4374         * postreload-gcse.c (eliminate_partially_redundant_load): Add
4375         checked cast on result of gen_move_insn when invoking
4376         extract_insn.
4377         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
4378         rtx_insn *.
4379         (verify_changes): Add a checked cast on "object" when invoking
4380         insn_invalid_p.
4381         (extract_insn_cached): Strengthen param "insn" from rtx to
4382         rtx_insn *.
4383         (extract_constrain_insn_cached): Likewise.
4384         (extract_insn): Likewise.
4385         * recog.h (insn_invalid_p): Likewise for param 1.
4386         (recog_memoized): Likewise for param.
4387         (extract_insn): Likewise.
4388         (extract_constrain_insn_cached): Likewise.
4389         (extract_insn_cached): Likewise.
4390         * reload.c (can_reload_into): Likewise for local "test_insn".
4391         * reload.h (cleanup_subreg_operands): Likewise for param.
4392         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
4393         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
4394         result of emit_insn.  Remove a checked cast made redundant by this
4395         change.
4396         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
4397         rtx to rtx_insn *.
4398         * sel-sched.c (get_reg_class): Likewise.
4400 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4401         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4403          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
4404          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
4405         Define.
4406         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
4408 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
4410         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
4411         const rtx_insn *, and from rtx to rtx_insn * for the other
4412         overloaded variant.
4413         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
4414         INSN_LOCATION, since we know INSN_P holds.
4415         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
4416         (insn_file): Likewise.
4417         (insn_scope): Likewise.
4418         (insn_location): Likewise.
4420         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
4421         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
4422         for the result of gen_load_const_gp.
4423         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
4424         param from rtx to rtx_insn *.
4425         * config/rs6000/rs6000.c (output_call): Likewise.
4426         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
4427         introducing a checked cast to rtx_sequence * and use of the insn
4428         method.
4429         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
4430         from rtx to rtx_insn *.
4431         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
4432         (insn_line): Likewise.
4433         (insn_file): Likewise.
4434         (insn_location): Likewise.
4435         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
4436         from rtx to rtx_insn *.
4437         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
4438         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
4439         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
4440         via a checked cast.
4441         * reorg.c (relax_delay_slots): Strengthen locals named "after"
4442         from rtx to rtx_insn *; use methods of "pat" for type-safety.
4444 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
4446         * combine.c (try_combine): Eliminate checked cast on result of
4447         gen_rtx_INSN.
4448         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
4449         autogenerated one by strengthening the return type and params 2 and 3
4450         from rtx to rtx_insn *, and by naming the params.
4451         * gengenrtl.c (special_rtx): Add INSN to those that are
4452         special-cased.
4453         * rtl.h (gen_rtx_INSN): New prototype.
4455 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
4457         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
4458         than NULL_RTX.
4459         (no_equiv): Likewise.
4460         (update_equiv_regs): Likewise.
4461         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
4462         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
4463         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
4464         clarity.
4465         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
4466         from rtx to rtx_insn_list *.
4467         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
4468         rtx_insn_list * and use methods for clarity and typesafety.
4469         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
4470         "list".
4471         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
4472         redundant check on INSN_P (insns): this cannot hold, as "insns" is
4473         an INSN_LIST, not an insn.
4474         (reverse_equiv_p): Strengthen local "insns" from rtx to
4475         rtx_insn_list * and use methods for clarity and typesafety.
4476         (contains_reloaded_insn_p): Likewise for local "list".
4478 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
4480         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
4481         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
4482         (arm_builtin_vectorized_function): Likewise.
4483         * config/arm/arm_neon_builtins.def: New macro for copysignf.
4484         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
4486 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4488         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
4489         * builtins.h (default_target_builtins): Likewise.
4490         * gcse.h (default_target_gcse): Likewise.
4491         * target-globals.h (target_globals): Add a destructor.  Convert
4492         void-pointer fields back to their real type and change from
4493         GTY((atomic)) to GTY((skip)).
4494         (restore_target_globals): Remove casts accordingly.
4495         * target-globals.c (save_target_globals): Use XCNEW rather than
4496         ggc_internal_cleared_alloc to allocate non-GC structures.
4497         Use ggc_cleared_alloc to allocate the target_globals structure
4498         itself.
4499         (target_globals::~target_globals): Define.
4501 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4503         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
4504         mnemonic instead of fldmfdd.
4505         * config/arm/arm.c (vfp_output_fstmd): Rename to...
4506         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
4507         Output vpush when address register is SP.
4508         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
4509         (vfp_output_vstmd): ... This.
4510         * config/arm/vfp.md (push_multi_vfp): Update call to
4511         vfp_output_vstmd.
4513 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4515         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
4517 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4519         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
4520         (*sqrtdf2_vfp): Likewise.
4521         (*cmpsf_vfp): Likewise.
4522         (*cmpsf_trap_vfp): Likewise.
4523         (*cmpdf_vfp): Likewise.
4524         (*cmpdf_trap_vfp): Likewise.
4526 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4528         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
4529         (*truncdfsf2_vfp): Likewise.
4530         (*truncsisf2_vfp): Likewise.
4531         (*truncsidf2_vfp): Likewise.
4532         (fixuns_truncsfsi2): Likewise.
4533         (fixuns_truncdfsi2): Likewise.
4534         (*floatsisf2_vfp): Likewise.
4535         (*floatsidf2_vfp): Likewise.
4536         (floatunssisf2): Likewise.
4537         (floatunssidf2): Likewise.
4539 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4541         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
4542         (*muldf3_vfp): Likewise.
4543         (*mulsf3negsf_vfp): Likewise.
4544         (*muldf3negdf_vfp): Likewise.
4545         (*mulsf3addsf_vfp): Likewise.
4546         (*muldf3adddf_vfp): Likewise.
4547         (*mulsf3subsf_vfp): Likewise.
4548         (*muldf3subdf_vfp): Likewise.
4549         (*mulsf3negsfaddsf_vfp): Likewise.
4550         (*fmuldf3negdfadddf_vfp): Likewise.
4551         (*mulsf3negsfsubsf_vfp): Likewise.
4552         (*muldf3negdfsubdf_vfp): Likewise.
4554 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4556         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
4557         (*absdf2_vfp): Likewise.
4558         (*negsf2_vfp): Likewise.
4559         (*negdf2_vfp): Likewise.
4560         (*addsf3_vfp): Likewise.
4561         (*adddf3_vfp): Likewise.
4562         (*subsf3_vfp): Likewise.
4563         (*subdf3_vfp): Likewise.
4564         (*divsf3_vfp): Likewise.
4565         (*divdf3_vfp): Likewise.
4567 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4569         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
4570         multiple.
4571         (arm_print_operand): Don't convert real values to decimal
4572         representation in default case.
4573         (fp_immediate_constant): Delete.
4574         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
4575         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
4576         syntax.
4577         (*thumb2_movsi_vfp): Likewise.
4578         (*movdi_vfp): Likewise.
4579         (*movdi_vfp_cortexa8): Likewise.
4580         (*movhf_vfp_neon): Likewise.
4581         (*movhf_vfp): Likewise.
4582         (*movsf_vfp): Likewise.
4583         (*thumb2_movsf_vfp): Likewise.
4584         (*movdf_vfp): Likewise.
4585         (*thumb2_movdf_vfp): Likewise.
4586         (*movsfcc_vfp): Likewise.
4587         (*thumb2_movsfcc_vfp): Likewise.
4588         (*movdfcc_vfp): Likewise.
4589         (*thumb2_movdfcc_vfp): Likewise.
4591 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
4593         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
4594         (-mtune): Likewise.
4595         (-mcpu): Likewise.
4597 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4599         PR target/61749
4600         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
4601         Use qualifier_immediate for last operand.  Rename to...
4602         (aarch64_types_ternop_lane_qualifiers): ... This.
4603         (TYPES_QUADOP): Rename to...
4604         (TYPES_TERNOP_LANE): ... This.
4605         (aarch64_simd_expand_args): Return const0_rtx when encountering user
4606         error.  Change return of 0 to return of NULL_RTX.
4607         (aarch64_crc32_expand_builtin): Likewise.
4608         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
4609         ICE when expanding unknown builtin.
4610         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
4611         TERNOP_LANE qualifiers.
4612         (sqdmlsl_lane): Likewise.
4613         (sqdmlal_laneq): Likewise.
4614         (sqdmlsl_laneq): Likewise.
4615         (sqdmlal2_lane): Likewise.
4616         (sqdmlsl2_lane): Likewise.
4617         (sqdmlal2_laneq): Likewise.
4618         (sqdmlsl2_laneq): Likewise.
4620 2014-09-09  Nick Clifton  <nickc@redhat.com>
4622         * doc/invoke.texi (Optimization Options): Add missing @gol to the
4623         end of a line.
4624         (S/390 and zSeries Options): Remove superfluous word from the
4625         description of the -mhotpatch option.
4627 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4629         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
4630         * ira.c: #include "shrink-wrap.h"
4631         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
4632         * ifcvt.c: #include "shrink-wrap.h"
4633         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
4635 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
4637         * common/config/picochip/picochip-common.c: Remove.
4638         * config.gcc: Remove support for picochip.
4639         * config/picochip/constraints.md: Remove.
4640         * config/picochip/dfa_space.md: Remove.
4641         * config/picochip/dfa_speed.md: Remove.
4642         * config/picochip/picochip-protos.h: Remove.
4643         * config/picochip/picochip.c: Remove.
4644         * config/picochip/picochip.h: Remove.
4645         * config/picochip/picochip.md: Remove.
4646         * config/picochip/picochip.opt: Remove.
4647         * config/picochip/predicates.md: Remove.
4648         * config/picochip/t-picochip: Remove.
4649         * doc/md.texi: Don't document picochi.
4651 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
4653         * basic-block.h (control_flow_insn_p): Strengthen param from
4654         const_rtx to const rtx_insn *.
4655         * cfgbuild.c (control_flow_insn_p): Likewise.
4657 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
4659         * gcse.c (modify_mem_list): Strengthen this variable from
4660         vec<rtx> * to vec<rtx_insn *> *.
4661         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
4662         vec<rtx_insn *>.
4663         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
4664         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
4665         (record_last_mem_set_info): Strengthen param "insn" from rtx to
4666         rtx_insn *.
4667         (record_last_set_info): Likewise for local "last_set_insn".
4669 2014-09-08  DJ Delorie  <dj@redhat.com>
4671         * doc/invoke.texi (MSP430 Options): Add -minrt.
4673 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4675         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
4676         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
4677         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
4678         handling SH_SPLAT.
4679         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
4680         of extracted lane.
4681         (adjust_splat): New function.
4682         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
4683         (dump_swap_insn_table): Add case for SH_SPLAT.
4685 2014-09-08  Richard Biener  <rguenther@suse.de>
4687         PR ipa/63196
4688         * tree-inline.c (copy_loops): The source loop header should
4689         always be non-NULL.
4690         (tree_function_versioning): If loops need fixup after removing
4691         unreachable blocks fix them.
4692         * omp-low.c (simd_clone_adjust): Do not add incr block to
4693         loop under construction.
4695 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4697         * config/aarch64/aarch64-builtins.c
4698         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
4700 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
4702         * config/i386/cygming.h (TF_SIZE): Remove.
4703         * config/i386/darwin.h (TF_SIZE): Remove.
4704         * config/i386/dragonfly.h (TF_SIZE): Remove.
4705         * config/i386/freebsd.h (TF_SIZE): Remove.
4706         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
4707         * config/i386/openbsdelf.h (TF_SIZE): Remove.
4708         * config/i386/sol2.h (TF_SIZE): Remove.
4709         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
4710         * config/ia64/linux.h (TF_SIZE): Remove.
4711         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
4712         * doc/tm.texi: Regenerate.
4713         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
4715 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
4717         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
4718         Remove.
4719         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
4720         Remove.
4721         * doc/tm.texi: Regenerate.
4722         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
4723         Poison.
4724         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
4725         * config/cris/cris.h (__make_dp): Remove.
4727 2014-09-08  Richard Biener  <rguenther@suse.de>
4729         PR bootstrap/63204
4730         * cfgloop.c (mark_loop_for_removal): Track former header
4731         unconditionally.
4732         * cfgloop.h (struct loop): Add former_header member unconditionally.
4733         * loop-init.c (fix_loop_structure): Enable bogus loop removal
4734         diagnostic unconditionally.
4736 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
4738         PR target/63190
4739         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
4740         constraint for operand0 and remove write only modifier from operand3.
4742 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
4744         PR rtl-optimization/62208
4745         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
4746         rather than const0_rtx in eq/ne-xor simplifications.
4748 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
4750         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
4751         (arc_output_mi_thunk): Likewise.
4753         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
4754         arguments to silence bogus warning.
4756 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
4758         PR middle-end/63171
4759         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
4761 2014-09-06  Tom de Vries  <tom@codesourcery.com>
4763         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
4764         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
4765         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
4767 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
4769         PR target/63188
4770         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
4771         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
4773 2014-09-05  Easwaran Raman  <eraman@google.com>
4775         PR rtl-optimization/62146
4776         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
4777         hoisted instruction unconditional.
4779 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
4781         PR target/63187
4782         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
4783         Do not allow any_mask_operand for operands[2].
4784         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
4786 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4788         * config/arc/arc.c (arc_print_operand): Use insn method of
4789         final_sequence for type-safety.
4790         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
4791         "insn" from rtx to rtx_insn *.
4792         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
4793         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
4794         Likewise for locals "branch", "label".
4795         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
4796         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
4797         (same_cmp_following_p): Likewise for locals "i2", "i3".
4798         * config/sh/sh_optimize_sett_clrt.cc
4799         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
4800         param "cbranch_insn".
4801         * function.c (convert_jumps_to_returns): Likewis for local "jump".
4802         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
4803         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
4804         const rtx_insn *.
4805         (condjump_p): Likewise.
4806         (condjump_in_parallel_p): Likewise.
4807         (pc_set): Likewise.
4808         (any_uncondjump_p): Likewise.
4809         (any_condjump_p): Likewise.
4810         (condjump_label): Likewise.
4811         (returnjump_p): Strengthen param "insn" from rtx to
4812         const rtx_insn *.
4813         (onlyjump_p): Strengthen param "insn" from const_rtx to
4814         const rtx_insn *.
4815         (jump_to_label_p): Likewise.
4816         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
4817         (invert_jump): Likewise.
4818         * reorg.c (simplejump_or_return_p): Add checked cast when calling
4819         simplejump_p.
4820         (get_jump_flags): Strengthen param "insn" from rtx to
4821         const rtx_insn *.
4822         (get_branch_condition): Likewise.
4823         (condition_dominates_p): Likewise.
4824         (make_return_insns): Move declaration of local "pat" earlier, to
4825         after we've handled NONJUMP_INSN_P and non-sequences, using its
4826         methods to simplify the code and for type-safety.
4827         * rtl.h (find_constant_src): Strengthen param from const_rtx to
4828         const rtx_insn *.
4829         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
4830         (condjump_p): Strengthen param from const_rtx to
4831         const rtx_insn *.
4832         (any_condjump_p): Likewise.
4833         (any_uncondjump_p): Likewise.
4834         (pc_set): Likewise.
4835         (condjump_label): Likewise.
4836         (simplejump_p): Likewise.
4837         (returnjump_p): Likewise.
4838         (onlyjump_p): Likewise.
4839         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
4840         (invert_jump): Likewise.
4841         (condjump_in_parallel_p): Strengthen param from const_rtx to
4842         const rtx_insn *.
4843         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
4844         to const rtx_insn *.
4845         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
4846         to const rtx_insn *.
4847         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
4849 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4851         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
4852         above the conditional, and convert the check on GET_CODE to a
4853         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
4854         the conditional.  Simplify the conditional by using methods of
4855         "trial_seq".
4857 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4859         * haifa-sched.c (check_clobbered_conditions): Strengthen local
4860         "link" from rtx to rtx_insn_list *, and use its methods for
4861         clarity and type-safety.
4862         (toggle_cancelled_flags): Likewise.
4863         (restore_last_backtrack_point): Likewise.
4864         (queue_to_ready): Use insn method of "link" in one place.
4865         (schedule_block): Strengthen local "link" from rtx to
4866         rtx_insn_list *, and use its methods for clarity and type-safety.
4868 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4870         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
4871         param "insn" from const_rtx to const rtx_insn *.
4872         (sched_get_reverse_condition_uncached): Likewise.
4873         (sched_get_condition_with_rev): Likewise.
4874         (sched_has_condition_p): Likewise.
4875         (sched_insns_conditions_mutex_p): Likewise for both params.
4876         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
4877         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
4878         (setup_insn_reg_uses): Move local "list" to be more tightly
4879         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
4880         its methods for clarity and type-safety.
4881         (sched_analyze_1): Strengthen local "pending" from rtx to
4882         rtx_insn_list *, and local "pending_mem" from rtx to
4883         rtx_expr_list *.  Use methods of each for clarity and type-safety.
4884         (sched_analyze_2): Likewise.
4885         (sched_analyze_insn): Likewise.
4887         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
4888         param from const_rtx to const rtx_insn *.
4889         (sched_insns_conditions_mutex_p): Likewise for both params.
4890         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
4891         param.
4893         * system.h (CONST_CAST_RTX_INSN): New macro.
4895 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4897         * recog.c (peep2_attempt): Strengthen return type from rtx to
4898         rtx_insn *.
4899         (peep2_update_life): Likewise for params "last", "prev", removing
4900         a checked cast made redundant by this.
4901         (peephole2_optimize): Likewise for local "last".
4903 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4905         * basic-block.h (set_block_for_insn): Eliminate this macro in
4906         favor of...
4907         * rtl.h (set_block_for_insn): New inline function, imposing the
4908         requirement that the "insn" param is an rtx_insn *.
4910 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4912         * caller-save.c (setup_save_areas): Strengthen local "insn" from
4913         rtx to rtx_insn *.
4914         * final.c (get_call_reg_set_usage): Likewise for first param,
4915         eliminating a checked cast.
4916         * regs.h (get_call_reg_set_usage): Likewise for first param.
4917         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
4918         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
4919         cast, replacing references to "x" with "call_insn" where
4920         appropriate.
4921         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
4922         rtx_insn *, adding a checked cast.
4924 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4926         * output.h (final_scan_insn): Strengthen first param from rtx to
4927         rtx_insn *.
4929         * final.c (final_scan_insn): Likewise, renaming it back from
4930         "uncast_insn" to "insn", eliminating the checked cast.
4932         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
4933         "vec" with an rtx_sequence * "seq", taking a copy of
4934         "final_sequence", and using methods of "seq" for clarity, and for
4935         type-safety in the calls to final_scan_insn.
4936         * config/mips/mips.c (mips_output_conditional_branch): Use methods
4937         of "final_sequence" for clarity, and for type-safety in the call to
4938         final_scan_insn.
4939         * config/sh/sh.c (print_slot): Strengthen param from rtx to
4940         rtx_sequence * and rename from "insn" to "seq".
4942 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4944         * jump.c (delete_related_insns): Introduce a new local "table" by
4945         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
4946         get_labels method of "table" to simplify access to the labels in
4947         the jump table.
4949 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4951         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
4952         f_minmaxs, f_minmaxd types.
4954 2014-09-05  Richard Biener  <rguenther@suse.de>
4956         * cfgloop.c (mark_loop_for_removal): Record former header
4957         when ENABLE_CHECKING.
4958         * cfgloop.h (strut loop): Add former_header member when
4959         ENABLE_CHECKING.
4960         * loop-init.c (fix_loop_structure): Sanity check loops
4961         marked for removal if they re-appeared.
4963 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4965         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
4966         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
4968         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
4969         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
4970         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
4971         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
4972         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
4973         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
4974         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
4975         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
4976         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
4977         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
4978         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
4979         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
4980         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
4981         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
4982         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
4983         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
4984         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
4985         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
4986         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
4987         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
4988         with int{32,16,8}_t.
4990 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
4992         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
4993         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
4994         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
4995         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
4996         Remove temporary __asm__ and reimplement.
4998 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5000         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
5001         handling cmge, cmgt, cmeq, cmtst.
5003         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
5004         cmlt, cmgeu, cmgtu, cmtst): Remove.
5006         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
5007         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
5008         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
5009         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
5011 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5013         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
5014         TYPES_TST): Define.
5015         (aarch64_fold_builtin): Update pattern for cmtst.
5017         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
5018         Declare.
5020         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
5022         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
5023         Switch operands, separate out more cases, refactor.
5025         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
5027         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
5028         argument; rename old version to...
5029         (aarch64_const_vec_all_same_in_range_p): ...this.
5030         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
5032         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
5034 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5036         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
5037         Remove qualifier_const_pointer, update comment.
5039 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5041         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
5043 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5045         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
5046         varargs with pointer parameter.
5047         (aarch64_simd_expand_builtin): pass pointer into previous.
5049 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5051         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
5052         alus_ext.
5054 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5056         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
5057         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
5058         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
5059         Replace temporary asm with call to builtin.
5060         (vrbit_p8, vrbitq_p8): New functions.
5062 2014-09-05  Richard Biener  <rguenther@suse.de>
5064         * cfgloop.c (mark_loop_for_removal): New function.
5065         * cfgloop.h (mark_loop_for_removal): Declare.
5066         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
5067         (merge_blocks): Likewise.
5068         (duplicate_block): Likewise.
5069         * except.c (sjlj_emit_dispatch_table): Likewise.
5070         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
5071         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
5072         (thread_through_loop_header): Likewise.
5074 2014-09-05  Richard Biener  <rguenther@suse.de>
5076         PR middle-end/63148
5077         * fold-const.c (try_move_mult_to_index): Remove.
5078         (fold_binary_loc): Do not call it.
5079         * tree-data-ref.c (dr_analyze_indices): Strip conversions
5080         from the base object again.
5082 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
5084         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
5085         DImode.
5087 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
5089         PR target/55701
5090         * config/arm/arm.md (setmem): New pattern.
5091         * config/arm/arm-protos.h (struct tune_params): New fields.
5092         (arm_gen_setmem): New prototype.
5093         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
5094         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5095         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5096         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
5097         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
5098         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
5099         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
5100         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5101         (arm_const_inline_cost): New function.
5102         (arm_block_set_max_insns): New function.
5103         (arm_block_set_non_vect_profit_p): New function.
5104         (arm_block_set_vect_profit_p): New function.
5105         (arm_block_set_unaligned_vect): New function.
5106         (arm_block_set_aligned_vect): New function.
5107         (arm_block_set_unaligned_non_vect): New function.
5108         (arm_block_set_aligned_non_vect): New function.
5109         (arm_block_set_vect, arm_gen_setmem): New functions.
5111 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
5113         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
5115 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
5117         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
5119 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
5121         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
5122         an rtx.
5123         * valtrack.h: Adjust.
5125 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
5127         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
5128         an rtx.
5129         (emit_jump_insn_before_noloc): Likewise.
5130         (emit_call_insn_before_noloc): Likewise.
5131         (emit_label_before): Likewise.
5132         (emit_label_after): Likewise.
5133         (emit_insn_before_setloc): Likewise.
5134         (emit_jump_insn_before_setloc): Likewise.
5135         (emit_call_insn_before_setloc): Likewise.
5136         (emit_call_insn_before): Likewise.
5137         * rtl.h: Adjust.
5139 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5141         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
5142         rtx_insn *, eliminating a checked cast.
5144 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5146         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
5147         const_rtx to const rtx_insn *.
5148         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
5149         cast.
5151 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5153         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
5154         fixup_args_size_notes.
5155         * expr.c (fixup_args_size_notes): Strengthen first two params from
5156         rtx to rtx_insn *, eliminating a checked cast.
5157         * rtl.h (fixup_args_size_notes): Strengthen first two params from
5158         rtx to rtx_insn *.
5160 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5162         * haifa-sched.c (get_ready_element): Strengthen return type from
5163         rtx to rtx_insn *.
5164         * sched-int.h (get_ready_element): Likewise.
5166 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
5168         PR target/63165
5169         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
5170         indexed_or_indirect_operand instead of memory_operand.
5171         (floatsi<mode>2_lfiwzx_mem): Ditto.
5173 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
5175         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
5176         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
5177         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
5179 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
5181         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
5182         rtx.
5183         (get_last_nonnote_insn): Likewise.
5184         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
5185         * resource.c (find_basic_block): Likewise.
5186         * rtl.h: Adjust.
5187         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
5188         const_rtx.
5190 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
5192         * genattr.c (main): Within the prototype of insn_latency written
5193         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
5194         * genautomata.c (output_internal_maximal_insn_latency_func):
5195         Within the implementation of insn_latency written out to
5196         insn-automata.c, strengthen both params from rtx to rtx_insn *,
5197         eliminating a pair of checked casts.
5199 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
5201         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
5202         rtx_insn *.
5204         * rtl.h (eh_returnjump_p): Likewise.
5206 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
5208         * Makefile.in (TAGS): Handle constructs in timevar.def.
5210 2014-09-04  Guozhi Wei  <carrot@google.com>
5212         PR target/62040
5213         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
5214         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
5215         it into two patterns.
5216         (move_lo_quad_internal_be_<mode>): Likewise.
5218 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5220         * doc/options.texi: Document that Var and Init are required if CPP
5221         is given.
5222         * optc-gen.awk: Require Var and Init if CPP is given.
5223         * common.opt (Wpedantic): Use Init.
5225 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5227         * config/rs6000/rs6000.c (special_handling_values): Add
5228         SH_EXTRACT.
5229         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
5230         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
5231         as swappable with special handling SH_EXTRACT.  Remove
5232         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
5233         optimization.
5234         (adjust_extract): New function.
5235         (handle_special_swappables): Add default to case statement; add
5236         case for SH_EXTRACT that calls adjust_extract.
5237         (dump_swap_insn_table): Handle SH_EXTRACT.
5239 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5241         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
5242         selection of 0th memory doubleword, regardless of endianness.
5244 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5246         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
5248 2014-09-04  Alan Modra  <amodra@gmail.com>
5250         PR debug/60655
5251         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
5252         can't be output.
5254 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
5256         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
5257         * targhooks.c (default_dwarf_frame_reg_mode): New function.
5258         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
5259         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
5260         * doc/tm.texi: Regenerate.
5261         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
5262         selection logic to default_dwarf_frame_reg_mode.
5264 2014-09-03  Marek Polacek  <polacek@redhat.com>
5266         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
5267         by -Wall.
5269 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
5271         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
5272         the automodified register.
5274 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
5276         * output.h (get_some_local_dynamic_name): Declare.
5277         * final.c (some_local_dynamic_name): New variable.
5278         (get_some_local_dynamic_name): New function.
5279         (final_end_function): Clear some_local_dynamic_name.
5280         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
5281         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
5282         (print_operand): Report an error if '%&' is used inappropriately.
5283         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
5284         (get_some_local_dynamic_name_1): Delete.
5285         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
5286         (rs6000_get_some_local_dynamic_name): Delete.
5287         (rs6000_get_some_local_dynamic_name_1): Delete.
5288         (print_operand): Report an error if '%&' is used inappropriately.
5289         * config/s390/s390.c (machine_function): Remove some_ld_name.
5290         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
5291         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
5292         * config/sparc/sparc.c: Include rtl-iter.h.
5293         (machine_function): Remove some_ld_name.
5294         (sparc_print_operand): Report an error if '%&' is used inappropriately.
5295         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
5297 2014-09-03  Richard Henderson  <rth@redhat.com>
5299         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
5300         (aarch64_popwb_pair_reg): Remove.
5301         (aarch64_set_frame_expr): Remove.
5302         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
5303         the restore ops performed by the insns generated.
5304         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
5305         insn.  Perform the calls_eh_return addition later; do not attempt to
5306         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
5307         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
5308         special markup at all.  Load cfun->machine->frame.hard_fp_offset
5309         into a local variable.
5310         (aarch64_frame_pointer_required): Don't check calls_alloca.
5312 2014-09-03  Richard Biener  <rguenther@suse.de>
5314         * opts.c (default_options_optimization): Adjust
5315         max-combine-insns to 2 for -Og.
5317 2014-09-03  Martin Jambor  <mjambor@suse.cz>
5319         PR ipa/62015
5320         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
5321         pass-trough jump functions correctly.
5323 2014-09-03  Martin Jambor  <mjambor@suse.cz>
5325         PR ipa/61986
5326         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
5327         created replacements in ascending order of offsets.
5328         (known_aggs_to_agg_replacement_list): Likewise.
5330 2014-09-03  Martin Liska  <mliska@suse.cz>
5332         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
5333         is set to set uninitialized value for vnresult.
5335 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5337         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
5338         for TARGET_MUST_PASS_IN_STACK.
5340 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5342         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
5343         for TARGET_ARG_PARTIAL_BYTES.
5345 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5347         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
5348         instructions for varargs implementation.
5349         (nds32_expand_epilogue): Emit stack adjustment instructions for
5350         varargs implementation.
5352 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5354         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
5355         optimization detection.
5357 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5359         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
5360         arguments.
5361         (nds32_function_arg_advance): Deal with nameless arguments.
5362         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
5363         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
5364         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
5366 2014-09-03  Richard Biener  <rguenther@suse.de>
5368         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
5369         (struct bb_bitmap_sets): Remove deferred member.
5370         (BB_DEFERRED): Remove.
5371         (defer_or_phi_translate_block): Remove.
5372         (compute_antic_aux): Remove deferring of blocks, assert
5373         proper iteration order.
5374         (compute_antic): Do not set BB_DEFERRED.
5375         (eliminate): Allocate el_avail of proper size initially.
5377 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5379         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
5380         according to the value of crtl->args.pretend_args_size.
5382 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5384         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
5385         varargs information.
5387 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5389         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
5390         implementation for TARGET_SETUP_INCOMING_VARARGS.
5391         (nds32_strict_argument_naming): Refine comment.
5392         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
5393         Define for future implementation.
5395 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
5397         * config/i386/adxintrin.h (_subborrow_u32): New.
5398         (_addcarry_u32): Ditto.
5399         (_subborrow_u64): Ditto.
5400         (_addcarry_u64): Ditto.
5401         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
5402         IX86_BUILTIN_SBB64.
5403         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
5404         __builtin_ia32_sbb_u64
5406 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5408         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
5409         GPR-specific stuff.
5410         (nds32_function_arg_advance): Likewise.
5411         (nds32_init_cumulative_args): Likewise.
5412         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
5413         (NDS32_FIRST_GPR_REGNUM): Define.
5414         (NDS32_LAST_GPR_REGNUM): Define.
5415         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
5416         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
5417         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
5418         (machine_function): Use GRP-specific stuff.
5420 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5422         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
5423         (nds32_expand_epilogue): Likewise.
5424         (nds32_expand_prologue_v3push): Likewise.
5425         (nds32_expand_epilogue_v3pop): Likewise.
5427 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5429         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
5430         v3push/v3pop for variadic function.
5431         * config/nds32/nds32.md (prologue, epilogue): Likewise.
5433 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5435         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
5436         Check rtx for varargs implementation.
5437         (nds32_output_stack_pop): Likewise.
5438         * config/nds32/nds32-protos.h: Have a rtx argument for
5439         nds32_output_stack_push and nds32_output_stack_pop.
5440         * config/nds32/nds32.md: Likewise.
5442 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5444         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
5445         to check if FUNC is an interrupt service routine.
5446         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
5448 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5450         * config/nds32/nds32.h (machine_function): Add some fields for variadic
5451         arguments implementation.
5453 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5455         * config/nds32/nds32-predicates.c
5456         (nds32_valid_stack_push_pop): Rename to ...
5457         (nds32_valid_stack_push_pop_p): ... this.
5458         * config/nds32/nds32-protos.h: Likewise.
5459         * config/nds32/predicates.md: Likewise.
5461 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5463         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
5464         (nds32_emit_stack_v3push): ... this.
5465         (nds32_gen_stack_v3pop): Rename to ...
5466         (nds32_emit_stack_v3pop): ... this and consider CFA restore
5467         information.
5469 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5471         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
5472         (nds32_emit_stack_push_multiple): ... this.
5473         (nds32_gen_stack_pop_multiple): Rename to ...
5474         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
5475         information.
5477 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5479         PR target/61078
5480         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
5481         and add a second splitter to handle the remaining cases.
5483 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5485         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
5487 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
5489         * cfgexpand.c (label_rtx_for_bb): Change type to
5490         hash_map<basic_block, rtx_code_label *> *.
5491         (expand_gimple_basic_block): Adjust.
5492         (pass_expand::execute): Likewise.
5494 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
5496         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
5497         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
5498         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
5499         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
5500         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
5501         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
5502         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
5503         of rtx.
5505 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
5507         * alloc-pool.c: Include coretypes.h.
5508         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
5509         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
5510         hash_set instead of htab.
5511         * ggc-page.c (in_gc): New variable.
5512         (ggc_free): Do nothing if a collection is taking place.
5513         (ggc_collect): Set in_gc appropriately.
5514         * ggc.h (gt_ggc_mx(const char *)): New function.
5515         (gt_pch_nx(const char *)): Likewise.
5516         (gt_ggc_mx(int)): Likewise.
5517         (gt_pch_nx(int)): Likewise.
5518         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
5519         (hash_map::hash_entry::pch_nx): Likewise.
5520         (hash_map::hash_entry::pch_nx_helper): Likewise.
5521 (hash_map::hash_map): Adjust.
5522 (hash_map::create_ggc): New function.
5523 (gt_ggc_mx): Likewise.
5524 (gt_pch_nx): Likewise.
5525         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
5526 (default_hashset_traits::pch_nx): Likewise.
5527 (hash_set::hash_entry::ggc_mx): Likewise.
5528 (hash_set::hash_entry::pch_nx): Likewise.
5529 (hash_set::hash_entry::pch_nx_helper): Likewise.
5530 (hash_set::hash_set): Adjust.
5531 (hash_set::create_ggc): New function.
5532 (hash_set::elements): Likewise.
5533 (gt_ggc_mx): Likewise.
5534 (gt_pch_nx): Likewise.
5535         * hash-table.h (hash_table::hash_table): Adjust.
5536 (hash_table::m_ggc): New member.
5537         (hash_table::~hash_table): Adjust.
5538         (hash_table::expand): Likewise.
5539         (hash_table::empty): Likewise.
5540 (gt_ggc_mx): New function.
5541         (hashtab_entry_note_pointers): Likewise.
5542 (gt_pch_nx): Likewise.
5544 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5546         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
5547         built-in definition.
5548         (XVCVUXDDP_SCALE): Likewise.
5549         (XVCVDPSXDS_SCALE): Likewise.
5550         (XVCVDPUXDS_SCALE): Likewise.
5551         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
5552         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
5553         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
5554         VSX_BUILTIN_XVCVDPUXDS_SCALE.
5555         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
5556         prototype.
5557         * config/rs6000/rs6000.c (real.h): New include.
5558         (rs6000_scale_v2df): New function.
5559         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
5560         (UNSPEC_VSX_XVCVUXDDP): Likewise.
5561         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
5562         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
5563         (vsx_xvcvsxddp_scale): New define_expand.
5564         (vsx_xvcvsxddp): New define_insn.
5565         (vsx_xvcvuxddp_scale): New define_expand.
5566         (vsx_xvcvuxddp): New define_insn.
5567         (vsx_xvcvdpsxds_scale): New define_expand.
5568         (vsx_xvcvdpsxds): New define_insn.
5569         (vsx_xvcvdpuxds_scale): New define_expand.
5570         (vsx_xvcvdpuxds): New define_insn.
5571         * doc/extend.texi (vec_ctf): Add new prototypes.
5572         (vec_cts): Likewise.
5573         (vec_ctu): Likewise.
5574         (vec_splat): Likewise.
5575         (vec_div): Likewise.
5576         (vec_mul): Likewise.
5578 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5580         PR target/62275
5581         * config/arm/neon.md
5582         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
5583         <v_cmp_result>): New pattern.
5584         * config/arm/iterators.md (NEON_VCVT): New int iterator.
5585         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
5586         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
5587         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
5588         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
5589         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
5591 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5593         PR target/62275
5594         * config/arm/iterators.md (FIXUORS): New code iterator.
5595         (VCVT): New int iterator.
5596         (su_optab): New code attribute.
5597         (su): Likewise.
5598         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
5600 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5602         * config/aarch64/predicates.md (aarch64_comparison_operation):
5603         New special predicate.
5604         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
5605         aarch64_comparison_operation instead of matching an operator.
5606         Update operand numbers.
5607         (csinc3<mode>_insn): Likewise.
5608         (*csinv3<mode>_insn): Likewise.
5609         (*csneg3<mode>_insn): Likewise.
5610         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
5611         * config/aarch64/aarch64.c (aarch64_get_condition_code):
5612         Return -1 instead of aborting on invalid condition codes.
5613         (aarch64_print_operand): Update aarch64_get_condition_code callsites
5614         to assert that the returned condition code is valid.
5615         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
5617 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
5619         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
5620         tree.def, and gimple.def
5622 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
5623             Balaji V. Iyer  <balaji.v.iyer@intel.com>
5624             Igor Zamyatin  <igor.zamyatin@intel.com>
5626         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
5627         (__cilkrts_cilk_for_64): Likewise.
5628         * cilk-common.c (declare_cilk_for_builtin): New function.
5629         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
5630         __cilkrts_cilk_for_64 bultins.
5631         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
5632         CILK_TI_F_LOOP_64.
5633         (cilk_for_32_fndecl): New define.
5634         (cilk_for_64_fndecl): Likewise.
5635         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
5636         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
5637         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
5638         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
5639         GF_OMP_FOR_COMBINED_INTO.
5640         * gimplify.c (gimplify_scan_omp_clauses): Added
5641         OMP_CLAUSE__CILK_FOR_COUNT_ case.
5642         (gimplify_adjust_omp_clauses): Ditto.
5643         (gimplify_omp_for): Added CILK_FOR case.
5644         (gimplify_expr): Ditto.
5645         * omp-low.c: Include cilk.h.
5646         (extract_omp_for_data): Set appropriate kind for
5647         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
5648         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
5649         (create_omp_child_function_name): Added second argument to handle
5650         cilk_for case.
5651         (cilk_for_check_loop_diff_type): New function.
5652         (expand_cilk_for_call): Likewise.
5653         (expand_cilk_for): Likewise.
5654         (create_omp_child_function): Set cilk_for_count; handle the cases when
5655         it is true; call create_omp_child_function_name with second argument.
5656         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
5657         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
5658         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
5659         * tree-nested.c (convert_nonlocal_omp_clauses): Added
5660         OMP_CLAUSE__CILK_FOR_COUNT_ case.
5661         (convert_local_omp_clauses): Ditto.
5662         * tree-pretty-print.c (dump_omp_clause): Added
5663         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
5664         (dump_generic_node): Added CILK_FOR case.
5665         * tree.c (omp_clause_num_ops): New element
5666         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
5667         (omp_clause_code_name): New element _Cilk_for_count_.
5668         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
5669         * tree.def: Add tree code for CILK_FOR.
5671 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5673         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
5674         (ppc403-compare): Add "exts with dot" case.
5675         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
5676         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
5677         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
5678         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
5679         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
5680         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
5681         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
5682         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
5683         cell-cmp-microcoded): Similarly.
5684         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
5685         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
5686         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
5687         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
5688         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
5689         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
5690         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
5691         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
5692         (power6-compare): Add "exts with dot" case.
5693         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
5694         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
5695         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
5697         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
5698         if avoiding Cell microcode.
5699         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
5700         (is_cracked_insn): Ditto.
5701         (insn_must_be_first_in_group): Ditto.
5702         * config/rs6000/rs6000.md (dot): Adjust comment.
5703         (cell_micro): Handle exts+dot.
5704         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
5705         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
5706         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
5707         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
5708         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
5709         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
5710         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
5712 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5714         * config/rs6000/rs6000.md (QHSI): Delete.
5715         (EXTQI, EXTHI, EXTSI): New mode iterators.
5716         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
5717         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
5718         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
5719         9 anonymous instructions, and 8 splitters): Delete.
5720         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
5721         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
5722         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
5723         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
5724         *zero_extendsi<mode>2_dot2): New.
5726 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5728         * config/rs6000/rs6000.md (any_extend): New code iterator.
5729         (u, su): New code attributes.
5730         (dmode, DMODE): New mode attributes.
5731         (<su>mul<mode>3_highpart): New.
5732         (*<su>mul<mode>3_highpart): New.
5733         (<su>mulsi3_highpart_le): New.
5734         (<su>muldi3_highpart_le): New.
5735         (<su>mulsi3_highpart_64): New.
5736         (<u>mul<mode><dmode>3): New.
5737         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
5738         splitters): Delete.
5739         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
5740         splitters): Delete.
5742 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5744         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
5745         *mulsi3_internal2, and two splitters): Delete.
5746         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
5747         Delete.
5748         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
5750 2014-09-02  Richard Biener  <rguenther@suse.de>
5752         PR tree-optimization/62695
5753         * tree-ssa-structalias.c (find_func_clobbers): Add missing
5754         vector truncate.
5756 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
5758         PR target/62312
5759         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
5761 2014-09-01  Andi Kleen  <ak@linux.intel.com>
5763         * file-find.c (add_prefix_begin): Add.
5764         (do_add_prefix): Rename from add_prefix with first argument.
5765         (add_prefix): Add new wrapper.
5766         * file-find.h (add_prefix_begin): Add.
5767         * gcc-ar.c (main): Support -B option.
5769 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
5771         * genemit.c: Include dumpfile.h.
5772         (gen_split): Print name of splitter function to dump file.
5774 2014-09-01  Richard Biener  <rguenther@suse.de>
5776         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
5777         Use stack auto_vecs for constraint expressions.
5778         (find_func_aliases_for_call): Likewise.
5779         (find_func_aliases): Likewise.
5780         (find_func_clobbers): Likewise.
5782 2014-09-01  Richard Biener  <rguenther@suse.de>
5784         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
5785         operands vector in most cases.  Remove redundant code.
5787 2014-09-01  Olivier Hainque  <hainque@adacore.com>
5789         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
5790         $WIND_BASE instead of designating a harcoded arbitrary home dir.
5791         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
5793 2014-09-01  Richard Biener  <rguenther@suse.de>
5795         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
5796         copy_reference_ops_from_call, vn_nary_op_compute_hash,
5797         vn_reference_compute_hash, vn_reference_insert): Remove.
5798         (vn_reference_lookup_call): New function.
5799         * tree-ssa-sccvn.c (vn_reference_compute_hash,
5800         copy_reference_ops_from_ref, copy_reference_ops_from_call,
5801         vn_reference_insert, vn_nary_op_compute_hash): Make static.
5802         (create_reference_ops_from_call): Remove.
5803         (vn_reference_lookup_3): Properly update shared_lookup_references.
5804         (vn_reference_lookup_pieces): Assert that we updated
5805         shared_lookup_references properly.
5806         (vn_reference_lookup): Likewise.
5807         (vn_reference_lookup_call): New function.
5808         (visit_reference_op_call): Use it.  Avoid re-building the
5809         reference ops.
5810         (visit_reference_op_load): Remove redundant lookup.
5811         (visit_reference_op_store): Perform special tail-merging work
5812         only when possibly doing tail-merging.
5813         (visit_use): Likewise.
5814         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
5816 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
5818         PR target/62025
5819         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
5820         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
5821         (find_inc): Revert 2014-08-13 change.
5823 2014-09-01  Marek Polacek  <polacek@redhat.com>
5825         PR middle-end/61903
5826         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
5827         Change the type of V to unsigned HOST_WIDE_INT.
5829 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5831         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
5832         the size of byte markers.
5833         (do_shift_rotate): Fix confusion between host, target and marker byte
5834         size.
5835         (verify_symbolic_number_p): Likewise.
5836         (find_bswap_or_nop_1): Likewise.
5837         (find_bswap_or_nop): Likewise.
5839 2014-09-01  Olivier Hainque  <hainque@adacore.com>
5841         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
5842         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
5844 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
5846         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
5847         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
5848         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
5850 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
5852         PR sanitizer/61897
5853         PR sanitizer/62140
5854         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
5855         (build_check_stmt): Likewise.
5856         (instrument_strlen_call): Likewise.
5857         (asan_expand_check_ifn): Likewise and fix types.
5858         (maybe_cast_to_ptrmode): New function.
5860 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5862         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
5864 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
5866         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
5868 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
5870         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
5871         prefix to function labels when generating fast indirect calls.
5873 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
5875         PR bootstrap/62304
5877         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
5878         param back from rtx_insn * to rtx.  Rename param from "label" to
5879         "label_or_return", reintroducing "label" as an rtx_insn * after
5880         we've ensured it's not a RETURN.
5881         (first_active_target_insn): Likewise for return type and param;
5882         add a checked cast to rtx_insn * once we've ensured "insn" is not
5883         a RETURN.
5884         (steal_delay_list_from_target): Convert param "pnew_thread" back
5885         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
5886         with JUMP_LABEL.
5887         (own_thread_p): Convert param "thread" back from an rtx_insn * to
5888         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
5889         cast once we've established we're not dealing with a RETURN,
5890         renaming subsequent uses of "thread" to "thread_insn".
5891         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
5892         to JUMP_LABEL.
5893         (follow_jumps): Convert return type and param "label" from
5894         rtx_insn * back to rtx.  Move initialization of "value" to after
5895         the handling for ANY_RETURN_P, adding a checked cast there to
5896         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
5897         rename to "this_label_or_return", reintroducing "this_label" as
5898         an rtx_insn * once we've handled the case where it could be an
5899         ANY_RETURN_P.
5900         (fill_slots_from_thread): Rename param "thread" to
5901         "thread_or_return", converting from an rtx_insn * back to an rtx.
5902         Reintroduce name "thread" as an rtx_insn * local with a checked
5903         cast once we've handled the case of it being an ANY_RETURN_P.
5904         Convert local "new_thread" from an rtx_insn * back to an rtx.
5905         Add a checked cast when assigning to "trial" from "new_thread".
5906         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
5907         checked cast to rtx_insn * from "new_thread" when invoking
5908         get_label_before.
5909         (fill_eager_delay_slots): Convert locals "target_label",
5910         "insn_at_target" from rtx_insn * back to rtx.
5911         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
5912         (relax_delay_slots): Convert locals "trial", "target_label" from
5913         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
5914         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
5915         invoking update_block.
5916         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
5917         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
5919         * resource.h (mark_target_live_regs): Undo erroneous conversion
5920         of second param of r214693, converting it back from rtx_insn * to
5921         rtx, since it could be a RETURN.
5923         * resource.c (find_dead_or_set_registers): Similarly, convert
5924         param "jump_target" back from an rtx_insn ** to an rtx *, as we
5925         could be writing back a RETURN.  Rename local rtx_insn * "next" to
5926         "next_insn", and introduce "lab_or_return" as a local rtx,
5927         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
5928         (mark_target_live_regs): Undo erroneous conversion
5929         of second param of r214693, converting it back from rtx_insn * to
5930         rtx, since it could be a RETURN.  Rename it from "target" to
5931         "target_maybe_return", reintroducing the name "target" as a local
5932         rtx_insn * with a checked cast, after we've handled the case of
5933         ANY_RETURN_P.
5935 2014-08-29  DJ Delorie  <dj@redhat.com>
5937         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
5938         pointer size up to a power of two.
5939         * defaults.h (DWARF2_ADDR_SIZE): Round up.
5940         (POINTER_SIZE_UNITS): New, rounded up value.
5941         * dwarf2asm.c (size_of_encoded_value): Use it.
5942         (dw2_output_indirect_constant_1): Likewise.
5943         * expmed.c (init_expmed_one_conv): We now know the sizes of
5944         partial int modes.
5945         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
5946         * optabs.c (expand_float): Use precision, not size.
5947         (expand_fix): Likewise.
5948         * simplify-rtx (simplify_unary_operation_1): Likewise.
5949         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5950         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
5951         (default_assemble_integer) Likewise.
5952         (dump_tm_clone_pairs): Likewise.
5953         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
5954         * var-tracking.c (adjust_mems): Allow partial-int modes also.
5955         (prepare_call_arguments): Likewise.
5956         * stor-layout.c (finalize_type_size): Preserve precision.
5957         (layout_type): Use precision, not size.
5959         * expr.c (convert_move): If the target has an explicit converter,
5960         use it.
5962 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
5964         * gdbinit.in: Skip various inline functions in rtl.h when
5965         stepping.
5967 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
5969         PR bootstrap/62301
5970         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
5972 2014-08-29  Richard Biener  <rguenther@suse.de>
5974         PR tree-optimization/62291
5975         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
5976         exactly the vector size needed and use quick_push.
5977         (phi_translate_1): Adjust comment.
5978         (valid_in_sets): Remove block argument and remove pointless
5979         checking of NAMEs.
5980         (dependent_clean): Adjust for removal of block argument.
5981         (clean): Likewise.
5982         (compute_antic_aux): Likewise.
5983         (compute_partial_antic_aux): Likewise.
5985 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5986             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5987             Anna Tikhonova  <anna.tikhonova@intel.com>
5988             Ilya Tocar  <ilya.tocar@intel.com>
5989             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5990             Ilya Verbin  <ilya.verbin@intel.com>
5991             Kirill Yukhin  <kirill.yukhin@intel.com>
5992             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5994         * config/i386/sse.md
5995         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
5996         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
5997         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
5998         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
6000 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6001             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6002             Anna Tikhonova  <anna.tikhonova@intel.com>
6003             Ilya Tocar  <ilya.tocar@intel.com>
6004             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6005             Ilya Verbin  <ilya.verbin@intel.com>
6006             Kirill Yukhin  <kirill.yukhin@intel.com>
6007             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6009         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
6010         * config/i386/sse.md
6011         (define_mode_iterator VI4_128_8_256): New.
6012         (define_mode_iterator VI2_128_4_256): Ditto.
6013         (define_mode_iterator PMOV_DST_MODE): Rename into
6014         (define_mode_iterator PMOV_DST_MODE_1): this.
6015         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
6016         Use PMOV_DST_MODE_1 mode iterator.
6017         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
6018         Ditto.
6019         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
6020         Ditto.
6021         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
6022         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
6023         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
6024         (define_mode_iterator PMOV_DST_MODE_2): New.
6025         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
6026         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
6027         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
6028         Ditto.
6029         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
6030         (define_mode_attr pmov_dst_3): Ditto.
6031         (define_mode_attr pmov_dst_zeroed_3): Ditto.
6032         (define_mode_attr pmov_suff_3): Ditto.
6033         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
6034         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
6035         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
6036         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
6037         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
6038         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
6039         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
6040         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
6041         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
6042         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
6043         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
6044         (define_mode_attr pmov_dst_4): Ditto.
6045         (define_mode_attr pmov_dst_zeroed_4): Ditto.
6046         (define_mode_attr pmov_suff_4): Ditto.
6047         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
6048         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
6049         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
6050         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
6051         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
6052         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
6053         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
6054         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
6055         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
6056         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
6057         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
6059 2014-08-29  Richard Biener  <rguenther@suse.de>
6061         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
6062         NON_LVALUE_EXPR in gimple.
6064 2014-08-29  Richard Biener  <rguenther@suse.de>
6066         PR middle-end/62292
6067         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
6068         from previous refactoring.
6069         (gimple_fold_builtin_strncpy): Likewise.
6071 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
6073         PR bootstrap/62300
6074         * function.c (assign_parm_setup_reg): Remove erroneous checked
6075         cast to rtx_insn * on result of gen_extend_insn in favor of
6076         introducing a new local rtx "pat".
6078 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6080         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
6081         to silence warning.
6082         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
6084 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6086         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
6087         (next_insn): Likewise.
6088         * emit-rtl.c (next_insn): Likewise.
6089         (previous_insn): Likewise.
6090         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
6091         "insn" and "next" from rtx to rtx_insn *.
6092         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
6093         "insn", "insn1", "vliw_start",  "prologue_end_note",
6094         "last_insn_in_packet".
6096 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6098         * shrink-wrap.h (active_insn_between): Strengthen both params from
6099         rtx to rtx_insn *.
6100         * function.c (active_insn_between): Likewise.
6102 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6104         * genattr.c (main): When writing out insn-attr.h, strengthen param
6105         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
6106         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
6107         writing out the definition of dfa_clear_single_insn_cache to the
6108         generated insn-automata.c
6110 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6112         * resource.h (clear_hashed_info_for_insn): Strengthen param from
6113         rtx to rtx_insn *.
6114         (incr_ticks_for_insn): Likewise.
6115         (init_resource_info): Likewise.
6117         * resource.c (init_resource_info): Likewise.
6118         (clear_hashed_info_for_insn): Likewise.
6119         (incr_ticks_for_insn): Likewise.
6121         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
6122         rtx to rtx_insn *.
6123         (steal_delay_list_from_target): Use methods of "seq".
6124         (try_merge_delay_insns): Use methods of "merged_insns".
6125         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
6126         (reorg_redirect_jump): Likewise for param "jump".
6128 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6130         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
6131         rtx to rtx_insn *.
6132         * config/s390/s390.c (s390_split_branches): Eliminate top-level
6133         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
6134         "set_insn".
6135         (s390_mainpool_finish): In three places, split out a local rtx
6136         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
6137         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
6138          and split another local rtx "insn" out into rtx "pat" and
6139         rtx_insn * "insn".
6140         * config/sh/sh.c (output_branchy_insn): Rather than working
6141         directly on operands[9], introduce local rtx_code_label *
6142         variables named "lab" in two places, working on them, and then
6143         assigning them to operands[9], so that the intervening operations
6144         are known by the type system to be on insns.
6146 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6148         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
6149         const rtx_insn *.
6151         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
6152         in invocation of INSN_HAS_LOCATION.
6154 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6156         * config/rs6000/altivec.h (vec_xl): New #define.
6157         (vec_xst): Likewise.
6158         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
6159         (XXSPLTD_V2DI): Likewise.
6160         (DIV_V2DI): Likewise.
6161         (UDIV_V2DI): Likewise.
6162         (MUL_V2DI): Likewise.
6163         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6164         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
6165         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
6166         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
6167         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
6168         (UNSPEC_VSX_DIVSD): Likewise.
6169         (UNSPEC_VSX_DIVUD): Likewise.
6170         (UNSPEC_VSX_MULSD): Likewise.
6171         (vsx_mul_v2di): New insn-and-split.
6172         (vsx_div_v2di): Likewise.
6173         (vsx_udiv_v2di): Likewise.
6174         (vsx_xxspltd_<mode>): New insn.
6176 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6178         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
6179         NEXT_INSN.
6180         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
6181         (NEXT_INSN): Likewise.
6182         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
6183         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
6184         const rtx_insn *.
6185         (no_labels_between_p): Likewise for both params.
6187         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
6188         cast when using NEXT_INSN on operands[2].
6189         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
6190         "insn" from rtx to rtx_insn *, adding a checked cast.
6191         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
6192         rtx_insn *.
6193         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
6194         for third param.
6195         (arc_text_label): Likewise for param "insn".
6196         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
6197         "insn".
6198         (arc_ccfsm_record_condition): Likewise for param "jump".
6199         (arc_text_label): Likewise for local "label".
6200         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
6201         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
6202         a method for typesafety.  Add a checked cast.
6203         * config/arc/constraints.md (Clb): Add a checked cast when getting
6204         the CODE_LABEL from a LABEL_REF.
6205         * config/arm/arm.c (require_pic_register): Strengthen locals
6206         "seq", "insn" from rtx to rtx_insn *.
6207         (create_fix_barrier): Likewise for locals "selected", "next".
6208         (thumb1_reorg): Likewise for locals "prev", "insn".
6209         (arm_expand_prologue): Likewise for local "last".
6210         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
6211         operands[0].
6212         (thumb2_output_casesi): Likewise for operands[2].
6213         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
6214         strengthen local "insn" from rtx to rtx_insn *.
6215         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
6216         type and param "insn".
6217         (find_prev_insn_start): Likewise.
6218         (hwloop_optimize): Likewise for locals "insn", "last_insn",
6219         "prev".
6220         (gen_one_bundle): Likewise for loal "t".
6221         (find_load): Likewise for param "insn".
6222         (workaround_speculation): Likewise for locals "insn", "next",
6223         "target", "next_tgt".
6224         * config/c6x/c6x.c (assign_reservations): Likewise for both params
6225         and for locals "insn", "within", "last".
6226         (count_unit_reqs): Likewise for params "head", "tail" and local
6227         "insn".
6228         (try_rename_operands): Likewise for params "head", "tail".
6229         (reshuffle_units): Likewise for locals "head", "tail", "insn".
6230         (struct c6x_sched_context): Likewise for fields
6231         "last_scheduled_insn", "last_scheduled_iter0".
6232         (init_sched_state): Replace NULL_RTX with NULL.
6233         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
6234         to rtx_insn *.
6235         (undo_split_delayed_nonbranch): Likewise for param and for local
6236         "prev".
6237         (conditionalize_after_sched): Likewise for local "insn".
6238         (bb_earliest_end_cycle): Likewise.
6239         (filter_insns_above): Likewise for locals "insn", "next".
6240         (hwloop_optimize): Remove redundant checked cast.
6241         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
6242         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
6243         NULL_RTX with NULL.
6244         (cris_simple_epilogue): Likewise.
6245         (cris_expand_prologue): Likewise.
6246         (cris_expand_epilogue): Likewise.
6247         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
6248         local "insn" from rtx to rtx_insn *.
6249         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
6250         (struct frv_packet_group): Likewise for the elements within array
6251         fields "insns", "sorted", and for field "nop".
6252         (frv_packet): Likewise for the elements within array field
6253         "insns".
6254         (frv_add_insn_to_packet): Likewise for param "insn".
6255         (frv_insert_nop_in_packet): Likewise for param "insn" and local
6256         "last".
6257         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
6258         (frv_sort_insn_group_1): Likewise for local "insn".
6259         (frv_optimize_membar_local): Likewise.
6260         (frv_align_label): Likewise for locals "x", "last", "barrier",
6261         "label".
6262         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
6263         local.
6264         (ia64_sched_init): Likewise for local "insn".
6265         (scheduled_good_insn): Likewise for param "last".
6266         (struct _ia64_sched_context): Likewise for field
6267         "last_scheduled_insn".
6268         (ia64_init_sched_context): Replace NULL_RTX with NULL.
6269         (struct bundle_state): Likewise for field "insn".
6270         (issue_nops_and_insn): Likewise for param "insn".
6271         (get_next_important_insn): Likewise for return type and both
6272         params.
6273         (ia64_add_bundle_selector_before): Likewise for param "insn".
6274         (bundling): Likewise for params "prev_head_insn", "tail" and
6275         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
6276         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
6277         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
6278         Strengthen final param from rtx to rtx_insn *.
6279         (iq2000_move_1word): Likewise for second param.
6280         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
6281         param "cur_insn" and local "next_insn".
6282         (iq2000_move_1word): Likewise for param "insn".
6283         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
6284         casts when using NEXT_INSN on operands[1].
6285         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
6286         "insn" from rtx to rtx_insn *.
6287         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
6288         "x", introducing local rtx_insn * "insn" for when working with the
6289         CODE_LABEL of the LABEL_REF.
6290         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
6291         rtx_insn *.
6292         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
6293         param.
6294         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
6295         type.
6296         (conditionalize_block): Likewise for return type and param.
6297         (mcore_is_dead): Likewise for param "first" and local "insn".
6298         (emit_new_cond_insn): Likewise for return type.
6299         (conditionalize_block): Likewise for return type, param, and
6300         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
6301         "newinsn".
6302         (conditionalize_optimization): Likewise for local "insn".
6303         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
6304         using NEXT_INSN.
6305         * config/microblaze/microblaze.md: Add checked casts when using
6306         NEXT_INSN.
6307         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
6308         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
6309         and rtx_insn * "insn".
6310         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
6311         checked cast when using NEXT_INSN on operands[2].
6312         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
6313         local "insn" from rtx to rtx_insn *.
6314         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
6315         Likewise.
6316         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
6317         Add a checked cast when using NEXT_INSN on operands[1].
6318         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
6319         rtx to rtx_insn *.
6320         (pa_output_cbranch): Likewise for final param.
6321         (pa_output_lbranch): Likewise for second param.
6322         (pa_output_bb): Likewise for third param.
6323         (pa_output_bvb): Likewise.
6324         (pa_output_dbra): Likewise for second param.
6325         (pa_output_movb): Likewise.
6326         (pa_output_parallel_movb): Likewise.
6327         (pa_output_parallel_addb): Likewise.
6328         (pa_output_millicode_call): Likewise for first param.
6329         (pa_output_mul_insn): Likewise for second param.
6330         (pa_output_div_insn): Likewise for third param.
6331         (pa_output_mod_insn): Likewise for second param.
6332         (pa_jump_in_call_delay): Likewise for param.
6333         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
6334         (pa_output_div_insn): Likewise.
6335         (pa_output_mod_insn): Likewise.
6336         (pa_output_cbranch): Likewise.
6337         (pa_output_lbranch): Likewise.
6338         (pa_output_bb): Likewise.
6339         (pa_output_bvb): Likewise.
6340         (pa_output_dbra): Likewise.
6341         (pa_output_movb): Likewise.
6342         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
6343         to simplify and for typesafety.
6344         (pa_output_call): Use method of rtx_sequence *.
6345         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
6346         (pa_jump_in_call_delay): Likewise.
6347         (pa_output_parallel_movb): Likewise.
6348         (pa_output_parallel_addb): Likewise.
6349         (pa_following_call): Likewise.
6350         (pa_combine_instructions): Likewise for locals "anchor",
6351         "floater".
6352         (pa_can_combine_p): Likewise for params "anchor", "floater" and
6353         locals "start", "end".
6354         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
6355         param "insn" and local "local_insn".
6356         (picochip_final_prescan_insn): Likewise for local "local_insn".
6357         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
6358         local "insn".
6359         (uses_TOC): Likewise.
6360         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
6361         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
6362         splitting out to more tightly-scoped locals, 3 as rtx and one as
6363         rtx_insn *.
6364         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
6365         to rtx_insn *.
6366         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
6367         where needed.
6368         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
6369         to rtx_insn *.
6370         (fixup_addr_diff_vecs): Likewise.
6371         (reg_unused_after): Likewise for param 2.
6372         (sh_can_redirect_branch): Likewise for both params.
6373         (check_use_sfunc_addr): Likewise for param 1.
6374         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
6375         (find_barrier): Likewise for local "last_got".
6376         (gen_block_redirect): Likewise for return type, param "jump" and
6377         locals "prev", "scan", "next", "insn".
6378         (struct far_branch): Likewise for fields "near_label",
6379         "insert_place", "far_label".
6380         (gen_far_branch): Likewise for local "jump".
6381         (fixup_addr_diff_vecs): Likewise for param "first" and locals
6382         "insn", "prev".
6383         (barrier_align): Likewise for param and for locals "prev", "x".
6384         Introduce local rtx_sequence * "prev_seq" and use insn method for
6385         typesafety and clarity.
6386         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
6387         (get_dest_uid): Likewise for local "dest".
6388         (split_branches): Likewise for locals "next", "beyond", "label",
6389         "block", "far_label".  Add checked casts when assigning to
6390         bp->far_label and "far_label".
6391         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
6392         (sequence_insn_p): Likewise.
6393         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
6394         more loop-scoped rtx "insn" when walking LABEL_REFS.
6395         (sh_can_redirect_branch): Strengthen both params from rtx to
6396         rtx_insn *.
6397         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
6398         new local rtx_sequence * "seq" via a dyn_cast, and use a method
6399         for clarity and typesafety.
6400         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
6401         "insn" from rtx to rtx_insn *.
6402         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
6403         when using NEXT_INSN on the CODE_LABEL in operands[2].
6404         (define_insn "casesi_worker_2"): Likewise.
6405         (define_insn "casesi_shift_media"): Likewise.
6406         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
6407         operands[3].
6408         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
6409         Strengthen field "insn" from rtx to rtx_insn *.
6410         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
6411         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
6412         param "start_insn" and local "start_insn".
6413         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
6414         field "insn".
6415         (find_set_of_reg_bb): Likewise for param "insn".
6416         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
6417         (trace_reg_uses): Likewise for param "start_insn".
6418         (sh_treg_combine::cbranch_trace): Likewise for field
6419         "cbranch_insn".
6420         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
6421         param "insn".
6422         (sh_treg_combine::record_set_of_reg): Likewise for param
6423         "start_insn" and local "i".
6424         (sh_treg_combine::can_remove_cstore): Likewise for local
6425         "prev_insn".
6426         (sh_treg_combine::try_optimize_cbranch): Likewise for param
6427         "insn".
6428         (sh_treg_combine::execute): Likewise for local "i".
6429         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
6430         param.
6431         (sparc_check_64): Likewise for second param.
6432         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
6433         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
6434         dyn_cast, using its insn method for typesafety and clarity.
6435         (empty_delay_slot): Strengthen param "insn" from rtx to
6436         rtx_insn *.
6437         (set_extends): Likewise.
6438         (sparc_check_64): Likewise.
6439         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
6440         for locals "seq", "last_insn".
6441         (combine_bnp): Likewise for param "insn".
6442         (xstormy16_reorg): Likewise for local "insn".
6443         * config/v850/v850.c (substitute_ep_register): Likewise for params
6444         "first_insn", "last_insn" and local "insn".
6445         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
6446         elements of "regs" array, and local "insn".
6447         * except.c (emit_note_eh_region_end): Likewise for param "insn".
6448         * final.c (final_sequence): Strengthen this global from rtx to
6449         rtx_sequence *.
6450         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
6451         rtx_insn *.
6452         (final_scan_insn): Update assignment to "final_sequence" to be
6453         from "seq", the cast version of "body", for type-safety.
6454         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
6455         "insns" from rtx to rtx_insn *.
6456         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
6457         * genattr.c (main): When writing out generated insn-attr.h,
6458         strengthen params 1 and 3 of eligible_for_delay,
6459         eligible_for_annul_true, eligible_for_annul_false from rtx to
6460         rtx_insn *.
6461         * genattrtab.c (write_eligible_delay): Likewise when writing out
6462         generated insn-attrtab.c; also local "insn" the generated
6463         functions.
6464         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
6465         to rtx_insn *.
6466         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
6467         "start_label" from rtx to rtx_insn *.
6468         * ira.c (decrease_live_ranges_number): Likewise for local "p".
6469         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
6470         "insns" and local "insn".
6471         (validate_equiv_mem): Likewise for param "start" and local "insn".
6472         (memref_used_between_p): Likewise for params "start", "end" and
6473         local "insn".
6474         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
6475         final param.
6476         * loop-doloop.c (doloop_optimize): Within region guarded by
6477         INSN_P (doloop_pat), introduce a new local rtx_insn *
6478         "doloop_insn" via a checked cast, and use it for typesafety,
6479         eventually writing the value back into doloop_pat.
6480         * output.h (final_sequence): Strengthen this global from rtx to
6481         rtx_sequence *.
6482         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
6483         reintroducing "insn" as an rtx_insn * via a checked cast.
6484         Strengthen param "attempt" and local "new_insn"from rtx to
6485         rtx_insn *.
6486         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
6487         to rtx_insn *.
6488         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
6489         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
6490         "p" in favor of more tightly-scoped replacements, sometimes rtx
6491         and sometimes rtx_insn *, as appropriate.
6492         (delete_output_reload): Eliminate top-level rtx "i1", splitting
6493         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
6494         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
6495         local "trial" from rtx to rtx_insn *.
6496         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
6497         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
6498         rtx_sequence * and use methods for clarity and typesafety.
6499         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
6500         rtx to rtx_insn *.  Strenghten local "li" from rtx to
6501         rtx_insn_list * and use its methods for clarity and typesafety.
6502         (steal_delay_list_from_target): Strengthen param "insn" from rtx
6503         to rtx_insn *.
6504         (steal_delay_list_from_fallthrough): Likewise.
6505         (try_merge_delay_insns): Likewise for param "thread" and locals
6506         "trial", "next_trial", "delay_insn".
6507         (redundant_insn): Likewise for param "target" and local "trial".
6508         (own_thread_p): Likewise for param "thread" and locals
6509         "active_insn", "insn".
6510         (get_label_before): Likewise for param "insn".
6511         (fill_simple_delay_slots): Likewise for local "new_label"; use
6512         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
6513         (label_before_next_insn): Strengthen return type and local "insn"
6514         from rtx to rtx_insn *.
6515         (relax_delay_slots): Likewise for locals "other", "tmp".
6516         (make_return_insns): Likewise for param "first" and locals "insn",
6517         "jump_insn", "prev".  Move declaration of "pat" to its assignment
6518         and strengthen from rtx to rtx_sequence *.  Use its methods for
6519         clarity and typesafety.
6520         * rtlanal.c (no_labels_between_p): Strengthen params from
6521         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
6522         rtx_insn *.
6523         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
6524         from const_rtx to const rtx_insn *.
6525         (reg_set_between_p): Rename param "from_insn" to
6526         "uncast_from_insn", and reintroduce "from_insn" as a
6527         const rtx_insn * via a checked cast.
6528         (modified_between_p): Likewise for param "start" as "uncast_start".
6529         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
6530         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
6531         "tmp", head" from rtx to rtx_insn *.
6532         (recompute_rev_top_order): Likewise for local "insn".
6533         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
6534         * store-motion.c (build_store_vectors): Likewise for local "insn".
6535         Strengthen local "st" from rtx to rtx_insn_list * and use methods
6536         for clarity and typesafety.
6537         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
6538         rtx to rtx_insn *.
6539         (computation_cost): Likewise for local "seq".
6540         (get_address_cost): Likewise.
6542 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6544         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
6545         const rtx_insn *.
6546         (label_is_jump_target_p): Likewise for second param.
6548         * rtlanal.c (tablejump_p): Likewise for param "insn".
6549         (label_is_jump_target_p): Likewise for param "jump_insn".
6551 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6553         * rtl.h (find_first_parameter_load): Strengthen return type and
6554         both params from rtx to rtx_insn *.
6555         * rtlanal.c (find_first_parameter_load): Strengthen return type,
6556         both params and locals "before", "first_set" from rtx to
6557         rtx_insn *.  Remove now-redundant cast.
6558         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
6560 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6562         * rtl.h (find_last_value): Delete.
6563         * rtlanal.c (find_last_value): Delete.
6565 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6567         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
6568         from rtx to rtx_insn *.
6569         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
6570         rtx "note" with new local rtx_insn * "new_head" when calculating
6571         head insn of new basic block.
6572         * combine.c (combine_split_insns): Strengthen return type and local
6573         "ret" from rtx to rtx_insn *.
6574         (likely_spilled_retval_p): Likewise for locals "use" and "p".
6575         (try_combine): Eliminate local "m_split", splitting into new
6576         locals "m_split_insn" and "m_split_pat".
6577         (find_split_point): Strengthen local "seq" from rtx into
6578         rtx_insn *.
6579         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
6580         locals "label", "branch".
6581         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
6582         for local "insn".
6583         (define_expand "umulsi3_highpart"): Likewise for local "insn".
6584         * dse.c (note_add_store_info): Likewise for fields "first",
6585         "current".
6586         (note_add_store): Likewise for local "insn".
6587         (emit_inc_dec_insn_before): Likewise for locals "insn",
6588         "new_insn", "cur".
6589         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
6590         (replace_read): Likewise for locals "insns", "this_insn".
6591         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
6592         (notice_eh_throw): Likewise for param "insn".
6593         (before_next_cfi_note): Likewise for return type, param, and local
6594         "prev".
6595         (connect_traces): Likewise for local "note".
6596         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
6597         (verify_rtl_sharing): Likewise.
6598         (unshare_all_rtl_in_chain): Likewise for param "insn".
6599         (get_first_nonnote_insn): Likewise for local "insn".
6600         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
6601         "seq" and use its methods to clarify things.
6602         (next_insn): Strengthen return type from rtx to rtx_insn *.
6603         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
6604         local rtx_insn * using a checked cast, dropping a checked cast
6605         made redundant by this change.  Use a cast to and method of
6606         rtx_sequence to clarify the code.
6607         (previous_insn): Rename param "insn" to "uncast_insn" and
6608         reintroduce "insn" as a local rtx_insn * using a checked cast,
6609         dropping a checked cast made redundant by this change.  Use a cast
6610         to and method of rtx_sequence to clarify the code.
6611         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
6612         reintroduce "insn" as a local rtx_insn * using a checked cast,
6613         dropping a checked cast made redundant by this change.
6614         (next_nonnote_insn_bb): Likewise.
6615         (prev_nonnote_insn): Likewise.
6616         (prev_nonnote_insn_bb): Likewise.
6617         (next_nondebug_insn): Likewise.
6618         (prev_nondebug_insn): Likewise.
6619         (next_nonnote_nondebug_insn): Likewise.
6620         (prev_nonnote_nondebug_insn): Likewise.
6621         (next_real_insn): Likewise.
6622         (prev_real_insn): Likewise.
6623         (next_active_insn): Likewise.
6624         (prev_active_insn): Likewise.
6625         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
6626         clarity.
6627         (prev_cc0_setter): Likewise.
6628         (try_split): Rename param "trial" to "uncast_trial" and
6629         reintroduce "insn" as a local rtx_insn * using a checked cast,
6630         dropping checked casts made redundant by this change.
6631         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
6632         rtx to rtx_insn *.
6633         (remove_insn): Rename param "insn" to "uncast_insn" and
6634         reintroduce "insn" as a local rtx_insn * using a checked cast.
6635         (emit_pattern_after_setloc): Likewise for param "after", as
6636         "uncast_after".
6637         (emit_pattern_after): Likewise.  Strengthen local "prev" from
6638         rtx to rtx_insn *.
6639         (emit_pattern_before_setloc): Rename param "before" to
6640         "uncast_before" and reintroduce "before" as a local rtx_insn *
6641         using a checked cast.  Strengthen locals "first", "last" from
6642         rtx to rtx_insn *.
6643         (emit_pattern_before): Likewise rename/cast param "before" to
6644         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
6645         * except.c (copy_reg_eh_region_note_forward): Strengthen param
6646         "first" and local "insn" from rtx to rtx_insn *.
6647         (copy_reg_eh_region_note_backward): Likewise for param "last"
6648         and local "insn".
6649         * expr.c (fixup_args_size_notes): Rename param "last" to
6650         "uncast_last" and reintroduce "last" as a local rtx_insn *
6651         using a checked cast.  Strengthen local "insn" from rtx to
6652         rtx_insn *.
6653         * function.c (set_insn_locations): Strengthen param "insn" from
6654         rtx to rtx_insn *.
6655         (record_insns): Likewise for param "insns" and local "tmp".
6656         (active_insn_between): Rename param "tail" to
6657         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
6658         using a checked cast.
6659         (thread_prologue_and_epilogue_insns): Split out top-level local
6660         rtx "seq" into three different rtx_insn * locals.  Strengthen
6661         local "prologue_seq" from rtx to rtx_insn *.
6662         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
6663         from rtx to rtx_insn *.
6664         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
6665         (priority): Likewise for locals "prev_first", "twin".
6666         (setup_insn_max_reg_pressure): Likewise for param "after".
6667         (sched_setup_bb_reg_pressure_info): Likewise.
6668         (no_real_insns_p): Strengthen params from const_rtx to
6669         const rtx_insn *.
6670         (schedule_block): Strengthen local "next_tail" from rtx to
6671         rtx_insn *.
6672         * ifcvt.c (find_active_insn_before): Strengthen return type and
6673         param "insn" from rtx to rtx_insn *.
6674         (find_active_insn_after): Likewise.
6675         (cond_exec_process_insns): Likewise for param "start" and local "insn".
6676         (cond_exec_process_if_block): Likewise for locals "then_start",
6677         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
6678         (noce_process_if_block): Likewise for local "jump".
6679         (merge_if_block): Likewise for two locals named "end".
6680         (cond_exec_find_if_block): Likewise for local "last_insn".
6681         * jump.c (delete_related_insns): Rename param "insn" to
6682         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
6683         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
6684         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
6685         NULL.
6686         (split_reg): Likewise.
6687         * lra.c (lra_process_new_insns): Likewise.
6688         * modulo-sched.c (permute_partial_schedule): Strengthen param
6689         "last" from rtx to rtx_insn *.
6690         * optabs.c (add_equal_note): Likewise for param "insns" and local
6691         "last_insn".
6692         (expand_binop_directly): Add checked casts to rtx_insn * within
6693         NEXT_INSN (pat) uses.
6694         (expand_unop_direct): Likewise.
6695         (maybe_emit_unop_insn): Likewise.
6696         * recog.c (peep2_attempt): Strengthen locals "last",
6697         "before_try", "x" from rtx to rtx_insn *.
6698         * reorg.c (optimize_skip): Strengthen return type and local
6699         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
6700         and locals "trial", "next_trial" from rtx to rtx_insn *.
6701         * resource.c (next_insn_no_annul): Strengthen return type and
6702         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
6703         rtx_sequence to clarify the code.
6704         (mark_referenced_resources): Add a checked cast to rtx_insn *
6705         within PREV_INSN (x).
6706         (find_dead_or_set_registers): Strengthen return type, param
6707         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
6708         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
6709         to rtx_insn **.
6710         (mark_target_live_regs): Strengthen params "insns" and "target",
6711         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
6712         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
6713         the code.
6714         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
6715         from rtx to rtx_insn *.
6716         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
6717         from rtx to rtx_insn *.
6718         (copy_reg_eh_region_note_backward): Likewise.
6719         (unshare_all_rtl_in_chain): Likewise for sole param.
6720         (dump_rtl_slim): Strengthen second and third params from const_rtx
6721         to const rtx_insn *.
6722         * sched-deps.c (sched_free_deps): Strengthen params "head" and
6723         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
6724         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
6725         "next_tail" from rtx to rtx_insn *.
6726         (begin_move_insn): Likewise for local "next".
6727         * sched-int.h (sched_free_deps): Likewise for first and second
6728         params.
6729         (no_real_insns_p): Strengthen both params from const_rtx to
6730         const rtx_insn *.
6731         (sched_setup_bb_reg_pressure_info): Strengthen second params from
6732         rtx to rtx_insn *.
6733         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
6734         "next_tail".
6735         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
6736         and locals "insn", "tail" from const_rtx to const rtx_insn *.
6737         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
6738         rtx_insn *.
6739         (debug_rtl_slim): Strengthen params "first" and "last" from
6740         const_rtx to const rtx_insn *.
6741         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
6742         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
6743         (convert_to_simple_return): Likewise for param "returnjump".
6744         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
6745         "prologue_seq".
6746         (convert_to_simple_return): Likewise for param "returnjump".
6747         * valtrack.c (propagate_for_debug): Likewise for params
6748         "insn", "last".
6749         * valtrack.h (propagate_for_debug): Likewise for second param.
6751 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6753         * output.h (insn_current_reference_address): Strengthen param
6754         from rtx to rtx_insn *.
6755         * final.c (insn_current_reference_address): Likewise.
6757 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6759         * basic-block.h (inside_basic_block_p): Strengthen param from
6760         const_rtx to const rtx_insn *.
6761         * cfgbuild.c (inside_basic_block_p): Likewise.
6763 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6765         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
6766         rtx_insn *.
6767         (get_trace_info): Likewise for param "insn".
6768         (save_point_p): Likewise.
6769         (maybe_record_trace_start): Likewise for both params.
6770         (maybe_record_trace_start_abnormal): Likewise.
6771         (create_trace_edges): Likewise for sole param and for three of the
6772         locals named "lab".
6773         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
6774         to rtx_insn *, and update a call to pat->element to pat->insn.
6776 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6778         * function.h (struct expr_status): Convert field "x_forced_labels"
6779         from rtx_expr_list * to rtx_insn_list *.
6781         * cfgbuild.c (make_edges): Convert local "x" from an
6782         rtx_expr_list * to an rtx_insn_list *, replacing use of
6783         "element" method with "insn" method.
6784         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6785         * except.c (sjlj_emit_dispatch_table): Replace use of
6786         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
6787         forced_labels.
6788         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
6789         rtx_expr_list * to an rtx_insn_list *, replacing use of
6790         "element" method with "insn" method.
6791         * reload1.c (set_initial_label_offsets): Likewise for local "x".
6792         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
6793         rtx_insn *, adding a checked cast.  Replace use of
6794         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
6795         forced_labels.
6796         (expand_label): Likewise for local "label_r".
6798 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6800         * function.h (struct rtl_data): Convert field
6801         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
6802         rtx_insn_list *.
6803         * rtl.h (remove_node_from_insn_list): New prototype.
6805         * builtins.c (expand_builtin): When prepending to
6806         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
6807         gen_rtx_EXPR_LIST.
6808         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
6809         to rtx_insn_list *, and use its "insn" method rather than
6810         "element" method.
6811         * cfgrtl.c (delete_insn): Use new function
6812         remove_node_from_insn_list rather than
6813         remove_node_from_expr_list.
6814         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
6815         to rtx_insn_list *, and use its "insn" method rather than
6816         "element" method.
6817         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6818         * reload1.c (set_initial_label_offsets): Likewise for local "x".
6819         * rtlanal.c (remove_node_from_insn_list): New function, adapted
6820         from remove_node_from_expr_list.
6821         * stmt.c (expand_label): When prepending to
6822         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
6823         gen_rtx_EXPR_LIST.
6825 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6827         * function.h (struct rtl_data): Strengthen fields "x_return_label"
6828         and "x_naked_return_label" from rtx to rtx_code_label *.
6830 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6832         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
6833         (SET_NEXT_INSN): Likewise.
6834         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
6836         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
6837         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
6838         to split out the SEQUENCE from local "bundle", strengthening the
6839         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
6840         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
6841         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
6842         and the type of the elements of the "slot" array from rtx to
6843         rtx_insn *.
6844         (reorg_split_calls): Likewise for locals "insn" and "next", and
6845         the type of the elements of the "slot" array.
6847         * config/frv/frv.c (frv_nops): Likewise for the elements of this
6848         array.
6849         (frv_function_prologue): Likewise for locals "insn", "next",
6850         "last_call".
6851         (frv_register_nop): Introduce a local "nop_insn" to be the
6852         rtx_insn * containing rtx "nop".
6854         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
6855         used as an insn and sometimes as a pattern, so rename it to
6856         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
6857         using it where dealing with the core insn.
6859         * config/picochip/picochip.c (reorder_var_tracking_notes):
6860         Strengthen locals "insn", "next", "last_insn", "queue",
6861         "next_queue", "prev" from rtx to rtx_insn *.
6863         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
6864         the second param is an rtx_insn ** rather than an rtx **.
6865         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
6866         from rtx to rtx_sequence *, and introduce local named "sequence",
6867         using methods of rtx_sequence to clarify the code.
6868         (remove_insn): Introduce local rtx_sequence * named "sequence" and
6869         use its methods.
6870         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
6871         Rename param "after" to "uncast_after", reintroducing "after" as a
6872         local rtx_insn * with a checked cast.
6873         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
6874         reintroducing "after" as a local rtx_insn * with a checked cast.
6875         Strengthen local "last" from rtx to rtx_insn * and remove the
6876         now-redundant checked casts.
6877         (copy_delay_slot_insn): Strengthen return type and param from rtx
6878         to rtx_insn *.
6880         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
6881         "last" from rtx to rtx_insn *.
6883 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6885         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
6886         param from rtx to rtx_insn *.
6888         * emit-rtl.c (copy_delay_slot_insn): Likewise.
6890         * reorg.c (skip_consecutive_labels): Strengthen return type, param
6891         and local "insn" from rtx to rtx_insn *.
6892         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
6893         (unfilled_slots_next): Likewise.
6894         (function_return_label): Strengthen from rtx to rtx_code_label *.
6895         (function_simple_return_label): Likewise.
6896         (first_active_target_insn): Strengthen return type and param from
6897         rtx to rtx_insn *.
6898         (find_end_label): Strengthen return type from rtx to
6899         rtx_code_label *; strengthen locals as appropriate.
6900         (emit_delay_sequence): Strengthen return type, param "insn" and
6901         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
6902         and local "li" from rtx to rtx_insn_list *, using methods of
6903         rtx_insn_list for clarity and typesafety.
6904         (add_to_delay_list): Strengthen return type and param "insn" from
6905         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
6906         rtx_insn_list * and use methods of rtx_insn_list.
6907         (delete_from_delay_slot): Strengthen return type, param "insn",
6908         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
6909         Strengthen local "seq" from rtx to rtx_sequence *, and local
6910         "delay_list" from rtx to rtx_insn_list *, using methods of
6911         rtx_sequence for clarity and type-safety.
6912         (delete_scheduled_jump): Add checked cast when invoking
6913         delete_from_delay_slot.  Strengthen local "trial" from rtx to
6914         rtx_insn *.
6915         (optimize_skip): Strengthen return type and local "delay_list"
6916         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
6917         rtx_insn *.
6918         (steal_delay_list_from_target): Strengthen return type, param
6919         "delay_list" and local "new_delay_list" from rtx to
6920         rtx_insn_list *.  Strengthen param "seq" from rtx to
6921         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
6922         rtx_insn **.
6923         Split out local "temp" into multiple more-tightly scoped locals:
6924         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
6925         of rtx_insn_list and rtx_sequence for clarity and typesafety.
6926         Strengthen locals named "trial" from rtx to rtx_insn *.
6927         (steal_delay_list_from_fallthrough): Strengthen return type and
6928         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
6929         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
6930         Strengthen local "trial" from rtx to rtx_insn *.
6931         (try_merge_delay_insns): Strength local "merged_insns" from rtx
6932         to rtx_insn_list * and use its methods.  Strengthen local "pat"
6933         from rtx to rtx_sequence * and use its methods.  Strengthen locals
6934         "dtrial" and "new_rtx" from rtx to rtx_insn *.
6935         (get_label_before): Strengthen return type and local "label" from
6936         rtx to rtx_insn *.
6937         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
6938         "next_trial", "next", prev".  Strengthen local "delay_list" from
6939         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
6940         rtx_insn **.
6941         (follow_jumps): Strengthen return type, param "label" and locals
6942         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
6943         (fill_slots_from_thread): Strengthen return type, param
6944         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
6945         "insn", "thread", "opposite_thread" and locals "new_thread",
6946         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
6947         "sequence" from a checked cast to rtx_sequence so that we can call
6948         steal_delay_list_from_target and steal_delay_list_from_fallthrough
6949         with an rtx_sequence *.
6950         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
6951         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
6952         Strengthen local "delay_list" from rtx to rtx_insn_list *.
6953         (relax_delay_slots): Strengthen param "first" and locals "insn",
6954         "next", "trial", "delay_insn", "target_label" from rtx to
6955         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
6956         Introduce a local "trial_seq" for PATTERN (trial) of type
6957         rtx_sequence *, in both cases using methods of rtx_sequence.
6958         (dbr_schedule): Strengthen param "first" and locals "insn",
6959         "next", "epilogue_insn" from rtx to rtx_insn *.
6961 2014-08-28  Richard Biener  <rguenther@suse.de>
6963         PR tree-optimization/62283
6964         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6965         Do not peel loops for alignment where the vector loop likely
6966         doesn't run at least VF times.
6968 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
6970         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
6971         important_candidates.  Consider all important candidates if
6972         IVS doesn't give any result.  Remove check on ivs->upto.
6973         (try_add_cand_for): Call iv_ca_add_use only once.
6975 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6976             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6977             Anna Tikhonova  <anna.tikhonova@intel.com>
6978             Ilya Tocar  <ilya.tocar@intel.com>
6979             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6980             Ilya Verbin  <ilya.verbin@intel.com>
6981             Kirill Yukhin  <kirill.yukhin@intel.com>
6982             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6984         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
6985         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
6986         masking.
6987         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
6988         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
6989         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
6990         (define_insn "*mul<mode>3"): Add EVEX version.
6992 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6993             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6994             Anna Tikhonova  <anna.tikhonova@intel.com>
6995             Ilya Tocar  <ilya.tocar@intel.com>
6996             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6997             Ilya Verbin  <ilya.verbin@intel.com>
6998             Kirill Yukhin  <kirill.yukhin@intel.com>
6999             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7001         * config/i386/sse.md
7002         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
7003         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
7004         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
7005         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
7006         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
7007         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
7008         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
7009         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
7010         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
7011         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
7012         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
7013         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
7014         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
7015         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
7016         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
7017         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
7019 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7020             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7021             Anna Tikhonova  <anna.tikhonova@intel.com>
7022             Ilya Tocar  <ilya.tocar@intel.com>
7023             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7024             Ilya Verbin  <ilya.verbin@intel.com>
7025             Kirill Yukhin  <kirill.yukhin@intel.com>
7026             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7028         * config/i386/sse.md
7029         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
7030         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
7031         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
7033 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7034             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7035             Anna Tikhonova  <anna.tikhonova@intel.com>
7036             Ilya Tocar  <ilya.tocar@intel.com>
7037             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7038             Ilya Verbin  <ilya.verbin@intel.com>
7039             Kirill Yukhin  <kirill.yukhin@intel.com>
7040             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7042         * config/i386/sse.md
7043         (define_mode_iterator VI128_256): New.
7044         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
7046 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7047             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7048             Anna Tikhonova  <anna.tikhonova@intel.com>
7049             Ilya Tocar  <ilya.tocar@intel.com>
7050             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7051             Ilya Verbin  <ilya.verbin@intel.com>
7052             Kirill Yukhin  <kirill.yukhin@intel.com>
7053             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7055         * config/i386/sse.md
7056         (define_mode_iterator VI8_256_512): New.
7057         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
7058         Ditto.
7059         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7060         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
7061         Ditto.
7062         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
7064 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7066         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
7067         pointer to the cumulative reloc value and return the value for
7068         this reloc instead.
7069         (compute_reloc_for_rtx): Take a const_rtx.  Call
7070         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
7071         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
7072         for_each_rtx for the CONST case.
7074 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7076         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
7077         (mark_constants_in_pattern): ...this new function to iterate over
7078         all the subrtxes.
7079         (mark_constants): Update accordingly.
7081 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7083         * varasm.c: Include rtl-iter.h.
7084         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
7085         Remove the pointer to the cumulative hashval_t and just return
7086         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
7087         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7088         Accumulate the hashval_ts here instead of const_rtx_hash_1.
7090 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7092         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
7093         Give real type of data parameter.  Remove return value.
7094         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
7095         to iterate over subrtxes.
7097 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7099         * var-tracking.c (use_narrower_mode_test): Turn from being a
7100         for_each_rtx callback to being a function that examines each
7101         subrtx itself.
7102         (adjust_mems): Update accordingly.
7104 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7106         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
7107         callback to being a function that examines each subrtx itself.
7108         Remove handling of null rtxes.
7109         (add_uses): Update accordingly.
7111 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7113         * var-tracking.c: Include rtl-iter.h.
7114         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
7115         to being a function that examines each subrtx itself.
7116         (use_type): Update accordingly.
7118 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7120         * store-motion.c: Include rtl-iter.h.
7121         (extract_mentioned_regs_1): Delete.
7122         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
7123         for_each_rtx to iterate over subrtxes.
7125 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7127         * sel-sched.c: Include rtl-iter.h
7128         (count_occurrences_1): Delete.
7129         (count_occurrences_equiv): Turn rtxes into const_rtxes.
7130         Use FOR_EACH_SUBRTX rather than for_each_rtx.
7132 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7134         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
7135         * rtlanal.c (tls_referenced_p_1): Delete.
7136         (tls_referenced_p): Take a const_rtx rather than an rtx.
7137         Use FOR_EACH_SUBRTX rather than for_each_rtx.
7139 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7141         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
7142         (for_each_inc_dec): Take an rtx rather than an rtx *.
7143         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
7144         (cselib_record_sets): Likewise.
7145         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
7146         (check_for_inc_dec): Likewise.
7147         * rtlanal.c (for_each_inc_dec_ops): Delete.
7148         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
7149         rather than a pointer to the memory address.  Replace
7150         for_each_inc_dec_ops argument with separate function and data
7151         arguments.  Abort on non-autoinc addresses.
7152         (for_each_inc_dec_find_mem): Delete.
7153         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
7154         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
7156 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7158         * rtl.h (find_all_hard_regs): Declare.
7159         * rtlanal.c (find_all_hard_regs): New function.
7160         (record_hard_reg_uses_1): Delete.
7161         (record_hard_reg_uses): Use find_all_hard_regs.
7163 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7165         * rtl.h (replace_label_data): Delete.
7166         (replace_label): Take the old label, new label and update-nuses flag
7167         as direct arguments.  Return void.
7168         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
7169         * rtlanal.c (replace_label): Update interface as above.  Handle
7170         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
7171         iterator.  Use FOR_EACH_SUBRTX_PTR.
7173 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7175         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
7176         with const_rtx parameters.
7177         * varasm.c (get_pool_constant): Likewise.
7178         * rtlanal.c (rtx_referenced_p_1): Delete.
7179         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7180         Assert that the rtx we're looking for is nonnull.  Allow searches
7181         for constant pool SYMBOL_REFs.
7183 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7185         * reload1.c: Include rtl-iter.h.
7186         (note_reg_elim_costly): Turn from being a for_each_rtx callback
7187         to being a function that examines each subrtx itself.
7188         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
7190 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7192         * regcprop.c (cprop_find_used_regs_1): Delete.
7193         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7195 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7197         * regcprop.c: Include rtl-iter.h.
7198         (kill_value): Take a const_rtx.
7199         (kill_autoinc_value): Turn from being a for_each_rtx callback
7200         to being a function that examines each subrtx itself.
7201         (copyprop_hardreg_forward_1): Update accordingly.
7203 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7205         * reg-stack.c: Include rtl-iter.h.
7206         (subst_stack_regs_in_debug_insn): Delete.
7207         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
7208         instead of for_each_rtx.
7210 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7212         * lower-subreg.c (find_decomposable_subregs): Turn from being
7213         a for_each_rtx callback to being a function that examines each
7214         subrtx itself.  Remove handling of null rtxes.
7215         (decompose_multiword_subregs): Update accordingly.
7217 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7219         * lower-subreg.c (adjust_decomposed_uses): Delete.
7220         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
7221         Remove handling of null rtxes.
7223 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7225         * lower-subreg.c: Include rtl-iter.h.
7226         (resolve_subreg_use): Turn from being a for_each_rtx callback
7227         to being a function that examines each subrtx itself.  Remove
7228         handling of null rtxes.
7229         (resolve_reg_notes, resolve_simple_move): Update accordingly.
7230         (decompose_multiword_subregs): Likewise.
7232 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7234         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
7235         to being a function that examines each subrtx itself.
7236         (simplify_using_condition, simplify_using_initial_values): Update
7237         accordingly.
7239 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7241         * loop-iv.c: Include rtl-iter.h.
7242         (find_single_def_src): New function.
7243         (replace_single_def_regs): Turn from being a for_each_rtx callback
7244         to being a function that examines each subrtx itself.
7245         (replace_in_expr, simplify_using_initial_values): Update accordingly.
7247 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7249         * jump.c (eh_returnjump_p_1): Delete.
7250         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
7251         Remove handling of null rtxes.
7253 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7255         * jump.c: Include rtl-iter.h.
7256         (returnjump_p_1): Delete.
7257         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
7258         Remove handling of null rtxes.
7260 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7262         * ira.c: Include rtl-iter.h.
7263         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
7264         to being a function that examines each subrtx itself.  Remove
7265         handling of null rtxes.
7266         (update_equiv_regs): Update call accordingly.
7268 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7270         * fwprop.c: Include rtl-iter.h.
7271         (varying_mem_p): Turn from being a for_each_rtx callback to being
7272         a function that examines each subrtx itself.
7273         (propagate_rtx): Update accordingly.
7275 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7277         * function.c: Include rtl-iter.h
7278         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
7279         callback to being a function that examines each subrtx itself.
7280         Return the changed flag.
7281         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
7282         (instantiate_virtual_regs): Update calls accordingly.
7284 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7286         * final.c: Include rtl-iter.h.
7287         (mark_symbol_ref_as_used): Delete.
7288         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
7289         for_each_rtx.
7291 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7293         * emit-rtl.c: Include rtl-iter.h.
7294         (find_auto_inc): Turn from being a for_each_rtx callback to being
7295         a function that examines each subrtx itself.  Assume the first operand
7296         to an RTX_AUTOINC is the automodified register.
7297         (try_split): Update call accordingly.
7299 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7301         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
7302         Return a bool, inverting the result so that 0/false means "not ok".
7303         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
7304         subrtxes of a CONST.
7305         (mem_loc_descriptor, add_const_value_attribute)
7306         (resolve_addr_in_expr): Update calls accordingly.
7308 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7310         * dwarf2out.c: Include rtl-iter.h.
7311         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
7312         Remove unused data parameter.  Return a bool, inverting the result
7313         so that 0/false means "not ok".
7314         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
7315         instead of for_each_rtx.
7317 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7319         * dse.c: Include rtl-iter.h.
7320         (check_mem_read_rtx): Change void * parameter to real type.
7321         Remove return value.
7322         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
7323         for_each_rtx.  Don't handle null rtxes.
7325 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7327         * df-problems.c: Include rtl-iter.h.
7328         (find_memory): Turn from being a for_each_rtx callback to being
7329         a function that examines each subrtx itself.  Continue to look for
7330         volatile references even after a nonvolatile one has been found.
7331         (can_move_insns_across): Update calls accordingly.
7333 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7335         * ddg.c (walk_mems_2, walk_mems_1): Delete.
7336         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
7337         to iterate over subrtxes.  Return a bool rather than an int.
7339 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7341         * ddg.c: Include rtl-iter.h.
7342         (mark_mem_use_1): Rename to...
7343         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
7344         instead of for_each_rtx.
7345         (mem_read_insn_p): Update accordingly.
7347 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7349         * cse.c (change_cc_mode_args): Delete.
7350         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
7351         a function that examines each subrtx itself.  Take the fields of
7352         change_cc_mode_args as argument and return void.
7353         (cse_change_cc_mode_insn): Update calls accordingly.
7355 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7357         * cse.c (is_dead_reg): Change argument to const_rtx.
7358         (dead_debug_insn_data): Delete.
7359         (is_dead_debug_insn): Expand commentary.  Turn from being a
7360         for_each_rtx callback to being a function that examines
7361         each subrtx itself.  Take the fields of dead_debug_insn_data
7362         as argument.
7363         (delete_trivially_dead_insns): Update call accordingly.
7365 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7367         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
7368         being a for_each_rtx callback to being a function that examines
7369         each subrtx itself.
7370         (cse_extended_basic_block): Update call accordingly.
7372 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7374         * cse.c (check_dependence_data): Delete.
7375         (check_dependence): Change from being a for_each_rtx callback to being
7376         a function that examines all subrtxes itself.  Don't handle null rtxes.
7377         (invalidate): Update call accordingly.
7379 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7381         * cse.c: Include rtl-iter.h.
7382         (approx_reg_cost_1): Delete.
7383         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7384         Don't handle null rtxes.
7386 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7388         * cfgcleanup.c: Include rtl-iter.h.
7389         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
7390         to being a function that examines each subrtx itself.
7391         (thread_jump): Update accordingly.
7393 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7395         * combine-stack-adj.c: Include rtl-iter.h.
7396         (record_stack_refs_data): Delete.
7397         (record_stack_refs): Turn from being a for_each_rtx callback
7398         to being a function that examines each subrtx itself.
7399         Take a pointer to the reflist.  Invert sense of return value
7400         so that true means success and false means failure.  Don't
7401         handle null rtxes.
7402         (combine_stack_adjustments_for_block): Update accordingly.
7404 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7406         * combine.c (record_truncated_value): Turn from being a for_each_rtx
7407         callback to a function that takes an rtx and returns a bool
7408         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
7409         for_each_rtx.
7411 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7413         * combine.c: Include rtl-iter.h.
7414         (unmentioned_reg_p_1): Delete.
7415         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
7416         Don't handle null rtxes.
7418 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7420         * calls.c: Include rtl-iter.h.
7421         (internal_arg_pointer_based_exp_1): Delete.
7422         (internal_arg_pointer_based_exp): Take a const_rtx.
7423         Use FOR_EACH_SUBRTX to iterate over subrtxes.
7425 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7427         * caller-save.c: Include rtl-iter.h.
7428         (add_used_regs_1): Delete.
7429         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
7430         to iterate over subrtxes.  Assert that any remaining pseudos
7431         have been spilled.
7433 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7435         * bt-load.c: Include rtl-iter.h.
7436         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
7437         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
7438         to iterate over subrtxes.
7439         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
7440         find_btr_use rather than btr_referenced_p.
7442 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7444         * alias.c: Include rtl-iter.h.
7445         (refs_newer_value_cb): Delete.
7446         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7448 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7450         * rtl-iter.h: New file.
7451         * rtlanal.c: Include it.
7452         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
7453         (generic_subrtx_iterator <T>::add_single_to_queue)
7454         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
7455         (generic_subrtx_iterator <T>::free_array): New functions.
7456         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
7457         (generic_subrtx_iterator <const_rtx_accessor>)
7458         (generic_subrtx_iterator <rtx_var_accessor>
7459         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
7460         (setup_reg_subrtx_bounds): New function.
7461         (init_rtlanal): Call it.
7463 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
7465         PR target/62261
7466         * config/sh/sh.md (ashlsi3): Handle negative shift count for
7467         TARGET_SHMEDIA.
7468         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
7470 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
7472         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
7474 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7476         * rtl.h (JUMP_LABEL_AS_INSN): New.
7478 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7480         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
7481         rtx_expr_list **.
7482         (alloc_EXPR_LIST): Strengthen return type from rtx to
7483         rtx_expr_list *.
7484         (remove_free_EXPR_LIST_node): Likewise for param.
7485         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
7486         from rtx to rtx_expr_list *.
7487         * sched-int.h (struct deps_desc): Strengthen fields
7488         "pending_read_mems" and "pending_write_mems" from rtx to
7489         rtx_expr_list *.
7491         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
7492         rtx to rtx_expr_list *.
7493         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
7494         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
7495         rtx_expr_list **.
7496         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
7497         from rtx to rtx_expr_list *.
7498         * loop-iv.c (simplify_using_initial_values): Strengthen local
7499         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
7500         "pnote_next" from rtx * to rtx_expr_list **.
7501         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
7502         param "exprp" from rtx * to rtx_expr_list **.
7503         (add_insn_mem_dependence): Strengthen local "mem_list" from
7504         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
7505         to rtx_expr_list *.
7506         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
7507         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
7508         param "old_mems_p" from rtx * to rtx_expr_list **.
7509         * var-tracking.c (struct adjust_mem_data): Strengthen field
7510         "side_effects" from rtx to rtx_expr_list *.
7511         (adjust_insn): Replace NULL_RTX with NULL when assigning to
7512         rtx_expr_list *.
7513         (prepare_call_arguments): Likewise.
7515 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7517         * function.h (struct rtl_data): Strengthen field
7518         "x_stack_slot_list" from rtx to rtx_expr_list *.
7520         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
7521         when assigning to stack_slot_list.
7523 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7525         * function.h (struct rtl_data): Strengthen field
7526         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
7527         * rtl.h (remove_node_from_expr_list): Strengthen second param from
7528         rtx * to rtx_expr_list **.
7530         * cfgbuild.c (make_edges): In loop over
7531         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
7532         rtx_expr_list *, and use methods of the latter class to clarify
7533         the code.
7534         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
7535         rtx_expr_list *, and use methods of the latter class to clarify
7536         the code.
7537         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
7538         * reload1.c (set_initial_label_offsets): Likewise for local "x".
7539         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
7540         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
7541         to rtx_expr_list *.  Use methods of the latter class to clarify
7542         the code.
7544 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7546         * function.h (struct expr_status): Strengthen field
7547         "x_forced_labels" from rtx to rtx_expr_list *.
7549         * cfgbuild.c (make_edges): Split local "x" into two locals,
7550         strengthening one from rtx to rtx_expr_list *, and using methods
7551         of said class.
7552         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
7553         loop over forced_labels, introduce strengthen it from rtx to
7554         rtx_expr_list *, using methods to clarify the code.
7555         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
7556         to rtx_expr_list *, using methods of said class to clarify the
7557         code.
7558         * reload1.c (set_initial_label_offsets): Split local "x" into two
7559         per-loop variables, strengthening the first from rtx to
7560         rtx_expr_list * and using methods.
7562 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7564         * coretypes.h (class rtx_expr_list): Add forward declaration.
7565         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
7566         * gengenrtl.c (special_rtx): Add EXPR_LIST.
7567         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
7568         invariant: GET_CODE (X) == EXPR_LIST.
7569         (is_a_helper <rtx_expr_list *>::test): New.
7570         (rtx_expr_list::next): New.
7571         (rtx_expr_list::element): New.
7572         (gen_rtx_EXPR_LIST): New.
7574 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7576         * varasm.c (mark_constants): Convert a GET_CODE check into a
7577         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
7578         Use methods of rtx_sequence to clarify the code.
7580 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7582         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
7583         local "seq" via a checked cast, and use methods of rtx_sequence
7584         to simplify the code.
7586 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7588         * resource.c (mark_referenced_resources): Strengthen local
7589         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
7590         using methods of rtx_sequence to clarify the code.
7591         (find_dead_or_set_registers): Within the switch statement, convert
7592         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
7593         the JUMP_P handling, introduce another local "seq", adding a
7594         checked cast to rtx_sequence *.  In both cases, use methods of
7595         rtx_sequence to clarify the code.
7596         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
7597         via a checked cast, and use methods of rtx_sequence to simplify
7598         the code.
7600 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7602         * reorg.c (redundant_insn): In two places in the function, replace
7603         a check of GET_CODE with a dyn_cast, introducing local "seq", and
7604         usings methods of rtx_sequence to clarify the code.
7606 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7608         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
7609         local "seq" with a checked cast, and use methods of rtx_sequence
7610         to clarify the code.
7612 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7614         * function.c (contains): Introduce local "seq" for PATTERN (insn),
7615         with a checked cast, in the region for where we know it's a
7616         SEQUENCE.  Use methods of rtx_sequence.
7618 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7620         * final.c (get_attr_length_1): Replace GET_CODE check with a
7621         dyn_cast, introducing local "seq" and the use of methods of
7622         rtx_sequence.
7623         (shorten_branches): Likewise, introducing local "body_seq".
7624         Strengthen local "inner_insn" from rtx to rtx_insn *.
7625         (reemit_insn_block_notes): Replace GET_CODE check with a
7626         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
7627         Use methods of rtx_sequence.
7628         (final_scan_insn): Likewise, introducing local "seq" for when
7629         "body" is known to be a SEQUENCE, using its methods.
7631 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7633         * except.c (can_throw_external): Strengthen local "seq" from rtx
7634         to rtx_sequence *.  Use methods of rtx_sequence.
7635         (insn_nothrow_p): Likewise.
7637 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7639         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
7640         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
7641         Use methods of rtx_sequence.
7642         (scan_trace): Likewise for local "pat".
7644 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7646         * coretypes.h (class rtx_sequence): Add forward declaration.
7647         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
7648         invariant: GET_CODE (X) == SEQUENCE.
7649         (is_a_helper <rtx_sequence *>::test): New.
7650         (is_a_helper <const rtx_sequence *>::test): New.
7651         (rtx_sequence::len): New.
7652         (rtx_sequence::element): New.
7653         (rtx_sequence::insn): New.
7655 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7657         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
7658         rtx_insn_list **.
7659         (alloc_INSN_LIST): Strengthen return type from rtx to
7660         rtx_insn_list *.
7661         (copy_INSN_LIST): Likewise for return type and param.
7662         (concat_INSN_LIST): Likewise for both params and return type.
7663         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
7664         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
7665         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
7666         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
7668         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
7669         "implicit_sets", "control_uses", "clobbers" from rtx to
7670         rtx_insn_list *.
7671         (struct deps_desc): Likewise for fields "pending_read_insns",
7672         "pending_write_insns", "pending_jump_insns",
7673         "last_pending_memory_flush", "last_function_call",
7674         "last_function_call_may_noreturn", "sched_before_next_call",
7675         "sched_before_next_jump".
7676         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
7677         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
7679         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
7680         from rtx to rtx_insn_list *.
7681         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
7682         rtx_insn_list *.
7684         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
7685         to rtx_insn_list **.
7686         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
7687         rtx_insn_list *.
7688         (queue_insn): Likewise for local "link".
7689         (struct haifa_saved_data): Strengthen field "insn_queue" from
7690         rtx * to rtx_insn_list **.
7691         (save_backtrack_point): Update allocation of save->insn_queue to
7692         reflect the strengthening of elements from rtx to rtx_insn_list *.
7693         (queue_to_ready): Strengthen local "link" from rtx to
7694         rtx_insn_list *; use methods "next" and "insn" when traversing the
7695         list.
7696         (early_queue_to_ready): Likewise for locals "link", "next_link",
7697         "prev_link".
7698         (schedule_block): Update allocation of insn_queue to reflect the
7699         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
7700         local "link" from rtx to rtx_insn_list *, and use methods when
7701         working it.
7702         (add_to_speculative_block): Strengthen locals "twins" and
7703         "next_node" from rtx to rtx_insn_list *, and use methods when
7704         working with them.  Strengthen local "twin" from rtx to
7705         rtx_insn *, eliminating a checked cast.
7706         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
7707         from rtx to rtx_insn_list *, and use methods when working with
7708         them.
7710         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
7711         from rtx to rtx_insn_list *, adding a checked cast.
7712         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
7713         rtx_insn_list **.
7714         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
7715         "newlink" from rtx to rtx_insn_list *.  Strengthen local
7716         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
7717         from rtx to rtx_insn *.
7718         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
7719         from rtx to rtx_insn_list *.  Use methods of the latter class.
7720         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
7721         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
7722         (remove_free_INSN_LIST_node): Strengthen return type and local
7723         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
7724         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
7725         rtx_insn_list *, using "insn" method.
7727         * sched-deps.c (add_dependence_list):  Strengthen param "list"
7728         from rtx to rtx_insn_list *, and use methods when working with it.
7729         (add_dependence_list_and_free):  Strengthen param "listp" from
7730         rtx * to rtx_insn_list **.
7731         (remove_from_dependence_list): Strenghten param "listp" from rtx *
7732         to rtx_insn_list **, and use methods when working with *listp.
7733         (remove_from_both_dependence_lists): Strengthen param "listp" from
7734         rtx * to rtx_insn_list **
7735         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
7736         to rtx_insn_list **.  Eliminate local "link", in favor of two new
7737         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
7738         respectively.
7739         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
7740         by introducing local "cond_deps".
7741         (remove_from_deps): Strengthen param "insn" from rtx to
7742         rtx_insn *.
7744         * sched-rgn.c (concat_insn_mem_list): Strengthen param
7745         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
7746         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
7747         Use methods of rtx_insn_list.
7749         * store-motion.c (struct st_expr): Strengthen fields
7750         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
7751         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
7752         rtx_insn_list *.
7753         (find_moveable_store): Split out "tmp" into multiple more-tightly
7754         scoped locals.  Use methods of rtx_insn_list *.
7755         (compute_store_table): Strengthen local "tmp" from rtx to
7756         rtx_insn *.  Use methods of rtx_insn_list *.
7758 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7760         * coretypes.h (class rtx_insn_list): Add forward declaration.
7761         * rtl.h (class rtx_insn_list): New subclass of rtx_def
7762         (is_a_helper <rtx_insn_list *>::test): New.
7763         (rtx_insn_list::next): New.
7764         (rtx_insn_list::insn): New.
7765         (gen_rtx_INSN_LIST): Add prototype.
7766         * emit-rtl.c (gen_rtx_INSN_LIST): New.
7767         * gengenrtl.c (special_rtx): Add INSN_LIST.
7769 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7771         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
7772         "prev" from rtx to rtx_insn *.
7774 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7776         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
7777         functions.  Require merely an rtx for now, not an rtx_insn *.
7778         (BLOCK_FOR_INSN): Likewise.
7779         (INSN_LOCATION): Likewise.
7780         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
7782 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7784         * rtl.h (PATTERN): Convert this macro into a pair of inline
7785         functions, for now, requiring const_rtx and rtx.
7787 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7789         * target.def (unwind_emit): Strengthen param "insn" from rtx to
7790         rtx_insn *.
7791         (final_postscan_insn): Likewise.
7792         (adjust_cost): Likewise.
7793         (adjust_priority): Likewise.
7794         (variable_issue): Likewise.
7795         (macro_fusion_pair_p): Likewise.
7796         (dfa_post_cycle_insn): Likewise.
7797         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
7798         (first_cycle_multipass_issue): Likewise.
7799         (dfa_new_cycle): Likewise.
7800         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
7801         (speculate_insn): Likewise for param "insn".
7802         (gen_spec_check): Likewise for params "insn" and "label".
7803         (get_insn_spec_ds): Likewise for param "insn".
7804         (get_insn_checked_ds): Likewise.
7805         (dispatch_do): Likewise.
7806         (dispatch): Likewise.
7807         (cannot_copy_insn_p): Likewise.
7808         (invalid_within_doloop): Likewise.
7809         (legitimate_combined_insn): Likewise.
7810         (needed): Likewise.
7811         (after): Likewise.
7813         * doc/tm.texi: Automatically updated to reflect changes to
7814         target.def.
7816         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
7817         working with insn.
7818         (schedule_block): Likewise.
7819         (sched_init): Likewise.
7820         (sched_speculate_insn): Strengthen param "insn" from rtx to
7821         rtx_insn *.
7822         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
7823         working with insn.
7824         * hooks.c (hook_bool_rtx_true): Rename to...
7825         hook_bool_rtx_insn_true): ...this, and strengthen first param from
7826         rtx to rtx_insn *.
7827         (hook_constcharptr_const_rtx_null): Rename to...
7828         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
7829         first param from const_rtx to const rtx_insn *.
7830         (hook_bool_rtx_int_false): Rename to...
7831         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
7832         param from rtx to rtx_insn *.
7833         (hook_void_rtx_int): Rename to...
7834         (hook_void_rtx_insn_int): ...this, and strengthen first param from
7835         rtx to rtx_insn *.
7837         * hooks.h (hook_bool_rtx_true): Rename to...
7838         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
7839         rtx to rtx_insn *.
7840         (hook_bool_rtx_int_false): Rename to...
7841         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
7842         param from rtx to rtx_insn *.
7843         (hook_void_rtx_int): Rename to...
7844         (hook_void_rtx_insn_int): ...this, and strengthen first param from
7845         rtx to rtx_insn *.
7846         (hook_constcharptr_const_rtx_null): Rename to...
7847         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
7848         first param from const_rtx to const rtx_insn *.
7850         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
7851         and local "prev" from rtx to rtx_insn *.
7853         * sched-int.h (sched_speculate_insn): Strengthen first param from
7854         rtx to rtx_insn *.
7856         * sel-sched.c (create_speculation_check): Likewise for local "label".
7857         * targhooks.c (default_invalid_within_doloop): Strengthen param
7858         "insn" from const_rtx to const rtx_insn *.
7859         * targhooks.h (default_invalid_within_doloop): Strengthen param
7860         from const_rtx to const rtx_insn *.
7862         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
7863         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
7865         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
7866         "insn".
7867         (arc_invalid_within_doloop): Likewise, with const.
7869         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
7870         (arm_cannot_copy_insn_p): Likewise for param "insn".
7871         (arm_unwind_emit): Likewise.
7873         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
7874         "dep_insn".
7876         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
7877         (c6x_variable_issue): Likewise.  Removed now-redundant checked
7878         cast.
7879         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
7881         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
7882         Likewise for param "insn".
7883         (epiphany_mode_after): Likewise.
7884         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
7885         params "insn", "dep_insn".
7886         (epiphany_mode_needed): Likewise for param "insn".
7887         (epiphany_mode_after): Likewise.
7889         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
7890         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
7891         (ix86_avx_u128_mode_needed): Likewise.
7892         (ix86_i387_mode_needed): Likewise.
7893         (ix86_mode_needed): Likewise.
7894         (ix86_avx_u128_mode_after): Likewise.
7895         (ix86_mode_after): Likewise.
7896         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
7897         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
7898         (ix86_adjust_priority): Likewise for param "insn".
7899         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
7900         (do_dispatch): Likewise.
7901         (has_dispatch): Likewise.
7902         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
7904         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
7905         reflect renaming of default hook implementation from
7906         hook_constcharptr_const_rtx_null to
7907         hook_constcharptr_const_rtx_insn_null.
7908         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
7909         rtx to rtx_insn *.
7910         (ia64_variable_issue): Likewise for param "insn".
7911         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
7912         (ia64_dfa_new_cycle): Likewise.
7913         (ia64_get_insn_spec_ds): Likewise.
7914         (ia64_get_insn_checked_ds): Likewise.
7915         (ia64_speculate_insn): Likewise.
7916         (ia64_gen_spec_check): Likewise for params "insn", "label".
7917         (ia64_asm_unwind_emit): Likewise for param "insn".
7919         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
7921         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
7922         "insn", "def_insn".
7923         (m68k_sched_variable_issue): Likewise for param "insn".
7925         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
7926         "def_insn".
7928         * config/microblaze/microblaze.c (microblaze_adjust_cost):
7929         Likewise for params "insn", "dep".
7931         * config/mips/mips.c (mips_adjust_cost): Likewise.
7932         (mips_variable_issue): Likewise for param "insn".
7933         (mips_final_postscan_insn): Likewise.
7935         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
7936         for params "insn", "dep".
7938         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
7939         "dep_insn".
7940         (pa_adjust_priority): Likewise for param "insn".
7942         * config/picochip/picochip.c (picochip_sched_adjust_cost):
7943         Likewise for params "insn", "dep_insn".
7945         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
7946         param "insn".
7947         (rs6000_variable_issue): Likewise.
7948         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
7949         (rs6000_debug_adjust_cost): Likewise.
7950         (rs6000_adjust_priority): Likewise for param "insn".
7951         (rs6000_use_sched_lookahead_guard): Likewise.
7952         (get_next_active_insn): Likewise for return type and both params.
7953         (redefine_groups): Likewise for params "prev_head_insn", "tail"
7954         and locals "insn", "next_insn".
7955         (pad_groups): Likewise.
7957         * config/s390/s390.c (s390_adjust_priority): Likewise for param
7958         "insn".
7959         (s390_cannot_copy_insn_p): Likewise.
7960         (s390_sched_variable_issue): Likewise for third param, eliminating
7961         checked cast.
7962         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
7963         default hook implementation from hook_constcharptr_const_rtx_null
7964         to hook_constcharptr_const_rtx_insn_null.
7966         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
7967         from rtx to rtx_insn *.
7968         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
7969         (sh_variable_issue): Likewise for param "insn".
7970         (sh_dfa_new_cycle): Likewise.
7971         (sh_mode_needed): Likewise.
7972         (sh_mode_after): Likewise.
7974         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
7975         params "insn", "dep_insn".
7976         (hypersparc_adjust_cost): Likewise.
7977         (sparc_adjust_cost): Likewise.
7979         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
7980         param, eliminated checked cast.
7981         (spu_sched_adjust_cost): Likewise for first and third params.
7983         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
7984         params "insn" and "dep_insn" from rtx to rtx_insn *.
7986         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
7988 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7990         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
7991         (set_is_load_p): ...this, updating to work on a SET pattern rather
7992         than an insn.
7993         (is_store_insn): Rename to...
7994         (set_is_store_p): ...this, updating to work on a SET pattern
7995         rather than an insn.
7996         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
7997         top of function to where it is needed.  Rewrite the bogus
7998         condition that checks for "insn" and "dep" being PARALLEL to
7999         instead use single_set, introducing locals "insn_set" and
8000         "dep_set".  Given that we only ever returned "cost" for a non-pair
8001         of SETs, bail out early if we don't have a pair of SET.
8002         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
8003         use the new locals "insn_set" and "dep_set", and update calls to
8004         is_load_insn and is_store_insn to be calls to set_is_load_p and
8005         set_is_store_p.
8007 2014-08-27  Guozhi Wei  <carrot@google.com>
8009         PR target/62262
8010         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
8011         amount before using it.
8013 2014-08-27  Richard Biener  <rguenther@suse.de>
8015         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
8016         get_maxval_strlen inside a more useful API.
8017         (gimple_fold_builtin_with_strlen): Remove and fold into ...
8018         (gimple_fold_builtin): ... caller.
8019         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
8020         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
8021         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
8022         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
8023         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
8024         gimple_fold_builtin_sprintf): Adjust to compute maxval
8025         themselves.
8027 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
8029         PR other/62248
8030         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
8032 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8033             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8034             Anna Tikhonova  <anna.tikhonova@intel.com>
8035             Ilya Tocar  <ilya.tocar@intel.com>
8036             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8037             Ilya Verbin  <ilya.verbin@intel.com>
8038             Kirill Yukhin  <kirill.yukhin@intel.com>
8039             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8041         * config/i386/sse.md
8042         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
8043         Use `concat_tg_mode' attribute to determine asm register size.
8045 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8046             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8047             Anna Tikhonova  <anna.tikhonova@intel.com>
8048             Ilya Tocar  <ilya.tocar@intel.com>
8049             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8050             Ilya Verbin  <ilya.verbin@intel.com>
8051             Kirill Yukhin  <kirill.yukhin@intel.com>
8052             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8054         * config/i386/sse.md
8055         (define_mode_iterator VI48_AVX512VL): New.
8056         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
8057         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
8058         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
8059         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8060         with VI1): Change mode iterator.
8061         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8062         with VI_ULOADSTORE_BW_AVX512VL): New.
8063         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8064         with VI_ULOADSTORE_F_AVX512VL): Ditto.
8065         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8066         with VI1): Change mode iterator.
8067         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8068         with VI_ULOADSTORE_BW_AVX512VL): New.
8069         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8070         with VI_ULOADSTORE_F_AVX512VL): Ditto.
8071         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8072         with VI1): Change mode iterator.
8073         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8074         with VI_ULOADSTORE_BW_AVX512VL): New.
8075         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8076         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
8077         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
8078         (define_insn "<avx512>_storedqu<mode>_mask" with
8079         VI48_AVX512VL): New.
8080         (define_insn "<avx512>_storedqu<mode>_mask" with
8081         VI12_AVX512VL): Ditto.
8083 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8084             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8085             Anna Tikhonova  <anna.tikhonova@intel.com>
8086             Ilya Tocar  <ilya.tocar@intel.com>
8087             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8088             Ilya Verbin  <ilya.verbin@intel.com>
8089             Kirill Yukhin  <kirill.yukhin@intel.com>
8090             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8092         * config/i386/sse.md
8093         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
8094         (define_mode_iterator VI48_AVX512BW): New.
8095         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
8096         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
8097         with VI48_AVX2_48_AVX512F): New.
8098         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
8099         with VI2_AVX512VL): Ditto.
8101 2014-08-27  Richard Biener  <rguenther@suse.de>
8103         PR middle-end/62239
8104         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
8105         (fold_builtin_3): Do not fold strcat_chk here.
8106         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
8107         from builtins.c.
8108         (gimple_fold_builtin): Fold strcat_chk here.
8110 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
8112         * dwarf2out.h (dwarf2out_decl): Remove prototype.
8113         * dwarf2out.c (dwarf2out_decl): Make static.
8115 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
8117         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
8119 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8121         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
8122         from rtx to rtx_insn *.
8123         (cselib_lookup_from_insn): Likewise for final param.
8124         (cselib_subst_to_values_from_insn): Likewise.
8125         (cselib_add_permanent_equiv): Likewise.
8127         * cselib.c (cselib_current_insn): Likewise for this variable.
8128         (cselib_subst_to_values_from_insn): Likewise for param "insn".
8129         (cselib_lookup_from_insn): Likewise.
8130         (cselib_add_permanent_equiv): Likewise for param "insn" and local
8131         "save_cselib_current_insn".
8132         (cselib_process_insn): Replace use of NULL_RTX with NULL.
8134         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
8135         from rtx to rtx_insn *.
8137 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8139         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
8140         rtx_insn *.
8142 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8144         * df.h (df_dump_insn_problem_function): Strengthen first param of
8145         this callback from const_rtx to const rtx_insn *.
8146         (struct df_insn_info): Strengthen field "insn" from rtx to
8147         rtx_insn *.
8148         (DF_REF_INSN): Eliminate this function, reinstating the older
8149         macro definition.
8150         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
8151         (df_reg_defined): Likewise.
8152         (df_find_use): Likewise.
8153         (df_reg_used): Likewise.
8154         (df_dump_insn_top): Strengthen param 1 from const_rtx to
8155         const rtx_insn *.
8156         (df_dump_insn_bottom): Likewise.
8157         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
8158         (df_insn_debug_regno): Likewise.
8159         (debug_df_insn): Likewise.
8160         (df_rd_simulate_one_insn): Likewise for param 2.
8161         (df_word_lr_simulate_defs): Likewise for param 1.
8162         (df_word_lr_simulate_uses): Likewise.
8163         (df_md_simulate_one_insn): Likewise for param 2.
8164         (df_simulate_find_noclobber_defs): Likewise for param 1.
8165         (df_simulate_find_defs): Likewise.
8166         (df_simulate_defs): Likewise.
8167         (df_simulate_uses): Likewise.
8168         (df_simulate_one_insn_backwards): Likewise for param 2.
8169         (df_simulate_one_insn_forwards): Likewise.
8170         (df_uses_create): Likewise for param 2.
8171         (df_insn_create_insn_record): Likewise for param 1.
8172         (df_insn_delete): Likewise.
8173         (df_insn_rescan): Likewise.
8174         (df_insn_rescan_debug_internal): Likewise.
8175         (df_insn_change_bb): Likewise.
8176         (df_notes_rescan): Likewise.
8177         * rtl.h (remove_death): Likewise for param 2.
8178         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
8179         const rtx_insn *.
8180         * sched-int.h (reemit_notes): Strengthen param from rtx to
8181         rtx_insn *.
8182         * valtrack.h (propagate_for_debug): Likewise for param 1.
8184         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
8185         local "tmp_rtx" from const_rtx to const rtx_insn *.
8186         * combine.c (remove_death): Strengthen param "insn" from rtx to
8187         rtx_insn *.
8188         (move_deaths): Likewise for local "where_dead".
8189         * cse.c (delete_trivially_dead_insns): Introduce local
8190         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
8191         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
8192         rtx_insn *.
8193         (df_reg_defined): Likewise.
8194         (df_find_use): Likewise.
8195         (df_reg_used): Likewise.
8196         (df_dump_insn_problem_data): Strengthen param "insn" from
8197         const_rtx to const rtx_insn *.
8198         (df_dump_insn_top): Likewise.
8199         (df_dump_insn_bottom): Likewise.
8200         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
8201         (df_insn_debug_regno): Likewise.
8202         (debug_df_insn): Likewise.
8203         (DF_REF_INSN): Delete.
8204         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
8205         from rtx to rtx_insn *.
8206         (df_chain_insn_top_dump): Strengthen param "insn" from
8207         const_rtx to const rtx_insn *.
8208         (df_chain_insn_bottom_dump): Likewise.
8209         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
8210         rtx_insn *.
8211         (df_word_lr_simulate_uses): Likewise.
8212         (df_print_note): Likewise.
8213         (df_remove_dead_and_unused_notes): Likewise.
8214         (df_set_unused_notes_for_mw): Likewise.
8215         (df_set_dead_notes_for_mw): Likewise.
8216         (df_create_unused_note): Likewise.
8217         (df_simulate_find_defs): Likewise.
8218         (df_simulate_find_uses): Likewise.
8219         (df_simulate_find_noclobber_defs): Likewise.
8220         (df_simulate_defs): Likewise.
8221         (df_simulate_uses): Likewise.
8222         (df_simulate_one_insn_backwards): Likewise.
8223         (df_simulate_one_insn_forwards): Likewise.
8224         (df_md_simulate_one_insn): Likewise.
8225         * df-scan.c (df_uses_create): Likewise.
8226         (df_insn_create_insn_record): Likewise.
8227         (df_insn_delete): Likewise.
8228         (df_insn_rescan): Likewise.
8229         (df_insn_rescan_debug_internal): Likewise.
8230         (df_insn_change_bb): Likewise.
8231         (df_notes_rescan): Likewise.
8232         (df_refs_add_to_chains): Likewise.
8233         (df_insn_refs_verify): Likewise.
8234         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
8235         when invoking df_insn_delete.
8236         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
8237         (set_unique_reg_note): Add checked cast.
8238         * final.c (cleanup_subreg_operands): Likewise.
8239         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
8240         "insn" from rtx to rtx_insn *.
8241         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
8242         "last" from rtx to rtx_insn *.
8243         * ira-emit.c (change_regs_in_insn): New function.
8244         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
8245         Invoke change_regs_in_insn rather than change_regs.
8246         * ira.c (update_equiv_regs): Strengthen locals "insn",
8247         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
8248         for_each_rtx_in_insn rather than for_each_rtx.
8249         * recog.c (confirm_change_group): Add checked casts.
8250         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
8251         Add checked cast.
8252         (peep2_fill_buffer): Add checked cast.
8253         * rtlanal.c (remove_note): Likewise.
8254         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
8255         locals "next" "end" from rtx to rtx_insn *.
8257 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8259         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
8260         to rtx_insn *.
8261         (struct reg_use_data): Likewise for field "insn".
8262         (insn_cost): Likewise for param.
8263         (real_insn_for_shadow): Likewise for return type and param.
8264         (increase_insn_priority): Likewise for param 1.
8265         (debug_dependencies): Likewise for both params.
8267         * haifa-sched.c (insn_delay): Likewise for param "insn".
8268         (real_insn_for_shadow): Likewise for return type and param "insn".
8269         (update_insn_after_change): Likewise for param "insn".
8270         (recompute_todo_spec): Likewise for param "next" and locals "pro",
8271         "other".
8272         (insn_cost): Likewise for param "insn".
8273         (increase_insn_priority): Likewise.
8274         (calculate_reg_deaths): Likewise.
8275         (setup_insn_reg_pressure_info): Likewise.
8276         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
8277         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
8278         (model_recompute): Likewise.
8279         (must_restore_pattern_p): Likewise for param "next".
8280         (model_excess_cost): Likewise for param "insn".
8281         (queue_remove): Likewise.
8282         (adjust_priority): Likewise for param "prev".
8283         (update_register_pressure): Likewise for param "insn".
8284         (setup_insn_max_reg_pressure): Likewise for local "insn".
8285         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
8286         (model_add_to_schedule): Likewise.
8287         (model_reset_queue_indices): Likewise for local "insn".
8288         (unschedule_insns_until): Strengthen local "recompute_vec" from
8289         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
8290         "con" from rtx to rtx_insn *.
8291         (restore_last_backtrack_point): Likewise for both locals "x". Add
8292         checked casts.
8293         (estimate_insn_tick): Likewise for param "insn".
8294         (commit_schedule): Likewise for params "prev_head", "tail" and
8295         local "x".
8296         (verify_shadows): Likewise for locals "i1", "i2".
8297         (dump_insn_stream): Likewise for params "head", "tail" and locals
8298         "next_tail", "insn".
8299         (schedule_block): Likewise for locals "insn", "x".  Add a checked
8300         cast.
8301         (fix_inter_tick): Likewise for params "head", "tail".
8302         (create_check_block_twin): Likewise for local "jump".
8303         (haifa_change_pattern): Likewise for param "insn".
8304         (haifa_speculate_insn): Likewise.
8305         (dump_new_block_header): Likewise for params "head", "tail".
8306         (fix_jump_move): Likewise for param "jump".
8307         (move_block_after_check): Likewise.
8308         (sched_init_insn_luid): Likewise for param "insn".
8309         (sched_init_luids): Likewise for local "insn".
8310         (insn_luid): Likewise for param "insn".
8311         (init_h_i_d): Likewise.
8312         (haifa_init_h_i_d): Likewise for local "insn".
8313         (haifa_init_insn): Likewise for param "insn".
8314         * sched-deps.c (add_dependence): Likewise for local "real_pro",
8315         "other".
8316         (create_insn_reg_use): Likewise for param "insn".
8317         (setup_insn_reg_uses): Likewise.  Add a checked cast.
8318         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
8319         "tail" from rtx to rtx_insn *.
8320         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
8321         "insn", "next_tail".
8323 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8325         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
8326         from rtx to rtx_insn *.
8327         (model_add_to_schedule): Likewise for locals "start", "end",
8328         "iter".
8330 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8332         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
8333         rtx_insn *.
8334         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
8335         "to" and locals "insn", "next", "copy".  Remove now-redundant
8336         checked cast.
8338 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8340         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
8341         rtx_insn * and param 4 from rtx * to rtx_insn **.
8342         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
8343         param 2 from rtx * to rtx_insn **.
8345         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
8346         rtx_insn * and final param from rtx * to rtx_insn **.
8348         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
8349         from rtx to rtx_insn *.
8350         (try_head_merge_bb): Likewise for both locals named "move_upto".
8351         * df-problems.c (can_move_insns_across): Likewise for params
8352         "from", "to", "across_from", "across_to" and locals "insn",
8353         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
8354         rtx_insn **.
8355         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
8356         from rtx to rtx_insn *.
8357         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
8358         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
8359         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
8360         rtx_insn *.
8361         (noce_try_abs): Likewise.
8362         (noce_get_condition): Likewise for param "jump".  Strengthen param
8363         "earliest" from rtx * to rtx_insn **.
8364         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
8365         rtx_insn *.
8366         (find_cond_trap): Likewise.
8367         (dead_or_predicable): Likewise for local "earliest".
8368         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
8369         checked cast.
8370         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
8371         and local "prev".  Strengthen param "earliest" from rtx * to
8372         rtx_insn **.
8373         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
8374         Strengthen param "earliest" from rtx * to rtx_insn **.
8376 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8378         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
8379         "to" and local "insn" from rtx to rtx_insn *.
8381 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8383         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
8384         from rtx to rtx_insn *.
8385         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
8386         (code_motion_path_driver): Likewise for local "last_insn".
8387         (simplify_changed_insns): Likewise for local "insn".
8389 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8391         * rtl.h (push_to_sequence): Strengthen param from rtx to
8392         rtx_insn *.
8393         (push_to_sequence2): Likewise for both params.
8394         (delete_insns_since): Likewise for param.
8395         (reorder_insns_nobb): Likewise for all three params.
8396         (set_new_first_and_last_insn): Likewise for both params.
8398         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
8399         rtx_insn *.  Remove now-redundant cast.
8400         (set_last_insn): Likewise.
8402         * builtins.c (expand_builtin_return): Strengthen local
8403         "call_fusage" from rtx to rtx_insn *.
8404         * cfgrtl.c (create_basic_block_structure): Likewise for local
8405         "after".
8406         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
8407         "first", "last" and local "insn".
8408         (delete_insns_since): Likewise for param "from".
8409         (reorder_insns_nobb): Likewise for params "from", "to", "after"
8410         and local "x".
8411         (push_to_sequence): Likewise for param "first" and local "last".
8412         (push_to_sequence2): Likewise for params "first" and "last".
8413         * lra.c (emit_add3_insn): Likewise for local "last".
8414         (lra_emit_add): Likewise.
8415         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
8416         "last_insn".
8417         (process_address_1): Likewise for locals "insn", last".
8418         * modulo-sched.c (ps_first_note): Likewise for return type.
8419         * optabs.c (expand_binop_directly): Likewise for param "last".
8421 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8423         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
8424         to rtx_insn*.
8425         * emit-rtl.c (get_last_insn_anywhere): Likewise.
8427 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8429         * function.h (struct sequence_stack): Strengthen fields "first"
8430         and "last" from rtx to rtx_insn *.
8431         (struct emit_status): Likewise for fields "x_first_insn" and
8432         "x_last_insn".
8434         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
8435         (set_first_insn): Add checked cast.
8436         (get_last_insn): Remove now-redundant checked cast.
8437         (set_last_insn): Add checked cast.
8439         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
8440         "saved_first" and "saved_last" from rtx to rtx_insn *.
8442 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8444         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
8445         (unlink_insn_chain): Strengthen both params from rtx to
8446         rtx_insn *.
8448         * cfgrtl.c (cfg_layout_function_header): Likewise for this
8449         variable.
8450         (unlink_insn_chain): Likewise for params "first" and "last".
8451         Remove now-redundant checked cast.
8452         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
8453         (fixup_reorder_chain): Strengthen local "insn" from rtx to
8454         rtx_insn *.
8455         * emit-rtl.c (link_insn_into_chain): Likewise for all three
8456         params.
8457         (add_insn): Likewise for param "insn" and local "prev".
8458         (add_insn_after_nobb): Likewise for both params and local "next".
8459         (add_insn_before_nobb): Likewise for both params and local "prev".
8460         (add_insn_after): Rename param "after" to "uncast_after",
8461         introducing local "after" with another checked cast.
8462         (add_insn_before): Rename params "insn" and "before", giving them
8463         "uncast_" prefixes, adding the old names back using checked casts.
8464         (emit_note_after): Likewise for param "after".
8465         (emit_note_before): Likewise for param "before".
8466         (emit_label): Add a checked cast.
8468 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8470         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
8471         "insn" from rtx to rtx_insn *.
8473         * cselib.c (cselib_record_sets_hook): Likewise.
8475         * var-tracking.c (add_with_sets): Likewise, renaming back from
8476         "uncast_insn" to "insn" and eliminating the checked cast from rtx
8477         to rtx_insn *.
8479 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8481         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
8482         and "header_" from rtx to rtx_insn *.
8483         (struct basic_block_d): Likewise for field "head_" within "x"
8484         field of union basic_block_il_dependent.
8485         (BB_HEAD): Drop function...
8486         (SET_BB_HEAD): ...and this function in favor of...
8487         (BB_HEAD): ...reinstate macro.
8488         (BB_END): Drop function...
8489         (SET_BB_END): ...and this function in favor of...
8490         (BB_END): ...reinstate macro.
8491         (BB_HEADER): Drop function...
8492         (SET_BB_HEADER): ...and this function in favor of...
8493         (BB_HEADER): ...reinstate macro.
8495         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
8496         (fix_crossing_unconditional_branches): Likewise.
8497         * caller-save.c (save_call_clobbered_regs): Likewise.
8498         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
8499         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
8500         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8501         (merge_blocks_move_successor_nojumps): Likewise.
8502         (outgoing_edges_match): Update use of for_each_rtx to
8503         for_each_rtx_in_insn.
8504         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
8505         (expand_gimple_cond): Likewise.
8506         (expand_gimple_tailcall): Likewise.
8507         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
8508         SET_BB_END.
8509         (construct_exit_block): Drop use of SET_BB_END.
8510         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
8511         rtx_insn *.
8512         (delete_insn): Rename param "insn" to "uncast_insn", introducing
8513         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
8514         SET_BB_HEAD and SET_BB_END.
8515         (create_basic_block_structure): Drop use of SET_BB_HEAD and
8516         SET_BB_END.
8517         (rtl_delete_block): Drop use of SET_BB_HEAD.
8518         (rtl_split_block): Drop use of SET_BB_END.
8519         (emit_nop_for_unique_locus_between): Likewise.
8520         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
8521         (block_label): Drop use of SET_BB_HEAD.
8522         (fixup_abnormal_edges): Drop use of SET_BB_END.
8523         (record_effective_endpoints): Drop use of SET_BB_HEADER.
8524         (relink_block_chain): Likewise.
8525         (fixup_reorder_chain): Drop use of SET_BB_END.
8526         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
8527         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
8528         rtx_insn **.  Drop use of SET_BB_HEADER.
8529         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
8530         SET_BB_HEAD.
8531         (BB_HEAD): Delete this function.
8532         (SET_BB_HEAD): Likewise.
8533         (BB_END): Likewise.
8534         (SET_BB_END): Likewise.
8535         (BB_HEADER): Likewise.
8536         (SET_BB_HEADER): Likewise.
8537         * emit-rtl.c (add_insn_after):  Rename param "insn" to
8538         "uncast_insn", adding a new local "insn" and a checked cast to
8539         rtx_insn *.  Drop use of SET_BB_END.
8540         (remove_insn): Strengthen locals "next" and "prev" from rtx to
8541         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
8542         (reorder_insns): Drop use of SET_BB_END.
8543         (emit_insn_after_1): Strengthen param "first" and locals "last",
8544         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
8545         (emit_pattern_after_noloc): Add checked cast.
8546         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
8547         (restore_other_notes): Likewise.
8548         (move_insn): Likewise.
8549         (sched_extend_bb): Likewise.
8550         (fix_jump_move): Likewise.
8551         * ifcvt.c (noce_process_if_block): Likewise.
8552         (dead_or_predicable): Likewise.
8553         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
8554         * reg-stack.c (change_stack): Drop use of SET_BB_END.
8555         * sel-sched-ir.c (sel_move_insn): Likewise.
8556         * sel-sched.c (move_nop_to_previous_block): Likewise.
8558         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
8559         SET_BB_END.
8560         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
8562 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8564         * basic-block.h (create_basic_block_structure): Strengthen params
8565         1 "head" and 2 "end" from rtx to rtx_insn *.
8566         * cfgrtl.c (create_basic_block_structure): Likewise.
8567         (rtl_create_basic_block): Update casts from void * to rtx to
8568         rtx_insn *, so that we can pass them as rtx_insn * to
8569         create_basic_block_structure.
8570         * sel-sched-ir.c (sel_create_basic_block): Likewise.
8572 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8574         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
8575         rtx_insn **.
8576         (check_for_inc_dec): Strengthen param "insn" from rtx to
8577         rtx_insn *.
8579         * cselib.h (cselib_process_insn): Likewise.
8581         * cselib.c (cselib_record_sets): Likewise.
8582         (cselib_process_insn): Likewise.
8584         * dse.c (struct insn_info): Likewise for field "insn".
8585         (check_for_inc_dec_1): Likewise for local "insn".
8586         (check_for_inc_dec): Likewise for param "insn".
8587         (scan_insn): Likewise.
8588         (dse_step1): Likewise for local "insn".
8590         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
8591         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
8593 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8595         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
8596         from rtx to rtx_insn *.
8597         (DEP_PRO): Delete this function and...
8598         (SET_DEP_PRO): ...this function in favor of...
8599         (DEP_PRO): ...reinstate this macro.
8600         (DEP_CON): Delete this function and...
8601         (SET_DEP_CON): ...this function in favor of...
8602         (DEP_CON): ...reinstate this old macro.
8603         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
8604         (init_dep): Likewise.
8605         (set_priorities): Likewise for both params.
8606         (sd_copy_back_deps): Likewise for params 1 and 2.
8608         * haifa-sched.c (priority): Likewise for param "insn" and local
8609         "next".
8610         (set_priorities): Likewise for params "head" and "tail" and local
8611         "insn".
8612         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
8613         local "consumer".
8614         (add_to_speculative_block): Add a checked cast.
8615         (create_check_block_twin): Drop use of SET_DEP_CON.
8616         (add_jump_dependencies): Strengthen params "insn" and "jump" from
8617         rtx to rtx_insn *.
8619         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
8620         Drop use of SET_DEP_PRO
8621         (init_dep): Strengthen params "pro" and "con" from rtx to
8622         rtx_insn *.
8623         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
8624         use of SET_DEP_CON.
8625         (DEP_PRO): Delete.
8626         (DEP_CON): Delete.
8627         (SET_DEP_PRO): Delete.
8628         (SET_DEP_CON): Delete.
8630 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8632         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
8633         from rtx to rtx_insn *.
8634         (VINSN_INSN_RTX): Eliminate rvalue function and...
8635         (SET_VINSN_INSN): ...lvalue function in favor of...
8636         (VINSN_INSN_RTX): reinstate this old macro.
8638         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
8639         in favor of VINSN_INSN_RTX.
8640         (VINSN_INSN_RTX): Delete this function.
8641         (SET_VINSN_INSN_RTX): Likewise.
8643 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8645         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
8646         (BND_TO): Delete this function and...
8647         (SET_BND_TO): ...this functions in favor of...
8648         (BND_TO): ...reinstating this macro.
8649         (struct _fence): Strengthen field "executing_insns" from
8650         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
8651         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
8652         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
8653         and param "insn" from rtx to insn_t.
8654         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
8655         rtx_insn *.
8657         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
8658         vec<rtx_insn *> .
8659         (rtx_vec_t): Likewise.
8660         (struct sched_deps_info_def): Strengthen param of "start_insn"
8661         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
8662         "note_mem_dep" callback and first param of "note_dep" callback.
8664         * haifa-sched.c (add_to_speculative_block): Strengthen param
8665         "insn" from rtx to rtx_insn *.
8666         (clear_priorities): Likewise.
8667         (calc_priorities): Likewise for local "insn".
8669         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
8670         Remove redundant checked cast.
8671         (haifa_note_mem_dep): Likewise for param "pending_insn".
8672         (haifa_note_dep): Likewise for param "elem".
8673         (note_mem_dep): Likewise for param "e".
8674         (sched_analyze_1): Add checked casts.
8675         (sched_analyze_2): Likewise.
8677         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
8678         from rtx to rtx_insn *.
8679         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
8680         from vec<rtx> * to vec<rtx_insn *> *.
8682         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
8683         scaffolding.
8684         (flist_add): Strengthen param "executing_insns" from
8685         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
8686         (advance_deps_context): Remove now-redundant checked cast.
8687         (init_fences): Replace uses of NULL_RTX with NULL.
8688         (merge_fences): Strengthen params "last_scheduled_insn" and
8689         "sched_next" from rtx to rtx_insn * and "executing_insns" from
8690         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
8691         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
8692         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
8693         an instruction, rather than doing double-duty as a pattern.
8694         (return_nop_to_pool): Update for change of insn_t.
8695         (deps_init_id): Remove now-redundant checked cast.
8696         (struct sched_scan_info_def): Strengthen param of "init_insn"
8697         callback from rtx to insn_t.
8698         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
8699         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
8700         NULL.
8701         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
8702         "end" from rtx to rtx_insn *.
8703         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
8704         (rtx insn_rtx, bool force_unique_p)
8705         (BND_TO): Delete function.
8706         (SET_BND_TO): Delete function.
8708         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
8709         rtx to rtx_insn *.
8710         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
8711         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
8712         rtx to rtx_insn *.
8713         (undo_transformations): Likewise for param "insn".
8714         (update_liveness_on_insn): Likewise.
8715         (compute_live_below_insn): Likewise for param "insn" and local
8716         "succ".
8717         (update_data_sets): Likewise for param "insn".
8718         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
8719         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
8720         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
8721         rtx_insn *.
8722         (move_cond_jump): Likewise for param "insn".
8723         (move_cond_jump): Drop use of SET_BND_TO.
8724         (compute_av_set_on_boundaries): Likewise.
8725         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
8726         (update_and_record_unavailable_insns): Strengthen local "bb_end"
8727         from rtx to rtx_insn *.
8728         (maybe_emit_renaming_copy): Likewise for param "insn".
8729         (maybe_emit_speculative_check): Likewise.
8730         (handle_emitting_transformations): Likewise.
8731         (remove_insn_from_stream): Likewise.
8732         (code_motion_process_successors): Strengthen local "succ" from rtx
8733         to insn_t.
8735 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8737         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
8738         ilist_t, not _xlist_t;
8739         (ILIST_INSN): Define in terms of new union field "insn".
8740         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
8741         _XLIST_NEXT.
8742         (struct _list_node): Add new field "insn" to the union, of type
8743         insn_t.
8744         (ilist_add): Replace macro with an inline function, requiring an
8745         insn_t.
8746         (ilist_remove): Define this macro directly in terms of
8747         _list_remove, rather than indirectly via _xlist_remove.
8748         (ilist_clear): Likewise, in terms of _list_clear rather than
8749         _xlist_clear.
8750         (ilist_is_in_p): Replace macro with an inline function, requiring
8751         an insn_t.
8752         (_list_iter_cond_insn): New function.
8753         (ilist_iter_remove): Define this macro directly in terms of
8754         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
8755         (ilist_iterator): Define directly in terms of _list_iterator
8756         rather than indirectly through _xlist_iterator.
8757         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
8758         than in terms of _FOR_EACH_X.
8759         (FOR_EACH_INSN_1): Likewise.
8761 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
8763         PR target/60606
8764         PR target/61330
8765         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
8766         DECL_HARD_REGISTER and return for invalid register specifications.
8767         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
8768         DECL_HARD_REGISTER, call expand_one_error_var.
8769         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
8770         CC_REGNUM with non-MODE_CC modes.
8771         (arm_regno_class): Return NO_REGS for PC_REGNUM.
8773 2014-08-26  Marek Polacek  <polacek@redhat.com>
8775         PR c/61271
8776         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
8778 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
8780         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
8781         qi cost; add di cost.
8782         (cortexa57_addrcost_table): Likewise.
8784 2014-08-26  Marek Polacek  <polacek@redhat.com>
8786         PR c/61271
8787         * expr.c (is_aligning_offset): Remove logical not.
8789 2014-08-26  Marek Polacek  <polacek@redhat.com>
8791         PR c/61271
8792         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
8793         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
8795 2014-08-26  Richard Biener  <rguenther@suse.de>
8797         PR tree-optimization/62175
8798         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8799         expand possibly trapping operations.
8801 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8803         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
8804         "insn" from rtx to rtx_insn *.
8805         (permute_load): Likewise for param "insn".
8806         (permute_store): Likewise.
8807         (handle_special_swappables): Likewise for local "insn".
8808         (replace_swap_with_copy): Likewise for locals "insn" and
8809         "new_insn".
8810         (rs6000_analyze_swaps): Likewise for local "insn".
8812 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8814         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
8815         to rtx_insn *.
8817 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8819         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
8820         "note_list" from rtx to rtx_insn *.
8821         (BB_NOTE_LIST): Replace this function and...
8822         (SET_BB_NOTE_LIST): ...this function with...
8823         (BB_NOTE_LIST): ...the former macro implementation.
8825         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
8826         local "from_start" from rtx to rtx_insn *.  Strengthen param
8827         "to_endp" from rtx * to rtx_insn **.
8829         * haifa-sched.c (concat_note_lists): Likewise.
8830         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
8831         BB_NOTE_LIST.
8832         (sel_restore_notes): Likewise.
8833         (move_bb_info): Likewise.
8834         (BB_NOTE_LIST): Delete this function.
8835         (SET_BB_NOTE_LIST): Delete this function.
8836         * sel-sched.c (create_block_for_bookkeeping): Eliminate
8837         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
8839 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8841         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
8842         from rtx * to rtx_insn **.
8843         (reorder2): Likewise.
8844         (dependencies_evaluation_hook): Strengthen params "head", "tail"
8845         from rtx to rtx_insn *.
8847         * doc/tm.texi: Update mechanically for above change to target.def.
8849         * sched-int.h (note_list): Strengthen this variable from rtx to
8850         rtx_insn *.
8851         (remove_notes): Likewise for both params.
8852         (restore_other_notes): Likewise for return type and first param.
8853         (struct ready_list): Strengthen field "vec" from rtx * to
8854         rtx_insn **.
8855         (struct dep_replacement): Strenghten field "insn" from rtx to
8856         rtx_insn *.
8857         (struct deps_desc): Likewise for fields "last_debug_insn",
8858         "last_args_size".
8859         (struct haifa_sched_info): Likewise for callback field
8860         "can_schedule_ready_p"'s param, for first param of "new_ready"
8861         callback field, for both params of "rank" callback field, for
8862         first field of "print_insn" callback field (with a const), for
8863         both params of "contributes_to_priority" callback, for param
8864         of "insn_finishes_block_p" callback, for fields "prev_head",
8865         "next_tail", "head", "tail", for first param of "add_remove_insn"
8866         callback, for first param of "begin_schedule_ready" callback, for
8867         both params of "begin_move_insn" callback, and for second param
8868         of "advance_target_bb" callback.
8869         (add_dependence): Likewise for params 1 and 2.
8870         (sched_analyze): Likewise for params 2 and 3.
8871         (deps_analyze_insn): Likewise for param 2.
8872         (ready_element): Likewise for return type.
8873         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
8874         (try_ready): Strenghten param from rtx to rtx_insn *.
8875         (sched_emit_insn): Likewise for return type.
8876         (record_delay_slot_pair): Likewise for params 1 and 2.
8877         (add_delay_dependencies): Likewise for param.
8878         (contributes_to_priority): Likewise for both params.
8879         (find_modifiable_mems): Likewise.
8881         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
8882         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
8883         "first_older_only_insn" from rtx to rtx_insn *.
8884         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
8885         rtx_insn **.
8887         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
8888         "last_scheduled_iter0" from rtx to rtx_insn *.
8889         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
8890         (c6x_sched_reorder_1): Strengthen param "ready" and locals
8891         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
8892         "insn" from rtx to rtx_insn *.
8893         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
8894         rtx_insn **.
8895         (c6x_sched_reorder2): Strengthen param "ready" and locals
8896         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
8897         "insn" from rtx to rtx_insn *.
8898         (c6x_variable_issue):  Add a checked cast when assigning from insn
8899         to ss.last_scheduled_iter0.
8900         (split_delayed_branch): Strengthen param "insn" and local "i1"
8901         from rtx to rtx_insn *.
8902         (split_delayed_nonbranch): Likewise.
8903         (undo_split_delayed_nonbranch): Likewise for local "insn".
8904         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
8905         "entry_after", "end_packet", "head_insn", "tail_insn",
8906         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
8907         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
8908         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
8909         but add a checked cast on loop->start_label.  Consolidate calls to
8910         avoid assigning result of gen_spkernel to "insn", now an
8911         rtx_insn *.
8913         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
8914         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
8915         rtx to rtx_insn *.
8916         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
8917         rtx_insn **.  Strengthen locals "top", "next" from rtx to
8918         rtx_insn *.
8919         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
8920         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
8921         (add_parameter_dependencies): Strengthen params "call", "head" and
8922         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
8923         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
8924         (add_dependee_for_func_arg): Likewise for param "arg" and local
8925         "insn".
8926         (ix86_dependencies_evaluation_hook): Likewise for params "head",
8927         "tail" and locals "insn", "first_arg".
8929         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
8930         for params "head", "tail" and locals "insn", "next", "next_tail".
8931         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
8932         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
8933         "insn", "lowest", "highest" from rtx to rtx_insn *.
8934         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
8935         rtx_insn **.
8936         (ia64_sched_reorder2): Likewise.
8938         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
8939         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
8940         from rtx * to rtx_insn **.
8941         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
8942         rtx_insn **.
8943         (mep_print_sched_insn): Strengthen param "insn" from rtx to
8944         rtx_insn *.
8945         (mep_sched_reorder): Strengthen param "ready" from rtx * to
8946         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
8947         to rtx_insn *.
8949         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
8950         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
8951         to rtx_insn *.
8952         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
8953         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
8954         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
8955         rtx_insn **.
8956         (vr4130_reorder): Likewise.
8957         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
8958         rtx to rtx_insn *.
8959         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
8960         rtx_insn **.
8961         (mips_sched_reorder): Likewise.
8962         (mips_sched_reorder2): Likewise.
8964         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
8966         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
8967         Strengthen local "tmp" from rtx to rtx_insn *.
8968         (rs6000_sched_reorder2): Likewise.
8970         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
8971         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
8972         (s390_sched_reorder): Strengthen param "ready" from rtx * to
8973         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
8975         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
8976         "tmp2" from rtx to rtx_insn *.
8977         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
8978         Strengthen local "insn" from rtx to rtx_insn *.
8979         (ready_reorder): Strengthen param "ready" from rtx * to
8980         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
8981         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
8982         (sh_reorder2): Likewise.
8984         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
8985         local "insn" from rtx to rtx_insn *.
8987         * haifa-sched.c (note_list): Strengthen this variable from rtx to
8988         rtx_insn *.
8989         (scheduled_insns): Strengthen this variable from vec<rtx> to
8990         vec<rtx_insn *>.
8991         (set_modulo_params): Likewise for locals "i1", "i2".
8992         (record_delay_slot_pair): Likewise for params "i1", "i2".
8993         (add_delay_dependencies): Likewise for param "insn".
8994         (cond_clobbered_p): Likewise.
8995         (recompute_todo_spec): Likewise for local "prev".
8996         (last_scheduled_insn): Likewise for this variable.
8997         (nonscheduled_insns_begin): Likewise.
8998         (model_set_excess_costs): Strengthen param "insns" from rtx * to
8999         rtx_insn **.
9000         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
9001         rtx_insn *.
9002         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
9003         Strengthen local "insn" from rtx to rtx_insn *.
9004         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
9005         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
9006         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
9007         (ready_remove_first): Likewise for return type and local "t".
9008         (ready_element): Likewise for return type.
9009         (ready_remove): Likewise for return type and local "t".
9010         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
9011         (check_clobbered_conditions): Strengthen local "x" from rtx to
9012         rtx_insn *, adding a checked cast.
9013         (schedule_insn): Likewise for param "insn".
9014         (remove_notes): Likewise for params "head", "tail" and locals
9015         "next_tail", "insn", "next".
9016         (struct haifa_saved_data): Likewise for fields
9017         "last_scheduled_insn", "nonscheduled_insns_begin".
9018         (save_backtrack_point): Update for change to field "vec" of
9019         struct ready_list.
9020         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
9021         rtx_insn **.
9022         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
9023         from rtx to rtx_insn *
9024         (resolve_dependencies): Strengthen param "insn" from rtx to
9025         rtx_insn *
9026         (restore_other_notes): Likewise for return type, for param "head"
9027         and local "note_head".
9028         (undo_all_replacements): Likewise for local "insn".
9029         (first_nonscheduled_insn): Likewise for return type and local "insn".
9030         (queue_to_ready): Likewise for local "insn", adding checked casts.
9031         (early_queue_to_ready): Likewise for local "insn".
9032         (debug_ready_list_1): Strengthen local "p" from rtx * to
9033         rtx_insn **.
9034         (move_insn): Strengthen param "insn" and local "note" from rtx to
9035         rtx_insn *
9036         (insn_finishes_cycle_p): Likewise for param "insn".
9037         (max_issue): Likewise for local "insn".
9038         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
9039         to rtx_insn **.
9040         (commit_schedule): Strengthen param "prev_head" and local "insn"
9041         from rtx to rtx_insn *
9042         (prune_ready_list): Likewise for local "insn".
9043         (schedule_block): Likewise for locals "prev_head", "head", "tail",
9044         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
9045         (set_priorities): Likewise for local "prev_head".
9046         (try_ready): Likewise for param "next".
9047         (fix_tick_ready): Likewise.
9048         (change_queue_index): Likewise.
9049         (sched_extend_ready_list): Update for change to field "vec" of
9050         struct ready_list.
9051         (generate_recovery_code): Strengthen param "insn" from rtx to
9052         rtx_insn *.
9053         (begin_speculative_block): Likewise.
9054         (create_check_block_twin): Likewise for param "insn" and locals
9055         "label", "check", "twin".  Introduce local "check_pat" to avoid
9056         "check" being used as a plain rtx before being used as an insn.
9057         (fix_recovery_deps): Add a checked cast to rtx_insn * when
9058         extracting elements from ready_list.
9059         (sched_remove_insn): Strengthen param "insn" from rtx to
9060         rtx_insn *.
9061         (sched_emit_insn): Likewise for return type.
9062         (ready_remove_first_dispatch): Likewise for return type and local
9063         "insn".
9065         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
9067         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
9068         const rtx_insn *.
9070         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
9071         from rtx to rtx_insn *.
9072         (add_dependence_list): Likewise for param "insn".  Add a checked
9073         cast.
9074         (add_dependence_list_and_free): Strengthen param "insn" from rtx
9075         to rtx_insn *.  Strengthen param "list_p" from rtx * to
9076         rtx_insn **.
9077         (chain_to_prev_insn): Strengthen param "insn" and locals
9078         "prec_nonnote", "i" from rtx to rtx_insn *.
9079         (flush_pending_lists): Likewise for param "insn".
9080         (cur_insn): Likewise for this variable.
9081         (haifa_start_insn): Add a checked cast.
9082         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
9083         (sched_analyze_reg): Likewise for param "insn".
9084         (sched_analyze_1): Likewise.
9085         (sched_analyze_2): Likewise.  Add checked casts.
9086         (sched_analyze_insn): Likewise.  Also for local "prev".
9087         (deps_analyze_insn): Likewise for param "insn".
9088         (sched_analyze): Likewise for params "head", "tail" and local "insn".
9089         (add_dependence_1): Likewise for params "insn", "elem".
9090         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
9091         (parse_add_or_inc): Likewise for param "insn".
9092         (find_inc): Likewise for local "inc_cand".
9093         (find_modifiable_mems): Likewise for params "head", "tail" and
9094         locals "insn", "next_tail".
9096         * sched-ebb.c (init_ready_list): Likewise for local "insn".
9097         (begin_schedule_ready): Likewise for param "insn".
9098         (begin_move_insn): Likewise for params "insn" and "last".
9099         (ebb_print_insn): Strengthen param "insn" from const_rtx to
9100         const rtx_insn *.
9101         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
9102         (ebb_contributes_to_priority): Likewise for params "next", "insn".
9103         (ebb_add_remove_insn): Likewise for param "insn".
9104         (advance_target_bb): Likewise.
9106         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
9107         "insn".
9108         (check_live): Likewise for param "insn".
9109         (init_ready_list): Likewise for local "insn".
9110         (can_schedule_ready_p): Likewise for param "insn".
9111         (begin_schedule_ready): Likewise.
9112         (new_ready): Likewise for param "next".
9113         (rgn_print_insn): Likewise for param "insn".
9114         (rgn_rank): Likewise for params "insn1", "insn2".
9115         (contributes_to_priority): Likewise for params "next", "insn".
9116         (rgn_insn_finishes_block_p): Likewise for param "insn".
9117         (add_branch_dependences): Likewise for params "head", "tail" and
9118         locals "insn", "last".
9119         (rgn_add_remove_insn): Likewise for param "insn".
9120         (advance_target_bb): Likewise.
9122         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
9123         const_rtx to const rtx_insn *.
9125         * sel-sched-dump.h (sel_print_insn): Likewise.
9127         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
9128         (deps_init_id): Likewise.
9130         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
9131         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
9132         rtx_insn **.
9134 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9136         * output.h (final_start_function): Strengthen param 1 from rtx to
9137         rtx_insn *.
9139         * final.c (final_start_function): Likewise, renaming back from
9140         "uncast_first" to "first", and dropping the checked cast from rtx
9141         to rtx_insn *.
9143 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9145         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
9146         * final.c (final): Likewise.  Rename param back from
9147         "uncast_first" to "first" and eliminate the checked cast from rtx
9148         to rtx_insn *.
9150 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9152         * output.h (shorten_branches): Strengthen param from rtx to
9153         rtx_insn *.
9155         * final.c (shorten_branches): Likewise, renaming param back from
9156         "uncast_first" to "first", and dropping the checked cast from rtx
9157         to rtx_insn *.
9159         * genattr.c (gen_attr): Likewise when writing out the prototype of
9160         shorten_branches.
9162 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9164         * sched-int.h (struct haifa_sched_info): Strengthen fields
9165         "prev_head" and "next_tail" from rtx to rtx_insn *.
9167 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9169         * rtl.h (rtx_jump_table_data::get_labels): New method.
9170         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
9171         with use of the new rtx_jump_table_data::get_labels method.
9172         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
9173         to rtx_jump_table_data *.  Simplify by using get_labels method.
9174         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
9175         a dyn_cast, introducing local "table", using it to replace
9176         label-lookup logic with a get_labels method call.
9177         (patch_jump_insn): Simplify using get_labels method.
9178         * dwarf2cfi.c (create_trace_edges): Likewise.
9179         * rtlanal.c (label_is_jump_target_p): Likewise.
9181 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9183         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
9184         to rtx_insn *.
9186         * emit-rtl.c (unshare_all_rtl_1): Likewise.
9187         (unshare_all_rtl_again): Likewise, also for local "p".
9189 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9191         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
9192         to rtx_insn *.
9193         * cfgrtl.c (delete_insn_and_edges): Likewise.
9195 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9197         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
9198         from rtx to rtx_insn *.
9200         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
9202 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9204         * function.c (thread_prologue_and_epilogue_insns): Likewise for
9205         locals "returnjump", "epilogue_end", "insn", "next".
9207         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
9208         "returnjump" from rtx * to rtx_insn **.
9209         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
9211 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9213         * basic-block.h (struct edge_def). Strengthen "r" within
9214         union edge_def_insns from rtx to rtx_insn *.
9216         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
9217         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
9218         rtx_insn *.
9219         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
9220         from rtx to rtx_insn *.
9221         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
9222         rtx_insn *.
9223         * postreload-gcse.c (reg_killed_on_edge): Likewise.
9224         (reg_used_on_edge): Likewise.
9225         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
9226         (gt_pch_nx): New overload for rtx_insn *&.
9227         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
9228         from rtx to rtx_insn *.
9230 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9232         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
9233         from rtx to rtx_insn *.
9234         (BB_FOOTER): Replace function with access macro.
9235         (SET_BB_FOOTER): Delete.
9237         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
9238         with BB_FOOTER.
9239         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9240         (emit_barrier_after_bb): Likewise.
9241         (record_effective_endpoints): Likewise.
9242         (relink_block_chain): Likewise.
9243         (fixup_fallthru_exit_predecessor): Likewise.
9244         (cfg_layout_duplicate_bb): Likewise.
9245         (cfg_layout_split_block): Likewise.
9246         (cfg_layout_delete_block): Likewise.
9247         (cfg_layout_merge_blocks): Likewise.
9248         (BB_FOOTER): Delete function.
9249         (SET_BB_FOOTER): Delete function.
9250         * combine.c (update_cfg_for_uncondjump): Replace uses of
9251         SET_BB_FOOTER with BB_FOOTER.
9253 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9255         * except.h (struct eh_landing_pad_d): Strengthen field
9256         "landing_pad" from rtx to rtx_code_label *.
9258         * except.c (sjlj_emit_dispatch_table): Likewise for param
9259         "dispatch_label"
9260         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
9262 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9264         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
9265         first param from rtx to rtx_insn *.
9266         * config/xtensa/xtensa.c (struct machine_function): Likewise for
9267         field "set_frame_ptr_insn".
9268         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
9269         "csend" from rtx to rtx_code_label *.
9270         (xtensa_expand_atomic): Likewise for local "csloop".
9271         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
9272         rtx_insn *.
9273         (xtensa_call_tls_desc): Likewise for return type and locals
9274         "call_insn", "insns".
9275         (xtensa_legitimize_tls_address): Likewise for local "insns".
9276         (xtensa_expand_prologue): Likewise for locals "insn", "first".
9278 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9280         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
9281         first param from rtx to rtx_insn *.
9282         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
9283         "insn".
9285 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9287         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
9288         Strengthen param 1 from rtx to rtx_insn *.
9289         (tilepro_output_cbranch): Likewise.
9290         (tilepro_adjust_insn_length): Likewise.
9291         (tilepro_final_prescan_insn): Likewise for sole param.
9293         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
9294         Likewise for local "last".
9295         (cbranch_predicted_p): Likewise for param "insn".
9296         (tilepro_output_simple_cbranch_with_opcode): Likewise.
9297         (tilepro_output_cbranch_with_opcode): Likewise.
9298         (tilepro_output_cbranch): Likewise.
9299         (frame_emit_load): Likewise for return type and locals "seq",
9300         "insn".
9301         (emit_sp_adjust): Likewise for return type and local "insn".
9302         (tilepro_expand_epilogue): Likewise for locals "last_insn",
9303         "insn".
9304         (tilepro_adjust_insn_length): Likewise for param "insn".
9305         (next_insn_to_bundle): Likewise for return type and params
9306         "r", "end".
9307         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
9308         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
9309         local "new_insns".
9310         (match_addli_pcrel): Likewise for param "insn".
9311         (replace_addli_pcrel): Likewise.
9312         (match_auli_pcrel): Likewise.
9313         (replace_auli_pcrel): Likewise.
9314         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
9315         "next_insn".
9316         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
9317         "queue", "next_queue", "prev".
9318         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
9319         (tilepro_final_prescan_insn): Likewise for param "insn".
9321 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9323         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
9324         Strengthen param 1 from rtx to rtx_insn *.
9325         (tilegx_output_cbranch): Likewise.
9326         (tilegx_adjust_insn_length): Likewise.
9327         (tilegx_final_prescan_insn): Likewise for sole param.
9329         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
9330         or local "last".
9331         (cbranch_predicted_p): Likewise for param "insn".
9332         (tilegx_output_simple_cbranch_with_opcode): Likewise.
9333         (tilegx_output_cbranch_with_opcode): Likewise.
9334         (tilegx_output_cbranch): Likewise.
9335         (frame_emit_load): Likewise for return type.
9336         (set_frame_related_p): Likewise for locals "seq", "insn".
9337         (emit_sp_adjust): Likewise for return type, and for local "insn".
9338         Introduce local "pat" for use in place of "insn" where the latter
9339         isn't an instruction.
9340         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
9341         from rtx to rtx_insn *.
9342         (tilegx_adjust_insn_length): Likewise for param "insn".
9343         (next_insn_to_bundle): Likewise for return type and params "r" and
9344         "end".
9345         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
9346         "end".
9347         (replace_insns): Likewise for params "old_insn", "new_insns".
9348         (replace_mov_pcrel_step1): Likewise for param "insn" and local
9349         "new_insns".
9350         (replace_mov_pcrel_step2): Likewise.
9351         (replace_mov_pcrel_step3): Likewise.
9352         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
9353         "next_insn".
9354         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
9355         "queue", "next_queue", "prev".
9356         (tilegx_output_mi_thunk): Likewise for local "insn".
9357         (tilegx_final_prescan_insn): Likewise for param "insn".
9359 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9361         * config/spu/spu.c (frame_emit_store): Strengthen return type from
9362         rtx to rtx_insn *.
9363         (frame_emit_load): Likewise.
9364         (frame_emit_add_imm): Likewise, also for local "insn".
9365         (spu_expand_prologue): Likewise for local "insn".
9366         (struct spu_bb_info): Likewise for field "prop_jump".
9367         (emit_nop_for_insn): Likewise for param "insn" and local
9368         "new_insn".
9369         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
9370         "hbr_insn".
9371         (spu_emit_branch_hint): Likewise for params "before", "branch" and
9372         locals "hint", "insn".
9373         (get_branch_target): Likewise for param "branch".
9374         (insn_clobbers_hbr): Likewise for param "insn".
9375         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
9376         locals "insn", "before_4", "before_16".
9377         (insert_hbrp): Likewise for local "insn".
9378         (spu_machine_dependent_reorg): Likewise for locals "branch",
9379         "insn", "next", "bbend".
9380         (uses_ls_unit): Likewise for param "insn".
9381         (get_pipe): Likewise.
9382         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
9383         introducing a checked cast.
9384         (spu_sched_adjust_cost): Likewise for params "insn" and
9385         "dep_insn".
9386         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
9387         (spu_sms_res_mii): Likewise.
9389 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9391         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
9392         from rtx to rtx_insn *.
9393         (output_cbranch): Likewise for param 6.
9394         (output_return): Likewise for param 1.
9395         (output_sibcall): Likewise.
9396         (output_v8plus_shift): Likewise.
9397         (output_v8plus_mult): Likewise.
9398         (output_v9branch): Likewise for param 7.
9399         (output_cbcond):  Likewise for param 3.
9401         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
9402         for local "insn".
9403         (sparc_legitimize_pic_address): Likewise.
9404         (sparc_emit_call_insn): Likewise.
9405         (emit_save_or_restore_regs): Likewise.
9406         (emit_window_save): Likewise for return type and local "insn".
9407         (sparc_expand_prologue): Likewise for local "insn".
9408         (sparc_flat_expand_prologue): Likewise.
9409         (output_return): Likewise for param "insn".
9410         (output_sibcall): Likewise for param "insn" and local "delay".
9411         (output_ubranch): Likewise for param "insn".
9412         (output_cbranch): Likewise.
9413         (output_cbcond): Likewise.
9414         (output_v9branch): Likewise.
9415         (output_v8plus_shift): Likewise.
9416         (sparc_output_mi_thunk): Likewise for local "insn".
9417         (get_some_local_dynamic_name): Likewise.
9418         (output_v8plus_mult): Likewise for param "insn".
9420 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9422         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
9423         from rtx to rtx_insn *.
9424         (output_branchy_insn): Likewise for param 3.
9425         (output_far_jump): Likewise for param 1.
9426         (final_prescan_insn): Likewise.
9427         (sh_insn_length_adjustment): Likewise for sole param.
9429         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
9430         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
9431         rtx_code_label *.
9432         (sh_emit_compare_and_set): Likewise for local "lab".
9433         (output_far_jump): Strengthen param "insn" and local "prev" from
9434         rtx to rtx_insn *.
9435         (output_branchy_insn): Likewise for param "insn" and local
9436         "next_insn".
9437         (output_ieee_ccmpeq): Likewise for param "insn".
9438         (struct label_ref_list_d): Strengthen field "label" from rtx to
9439         rtx_code_label *.
9440         (pool_node): Likewise.
9441         (pool_window_label): Likewise for this global.
9442         (add_constant): Likewise for return type and locals "lab", "new_rtx".
9443         (dump_table): Strengthen params "start", "barrier" and local
9444         "scan" from rtx to rtx_insn *.
9445         (broken_move): Likewise for param "insn".
9446         (untangle_mova): Likewise for params "first_mova" and "new_mova".
9447         Strengthen param "first_mova" from rtx * to rtx_insn **.
9448         (mova_p): Likewise for param "insn".
9449         (fixup_mova): Likewise for param "mova".
9450         (find_barrier): Likewise for return type, params "mova" and
9451         "from", and locals "barrier_before_mova", "found_barrier",
9452         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
9453         "label" from rtx to rtx_code_label *.
9454         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
9455         rtx to rtx_insn *.
9456         (sh_reorg): Likewise for locals "link", "scan", "barrier".
9457         (split_branches): Likewise for param "first" and local "insn".
9458         (final_prescan_insn): Likewise for param "insn".
9459         (sequence_insn_p): Likewise for locals "prev", "next".
9460         (sh_insn_length_adjustment): Likewise for param "insn".
9461         (sh_can_redirect_branch): Likewise for local "insn".
9462         (find_r0_life_regions): Likewise for locals "end", "insn".
9463         (sh_output_mi_thunk): Likewise for local "insns".
9465 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9467         * config/score/score.c (score_output_mi_thunk): Strengthen local
9468         "insn" from rtx to rtx_insn *.
9469         (score_prologue): Likewise.
9471 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9473         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
9474         1 from rtx to rtx_insn *.
9475         (s390_emit_jump): Likewise for return type.
9476         (s390_emit_call): Likewise.
9477         (s390_load_got): Likewise.
9479         * config/s390/s390.c (last_scheduled_insn): Likewise for this
9480         variable.
9481         (s390_match_ccmode): Likewise for param "insn".
9482         (s390_emit_jump): Likewise for return type.
9483         (s390_split_branches): Likewise for local "label".
9484         (struct constant): Strengthen field "label" from rtx to
9485         rtx_code_label *.
9486         (struct constant_pool): Likewise for field "label".  Strengthen
9487         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
9488         rtx_insn *.
9489         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
9490         insns.
9491         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
9492         (s390_end_pool): Likewise.
9493         (s390_dump_pool): Likewise for local "insn".
9494         (s390_mainpool_start): Likewise.
9495         (s390_chunkify_start): Likewise.
9496         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
9497         with insns.  Strengthen locals "label", "jump", "barrier", "next",
9498         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
9499         (s390_chunkify_finish): Strengthen local "insn" from rtx to
9500         rtx_insn *.
9501         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
9502         "jump", "label", "next_insn".
9503         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
9504         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
9505         "tbegin_insn".
9506         (s390_load_got): Likewise for return type and local "insns".
9507         (s390_save_gprs_to_fprs): Likewise for local "insn".
9508         (s390_restore_gprs_from_fprs): Likewise.
9509         (pass_s390_early_mach::execute): Likewise.
9510         (s390_emit_prologue): Likewise for local "insns".
9511         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
9512         rtx_code_label *.
9513         (s390_emit_call): Strengthen return type and local "insn" from
9514         rtx to rtx_insn *.
9515         (s390_emit_tpf_eh_return): Likewise for local "insn".
9516         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
9517         "next_insn", introducing locals "s_pat", "rpat" to allow this.
9518         (s390_fix_long_loop_prediction): Likewise for param "insn" and
9519         local "cur_insn".
9520         (s390_non_addr_reg_read_p): Likewise for param "insn".
9521         (find_cond_jump): Likewise for return type and param "insn".
9522         (s390_swap_cmp): Likewise for param "insn".
9523         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
9524         "prev_insn", "next_insn".
9525         (s390_reorg): Likewise for locals "insn", "target".
9526         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
9527         (s390_sched_variable_issue): For now, rename param "insn" to
9528         "uncast_insn", introducing a checked cast.
9529         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
9530         insn.
9531         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
9532         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
9534 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9536         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
9537         param from rtx to rtx_insn *.
9538         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
9540 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9542         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
9543         4 from rtx to rtx_insn *.
9544         (rs6000_final_prescan_insn): Likewise for first param.
9545         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
9546         local "insn".
9547         (rs6000_get_some_local_dynamic_name): Likewise.
9548         (output_cbranch): Likewise for param "insn".
9549         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
9550         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
9551         (rs6000_emit_allocate_stack): Likewise for local "insn".
9552         (load_cr_save): Likewise.
9553         (restore_saved_cr): Likewise.
9554         (restore_saved_lr): Likewise.
9555         (emit_cfa_restores): Likewise.
9556         (rs6000_output_function_epilogue): Likewise for locals "insn" and
9557         "deleted_debug_label".
9558         (rs6000_output_mi_thunk): Likewise for local "insn".
9559         (rs6000_final_prescan_insn): Likewise for param "insn".
9561 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9563         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
9564         Strengthen param "insn" from rtx to rtx_insn *.
9565         * config/picochip/picochip.c (picochip_current_prescan_insn):
9566         Likewise for this variable.
9567         (picochip_final_prescan_insn): Likewise for param "insn".
9569 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9571         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
9572         from rtx to rtx_insn *.
9573         (pa_output_indirect_call): Likewise.
9574         (pa_adjust_insn_length): Likewise.
9575         (pa_attr_length_millicode_call): Likewise.
9576         (pa_attr_length_call): Likewise.
9577         (pa_attr_length_indirect_call): Likewise.
9579         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
9580         "insn".
9581         (pa_attr_length_millicode_call): Likewise.
9582         (pa_attr_length_call): Likewise.
9583         (pa_output_call): Likewise.
9584         (pa_attr_length_indirect_call): Likewise.
9585         (pa_output_indirect_call): Likewise.
9587 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9589         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
9590         Strengthen first param from rtx to rtx_insn *.
9591         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
9592         param "insn".
9594 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9596         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
9597         type from rtx to rtx_insn *.
9598         (mips_expand_call): Likewise.
9599         (mips_adjust_insn_length): Likewise for first param.
9600         (mips_output_conditional_branch): Likewise.
9601         (mips_output_order_conditional_branch): Likewise.
9602         (mips_final_prescan_insn): Likewise.
9604         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
9605         rtx_insn * for the SEQUENCE case.
9606         (SEQ_END): Likewise.
9607         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
9608         (mips_emit_call_insn): Likewise, also for local "insn".
9609         (mips16_gp_pseudo_reg): Likewise for local "scan".
9610         (mips16_build_call_stub): Likewise for return type and for local
9611         "insn".  Introduce a new local "pattern" so that "insn" can indeed
9612         be an insn.
9613         (mips_expand_call): Strengthen return type and local "insn" from
9614         rtx to rtx_insn *.
9615         (mips_block_move_loop): Strengthen local "label" from rtx to
9616         rtx_code_label *.
9617         (mips_expand_synci_loop): Likewise for locals "label",
9618         "end_label".
9619         (mips_set_frame_expr): Strengthen local "insn" from rtx to
9620         rtx_insn *.
9621         (mips16e_collect_argument_saves): Likewise for locals "insn",
9622         "next".
9623         (mips_find_gp_ref): Likewise for param of callback for "pred"
9624         param, and for local "insn".
9625         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
9626         (mips_insn_has_flexible_gp_ref_p): Likewise.
9627         (mips_epilogue_emit_cfa_restores): Likewise for return type and
9628         local "insn".
9629         (mips_epilogue_set_cfa): Likewise for local "insn".
9630         (mips_expand_epilogue): Likewise.
9631         (mips_adjust_insn_length): Likewise for param "insn".
9632         (mips_output_conditional_branch): Likewise.
9633         (mips_output_order_conditional_branch): Likewise.
9634         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
9635         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
9636         "falu2_turn_enabled_insn".
9637         (mips_builtin_branch_and_move): Strengthen locals "true_label",
9638         "done_label" from rtx to rtx_code_label *.
9639         (struct mips16_constant): Likewise for field "label".
9640         (mips16_add_constant): Likewise for return type.
9641         (mips16_emit_constants_1): Strengthen return type and param "insn"
9642         from rtx to rtx_insn *.
9643         (mips16_emit_constants): Likewise for param "insn".
9644         (mips16_insn_length): Likewise.
9645         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
9646         to rtx_code_label *.
9647         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
9648         from rtx to rtx_insn *.
9649         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
9650         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
9651         (r10k_simplify_address): Strengthen param "insn" and local
9652         "def_insn" from rtx to rtx_insn *.
9653         (r10k_safe_address_p): Strengthen param "insn" from rtx to
9654         rtx_insn *.
9655         (r10k_needs_protection_p_1): Update target type of cast of data
9656         from to rtx to rtx_insn *.
9657         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
9658         rtx * to rtx_insn **.
9659         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
9660         rtx_insn *.
9661         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
9662         (mips_call_expr_from_insn): Likewise for param "insn".
9663         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
9664         (mips_find_pic_call_symbol): Likewise for param "insn".
9665         (mips_annotate_pic_calls): Likewise for local "insn".
9666         (mips_sim_insn): Likewise for this variable.
9667         (struct mips_sim): Likewise for field "insn" within elements of
9668         last_set array.
9669         (mips_sim_wait_reg): Likewise for param "insn".
9670         (mips_sim_wait_regs): Likewise.
9671         (mips_sim_wait_units): Likewise.
9672         (mips_sim_wait_insn): Likewise.
9673         (mips_sim_issue_insn): Likewise.
9674         (mips_sim_finish_insn): Likewise.
9675         (mips_seq_time): Likewise for param "seq" and local "insn".
9676         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
9677         locals "first", "second".
9678         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
9679         "last", "last2", "next".
9680         (mips_avoid_hazard): Likewise for params "after", "insn".
9681         (mips_reorg_process_insns): Likewise for locals "insn",
9682         "last_insn", "subinsn", "next_insn".
9683         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
9684         (mips16_split_long_branches): Likewise for locals "insn" "jump",
9685         "jump_sequence".
9686         (mips_output_mi_thunk): Likewise for local "insn".
9687         (mips_final_prescan_insn): Likewise for param "insn".
9689 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9691         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
9692         Strengthen return type and local "insns" from rtx to rtx_insn *.
9693         (microblaze_legitimize_tls_address): Likewise for local "insns".
9694         (microblaze_block_move_loop): Strengthen local "label" from rtx
9695         to rtx_code_label *.
9696         (microblaze_expand_prologue): Strengthen two locals named "insn"
9697         from rtx to rtx_insn *.
9698         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
9699         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
9700         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
9701         to rtx_code_label *.
9703 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9705         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
9706         param from rtx to rtx_insn *.
9707         (mep_reuse_lo): Likewise for third param.
9708         (mep_use_post_modify_p): Likewise for first param.
9709         (mep_core_address_length): Likewise.
9710         (mep_cop_address_length): Likewise.
9711         (mep_final_prescan_insn): Likewise.
9712         (mep_store_data_bypass_p): Likewise for both params.
9713         (mep_mul_hilo_bypass_p): Likewise.
9714         (mep_ipipe_ldc_p): Likewise for param.
9716         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
9717         (mep_rewrite_mult): Likewise.
9718         (mep_rewrite_mulsi3): Likewise.
9719         (mep_rewrite_maddsi3): Likewise.
9720         (mep_reuse_lo_p_1): Likewise.
9721         (mep_reuse_lo_p): Likewise.
9722         (mep_frame_expr): Likewise.
9723         (mep_make_parallel): Likewise for both params.
9724         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
9725         local "insn".
9726         (mep_use_post_modify_p): Likewise for param "insn".
9727         (mep_core_address_length): Likewise.
9728         (mep_cop_address_length): Likewise.
9729         (mep_reg_set_in_function): Likewise for local "insn".
9730         (mep_asm_without_operands_p): Likewise.
9731         (F): Likewise for return type and param "x".
9732         (add_constant): Likewise for local "insn".
9733         (maybe_dead_move): Likewise for return type and local "insn".
9734         (mep_expand_prologue): Likewise for local "insn".
9735         (mep_final_prescan_insn): Likewise for param "insn".
9736         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
9737         "next", "follow", "x".
9738         (mep_insert_repeat_label_last): Likewise for return type, param
9739         "last_insn", and locals "next", "prev".  Strengthen param "label"
9740         from rtx to rtx_code_label *.
9741         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
9742         rtx_insn *.
9743         (struct mep_doloop_end): Likewise for fields "insn" and
9744         "fallthrough".
9745         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
9746         Strengthen local "repeat_label" from rtx to rtx_code_label *.
9747         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
9748         rtx_insn *.
9749         (mep_invert_branch): Likewise for params "insn" and "after".
9750         (mep_reorg_erepeat): Likewise for param "insns" and locals
9751         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
9752         "l" from rtx to rtx_code_label *.
9753         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
9754         from rtx to rtx_insn *.
9755         (mep_reorg_addcombine): Likewise for param "insns" and locals
9756         "i", "n".
9757         (add_sp_insn_p): Likewise for param "insn".
9758         (mep_reorg_noframe): Likewise for param "insns" and locals
9759         "start_frame_insn", "end_frame_insn", "next".
9760         (mep_reorg): Likewise for local "insns".
9761         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
9762         cast.
9763         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
9764         (mep_mul_hilo_bypass_p): Likewise.
9765         (mep_ipipe_ldc_p): Likewise for param "insn".
9766         (mep_make_bundle): Likewise for return type, param "cop" and local
9767         "insn", splitting out the latter into a new local "seq" for when it
9768         is a SEQUENCE rather than an insn.
9769         (core_insn_p): Likewise for param "insn".
9770         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
9771         "last", "first", "note", "prev", "core_insn".
9773 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9775         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
9776         rtx to rtx_insn *.
9777         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
9778         (m68k_final_prescan_insn): Likewise for first param.
9780         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
9781         (m68k_set_frame_related): Likewise for param "insn".
9782         (output_btst): Likewise for param "insn".
9783         (m68k_final_prescan_insn): Likewise.
9784         (m68k_move_to_reg): Likewise for local "insn".
9785         (m68k_call_tls_get_addr): Likewise for local "insns".
9786         (m68k_call_m68k_read_tp): Likewise.
9787         (strict_low_part_peephole_ok): Likewise for param "first_insn".
9788         (m68k_output_mi_thunk): Likewise for local "insn".
9790 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9792         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
9793         first param from rtx to rtx_insn *.
9794         (iq2000_adjust_insn_length): Likewise.
9795         (iq2000_output_conditional_branch): Likewise.
9796         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
9797         "insn" and local "nop_insn".
9798         (iq2000_annotate_frame_insn): Likewise for param "insn".
9799         (iq2000_expand_prologue): Likewise for both locals "insn".
9800         (iq2000_adjust_insn_length): Likewise for param "insn".
9801         (iq2000_output_conditional_branch): Likewise.
9803 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9805         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
9806         "insns" from rtx to rtx_insn *.
9807         (ia64_emit_cond_move): Likewise for locals "insn", "first".
9808         (struct spill_fill_data): Likewise for field "init_after" and for
9809         elements of array field "prev_insn".
9810         (spill_restore_mem): Likewise for locals "insn", "first".
9811         (do_spill): Likewise for local "insn".
9812         (do_restore): Likewise.
9813         (ia64_expand_prologue): Likewise.
9814         (ia64_expand_epilogue): Likewise.
9815         (emit_insn_group_barriers): Likewise for locals "insn",
9816         "last_label".
9817         (emit_all_insn_group_barriers): Likewise for locals "insn",
9818         "last".
9819         (dfa_stop_insn): Likewise for this global.
9820         (dfa_pre_cycle_insn): Likewise.
9821         (ia64_nop): Likewise.
9822         (final_emit_insn_group_barriers): Likewise for locals "insn",
9823         "last".
9824         (emit_predicate_relation_info): Likewise for locals "head", "n",
9825         "insn", "b", "a".
9826         (ia64_reorg): Likewise for local "insn".
9827         (ia64_output_mi_thunk): Likewise.
9828         (expand_vec_perm_interleave_2): Likewise for local "seq".
9830 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9832         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
9833         param 1 "insn" from rtx to rtx_insn *.
9834         (ix86_use_lea_for_mov): Likewise.
9835         (ix86_avoid_lea_for_addr): Likewise.
9836         (ix86_split_lea_for_addr): Likewise.
9837         (ix86_lea_for_add_ok): Likewise.
9838         (ix86_output_call_insn): Likewise.
9840         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
9841         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
9842         (ix86_output_function_epilogue): Likewise for locals "insn",
9843         "deleted_debug_label".
9844         (legitimize_tls_address): Likewise for local "insn".
9845         (get_some_local_dynamic_name): Likewise.
9846         (increase_distance): Likewise for params "prev", "next".
9847         (distance_non_agu_define_in_bb): Likewise for params "insn",
9848         "start" and locals "prev", "next".
9849         (distance_non_agu_define): Likewise for param "insn".
9850         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
9851         locals "next", "prev".
9852         (distance_agu_use): Likewise for param "insn".
9853         (ix86_lea_outperforms): Likewise.
9854         (ix86_ok_to_clobber_flags): Likewise.
9855         (ix86_avoid_lea_for_add): Likewise.
9856         (ix86_use_lea_for_mov): Likewise.
9857         (ix86_avoid_lea_for_addr): Likewise.
9858         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
9859         (ix86_split_lea_for_addr): Likewise for param "insn".
9860         (ix86_lea_for_add_ok): Likewise for param "insn".
9861         (ix86_expand_carry_flag_compare): Likewise for local
9862         "compare_seq".
9863         (ix86_expand_int_movcc): Likewise.
9864         (ix86_output_call_insn): Likewise for param "insn".
9865         (ix86_output_call_insn): Likewise for local "i".
9866         (x86_output_mi_thunk): Introduce local "insn", using it in place
9867         of "tmp" when dealing with insns.
9868         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
9869         "start".
9870         (ix86_pad_returns): Likewise for locals "ret", "prev".
9871         (ix86_count_insn_bb): Likewise for local "insn".
9872         (ix86_pad_short_function): Likewise for locals "ret", "insn".
9873         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
9874         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
9875         (expand_vec_perm_interleave2): Likewise for local "seq".
9876         (expand_vec_perm_vperm2f128_vblend): Likewise.
9877         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
9878         call to for_each_rtx with for_each_rtx_in_insn.
9880 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9882         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
9883         "label" from rtx to rtx_code_label *.
9884         (ix86_expand_prologue): Likewise.
9885         (ix86_expand_split_stack_prologue): Likewise for locals "label",
9886         "varargs_label".
9887         (ix86_split_idivmod): Likewise for locals "end_label" and
9888         "qimode_label".
9889         (ix86_expand_branch): Likewise for local "label2".
9890         (ix86_expand_aligntest): Likewise for return type and local "label".
9891         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
9892         "top_label".
9893         (expand_movmem_epilogue): Likewise for the various locals named
9894         "label".
9895         (expand_setmem_epilogue): Likewise.
9896         (expand_small_movmem_or_setmem): Likewise for local "label".
9897         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
9898         Strengthen param "done_label" from rtx * to rtx_code_label **.
9899         Strengthen locals "loop_label" and "label" from rtx to
9900         rtx_code_label *.
9901         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
9902         Likewise for locals "loop_label", "label".
9903         (ix86_expand_set_or_movmem): Likewise for locals "label",
9904         "jump_around_label", "hot_label".
9905         (ix86_expand_strlensi_unroll_1): Likewise for locals
9906         "align_2_label", align_3_label", "align_4_label", "end_0_label",
9907         "end_2_label".
9908         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
9909         (void ix86_emit_i387_log1p): Likewise for locals "label1",
9910         "label2", "jump_label".
9911         (ix86_expand_sse_compare_and_jump): Likewise for return type and
9912         local "label".
9913         (ix86_expand_lfloorceil): Likewise for local "label".
9914         (ix86_expand_rint): Likewise.
9915         (ix86_expand_floorceildf_32): Likewise.
9916         (ix86_expand_floorceil): Likewise.
9917         (ix86_expand_rounddf_32): Likewise.
9918         (ix86_expand_trunc): Likewise.
9919         (ix86_expand_truncdf_32): Likewise.
9920         (ix86_expand_round): Likewise.
9922 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9924         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
9925         first param from rtx to rtx_insn *.
9926         (h8300_insn_length_from_table): Likewise.
9927         * config/h8300/h8300.c (F): Likewise for return type and param
9928         "x".
9929         (Fpa): Add a checked cast to rtx_insn *.
9930         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
9931         rtx_insn *.
9932         (final_prescan_insn): Likewise for param "insn".
9933         (h8300_binary_length): Likewise.
9934         (h8300_insn_length_from_table): Likewise.
9936 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9938         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
9939         Strengthen first param "insn" from rtx to rtx_insn *.
9941         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
9942         Likewise.
9943         (frame_insn): Likewise for return type.  Introduce local "insn"
9944         for use in place of local "x" for use as an rtx_insn *.
9945         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
9946         (epiphany_expand_prologue): Likewise for local "insn".
9947         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
9948         * config/epiphany/resolve-sw-modes.c
9949         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
9950         "seq".
9952 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9954         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
9955         param from rtx to rtx_insn *.
9956         (c6x_final_prescan_insn): Likewise for first param.
9958         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
9959         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
9960         (c6x_expand_compare): Strengthen local "insns" from rtx to
9961         rtx_insn *.
9962         (c6x_get_unit_specifier): Likewise for param "insn".
9963         (c6x_print_unit_specifier_field): Likewise.
9964         (c6x_final_prescan_insn): Likewise.
9965         (emit_add_sp_const): Likewise for local "insn".
9966         (c6x_expand_prologue): Likewise.
9968 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9970         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
9971         param 1 from rtx to rtx_insn *.
9972         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
9973         the various locals named "insn".
9974         (expand_epilogue_reg_restore): Likewise.
9975         (frame_related_constant_load): Likewise.
9976         (add_to_reg): Likewise.
9977         (emit_link_insn): Likewise.
9978         (do_link): Likewise.
9979         (expand_interrupt_handler_prologue): Likewise.
9980         (branch_dest): Likewise for param "branch".
9981         (asm_conditional_branch): Likewise for param "insn".
9982         (gen_one_bundle): Likewise for elements of param "slot" and local
9983         "t".
9984         (bfin_gen_bundles): Likewise for locals "insn", "next" and
9985         elements of local "slot".
9986         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
9987         "queue", "next_queue", "prev".
9988         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
9989         (add_sched_insns_for_speculation): Likewise for local "insn".
9991 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9993         * config/avr/avr-protos.h (output_movqi): Strengthen first param
9994         from rtx to rtx_insn *.
9995         (output_movhi): Likewise.
9996         (output_movsisf): Likewise.
9997         (avr_out_tstsi): Likewise.
9998         (avr_out_tsthi): Likewise.
9999         (avr_out_tstpsi): Likewise.
10000         (avr_out_compare): Likewise.
10001         (avr_out_compare64): Likewise.
10002         (avr_out_movpsi): Likewise.
10003         (ashlqi3_out): Likewise.
10004         (ashlhi3_out): Likewise.
10005         (ashlsi3_out): Likewise.
10006         (ashrqi3_out): Likewise.
10007         (ashrhi3_out): Likewise.
10008         (ashrsi3_out): Likewise.
10009         (lshrqi3_out): Likewise.
10010         (lshrhi3_out): Likewise.
10011         (lshrsi3_out): Likewise.
10012         (avr_out_ashlpsi3): Likewise.
10013         (avr_out_ashrpsi3): Likewise.
10014         (avr_out_lshrpsi3): Likewise.
10015         (avr_out_fract): Likewise.
10016         (avr_out_sbxx_branch): Likewise.
10017         (avr_out_round): Likewise.
10018         (avr_out_xload): Likewise.
10019         (avr_out_movmem): Likewise.
10020         (adjust_insn_length): Likewise.
10021         (avr_out_lpm): Likewise.
10022         (reg_unused_after): Likewise.
10023         (_reg_unused_after): Likewise.
10024         (avr_jump_mode): Likewise for second param.
10025         (jump_over_one_insn): Likewise for first param.
10026         (avr_final_prescan_insn): Likewise.
10027         (out_shift_with_cnt): Likewise for second param.
10029         * config/avr/avr.c (get_sequence_length): Likewise for param
10030         "insns" and local "insn".
10031         (emit_push_byte): Likewise for local "insn".
10032         (emit_push_sfr): Likewise.
10033         (avr_prologue_setup_frame): Likewise for locals "insn",
10034         "fp_plus_insns", "sp_plus_insns".
10035         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
10036         "sp_plus_insns".
10037         (avr_jump_mode): Likewise for param "insn".
10038         (avr_final_prescan_insn): Likewise.
10039         (avr_find_unused_d_reg): Likewise.
10040         (avr_out_lpm_no_lpmx): Likewise.
10041         (avr_out_lpm): Likewise.
10042         (avr_out_xload): Likewise.
10043         (output_movqi): Likewise.
10044         (output_movhi): Likewise.
10045         (out_movqi_r_mr): Likewise.
10046         (out_movhi_r_mr): Likewise.
10047         (out_movsi_r_mr): Likewise.
10048         (out_movsi_mr_r): Likewise.
10049         (output_movsisf): Likewise.
10050         (avr_out_load_psi): Likewise.
10051         (avr_out_store_psi): Likewise.
10052         (avr_out_movpsi): Likewise.
10053         (out_movqi_mr_r): Likewise.
10054         (avr_out_movhi_mr_r_xmega): Likewise.
10055         (out_movhi_mr_r): Likewise.
10056         (compare_condition): Likewise for param "insn" and local "next".
10057         (compare_sign_p): Likewise for param "insn".
10058         (compare_diff_p): Likewise.
10059         (compare_eq_p): Likewise.
10060         (avr_out_compare): Likewise.
10061         (avr_out_compare64): Likewise.
10062         (avr_out_tsthi): Likewise.
10063         (avr_out_tstpsi): Likewise.
10064         (avr_out_tstsi): Likewise.
10065         (out_shift_with_cnt): Likewise.
10066         (ashlqi3_out): Likewise.
10067         (ashlhi3_out): Likewise.
10068         (avr_out_ashlpsi3): Likewise.
10069         (ashlsi3_out): Likewise.
10070         (ashrqi3_out): Likewise.
10071         (ashrhi3_out): Likewise.
10072         (avr_out_ashrpsi3): Likewise.
10073         (ashrsi3_out): Likewise.
10074         (lshrqi3_out): Likewise.
10075         (lshrhi3_out): Likewise.
10076         (avr_out_lshrpsi3): Likewise.
10077         (lshrsi3_out): Likewise.
10078         (avr_out_fract): Likewise.
10079         (avr_out_round): Likewise.
10080         (avr_adjust_insn_length): Likewise.
10081         (reg_unused_after): Likewise.
10082         (_reg_unused_after): Likewise.
10083         (avr_compare_pattern): Likewise.
10084         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
10085         and locals "branch1", "branch2", "insn2", "jump".
10086         (avr_reorg): Likewise for local "insn".
10087         (avr_2word_insn_p): Likewise for param "insn".
10088         (jump_over_one_insn_p): Likewise.
10089         (avr_out_sbxx_branch): Likewise.
10090         (avr_out_movmem): Likewise.
10092 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10094         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
10095         param from rtx to rtx_insn *.
10096         (thumb1_final_prescan_insn): Likewise.
10097         (thumb2_final_prescan_insn): Likewise.
10099         * config/arm/arm.c (emit_set_insn): Strengthen return type from
10100         rtx to rtx_insn *.
10101         (struct minipool_node): Likewise for field "insn".
10102         (dump_minipool): Likewise for param "scan".
10103         (create_fix_barrier): Likewise for local "from".  Strengthen local
10104         "label" from rtx to rtx_code_label *.
10105         (push_minipool_barrier): Strengthen param "insn" from rtx to
10106         rtx_insn *.
10107         (push_minipool_fix): Likewise.
10108         (note_invalid_constants): Likewise.
10109         (thumb2_reorg): Likewise for local "insn".
10110         (arm_reorg): Likewise.
10111         (thumb2_final_prescan_insn): Likewise for param
10112         "insn" and local "first_insn".
10113         (arm_final_prescan_insn): Likewise for param "insn" and locals
10114         "start_insn", "this_insn".
10115         (arm_debugger_arg_offset): Likewise for param "insn".
10116         (thumb1_emit_multi_reg_push): Likewise for return type and local
10117         "insn".
10118         (thumb1_final_prescan_insn): Likewise for param "insn".
10119         (thumb_far_jump_used_p): Likewise for local "insn".
10120         (thumb1_expand_prologue): Likewise.
10121         (arm_expand_epilogue_apcs_frame): Likewise.
10122         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
10123         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
10124         from rtx to rtx_code_label *.
10125         (arm_split_atomic_op): Likewise for local "label".
10126         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
10128 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10130         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
10131         first param from rtx to rtx_insn *.
10132         (arc_verify_short): Likewise.
10133         (arc_short_long): Likewise.
10134         (arc_need_delay): Likewise.
10136         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
10137         "target_insn".
10138         (arc_ccfsm_advance): Likewise for param "insn" and locals
10139         "start_insn", "this_insn".
10140         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
10141         (arc_ccfsm_post_advance): Likewise for param "insn".
10142         (arc_next_active_insn): Likewise for return type and param "insn".
10143         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
10144         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
10145         (output_short_suffix): Likewise for local "insn".
10146         (arc_final_prescan_insn): Likewise for param "insn".  Remove
10147         now-redundant checked cast.
10148         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
10149         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
10150         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
10151         for use where lc_set became an insn.
10152         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
10153         rtx to rtx_insn *.
10154         (arc_get_insn_variants): Likewise for local "prev".
10155         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
10156         "next".
10157         (arc_predicate_delay_insns): Likewise for local "insn".
10158         (arc_pad_return): Likewise for local "prev".  For now, add a
10159         checked cast when extracting the insn from "final_sequence".
10160         (arc_short_long): Likewise for param "insn".
10161         (arc_need_delay): Likewise for param "insn" and local "next".
10162         (arc_label_align): Likewise for locals "prev", "next".
10164 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10166         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
10167         "insn" from rtx to rtx_insn *.
10168         (alpha_gp_save_rtx): Likewise for local "seq".
10169         (alpha_instantiate_decls): Likewise for local "top".
10170         (get_some_local_dynamic_name): Likewise for local "insn".
10171         (alpha_does_function_need_gp): Likewise.
10172         (set_frame_related_p): Likewise for return type and for locals
10173         "seq" and "insn".
10174         (emit_frame_store_1): Likewise for local "insn".
10175         (alpha_expand_prologue): Likewise for locals "insn", "seq".
10176         (alpha_end_function): Likewise for local "insn".
10177         (alpha_output_mi_thunk_osf): Likewise.
10178         (alphaev4_insn_pipe): Likewise for param "insn".
10179         (alphaev5_insn_pipe): Likewise.
10180         (alphaev4_next_group): Likewise for return type and param 1
10181         "insn".
10182         (alphaev5_next_group): Likewise.
10183         (alpha_align_insns_1): Likewise for return type and param 1 of
10184         callback param "next_group", and for locals "i", "next", "prev",
10185         "where", "where2", "insn".
10187 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10189         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
10190         rather than modifying the stmt.
10192 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10194         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
10195         cgraph_state conversion.
10197 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10199         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10200         Strengthen local "insns" from rtx to rtx_insn *.
10201         (aarch64_set_frame_expr): Likewise for local "insn".
10202         (aarch64_save_or_restore_fprs): Likewise.
10203         (aarch64_save_or_restore_callee_save_registers): Likewise.
10204         (aarch64_expand_prologue): Likewise.
10205         (aarch64_expand_epilogue): Likewise.
10206         (aarch64_output_mi_thunk): Likewise.
10207         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
10208         "label2" from rtx to rtx_code_label *.
10209         (aarch64_split_atomic_op): Likewise for local "label".
10211 2014-08-25  Martin Liska  <mliska@suse.cz>
10213         * cgraph.h (symtab_node):
10214         (bool needed_p (void)): created from decide_is_symbol_needed
10215         (bool referred_to_p (void)): created from referred_to_p
10216         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
10217         * cgraph.h (cgraph_node):
10218         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
10219         (void expand (void)): created from expand_function
10220         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
10221         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
10222         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
10223         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
10224         * cgraph.h (varpool_node):
10225         (static void add (tree decl): created from varpool_add_new_variable
10226         * cgraph.h (cgraph_edge):
10227         void remove (void);
10228         (void remove_caller (void)): created from cgraph_edge_remove_caller
10229         (void remove_callee (void)): created from cgraph_edge_remove_callee
10230         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
10231           created from cgraph_set_call_stmt
10232         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
10233         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
10234         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
10235           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
10236         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
10237           created from cgraph_speculative_call_info
10238         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
10239           int freq_scale, bool update_original)): created from cgraph_clone_edge
10240         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
10241         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
10242         (bool recursive_p (void)): created from cgraph_edge_recursive_p
10243         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
10244         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
10245         (static void rebuild_references (void)): created from cgraph_rebuild_references
10246         * cgraph.h (symbol_table):
10247         (create_reference): renamed from add_reference
10248         (maybe_create_reference): renamed from maybe_add_reference
10249         (void register_symbol (symtab_node *node)): new function
10250         (void clear_asm_symbols (void)): new function
10251         (void unregister (symtab_node *node)): new function
10252         (void release_symbol (cgraph_node *node, int uid)): new function
10253         (cgraph_node * allocate_cgraph_symbol (void)): new function
10254         (void initialize (void)): created from cgraph_init
10255         (symtab_node *first_symbol (void)):new function
10256         (asm_node *first_asm_symbol (void)):new function
10257         (symtab_node *first_defined_symbol (void)):new function
10258         (varpool_node *first_variable (void)):new function
10259         (varpool_node *next_variable (varpool_node *node)):new function
10260         (varpool_node *first_static_initializer (void)):new function
10261         (varpool_node *next_static_initializer (varpool_node *node)):new function
10262         (varpool_node *first_defined_variable (void)):new function
10263         (varpool_node *next_defined_variable (varpool_node *node)):new function
10264         (cgraph_node *first_defined_function (void)):new function
10265         (cgraph_node *next_defined_function (cgraph_node *node)):new function
10266         (cgraph_node *first_function (void)):new function
10267         (cgraph_node *next_function (cgraph_node *node)):new function
10268         (cgraph_node *first_function_with_gimple_body (void)):new function
10269         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
10270         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
10271           created from symtab_remove_unreachable_nodes
10272         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
10273         (void process_new_functions (void)): created from cgraph_process_new_functions
10274         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
10275         (bool output_variables (void)): created from varpool_node::output_variables
10276         (void output_asm_statements (void)): created from output_asm_statements
10277         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
10278         (void compile (void)): created from compile
10279         (void output_weakrefs (void)): created from output_weakrefs
10280         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
10281         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
10282           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
10283         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
10284         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
10285           created from cgraph_next_function_with_gimple_body
10286         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
10287           created from cgraph_remove_edge_removal_hook
10288         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
10289           created from cgraph_add_node_removal_hook
10290         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
10291           created from cgraph_remove_node_removal_hook
10292         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
10293           created from varpool_add_node_removal_hook
10294         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
10295           created from varpool_remove_node_removal_hook
10296         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
10297           created from cgraph_add_function_insertion_hook
10298         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
10299           created from cgraph_remove_function_insertion_hook
10300         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
10301           created from varpool_add_variable_insertion_hook
10302         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
10303           created from varpool_remove_variable_insertion_hook
10304         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
10305           created from cgraph_add_edge_duplication_hook
10306         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
10307           created from cgraph_remove_edge_duplication_hook
10308         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
10309           created from cgraph_add_node_duplication_hook
10310         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
10311           created from cgraph_remove_node_duplication_hook
10312         (void call_edge_removal_hooks (cgraph_edge *e)):
10313           created from cgraph_call_edge_removal_hooks
10314         (void call_cgraph_insertion_hooks (cgraph_node *node)):
10315           created from call_function_insertion_hooks
10316         (void call_cgraph_removal_hooks (cgraph_node *node)):
10317           created from cgraph_call_node_removal_hooks
10318         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
10319           created from cgraph_node::call_duplication_hooks
10320         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
10321           created from cgraph_call_edge_duplication_hooks
10322         (void call_varpool_removal_hooks (varpool_node *node)):
10323           created from varpool_call_node_removal_hooks
10324         (void call_varpool_insertion_hooks (varpool_node *node)):
10325           created from varpool_call_variable_insertion_hooks
10326         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
10327           created from insert_to_assembler_name_hash
10328         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
10329           created from unlink_from_assembler_name_hash
10330         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
10331           created from symtab_prevail_in_asm_name_hash
10332         (void symtab_initialize_asm_name_hash (void)):
10333           created from symtab_initialize_asm_name_hash
10334         (void change_decl_assembler_name (tree decl, tree name)):
10335           created from change_decl_assembler_name
10336         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
10337         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
10338           created from decl_assembler_name_hash
10339         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
10340           created from decl_assembler_name_equal
10341         (static hashval_t hash_node_by_assembler_name (const void *p)):
10342           created from hash_node_by_assembler_name
10343         (static int eq_assembler_name (const void *p1, const void *p2)):
10344           created from eq_assembler_name
10346 2014-08-25  Marek Polacek  <polacek@redhat.com>
10348         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
10350 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
10352         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
10353         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
10354         SWI1248_AVX512BW mode iterator.
10356 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
10358         PR target/62111
10359         * config/sh/predicates.md (general_extend_operand): Disable
10360         TRUNCATE before reload completes.
10362 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
10364         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
10366 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
10368         PR target/61996
10369         * config/sh/sh.opt (musermode): Allow negative form.
10370         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
10371         targets that don't support it.
10372         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
10373         Document -mno-usermode option.
10375 2014-08-24  Kito Cheng  <kito@0xlab.org>
10377         * system.h (CALLER_SAVE_PROFITABLE): Poison.
10378         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
10379         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
10380         * doc/tm.texi: Regenerate.
10382 2014-08-24  Kito Cheng  <kito@0xlab.org>
10384         * ira.c: Fix typo in comment.
10386 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
10388         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
10389         Deprecate c++1y. Change language to reflect greater confidence in C++14.
10391 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
10393         PR target/62038
10394         * config/pa/pa.c (pa_output_function_epilogue): Don't set
10395         last_address when the current function is a thunk.
10396         (pa_asm_output_mi_thunk): When we don't have named sections or they
10397         are not being used, check that thunk can reach the stub table with a
10398         short branch.
10400 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
10402         * web.c (union_match_dups): Strengthen param "insn" from rtx to
10403         rtx_insn *.
10404         (pass_web::execute): Likewise for local "insn".
10406 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
10408         * var-tracking.c (struct micro_operation_def): Strengthen field
10409         "insn" from rtx to rtx_insn *.
10410         (struct emit_note_data_def): Likewise.
10411         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
10412         (vt_stack_adjustments): Likewise for local "insn".
10413         (adjust_insn): Likewise for param "insn".
10414         (val_store): Likewise.
10415         (val_resolve): Likewise.
10416         (struct count_use_info): Likewise for field "insn".
10417         (log_op_type): Likewise for param "insn".
10418         (reverse_op): Likewise.
10419         (prepare_call_arguments): Likewise.
10420         (add_with_sets):  The initial param takes an insn, but we can't
10421         yet strengthen it from rtx to rtx_insn * since it's used as a
10422         cselib_record_sets_hook callback.  For now rename initial param
10423         from "insn" to "uncast_insn", and introduce a local "insn" of
10424         the stronger rtx_insn * type, with a checked cast.
10425         (compute_bb_dataflow): Strengthen local "insn" from rtx to
10426         rtx_insn *.
10427         (emit_note_insn_var_location): Likewise.
10428         (emit_notes_for_changes): Likewise.
10429         (emit_notes_for_differences): Likewise.
10430         (next_non_note_insn_var_location): Likewise for return type and
10431         for param "insn".
10432         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
10433         (vt_initialize): Likewise for local "insn".
10434         (delete_debug_insns): Likewise for locals "insn" and "next".
10436 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
10438         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
10439         rtx_insn *.
10440         (mark_constant_pool): Likewise for local "insn".
10442 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
10444         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
10445         rtx to rtx_insn *.
10446         (dead_debug_promote_uses): Likewise.
10447         (dead_debug_insert_temp): Likewise.
10449 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
10451         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
10452         from const_rtx to const rtx_insn *.
10453         (store_killed_after): Likewise.  Strengthen locals "last", "act"
10454         from rtx to rtx_insn *.
10455         (store_killed_before): Strengthen param "insn" from const_rtx to
10456         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
10457         (find_moveable_store): Strengthen param "insn" from rtx to
10458         rtx_insn *.
10459         (compute_store_table): Likewise for local "insn".
10460         (insert_insn_start_basic_block): Likewise for param "insn" and
10461         locals "prev", "before", "insn".
10462         (insert_store): For now, add a checked cast to rtx_insn * on the
10463         result of gen_move_insn.
10464         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
10465         to rtx_insn *.
10466         (replace_store_insn): Likewise.  For now, add a checked cast to
10467         rtx_insn * on the result of gen_move_insn.
10469 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10471         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
10472         rtx_insn *.
10473         (expand_sjlj_dispatch_table): Likewise.
10475 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10477         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
10478         "insn" from rtx to rtx_insn *.
10480 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10482         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
10483         "insn" from rtx to rtx_insn *.
10484         (dup_block_and_redirect): Likewise for param 3 "before".
10486         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
10487         from rtx to rtx_insn *.
10488         (move_insn_for_shrink_wrap): Likewise.
10489         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
10490         (dup_block_and_redirect): Likewise for param "before" and local
10491         "insn".
10492         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
10493         "end".
10494         (convert_to_simple_return): Likewise for local "start".
10496         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
10497         Strengthen local "insn" from rtx to rtx_insn *, for use when
10498         invoking requires_stack_frame_p.
10500 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10502         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
10503         rtx_insn *.
10504         (speculate_expr): Likewise for locals "orig_insn_rtx",
10505         "spec_insn_rtx".
10506         (eq_transformed_insns): Likewise for locals "i1", "i2".
10507         (check_for_new_jump): Likewise for return type and local "end".
10508         (find_new_jump): Likewise for return type and local "jump".
10509         (sel_split_edge): Likewise for local "jump".
10510         (sel_create_recovery_block): Likewise.
10511         (sel_redirect_edge_and_branch_force): Likewise.
10512         (sel_redirect_edge_and_branch): Likewise.
10514 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10516         * sel-sched.c (substitute_reg_in_expr): Strengthen local
10517         "new_insn" from rtx to rtx_insn *.
10518         (create_insn_rtx_with_rhs): Likewise for return type and for local
10519         "insn_rtx".
10520         (create_insn_rtx_with_lhs): Likewise.
10521         (create_speculation_check): Likewise for local "insn_rtx".
10522         (implicit_clobber_conflict_p): Likewise for local "insn".
10523         (get_expr_cost): Likewise.
10524         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
10525         (move_cond_jump): Likewise for locals "next", "prev", "link",
10526         "head", "from", "to".
10528 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10530         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
10531         "next" from rtx to rtx_insn *.
10532         (find_conditional_protection): Likewise for local "next".
10533         (is_conditionally_protected): Likewise for local "insn1".
10534         (is_pfree): Likewise for locals "insn1", "insn2".
10536 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10538         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
10539         from rtx to rtx_insn *.
10541         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
10542         locals "insn1", "insn2" from rtx to rtx_insn *.
10543         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
10544         locals "insn", "prev", "last_jump", "next_tail".
10545         (schedule_ebb): Likewise for params "head", "tail".
10546         (schedule_ebbs): Likewise for locals "tail", "head".
10548         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
10549         to rtx_insn on "last_insn" in one of the invocations of
10550         schedule_ebb.
10552 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10554         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
10555         "elem", "insn" from rtx to rtx_insn *.
10556         (change_spec_dep_to_hard): Likewise.
10557         (get_back_and_forw_lists): Likewise for local "con".
10558         (sd_add_dep): Likewise for locals "elem", "insn".
10559         (sd_resolve_dep): Likewise for locals "pro", "con".
10560         (sd_unresolve_dep): Likewise.
10561         (sd_delete_dep): Likewise.
10562         (chain_to_prev_insn): Likewise for local "pro".
10563         (find_inc): Likewise for locals "pro", "con".
10565 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10567         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
10568         to rtx_insn *.
10569         (reg_set_between_p): Strengthen local "insn" from const_rtx to
10570         const rtx_insn *.
10571         (modified_between_p): Strengthen local "insn" from rtx to
10572         rtx_insn *.
10573         (remove_reg_equal_equiv_notes_for_regno): Likewise.
10574         (keep_with_call_p): Strengthen local "i2" from const_rtx to
10575         const rtx_insn *.
10577 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10579         * resource.c (next_insn_no_annul): Strengthen local "next" from
10580         rtx to rtx_insn *.
10581         (mark_referenced_resources): Likewise for local "insn".
10583 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10585         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
10586         to rtx_insn *.
10587         (find_reloads): Likewise for param 1.
10588         (subst_reloads): Likewise for sole param.
10589         (find_equiv_reg): Likwise for param 2.
10590         (regno_clobbered_p): Likwise for param 2.
10591         (reload): Likewise for param 1.
10593         * caller-save.c (save_call_clobbered_regs): Strengthen local
10594         "insn" from rtx to rtx_insn *.
10595         (insert_one_insn): Likewise for local "insn".
10597         * reload.c (this_insn): Likewise for this global.
10598         (find_reloads): Likewise for param "insn".
10599         (find_reloads_toplev): Likewise.
10600         (find_reloads_address): Likewise.
10601         (subst_reg_equivs): Likewise.
10602         (update_auto_inc_notes): Likewise.
10603         (find_reloads_address_1): Likewise.
10604         (find_reloads_subreg_address): Likewise.
10605         (subst_reloads): Likewise.
10606         (find_equiv_reg): Likewise, also for local "p".
10607         (regno_clobbered_p): Likewise for param "insn".
10609         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
10610         array.
10611         (spill_reg_store): Likewise for the elements of this array.
10612         (remove_init_insns): Likewise for local "equiv_insn".
10613         (will_delete_init_insn_p): Likewise for param "insn".
10614         (reload): Likewise for param ""first" and local "insn".
10615         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
10616         rtx_insn *.
10617         (calculate_elim_costs_all_insns): Likewise.
10618         (delete_caller_save_insns): Likewise.
10619         (spill_failure): Likewise for param "insn".
10620         (delete_dead_insn): Likewise.
10621         (set_label_offsets): Likewise.
10622         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
10623         "prev_insn".
10624         (elimination_costs_in_insn): Likewise for param "insn".
10625         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
10626         when referring to an insn.
10627         (set_initial_label_offsets): Likewise.
10628         (set_offsets_for_label): Strengthen param "insn" from rtx to
10629         rtx_insn *.
10630         (init_eliminable_invariants): Likewise for param "first" and local
10631         "insn".
10632         (fixup_eh_region_note): Likewise for param "insn".
10633         (reload_as_needed): Likewise for locals "prev", "insn",
10634         "old_next", "old_prev", "next".
10635         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
10636         "last".
10637         (reload_inheritance_insn): Strengthen elements of this array from
10638         rtx to rtx_insn *.
10639         (failed_reload): Likewise for param "insn".
10640         (choose_reload_regs): Likewise for local "insn".  Replace use of
10641         NULL_RTX with NULL when referring to an insn.
10642         (input_reload_insns): Strengthen elements of this array from rtx
10643         to rtx_insn *.
10644         (other_input_address_reload_insns): Likewise for this global.
10645         (other_input_reload_insns): Likewise for this global.
10646         (input_address_reload_insns): Likwise for the elements of this
10647         array.
10648         (inpaddr_address_reload_insns): Likwise for the elements of this
10649         array.
10650         (output_reload_insns): Likewise for the elements of this array.
10651         (output_address_reload_insns): Likewise for the elements of this
10652         array.
10653         (outaddr_address_reload_insns): Likewise for the elements of this
10654         array.
10655         (operand_reload_insns): Likewise for this global.
10656         (other_operand_reload_insns): Likewise for this global.
10657         (other_output_reload_insns): Likewise for the elements of this
10658         array.
10659         (new_spill_reg_store): Likewise for the elements of this
10660         array.
10661         (emit_input_reload_insns): Likewise for locals "insn", "temp".
10662         Strengthen local "where" from rtx * to rtx_insn **.
10663         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
10664         from rtx to rtx_insn *.
10665         (do_input_reload): Likewise for local "insn".
10666         (do_output_reload): Likewise for local "insn".
10667         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
10668         (emit_insn_if_valid_for_reload): Likewise for return type and local
10669         "last".  Add checked cast to rtx_insn when returning "insn" since
10670         this has been through emit_insn.
10671         (gen_reload): Strengthen return type and locals "last", "insn", "set"
10672         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
10673         returning "insn" since it's been through
10674         emit_insn_if_valid_for_reload at this point.
10675         (delete_output_reload): Strengthen param "insn" and locals
10676         "output_reload_insn", "i2" from rtx to rtx_insn *.
10677         (delete_address_reloads): Likewise for params "dead_insn",
10678         "current_insn" and locals "prev", "next".
10679         (delete_address_reloads_1): Likewise for params "dead_insn",
10680         "current_insn" and locals "prev", "i2".
10681         (inc_for_reload): Likewise for locals "last", "add_insn".
10682         (add_auto_inc_notes): Strengthen param "insn" from rtx to
10683         rtx_insn *.
10685         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
10686         param of this duplicate of the prototype from reload.h
10688 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10690         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
10691         rtx to rtx_insn *.
10692         (regstat_bb_compute_calls_crossed): Likewise.
10694 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10696         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
10697         to rtx_insn *.
10698         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
10699         with an insn.
10700         (regrename_analyze): Strengthen local "insn" from rtx to
10701         rtx_insn *.
10702         (scan_rtx_reg): Likewise for param "insn".
10703         (scan_rtx_address): Likewise.
10704         (scan_rtx): Likewise.
10705         (restore_operands): Likewise.
10706         (record_out_operands): Likewise.
10707         (build_def_use): Likewise for local "insn".  Replace use of
10708         NULL_RTX with NULL when dealing with an insn.
10710 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10712         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
10713         * reginfo.c (reg_scan): Likewise, also for local "insn".
10714         (reg_scan_mark_refs): Likewise for param "insn".
10715         (init_subregs_of_mode): Likewise for local "insn".
10717 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10719         * regcprop.c (struct queued_debug_insn_change): Strengthen field
10720         "insn" from rtx to rtx_insn *.
10721         (replace_oldest_value_reg): Likewise for param "insn".
10722         (replace_oldest_value_addr): Likewise.
10723         (replace_oldest_value_mem): Likewise.
10724         (apply_debug_insn_changes): Likewise for local "last_insn".
10725         (copyprop_hardreg_forward_1): Likewise for local "insn".
10727 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10729         * reg-stack.c (next_flags_user): Strengthen return type and param
10730         "insn" from rtx to rtx_insn *.
10731         (straighten_stack): Likewise for param "insn".
10732         (check_asm_stack_operands): Likewise.
10733         (remove_regno_note): Likewise.
10734         (emit_pop_insn): Likewise for return type, param "insn", local
10735         "pop_insn".
10736         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
10737         "limit" from rtx to rtx_insn *.
10738         (swap_to_top): Likewise for param "insn".
10739         (move_for_stack_reg): Likewise.
10740         (move_nan_for_stack_reg): Likewise.
10741         (swap_rtx_condition): Likewise.
10742         (compare_for_stack_reg): Likewise.
10743         (subst_all_stack_regs_in_debug_insn): Likewise.
10744         (subst_stack_regs_pat): Likewise, and local "insn2".
10745         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
10746         rtx_insn *.
10747         (subst_stack_regs): Likewise.
10748         (change_stack): Likewise.
10749         (convert_regs_1): Likewise for locals "insn", "next".
10751 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10753         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
10754         rtx_insn *.
10755         (combine_set_extension): Likewise for param "curr_insn".
10756         (transform_ifelse): Likewise for param "def_insn".
10757         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
10758         from vec<rtx> * to vec<rtx_insn *> *.
10759         (is_cond_copy_insn): Likewise for param "insn".
10760         (struct ext_state): Strengthen the four vec fields from vec<rtx>
10761         to vec<rtx_insn *>.
10762         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
10763         local "def_insn" from rtx to rtx_insn *.
10764         (get_sub_rtx): Likewise for param "def_insn".
10765         (merge_def_and_ext): Likewise.
10766         (combine_reaching_defs): Likewise.
10767         (add_removable_extension): Likewise for param "insn".
10768         (find_removable_extensions): Likewise for local "insn".
10769         (find_and_remove_re): Likewise for locals "curr_insn" and
10770         "def_insn".  Strengthen locals "reinsn_del_list" and
10771         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
10773 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10775         * recog.c (split_insn): Strengthen param "insn" and locals
10776         "first", "last" from rtx to rtx_insn *.
10777         (split_all_insns): Likewise for locals "insn", "next".
10778         (split_all_insns_noflow): Likewise.
10780 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10782         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
10783         const rtx_insn *.
10784         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
10785         (debug_rtx_find): Likewise for param 1 "x".
10787         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
10788         const_rtx to const rtx_insn *.  Likewise for local "insn".
10789         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
10790         (debug_rtx_find): Likewise for param 1 "x".
10791         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
10792         from const_rtx to const rtx_insn * within the appropriate cases of
10793         the switch statement.
10795         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
10796         Strengthen local "insns" from rtx to rtx_insn * since this is
10797         passed to a call to debug_rtx_list.
10799 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10801         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
10802         to rtx_insn *.
10804         * function.c (stack_protect_epilogue): Add checked cast to
10805         rtx_insn for now when invoking predict_insn_def.
10807         * predict.c (predict_insn): Strengthen param "insn" from rtx to
10808         rtx_insn *.
10809         (predict_insn_def): Likewise.
10810         (rtl_predict_edge): Likewise for local "last_insn".
10811         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
10812         const rtx_insn *.
10813         (combine_predictions_for_insn): Strengthen param "insn" from rtx
10814         to rtx_insn *.
10815         (bb_estimate_probability_locally): Likewise for local "last_insn".
10816         (expensive_function_p): Likewise for local "insn".
10818         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
10819         local "jmp", since this is used when invoking predict_insn_def.
10821 2014-08-22  Marek Polacek  <polacek@redhat.com>
10823         PR c++/62199
10824         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
10826 2014-08-22  Marek Polacek  <polacek@redhat.com>
10828         PR c/61271
10829         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
10830         a comparison in parens.
10831         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
10832         in parens.
10834 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10836         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
10837         rtx_insn *.
10839         * cprop.c (fis_get_condition): Likewise.
10841         * postreload.c (reload_cse_regs): Likewise for param "first".
10842         (reload_cse_simplify): Likewise for param "insn".
10843         (reload_cse_regs_1): Likewise for local "insn".
10844         (reload_cse_simplify_set): Likewise for param "insn".
10845         (reload_cse_simplify_operands): Likewise.
10846         (struct reg_use): Likewise for field "insn".
10847         (reload_combine_purge_insn_uses): Likewise for param "insn".
10848         (fixup_debug_insns): Likewise for params "from", "to" and local
10849         "insn".
10850         (try_replace_in_use): Likewise for local "use_insn".
10851         (reload_combine_recognize_const_pattern): Likewise for param
10852         "insn" and locals "add_moved_after_insn", "use_insn".
10853         (reload_combine_recognize_pattern): Likewise for param "insn" and
10854         local "prev".
10855         (reload_combine): Likewise for locals "insn", "prev".
10856         (reload_combine_note_use): Likewise for param "insn".
10857         (move2add_use_add2_insn): Likewise.
10858         (move2add_use_add3_insn): Likewise.
10859         (reload_cse_move2add): Likewise, also for local "next".
10860         (move2add_note_store): Likewise for local "insn".
10862 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10864         * postreload-gcse.c (struct occr): Strengthen field "insn" from
10865         rtx to rtx_insn *.
10866         (struct unoccr): Likewise.
10867         (struct modifies_mem): Likewise.
10868         (alloc_mem): Likewise for local "insn".
10869         (insert_expr_in_table): Likewise for param "insn".
10870         (dump_expr_hash_table_entry): Likewise for local "insn".
10871         (oprs_unchanged_p): Likewise for param "insn".
10872         (load_killed_in_block_p): Likewise for local "setter".
10873         (record_last_reg_set_info): Likewise for param "insn".
10874         (record_last_reg_set_info_regno): Likewise.
10875         (record_last_mem_set_info): Likewise.
10876         (record_last_set_info): Likewise for local "last_set_insn".
10877         (record_opr_changes): Likewise for param "insn".
10878         (hash_scan_set): Likewise.
10879         (compute_hash_table): Likewise for local "insn".
10880         (get_avail_load_store_reg): Likewise for param "insn".
10881         (eliminate_partially_redundant_load): Likewise, also for locals
10882         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
10883         RTX for insns.
10884         (eliminate_partially_redundant_loads): Likewise for local "insn".
10886 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10888         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
10889         rtx to rtx_insn *.
10890         (expand_binop): Likewise for locals "entry_last", "last", "insns"
10891         (expand_twoval_unop): Likewise for locals entry_last", "last".
10892         (expand_twoval_binop): Likewise.
10893         (expand_twoval_binop_libfunc): Likewise for local "insns".
10894         (widen_leading): Likewise for local "last".
10895         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
10896         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
10897         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
10898         (expand_parity): Likewise for locals "last" and "seq".
10899         (expand_ffs): Likewise for local "seq".  Strengthen local
10900         "nonzero_label" from rtx to rtx_code_label *.
10901         (expand_absneg_bit): Strengthen local "insns" from rtx to
10902         rtx_insn *.
10903         (expand_unop_direct): Likewise for local "last".
10904         (expand_unop): Likewise for locals "last", "insns".
10905         (expand_abs_nojump): Likewise for local "last".
10906         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
10907         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
10908         rtx_insn *.
10909         (expand_copysign_absneg): Strengthen local "label" from rtx to
10910         rtx_code_label *.
10911         (expand_copysign_bit): Strengthen local "insns" from rtx to
10912         rtx_insn *.
10913         (struct no_conflict_data): Likewise for fields "first", "insn".
10914         (emit_libcall_block_1): Likewise for param "insns" and locals
10915         "next", "last", "insn".
10916         (emit_libcall_block): For now, add a checked cast to rtx_insn *
10917         on "insns" when invoking emit_libcall_block_1.  Ultimately we
10918         want to strengthen insns itself.
10919         (prepare_cmp_insn): Strengthen local "last" from rtx to
10920         rtx_insn *.
10921         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
10922         (prepare_float_lib_cmp): Likewise for local "insns".
10923         (emit_conditional_move): Likewise for local "last".
10924         (emit_conditional_add): Likewise.
10925         (have_sub2_insn): Likewise for local "seq".
10926         (expand_float): Likewise for local "insns".  Strengthen locals
10927         "label", "neglabel" from rtx to rtx_code_label *.
10928         (expand_fix): Likewise for locals "last", "insn", "insns" (to
10929         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
10930         (expand_fixed_convert): Likewise for local "insns" (to
10931         rtx_insn *).
10932         (expand_sfix_optab): Likewise for local "last".
10933         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
10934         to rtx_code_label *.
10935         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
10936         from rtx to rtx_insn *.
10937         (expand_atomic_fetch_op): Likewise for local "insn".
10938         (maybe_legitimize_operand_same_code): Likewise for local "last".
10939         (maybe_legitimize_operands): Likewise.
10941 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10943         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
10944         "insn" from rtx to rtx_insn *.
10945         (ps_rtl_insn): Likewise for return type.
10946         (doloop_register_get): Likewise for params "head", "tail" and
10947         locals "insn", "first_insn_not_to_check".
10948         (schedule_reg_move): Likewise for local "this_insn".
10949         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
10950         of gen_move_insn for now.
10951         (reset_sched_times): Strengthen local "insn" from rtx to
10952         rtx_insn *.
10953         (permute_partial_schedule): Likewise.
10954         (duplicate_insns_of_cycles): Likewise for local "u_insn".
10955         (dump_insn_location): Likewise for param "insn".
10956         (loop_canon_p): Likewise for local "insn".
10957         (sms_schedule): Likewise.
10958         (print_partial_schedule): Likewise.
10959         (ps_has_conflicts): Likewise.
10961 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10963         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
10964         "tailp" from rtx * to rtx_insn **.
10966         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
10967         from rtx to rtx_insn *.
10968         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
10969         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
10970         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
10971         rtx to rtx_insn *.
10972         * modulo-sched.c (const_iteration_count): Strengthen return type
10973         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
10974         use of NULL_RTX with NULL when working with insns.
10975         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
10976         to rtx_insn *.
10977         (sms_schedule): Likewise.
10978         * sched-rgn.c (init_ready_list): Likewise, also for locals
10979         "src_head" and "src_next_tail".
10980         (compute_block_dependences): Likewise.
10981         (free_block_dependencies): Likewise.
10982         (debug_rgn_dependencies): Likewise.
10983         (free_rgn_deps): Likewise.
10984         (compute_priorities): Likewise.
10985         (schedule_region): Likewise.
10986         * sel-sched.c (find_ebb_boundaries): Likewise.
10988         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
10989         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
10991 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10993         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
10994         from rtx to rtx_insn *.
10995         (new_seginfo): Likewise for param "insn".
10996         (create_pre_exit): Likewise for locals "last_insn",
10997         "before_return_copy", "return_copy".
10998         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
10999         "mode_set".
11001 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11003         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
11004         from rtx to rtx_insn *.
11005         (lra_push_insn): Likewise for 1st param.
11006         (lra_push_insn_and_update_insn_regno_info): Likewise.
11007         (lra_pop_insn): Likewise for return type.
11008         (lra_invalidate_insn_data): Likewise for 1st param.
11009         (lra_set_insn_deleted): Likewise.
11010         (lra_delete_dead_insn): Likewise.
11011         (lra_process_new_insns): Likewise for first 3 params.
11012         (lra_set_insn_recog_data): Likewise for 1st param.
11013         (lra_update_insn_recog_data): Likewise.
11014         (lra_set_used_insn_alternative): Likewise.
11015         (lra_invalidate_insn_regno_info): Likewise.
11016         (lra_update_insn_regno_info): Likewise.
11017         (lra_former_scratch_operand_p): Likewise.
11018         (lra_eliminate_regs_1): Likewise.
11019         (lra_get_insn_recog_data): Likewise.
11021         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
11022         rtx to rtx_insn *.
11024         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
11025         "mv1" and "mv2".
11026         (substitute_within_insn): New.
11027         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
11028         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
11029         Replace call to "substitute" with call to substitute_within_insn.
11031         * lra-constraints.c (curr_insn): Strengthen from rtx to
11032         rtx_insn *.
11033         (get_equiv_with_elimination): Likewise for param "insn".
11034         (match_reload): Strengthen params "before" and "after" from rtx *
11035         to rtx_insn **.
11036         (emit_spill_move): Likewise for return type.  Add a checked cast
11037         to rtx_insn * on result of gen_move_insn for now.
11038         (check_and_process_move): Likewise for local "before".  Replace
11039         NULL_RTX with NULL when referring to insns.
11040         (process_addr_reg): Strengthen params "before" and "after" from
11041         rtx * to rtx_insn **.
11042         (insert_move_for_subreg): Likewise.
11043         (simplify_operand_subreg): Strengthen locals "before" and "after"
11044         from rtx to rtx_insn *.
11045         (process_address_1): Strengthen params "before" and "after" from
11046         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
11047         rtx to rtx_insn *.
11048         (process_address): Strengthen params "before" and "after" from
11049         rtx * to rtx_insn **.
11050         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
11051         (curr_insn_transform): Strengthen locals "before" and "after"
11052         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
11053         to insns.
11054         (loc_equivalence_callback): Update cast of "data", changing
11055         resulting type from rtx to rtx_insn *.
11056         (substitute_pseudo_within_insn): New.
11057         (inherit_reload_reg): Strengthen param "insn" from rtx to
11058         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
11059         NULL when referring to insns.  Add a checked cast to rtx_insn *
11060         when using usage_insn to invoke lra_update_insn_regno_info.
11061         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
11062         likewise for locals "restore", "save".  Add checked casts to
11063         rtx_insn * when using usage_insn to invoke
11064         lra_update_insn_regno_info and lra_process_new_insns.  Replace
11065         NULL_RTX with NULL when referring to insns.
11066         (split_if_necessary): Strengthen param "insn" from rtx to
11067         rtx_insn *.
11068         (update_ebb_live_info): Likewise for params "head", "tail" and local
11069         "prev_insn".
11070         (get_last_insertion_point): Likewise for return type and local "insn".
11071         (get_live_on_other_edges): Likewise for local "last".
11072         (inherit_in_ebb): Likewise for params "head", "tail" and locals
11073         "prev_insn", "next_insn", "restore".
11074         (remove_inheritance_pseudos): Likewise for local "prev_insn".
11075         (undo_optional_reloads): Likewise for local "insn".
11077         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
11078         "insn".
11079         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
11080         insns.
11081         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
11082         rtx_insn *.
11083         (spill_pseudos): Likewise for local "insn".
11084         (init_elimination): Likewise.
11085         (process_insn_for_elimination): Likewise for param "insn".
11087         * lra-lives.c (curr_insn): Likewise.;
11089         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
11090         (remove_pseudos): Likewise for param "insn".
11091         (spill_pseudos): Likewise for local "insn".
11092         (lra_final_code_change): Likewise for locals "insn", "curr".
11094         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
11095         (lra_set_insn_deleted): Likewise.
11096         (lra_delete_dead_insn): Likewise, and for local "prev".
11097         (new_insn_reg): Likewise for param "insn".
11098         (lra_set_insn_recog_data): Likewise.
11099         (lra_update_insn_recog_data): Likewise.
11100         (lra_set_used_insn_alternative): Likewise.
11101         (get_insn_freq): Likewise.
11102         (invalidate_insn_data_regno_info): Likewise.
11103         (lra_invalidate_insn_regno_info): Likewise.
11104         (lra_update_insn_regno_info): Likewise.
11105         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
11106         vec<rtx_insn *>.
11107         (lra_push_insn_1): Strengthen param "insn" from rtx to
11108         rtx_insn *.
11109         (lra_push_insn): Likewise.
11110         (lra_push_insn_and_update_insn_regno_info): Likewise.
11111         (lra_pop_insn): Likewise for return type and local "insn".
11112         (push_insns): Likewise for params "from", "to", and local "insn".
11113         (setup_sp_offset): Likewise for params "from", "last" and locals
11114         "before", "insn".
11115         (lra_process_new_insns): Likewise for params "insn", "before",
11116         "after" and local "last".
11117         (struct sloc): Likewise for field "insn".
11118         (lra_former_scratch_operand_p): Likewise for param "insn".
11119         (remove_scratches): Likewise for locals "insn", "last".
11120         (check_rtl): Likewise for local "insn".
11121         (add_auto_inc_notes): Likewise for param "insn".
11122         (update_inc_notes): Likewise for local "insn".
11123         (lra): Replace NULL_RTX with NULL when referring to insn.
11125 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11127         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
11128         to rtx_insn *.
11129         (resolve_reg_notes): Likewise.
11130         (resolve_simple_move): Likewise for return type, param "insn", and
11131         locals "insns", "minsn".
11132         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
11133         (resolve_use): Likewise.
11134         (resolve_debug): Likewise.
11135         (find_decomposable_shift_zext): Likewise.
11136         (resolve_shift_zext): Likewise for return type, param "insn", and
11137         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
11138         (decompose_multiword_subregs): Likewise for local "insn",
11139         "orig_insn", "decomposed_shift", "end".
11141 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11143         * basic-block.h (basic_block split_edge_and_insert): Strengthen
11144         param "insns" from rtx to rtx_insn *.
11146         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
11147         rtx to rtx_insn *.
11148         (struct iv_to_split): Likewise.
11149         (loop_exit_at_end_p): Likewise for local "insn".
11150         (split_edge_and_insert): Likewise for param "insns".
11151         (compare_and_jump_seq): Likewise for return type, param "cinsn",
11152         and locals "seq", "jump".
11153         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
11154         "branch_code"; update invocations of compare_and_jump_seq to
11155         eliminate NULL_RTX in favor of NULL.
11156         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
11157         rtx to rtx_insn *.
11158         (reset_debug_uses_in_loop): Likewise.
11159         (analyze_insn_to_expand_var): Likewise for param "insn".
11160         (analyze_iv_to_split_insn): Likewise.
11161         (analyze_insns_in_loop): Likewise for local "insn".
11162         (insert_base_initialization): Likewise for param
11163         "insn" and local "seq".
11164         (split_iv): Likewise for param "insn" and local "seq".
11165         (expand_var_during_unrolling): Likewise for param "insn".
11166         (insert_var_expansion_initialization): Likewise for local "seq".
11167         (combine_var_copies_in_loop_exit): Likewise.
11168         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
11169         "insn".
11170         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
11171         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
11172         "next".
11174 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11176         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
11177         rtx_insn *.
11178         (iv_analyze_result): Likewise.
11179         (iv_analyze_expr): Likewise.
11180         (biv_p): Likewise.
11182         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
11183         local "def_insn" from rtx to rtx_insn *.
11184         (get_biv_step_1): Likewise for local "insn".
11185         (iv_analyze_expr): Likewise for param "insn".
11186         (iv_analyze_def): Likewise for local "insn".
11187         (iv_analyze_op): Likewise for param "insn".
11188         (iv_analyze): Likewise.
11189         (iv_analyze_result): Likewise.
11190         (biv_p): Likewise.
11191         (suitable_set_for_replacement): Likewise.
11192         (simplify_using_initial_values): Likewise for local "insn".
11193         (iv_number_of_iterations): Likewise for param "insn".
11194         (check_simple_exit): Add checked cast to rtx_insn when invoking
11195         iv_number_of_iterations for now (until get_condition is
11196         strengthened).
11198         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
11199         "insn" from rtx to rtx_insn *.
11200         (analyze_insns_in_loop): Likewise for local "insn".
11202 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11204         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
11205         to rtx_insn *.
11206         (struct invariant): Likewise.
11207         (hash_invariant_expr_1): Likewise for param "insn".
11208         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
11209         (find_exits): Likewise for local "insn".
11210         (create_new_invariant): Likewise for param "insn".
11211         (check_dependencies): Likewise.
11212         (find_invariant_insn): Likewise.
11213         (record_uses): Likewise.
11214         (find_invariants_insn): Likewise.
11215         (find_invariants_bb): Likewise for local "insn".
11216         (get_pressure_class_and_nregs): Likewise for param "insn".
11217         (calculate_loop_reg_pressure): Likewise for local "insn".
11219 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11221         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
11222         to rtx_insn *.
11223         (add_test): Likewise for locals "seq", "jump".
11224         (doloop_modify): Likewise for locals "sequence", "jump_insn".
11226 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11228         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
11229         rtx_insn *.
11230         (rebuild_jump_labels_chain): Likewise for param "chain".
11232         * cfgexpand.c (pass_expand::execute): Add checked cast to
11233         rtx_insn * when calling rebuild_jump_labels_chain in region where
11234         we know e->insns.r is non-NULL.
11236         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
11237         rtx_insn *.
11238         (rebuild_jump_labels): Likewise.
11239         (rebuild_jump_labels_chain): Likewise for param "chain".
11240         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
11241         (init_label_info): Likewise for param "f".
11242         (maybe_propagate_label_ref): Likewise for params "jump_insn",
11243         "prev_nonjump_insn".
11244         (mark_all_labels): Likewise for param "f" and locals "insn",
11245         "prev_nonjump_insn".
11247 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11249         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
11250         from rtx to rtx_insn *insn.
11251         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
11252         (ira_add_allocno_copy): Likewise.
11253         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
11254         rtx to rtx_insn *.
11255         (ira_create_copy): Likewise.
11256         (ira_add_allocno_copy): Likewise.
11257         (create_bb_allocnos): Likewise for local "insn".
11258         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
11259         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
11260         process_regs_for_copy for rtx_insn * param.
11261         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
11262         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
11263         process_regs_for_copy for rtx_insn * param.
11264         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
11265         * ira-costs.c (record_reg_classes): Likewise for param "insn".
11266         (record_operand_costs): Likewise.
11267         (scan_one_insn): Likewise for return type, and for param "insn".
11268         (process_bb_for_costs): Likewise for local "insn".
11269         (process_bb_node_for_hard_reg_moves): Likewise.
11270         * ira-emit.c (struct move): Likewise for field "insn".
11271         (create_move): Eliminate use of NULL_RTX when dealing with an
11272         rtx_insn *.
11273         (emit_move_list): Strengthen return type and locals "result",
11274         "insn" from rtx to rtx_insn *insn.
11275         (emit_moves): Likewise for locals "insns", "tmp".
11276         (ira_emit): Likewise for local "insn".
11277         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
11278         "insn".
11279         (find_call_crossed_cheap_reg): Likewise.
11280         (process_bb_node_lives): Likewise for local "insn".
11281         * ira.c (decrease_live_ranges_number): Likewise.
11282         (compute_regs_asm_clobbered): Likewise.
11283         (build_insn_chain): Likewise.
11284         (find_moveable_pseudos): Likewise, also locals "def_insn",
11285         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
11286         to rtx_insn **.  Add a checked cast when assigning from
11287         "closest_use" into closest_uses array in a region where we know
11288         it's a non-NULL insn.
11289         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
11290         to rtx_insn *.
11291         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
11292         "last_interesting_insn", "uin".
11293         (move_unallocated_pseudos): Likewise for locals "def_insn",
11294         "move_insn", "newinsn".
11296 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11298         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
11299         Strengthen locals "done_label", "do_error" from rtx to
11300         rtx_code_label *.
11301         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
11302         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
11303         rtx_code_label *.
11304         (ubsan_expand_si_overflow_neg_check): Likewise for locals
11305         "done_label", "do_error" to rtx_code_label * and local  "last" to
11306         rtx_insn *.
11307         (ubsan_expand_si_overflow_mul_check): Likewise for locals
11308         "done_label", "do_error", "large_op0", "small_op0_large_op1",
11309         "one_small_one_large", "both_ops_large", "after_hipart_neg",
11310         "after_lopart_neg", "do_overflow", "hipart_different"  to
11311         rtx_code_label * and local  "last" to rtx_insn *.
11313 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11315         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
11316         "insn" and "move_insn" from rtx to rtx_insn *.
11318 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11320         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
11321         rtx_insn *.
11322         (cheap_bb_rtx_cost_p): Likewise.
11323         (first_active_insn): Likewise for return type and local "insn".
11324         (last_active_insn):  Likewise for return type and locals "insn",
11325         "head".
11326         (struct noce_if_info): Likewise for fields "jump", "insn_a",
11327         "insn_b".
11328         (end_ifcvt_sequence): Likewise for return type and locals "insn",
11329         "seq".
11330         (noce_try_move): Likewise for local "seq".
11331         (noce_try_store_flag): Likewise.
11332         (noce_try_store_flag_constants): Likewise.
11333         (noce_try_addcc): Likewise.
11334         (noce_try_store_flag_mask): Likewise.
11335         (noce_try_cmove): Likewise.
11336         (noce_try_minmax): Likewise.
11337         (noce_try_abs): Likewise.
11338         (noce_try_sign_mask): Likewise.
11339         (noce_try_bitop): Likewise.
11340         (noce_can_store_speculate_p): Likewise for local "insn".
11341         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
11342         seq".
11343         (check_cond_move_block): Likewise for local "insn".
11344         (cond_move_convert_if_block): Likewise.
11345         (cond_move_process_if_block): Likewise for locals "seq",
11346         "loc_insn".
11347         (noce_find_if_block): Likewise for local "jump".
11348         (merge_if_block): Likewise for local "last".
11349         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
11350         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
11351         (block_has_only_trap): Likewise for return type and local "trap".
11352         (find_if_case_1): Likewise for local "jump".
11353         (dead_or_predicable): Likewise for locals "head", "end", "jump",
11354         "insn".
11356 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11358         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
11359         "last_insn", "loop_end" from rtx to rtx_insn *.
11361         * hw-doloop.c (scan_loop): Likewise for local "insn".
11362         (discover_loop): Likewise for param "tail_insn".
11363         (discover_loops): Likewise for local "tail".
11365         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
11366         cast to rtx_insn * when assigning from an rtx local to a
11367         hwloop_info's "last_insn" field.
11369 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11371         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
11372         (add_delay_dependencies): Strengthen local "pro" from rtx to
11373         rtx_insn *.
11374         (recompute_todo_spec): Likewise.
11375         (dep_cost_1): Likewise for locals "insn", "used".
11376         (schedule_insn): Likewise for local "dbg".
11377         (schedule_insn): Likewise for locals "pro", "next".
11378         (unschedule_insns_until): Likewise for local "con".
11379         (restore_pattern): Likewise for local "next".
11380         (estimate_insn_tick): Likewise for local "pro".
11381         (resolve_dependencies): Likewise for local "next".
11382         (fix_inter_tick): Likewise.
11383         (fix_tick_ready): Likewise for local "pro".
11384         (add_to_speculative_block): Likewise for locals "check", "twin",
11385         "pro".
11386         (sched_extend_bb): Likewise for locals "end", "insn".
11387         (init_before_recovery): Likewise for local "x".
11388         (sched_create_recovery_block): Likewise for local "barrier".
11389         (create_check_block_twin): Likewise for local "pro".
11390         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
11391         "consumer".
11392         (unlink_bb_notes): Update for change to type of bb_header.
11393         Strengthen locals "prev", "label", "note", "next" from rtx to
11394         rtx_insn *.
11395         (clear_priorities): Likewise for local "pro".
11397 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11399         * gcse.c (struct occr): Strengthen field "insn" from rtx to
11400         rtx_insn *.
11401         (test_insn): Likewise for this global.
11402         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
11403         const rtx_insn *.
11404         (oprs_anticipatable_p): Likewise.
11405         (oprs_available_p): Likewise.
11406         (insert_expr_in_table): Strengthen param "insn" from  rtx to
11407         rtx_insn *.
11408         (hash_scan_set): Likewise.
11409         (hash_scan_clobber): Likewise.
11410         (hash_scan_call): Likewise.
11411         (hash_scan_insn): Likewise.
11412         (compute_hash_table_work): Likewise for local "insn".
11413         (process_insert_insn): Likewise for return type and local "pat".
11414         (insert_insn_end_basic_block): Likewise for locals "new_insn",
11415         "pat", "pat_end", "maybe_cc0_setter".
11416         (pre_edge_insert): Likewise for local "insn".
11417         (pre_insert_copy_insn): Likewise for param "insn".
11418         (pre_insert_copies): Likewise for local "insn".
11419         (struct set_data): Likewise for field "insn".
11420         (single_set_gcse): Likewise for param "insn".
11421         (gcse_emit_move_after): Likewise.
11422         (pre_delete): Likewise for local "insn".
11423         (update_bb_reg_pressure): Likewise for param "from" and local
11424         "insn".
11425         (should_hoist_expr_to_dom): Likewise for param "from".
11426         (hoist_code): Likewise for local "insn".
11427         (get_pressure_class_and_nregs): Likewise for param "insn".
11428         (calculate_bb_reg_pressure): Likewise for local "insn".
11429         (compute_ld_motion_mems): Likewise.
11431 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11433         * genpeep.c (main): Rename param back from "uncast_ins1" to
11434         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
11435         checked cast.
11437         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
11439 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
11441         PR target/62195
11442         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
11443         documentation to state it is only for VSX operations.
11445         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
11446         constraint only active if VSX.
11448         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
11449         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
11450         (lfiwzx): Likewise.
11452 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11454         * fwprop.c (single_def_use_dom_walker::before_dom_children):
11455         Strengthen local "insn" from rtx to rtx_insn *.
11456         (use_killed_between): Likewise for param "target_insn".
11457         (all_uses_available_at): Likewise for param "target_insn" and
11458         local "next".
11459         (update_df_init): Likewise for params "def_insn", "insn".
11460         (update_df): Likewise for param "insn".
11461         (try_fwprop_subst): Likewise for param "def_insn" and local
11462         "insn".
11463         (free_load_extend): Likewise for param "insn".
11464         (forward_propagate_subreg): Likewise for param "def_insn" and
11465         local "use_insn".
11466         (forward_propagate_asm): Likewise for param "def_insn" and local
11467         "use_insn".
11468         (forward_propagate_and_simplify): Likewise for param "def_insn"
11469         and local "use_insn".
11470         (forward_propagate_into): Likewise for locals "def_insn" and
11471         "use_insn".
11473 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11475         * function.c (emit_initial_value_sets): Strengthen local "seq"
11476         from rtx to rtx_insn *.
11477         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
11478         local "seq".
11479         (instantiate_virtual_regs): Likewise for local "insn".
11480         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
11481         (reorder_blocks_1): Likewise for param "insns" and local "insn".
11482         (expand_function_end): Likewise for locals "insn" and "seq".
11483         (epilogue_done): Likewise for local "insn".
11484         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
11485         "last", "trial".
11486         (reposition_prologue_and_epilogue_notes): Likewise for locals
11487         "insn", "last", "note", "first".
11488         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
11489         (pass_match_asm_constraints::execute): Likewise for local "insn".
11491 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11493         * output.h (final_scan_insn): Strengthen return type from rtx to
11494         rtx_insn *.
11495         (final_forward_branch_p): Likewise for param.
11496         (current_output_insn): Likewise for this global.
11498         * final.c (rtx debug_insn): Likewise for this variable.
11499         (current_output_insn): Likewise.
11500         (get_attr_length_1): Rename param "insn" to "uncast_insn",
11501         adding "insn" back in as an rtx_insn * with a checked cast, so
11502         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
11503         first param.
11504         (compute_alignments): Strengthen local "label" from rtx to
11505         rtx_insn *.
11506         (shorten_branches): Rename param from "first" to "uncast_first",
11507         introducing a new local rtx_insn * "first" using a checked cast to
11508         effectively strengthen "first" from rtx to rtx_insn * without
11509         affecting the type signature.  Strengthen locals "insn", "seq",
11510         "next", "label" from rtx to rtx_insn *.
11511         (change_scope): Strengthen param "orig_insn" and local "insn" from
11512         rtx to rtx_insn *.
11513         (final_start_function): Rename param from "first" to "uncast_first",
11514         introducing a new local rtx_insn * "first" using a checked cast to
11515         effectively strengthen "first" from rtx to rtx_insn * without
11516         affecting the type signature.  Strengthen local "insn" from rtx to
11517         rtx_insn *.
11518         (dump_basic_block_info): Strengthen param "insn" from rtx to
11519         rtx_insn *.
11520         (final): Rename param from "first" to "uncast_first",
11521         introducing a new local rtx_insn * "first" using a checked cast to
11522         effectively strengthen "first" from rtx to rtx_insn * without
11523         affecting the type signature.  Strengthen locals "insn", "next"
11524         from rtx to rtx_insn *.
11525         (output_alternate_entry_point): Strengthen param "insn" from rtx to
11526         rtx_insn *.
11527         (call_from_call_insn): Strengthen param "insn" from rtx to
11528         rtx_call_insn *.
11529         (final_scan_insn): Rename param from "insn" to "uncast_insn",
11530         introducing a new local rtx_insn * "insn" using a checked cast to
11531         effectively strengthen "insn" from rtx to rtx_insn * without
11532         affecting the type signature.  Strengthen return type and locals
11533         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
11534         now-redundant checked cast to rtx_insn * from both invocations of
11535         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
11536         introducing a local "call_insn" for use when invoking
11537         call_from_call_insn.
11538         (notice_source_line): Strengthen param "insn" from rtx to
11539         rtx_insn *.
11540         (leaf_function_p): Likewise for local "insn".
11541         (final_forward_branch_p): Likewise.
11542         (leaf_renumber_regs): Likewise for param "first".
11543         (rest_of_clean_state): Likewise for locals "insn" and "next".
11544         (self_recursive_call_p): Likewise for param "insn".
11545         (collect_fn_hard_reg_usage): Likewise for local "insn".
11546         (get_call_fndecl): Likewise for param "insn".
11547         (get_call_cgraph_rtl_info): Likewise.
11548         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
11549         introducing a new local rtx_insn * "insn" using a checked cast to
11550         effectively strengthen "insn" from rtx to rtx_insn * without
11551         affecting the type signature.
11553         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
11554         cast when assigning from param "insn" to current_output_insn.
11555         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
11556         so that we can assign it back to current_output_insn.
11558 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11560         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
11561         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
11562         atmxt540s and atmxt540sreva devices.
11563         * config/avr/avr-tables.opt: Regenerate.
11564         * config/avr/t-multilib: Regenerate.
11565         * doc/avr-mmcu.texi: Regenerate.
11567 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11569         * expr.c (convert_move): Strengthen local "insns" from rtx to
11570         rtx_insn *.
11571         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
11572         "top_label" from rtx to rtx_code_label *.
11573         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
11574         rtx_insn *.
11575         (emit_single_push_insn): Likewise for locals "prev", "last".
11576         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
11577         to rtx_code_label *.
11578         (store_constructor): Likewise for locals "loop_start", "loop_end".
11579         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
11580         rtx_insn *.
11581         (expand_expr_real_2): Likewise.
11582         (expand_expr_real_1): Strengthen local "label" from rtx to
11583         rtx_code_label *.
11585 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11587         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
11588         from rtx to rtx_insn *.
11589         (store_bit_field_1): Likewise.
11590         (extract_bit_field_1): Likewise.
11591         (expand_mult_const): Likewise for local "insns".
11592         (expmed_mult_highpart): Strengthen local "label" from rtx to
11593         rtx_code_label *.
11594         (expand_smod_pow2): Likewise.
11595         (expand_sdiv_pow2): Likewise.
11596         (expand_divmod): Strengthen locals "last", "insn" from rtx to
11597         rtx_insn *.  Strengthen locals "label", "label1", "label2",
11598         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
11599         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
11600         (emit_store_flag): Likewise.
11601         (emit_store_flag_force): Strengthen local "label" from rtx to
11602         rtx_code_label *.
11603         (do_cmp_and_jump): Likewise for param "label".
11605 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11607         * explow.c (force_reg): Strengthen local "insn" from rtx to
11608         rtx_insn *.
11609         (adjust_stack_1): Likewise.
11610         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
11611         "final_label", "available_label", "space_available" from rtx to
11612         rtx_code_label *.
11613         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
11614         (anti_adjust_stack_and_probe): Likewise.
11616 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11618         * except.h (sjlj_emit_function_exit_after): Strengthen param
11619         "after" from rtx to rtx_insn *.  This is only called with
11620         result of get_last_insn (in function.c) so type-change should be
11621         self-contained.
11623         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
11624         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
11625         to rtx_insn *.  These fields are only used from except.c so this
11626         type-change should be self-contained to this patch.
11628         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
11629         local "last" from rtx to rtx_insn *.
11630         (dw2_build_landing_pads): Likewise for local "seq".
11631         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
11632         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
11633         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
11634         rtx to rtx_insn *.
11635         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
11636         to rtx_insn *.
11637         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
11638         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
11639         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
11640         referring to an insn.  Strengthen local "dispatch_label" from
11641         rtx to rtx_code_label *.
11642         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
11643         rtx_insn *.
11644         (expand_eh_return): Strengthen local "around_label" from
11645         rtx to rtx_code_label *.
11646         (convert_to_eh_region_ranges): Strengthen locals "iter",
11647         "last_action_insn", "first_no_action_insn",
11648         "first_no_action_insn_before_switch",
11649         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
11651 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11653         * dwarf2out.c (last_var_location_insn): Strengthen this variable
11654         from rtx to rtx_insn *.
11655         (cached_next_real_insn): Likewise.
11656         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
11657         working with insns.
11658         (dwarf2out_var_location): Strengthen locals "next_real",
11659         "next_note", "expected_next_loc_note", "last_start", "insn" from
11660         rtx to rtx_insn *.
11662 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11664         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
11665         from rtx to rtx_insn *.
11666         (create_pseudo_cfg): Likewise for local "insn".
11668 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11670         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
11671         from rtx to rtx_insn *.
11672         (df_bb_regno_last_def_find): Likewise.
11674         * df-problems.c (df_rd_bb_local_compute): Likewise.
11675         (df_lr_bb_local_compute): Likewise.
11676         (df_live_bb_local_compute): Likewise.
11677         (df_chain_remove_problem): Likewise.
11678         (df_chain_create_bb): Likewise.
11679         (df_word_lr_bb_local_compute): Likewise.
11680         (df_remove_dead_eq_notes): Likewise for param "insn".
11681         (df_note_bb_compute): Likewise for local "insn".
11682         (simulate_backwards_to_point): Likewise.
11683         (df_md_bb_local_compute): Likewise.
11685         * df-scan.c (df_scan_free_bb_info): Likewise.
11686         (df_scan_start_dump): Likewise.
11687         (df_scan_start_block): Likewise.
11688         (df_install_ref_incremental): Likewise for local "insn".
11689         (df_insn_rescan_all): Likewise.
11690         (df_reorganize_refs_by_reg_by_insn): Likewise.
11691         (df_reorganize_refs_by_insn_bb): Likewise.
11692         (df_recompute_luids): Likewise.
11693         (df_bb_refs_record): Likewise.
11694         (df_update_entry_exit_and_calls): Likewise.
11695         (df_bb_verify): Likewise.
11697 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11699         * ddg.h (struct ddg_node): Strengthen fields "insn" and
11700         "first_note" from rtx to rtx_insn *.
11701         (get_node_of_insn): Likewise for param 2 "insn".
11702         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
11704         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
11705         rtx_insn *.
11706         (mem_write_insn_p): Likewise.
11707         (mem_access_insn_p): Likewise.
11708         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
11709         (def_has_ccmode_p): Likewise for param "insn".
11710         (add_cross_iteration_register_deps): Likewise for locals
11711         "def_insn" and "use_insn".
11712         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
11713         (build_intra_loop_deps): Likewise for local "src_insn".
11714         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
11715         to rtx_insn *.
11716         (get_node_of_insn): Likewise for param "insn".
11718 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11720         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
11721         (deletable_insn_p): Strengthen param "insn" from rtx to
11722         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
11723         find_call_stack_args, since this is guarded by CALL_P (insn).
11724         (marked_insn_p): Strengthen param "insn" from rtx to
11725         rtx_insn *.
11726         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
11727         invoking find_call_stack_args, since this is guarded by
11728         CALL_P (insn).
11729         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
11730         rtx_insn *; we know this is an insn since this was called by
11731         mark_nonreg_stores.
11732         (mark_nonreg_stores_2): Likewise.
11733         (mark_nonreg_stores): Strengthen param "insn" from rtx to
11734         rtx_insn *.
11735         (find_call_stack_args): Strengthen param "call_insn" from rtx to
11736         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
11737         to rtx_insn *.
11738         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
11739         from rtx to rtx_insn *.
11740         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
11741         "next", "ref_insn".
11742         (delete_unmarked_insns): Likewise for locals "insn", "next".
11743         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
11744         (mark_reg_dependencies): Likewise for param "insn".
11745         (rest_of_handle_ud_dce): Likewise for local "insn".
11746         (word_dce_process_block): Likewise.
11747         (dce_process_block): Likewise.
11749 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11751         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
11752         from rtx to rtx_insn *.
11753         (struct change_cc_mode_args): Likewise for field "insn".
11754         (this_insn): Strengthen from rtx to rtx_insn *.
11755         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
11756         with insn.
11757         (validate_canon_reg): Strengthen param "insn" from rtx to
11758         rtx_insn *.
11759         (canon_reg): Likewise.
11760         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
11761         dealing with insn.
11762         (record_jump_equiv): Strengthen param "insn" from rtx to
11763         rtx_insn *.
11764         (try_back_substitute_reg): Likewise, also for locals "prev",
11765         "bb_head".
11766         (find_sets_in_insn): Likewise for param "insn".
11767         (canonicalize_insn): Likewise.
11768         (cse_insn): Likewise.  Add a checked cast.
11769         (invalidate_from_clobbers): Likewise for param "insn".
11770         (invalidate_from_sets_and_clobbers): Likewise.
11771         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
11772         dealing with insn.
11773         (cse_prescan_path): Strengthen local "insn" from rtx to
11774         rtx_insn *.
11775         (cse_extended_basic_block): Likewise for locals "insn" and
11776         "prev_insn".
11777         (cse_main): Likewise for param "f".
11778         (check_for_label_ref): Likewise for local "insn".
11779         (set_live_p): Likewise for second param ("insn").
11780         (insn_live_p): Likewise for first param ("insn") and for local
11781         "next".
11782         (cse_change_cc_mode_insn): Likewise for first param "insn".
11783         (cse_change_cc_mode_insns): Likewise for first and second params
11784         "start" and "end".
11785         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
11786         and "end".
11787         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
11788         "cc_src_insn".
11790 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11791             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11792             Anna Tikhonova  <anna.tikhonova@intel.com>
11793             Ilya Tocar  <ilya.tocar@intel.com>
11794             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11795             Ilya Verbin  <ilya.verbin@intel.com>
11796             Kirill Yukhin  <kirill.yukhin@intel.com>
11797             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11799         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
11800         New.
11801         * config/i386/sse.md
11802         (define_mode_iterator VI248_AVX2): Delete.
11803         (define_mode_iterator VI2_AVX2_AVX512BW): New.
11804         (define_mode_iterator VI48_AVX2): Ditto.
11805         (define_insn <shift_insn><mode>3): Delete.
11806         (define_insn "<shift_insn><mode>3<mask_name>" with
11807         VI2_AVX2_AVX512BW): New.
11808         (define_insn "<shift_insn><mode>3<mask_name>" with
11809         VI48_AVX2): Ditto.
11811 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11812             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11813             Anna Tikhonova  <anna.tikhonova@intel.com>
11814             Ilya Tocar  <ilya.tocar@intel.com>
11815             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11816             Ilya Verbin  <ilya.verbin@intel.com>
11817             Kirill Yukhin  <kirill.yukhin@intel.com>
11818             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11820         * config/i386/sse.md
11821         (define_mode_iterator VI4F_BRCST32x2): New.
11822         (define_mode_attr 64x2_mode): Ditto.
11823         (define_mode_attr 32x2mode): Ditto.
11824         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
11825         with VI4F_BRCST32x2): Ditto.
11826         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
11827         with V16FI mode iterator): Ditto.
11828         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
11829         with V16FI): Ditto.
11830         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
11831         with VI8F_BRCST64x2): Ditto.
11833 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11834             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11835             Anna Tikhonova  <anna.tikhonova@intel.com>
11836             Ilya Tocar  <ilya.tocar@intel.com>
11837             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11838             Ilya Verbin  <ilya.verbin@intel.com>
11839             Kirill Yukhin  <kirill.yukhin@intel.com>
11840             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11842         * config/i386/sse.md
11843         (define_mode_iterator VI8_AVX512VL): New.
11844         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
11846 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11848         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
11849         (define_mode_iterator V48_AVX512VL): New.
11850         (define_mode_iterator V12_AVX512VL): Ditto.
11851         (define_insn <avx512>_load<mode>_mask): Split into two similar
11852         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
11853         Refactor output template.
11854         (define_insn "<avx512>_store<mode>_mask"): Ditto.
11856 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11858         * cprop.c (struct occr): Strengthen field "insn" from rtx to
11859         rtx_insn *.
11860         (reg_available_p): Likewise for param "insn".
11861         (insert_set_in_table): Likewise.
11862         (hash_scan_set): Likewise.
11863         (hash_scan_insn): Likewise.
11864         (make_set_regs_unavailable): Likewise.
11865         (compute_hash_table_work): Likewise for local "insn".
11866         (reg_not_set_p): Strengthen param "insn" from const_rtx to
11867         const rtx_insn *.
11868         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
11869         (try_replace_reg): Likewise.
11870         (find_avail_set): Likewise.
11871         (cprop_jump): Likewise for params "setcc", "jump".
11872         (constprop_register): Likewise for param "insn".
11873         (cprop_insn): Likewise.
11874         (do_local_cprop): Likewise.
11875         (local_cprop_pass): Likewise for local "insn".
11876         (bypass_block): Likewise for params "setcc" and "jump".
11877         (bypass_conditional_jumps): Likewise for locals "setcc" and
11878         "insn".
11879         (one_cprop_pass): Likewise for local "insn".
11881 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11883         * compare-elim.c (struct comparison_use): Strengthen field "insn"
11884         from rtx to rtx_insn *.
11885         (struct comparison): Likewise, also for field "prev_clobber".
11886         (conforming_compare): Likewise for param "insn".
11887         (arithmetic_flags_clobber_p): Likewise.
11888         (find_flags_uses_in_insn): Likewise.
11889         (find_comparison_dom_walker::before_dom_children): Likewise for
11890         locals "insn", "next", "last_clobber".
11891         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
11893 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11895         * combine-stack-adj.c (struct csa_reflist): Strengthen field
11896         "insn" from rtx to rtx_insn *.
11897         (single_set_for_csa): Likewise for param "insn".
11898         (record_one_stack_ref): Likewise.
11899         (try_apply_stack_adjustment): Likewise.
11900         (struct record_stack_refs_data): Likewise for field "insn".
11901         (maybe_move_args_size_note): Likewise for params "last" and "insn".
11902         (prev_active_insn_bb): Likewise for return type and param "insn".
11903         (next_active_insn_bb): Likewise.
11904         (force_move_args_size_note): Likewise for params "prev" and "last"
11905         and locals "test", "next_candidate", "prev_candidate".
11906         (combine_stack_adjustments_for_block): Strengthen locals
11907         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
11908         rtx_insn *.
11910 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11912         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
11913         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
11914         (subst_insn): Likewise for this variable.
11915         (added_links_insn): Likewise.
11916         (struct insn_link): Likewise for field "insn".
11917         (alloc_insn_link): Likewise for param "insn".
11918         (struct undobuf): Likewise for field "other_insn".
11919         (find_single_use): Likewise for param "insn" and local "next".
11920         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
11921         (delete_noop_moves): Likewise for locals "insn", "next".
11922         (create_log_links): Likewise for locals "insn", "use_insn".
11923         Strengthen local "next_use" from rtx * to rtx_insn **.
11924         (insn_a_feeds_b): Likewise for params "a", "b".
11925         (combine_instructions): Likewise for param "f" and locals "insn",
11926         "next", "prev", "first", "last_combined_insn", "link", "link1",
11927         "temp".  Replace use of NULL_RTX with NULL when referring to
11928         insns.
11929         (setup_incoming_promotions): Likewise for param "first"
11930         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
11931         (can_combine_p): Likewise for params "insn", "i3", "pred",
11932         "pred2", "succ", "succ2" and for local "p".
11933         (combinable_i3pat): Likewise for param "i3".
11934         (cant_combine_insn_p): Likewise for param "insn".
11935         (likely_spilled_retval_p): Likewise.
11936         (adjust_for_new_dest): Likewise.
11937         (update_cfg_for_uncondjump): Likewise, also for local "insn".
11938         (try_combine): Likewise for return type and for params "i3", "i2",
11939         "i1", "i0", "last_combined_insn", and for locals "insn",
11940         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
11941         "i0_insn".  Eliminate local "tem" in favor of new locals
11942         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
11943         checked cast for now to rtx_insn * on the return type of
11944         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
11945         insns.
11946         (find_split_point): Strengthen param "insn" from rtx to
11947         rtx_insn *.
11948         (simplify_set): Likewise for local "other_insn".
11949         (recog_for_combine): Likewise for param "insn".
11950         (record_value_for_reg): Likewise.
11951         (record_dead_and_set_regs_1): Likewise for local
11952         "record_dead_insn".
11953         (record_dead_and_set_regs): Likewise for param "insn".
11954         (record_promoted_value): Likewise.
11955         (check_promoted_subreg): Likewise.
11956         (get_last_value_validate): Likewise.
11957         (reg_dead_at_p): Likewise.
11958         (move_deaths): Likewise for param "to_insn".
11959         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
11960         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
11961         in favor of new locals "tem_note" and "tem_insn", the latter being
11962         an rtx_insn *.
11963         (distribute_links): Strengthen locals "place", "insn" from rtx to
11964         rtx_insn *.
11966 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
11968         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
11969         than a const_rtx.
11970         (can_delete_label_p): Require a const rtx_code_label * rather than
11971         a const_rtx.
11972         (delete_insn): Add checked cast to rtx_code_label * when we know
11973         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
11974         rtx to rtx_insn *.
11975         (delete_insn_chain): Strengthen locals "prev" and "current" from
11976         rtx to rtx_insn *.  Add a checked cast when assigning from
11977         "finish" (strengthening the params will come later).  Add a
11978         checked cast to rtx_note * in region where we know
11979         NOTE_P (current).
11980         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
11981         rtx_insn *.
11982         (compute_bb_for_insn): Likewise.
11983         (free_bb_for_insn): Likewise for local "insn".
11984         (compute_bb_for_insn): Likewise.
11985         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
11986         local "insn" from rtx to rtx_insn *
11987         (flow_active_insn_p): Require a const rtx_insn * rather than a
11988         const_rtx.
11989         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
11990         rtx_insn *.
11991         (can_fallthru): Likewise for locals "insn" and "insn2".
11992         (bb_note): Likewise for local "note".
11993         (first_insn_after_basic_block_note): Likewise for local "note" and
11994         for return type.
11995         (rtl_split_block): Likewise for locals "insn" and "next".
11996         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
11997         "end".
11998         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
11999         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
12000         "prev", "tmp".
12001         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
12002         them), "kill_from", "barrier", "new_insn".
12003         (patch_jump_insn): Likewise for params "insn", "old_label".
12004         (redirect_branch_edge): Likewise for locals "old_label", "insn".
12005         (force_nonfallthru_and_redirect): Likewise for locals "insn",
12006         "old_label", "new_label".
12007         (rtl_tidy_fallthru_edge): Likewise for local "q".
12008         (rtl_split_edge): Likewise for locals "before", "last".
12009         (commit_one_edge_insertion): Likewise for locals "before",
12010         "after", "insns", "tmp", "last", adding a checked cast where
12011         currently necessary.
12012         (commit_edge_insertions): Likewise.
12013         (rtl_dump_bb): Likewise for locals "insn", "last".
12014         (print_rtl_with_bb): Likewise for local "x".
12015         (rtl_verify_bb_insns): Likewise for local "x".
12016         (rtl_verify_bb_pointers): Likewise for local "insn".
12017         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
12018         "head", "end".
12019         (rtl_verify_fallthru): Likewise for local "insn".
12020         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
12021         (purge_dead_edges): Likewise for local "insn".
12022         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
12023         (skip_insns_after_block): Likewise for return type and for locals
12024         "insn", "last_insn", "next_head", "prev".
12025         (record_effective_endpoints): Likewise for locals "next_insn",
12026         "insn", "end".
12027         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
12028         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
12029         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
12030         (duplicate_insn_chain): For now, add checked cast from rtx to
12031         rtx_insn * when returning insn.
12032         (cfg_layout_duplicate_bb): Likewise for local "insn".
12033         (cfg_layout_delete_block): Likewise for locals "insn", "next",
12034         "prev", "remaints".
12035         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
12036         (rtl_block_empty_p): Likewise.
12037         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
12038         "split_point", "last".
12039         (rtl_block_ends_with_call_p): Likewise for local "insn".
12040         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
12041         const rtx_insn *.
12042         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
12043         "split_at_insn" from rtx to rtx_insn *.
12044         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
12045         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
12046         to const rtx_insn *.
12047         (rtl_account_profile_record): Likewise.
12049 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12051         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
12052         rtx to rtx_insn *.
12053         (average_num_loop_insns): Likewise.
12054         (init_set_costs): Likewise for local "seq".
12055         (seq_cost): Likewise for param "seq", from const_rtx to const
12056         rtx_insn *.
12058 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12060         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
12061         rtx to rtx_insn *.
12063 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12065         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
12066         "f1" and "f2" from rtx * to rtx_insn **.
12067         (flow_find_head_matching_sequence): Likewise.
12069         * cfgcleanup.c (try_simplify_condjump): Strengthen local
12070         "cbranch_insn" from rtx to rtx_insn *.
12071         (thread_jump): Likewise for local "insn".
12072         (try_forward_edges): Likewise for local "last".
12073         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
12074         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
12075         "real_b_end".
12076         (can_replace_by): Likewise for params "i1", "i2".
12077         (old_insns_match_p): Likewise.
12078         (merge_notes): Likewise.
12079         (walk_to_nondebug_insn): Likewise for param "i1".
12080         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
12081         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
12082         "afterlast1", "afterlast2" from rtx to rtx_insn *.
12083         (flow_find_head_matching_sequence): Strengthen params "f1" and
12084         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
12085         "last1", "last2", "beforelast1", "beforelast2" from rtx to
12086         rtx_insn *.
12087         (outgoing_edges_match): Likewise for locals "last1", "last2".
12088         (try_crossjump_to_edge): Likewise for local "insn".
12089         Replace call to for_each_rtx with for_each_rtx_in_insn.
12091         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
12092         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
12093         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
12094         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
12095         (try_optimize_cfg): Strengthen local "last" from rtx to
12096         rtx_insn *.
12097         (delete_dead_jumptables): Likewise for locals "insn", "next",
12098         "label".
12100         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
12101         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
12102         "rtx else_first_tail", to reflect the basic-block.h changes above.
12104 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12106         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
12107         rtx_insn *.
12108         (purge_dead_tablejump_edges): Likewise.
12109         (find_bb_boundaries): Likewise for locals "insn", "end",
12110         "flow_transfer_insn".
12112 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12114         * caller-save.c (save_call_clobbered_regs): Strengthen locals
12115         "ins" and "prev" from rtx to rtx_insn *.
12117 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12119         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
12120         rtx_insn *.
12121         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
12122         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
12123         "scan_start".
12124         (load_register_parameters): Likewise for local "before_arg".
12125         (check_sibcall_argument_overlap): Likewise for param "insn".
12126         (expand_call): Likewise for locals "normal_call_insns",
12127         "tail_call_insns", "insns", "before_call", "after_args",
12128         "before_arg", "last", "prev".  Strengthen one of the "last" from
12129         rtx to rtx_call_insn *.
12130         (fixup_tail_calls): Strengthen local "insn" from rtx to
12131         rtx_insn *.
12132         (emit_library_call_value_1): Likewise for locals "before_call" and
12133         "last".
12135 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12137         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
12138         and "last" from rtx to rtx_insn *.
12139         (expand_builtin_nonlocal_goto): Likewise for local "insn".
12140         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
12141         rtx_call_insn *.
12142         (expand_errno_check): Strengthen local "lab" from rtx to
12143         rtx_code_label *.
12144         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
12145         rtx_insn *.
12146         (expand_builtin_mathfn_2): Likewise.
12147         (expand_builtin_mathfn_ternary): Likewise.
12148         (expand_builtin_mathfn_3): Likewise.
12149         (expand_builtin_interclass_mathfn): Likewise for local "last".
12150         (expand_builtin_int_roundingfn): Likewise for local "insns".
12151         (expand_builtin_int_roundingfn_2): Likewise.
12152         (expand_builtin_strlen): Likewise for local "before_strlen".
12153         (expand_builtin_strncmp): Likewise for local "seq".
12154         (expand_builtin_signbit): Likewise for local "last".
12155         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
12156         from rtx to rtx_code_label *.
12157         (expand_stack_restore):  Strengthen local "prev" from rtx to
12158         rtx_insn *.
12160 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12162         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
12163         to rtx_insn *.
12164         (struct btr_def_s): Likewise.
12165         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
12166         const rtx_insn *.
12167         (add_btr_def): Likewise.
12168         (new_btr_user): Likewise.
12169         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
12170         rtx to rtx_insn *.
12171         (link_btr_uses): Likewise.
12172         (move_btr_def): Likewise for locals "insp", "old_insn",
12173         "new_insn".  Add checked cast to rtx_insn * for now on result of
12174         gen_move_insn.
12175         (can_move_up): Strengthen param "insn" from const_rtx to
12176         const rtx_insn *.
12178 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12180         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
12181         rtx_insn *.
12182         (get_uncond_jump_length): Likewise for locals "label", "jump".
12183         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
12184         "jump", "insn".
12185         (add_labels_and_missing_jumps): Likewise for local "new_jump".
12186         (fix_up_fall_thru_edges): Likewise for local "old_jump".
12187         (find_jump_block): Likewise for local "insn".
12188         (fix_crossing_conditional_branches): Likewise for locals
12189         "old_jump", "new_jump".
12190         (fix_crossing_unconditional_branches): Likewise for locals
12191         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
12192         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
12194 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12196         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
12197         rtx to rtx_insn *.
12198         (struct mem_insn): Likewise for field "insn".
12199         (reg_next_use): Strengthen from rtx * to rtx_insn **.
12200         (reg_next_inc_use): Likewise.
12201         (reg_next_def): Likewise.
12202         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
12203         from rtx to rtx_insn *.
12204         (move_insn_before): Likewise for param "next_insn" and local "insns".
12205         (attempt_change): Likewise for local "mov_insn".
12206         (try_merge): Likewise for param "last_insn".
12207         (get_next_ref): Likewise for return type and local "insn".
12208         Strengthen param "next_array" from rtx * to rtx_insn **.
12209         (parse_add_or_inc): Strengthen param "insn" from rtx to
12210         rtx_insn *.
12211         (find_inc): Likewise for locals "insn" and "other_insn" (three of
12212         the latter).
12213         (merge_in_block): Likewise for locals "insn", "curr",
12214         "other_insn".
12215         (pass_inc_dec::execute): Update allocations of the arrays to
12216         reflect the stronger types.
12218 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12220         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
12221         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
12222         from rtx to rtx_code_label *.
12224 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12226         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
12227         to rtx_insn *.
12229 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
12231         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
12232         generated a warning and prevented bootstrapping the compiler.
12234 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12236         * rtl.h (delete_related_insns): Strengthen return type from rtx to
12237         rtx_insn *.
12239         * jump.c (delete_related_insns): Likewise, also for locals "next"
12240         and "prev".
12242 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12244         * genautomata.c (output_internal_insn_latency_func): When writing
12245         the function "internal_insn_latency" to insn-automata.c,
12246         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
12247         allowing the optional guard function of (define_bypass) clauses to
12248         expect a pair of rtx_insn *, rather than a pair of rtx.
12249         (output_insn_latency_func): When writing the function
12250         "insn_latency", add an "uncast_" prefix to params "insn" and
12251         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
12252         using checked casts from the params, thus enabling the above
12253         change to the generated "internal_insn_latency" function.
12255 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
12257         PR tree-optimization/62091
12258         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
12259         handle correctly arrays.
12260         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
12261         inheritance binfos.
12262         (record_known_type): Walk into inner type.
12263         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
12264         condition on no type changes.
12266 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12268         * genattrtab.c (write_attr_get): Within the generated get_attr_
12269         functions, rename param "insn" to "uncast_insn" and reintroduce
12270         "insn" as an local rtx_insn * using a checked cast, so that "insn"
12271         is an rtx_insn * within insn-attrtab.c
12273 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12275         * output.h (peephole): Strengthen return type from rtx to
12276         rtx_insn *.
12277         * rtl.h (delete_for_peephole): Likewise for both params.
12278         * genpeep.c (main): In generated "peephole" function, strengthen
12279         return type and local "insn" from rtx to rtx_insn *.  For now,
12280         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
12281         rtx_insn *, with a checked cast.
12282         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
12283         locals "insn", "next", "prev" from rtx to rtx_insn *.
12285 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
12287         PR tree-optimization/62112
12288         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
12289         * gimple-iterator.h (gsi_replace): Return bool.
12290         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
12291         moved from ref_may_alias_global_p.
12292         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
12293         New overloads.
12294         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
12295         (stmt_kills_ref_p_1): Rename...
12296         (stmt_kills_ref_p): ... to this.
12297         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
12298         stmt_kills_ref_p): Declare.
12299         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
12300         Move the self-assignment case...
12301         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
12303 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12305         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
12307         * emit-rtl.c (try_split): Likewise, also for locals "before" and
12308         "after".  For now, don't strengthen param "trial", which requires
12309         adding checked casts when returning it.
12311 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12313         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
12314         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
12315         "var_location" hook from rtx to rtx_insn *.
12316         (debug_nothing_rtx): Delete in favor of...
12317         (debug_nothing_rtx_code_label): New prototype.
12318         (debug_nothing_rtx_rtx): Delete unused prototype.
12319         (debug_nothing_rtx_insn): New prototype.
12321         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
12322         invoking debug_hooks->var_location (in two places, one in a NOTE
12323         case of a switch statement, the other guarded by a CALL_P
12324         conditional.  Add checked cast to rtx_code_label * when invoking
12325         debug_hooks->label (within CODE_LABEL case of switch statement).
12327         * dbxout.c (dbx_debug_hooks): Update "label" hook from
12328         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
12329         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
12330         (xcoff_debug_hooks): Likewise.
12331         * debug.c (do_nothing_debug_hooks): Likewise.
12332         (debug_nothing_rtx): Delete in favor of...
12333         (debug_nothing_rtx_insn): New function.
12334         (debug_nothing_rtx_rtx): Delete unused function.
12335         (debug_nothing_rtx_code_label): New function.
12336         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
12337         debug_nothing_rtx to debug_nothing_rtx_code_label.
12338         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
12339         to rtx_insn *.
12340         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
12341         debug_nothing_rtx to debug_nothing_rtx_insn.
12342         (sdbout_label): Strengthen param "insn" from rtx to
12343         rtx_code_label *.
12344         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
12345         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
12346         "var_location" hook from debug_nothing_rtx to
12347         debug_nothing_rtx_insn.
12349 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12351         * recog.h (insn_output_fn): Update this function typedef to match
12352         the changes below to the generated output functions, strengthening
12353         the 2nd param from rtx to rtx_insn *.
12355         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
12356         insn when invoking an output function, to match the new signature
12357         of insn_output_fn with a stronger second param.
12359         * genconditions.c (write_header): In the generated code for
12360         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
12361         to match the other changes in this patch.
12363         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
12364         the generated "gen_" functions from rtx to rtx_insn * within their
12365         implementations.
12367         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
12368         the subfunctions within the generated "recog_", "split", "peephole2"
12369         function trees from rtx to rtx_insn *.  For now, the top-level
12370         generated functions ("recog", "split", "peephole2") continue to
12371         take a plain rtx for "insn", to avoid introducing dependencies on
12372         other patches.  Rename this 2nd param from "insn" to
12373         "uncast_insn", and reintroduce "insn" as a local variable of type
12374         rtx_insn *, initialized at the top of the generated function with
12375         a checked cast on "uncast_insn".
12376         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
12377         the generated "gen_" functions from rtx to rtx_insn * within their
12378         prototypes.
12380         * genoutput.c (process_template): Strengthen the 2nd param within
12381         the generated "output_" functions "insn" from rtx to rtx_insn *.
12383 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
12385         * tree-profile.c (tree_profiling): Skip external functions
12386         when doing coverage instrumentation.
12387         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
12389 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12391         * config/rs6000/altivec.h (vec_cpsgn): New #define.
12392         (vec_mergee): Likewise.
12393         (vec_mergeo): Likewise.
12394         (vec_cntlz): Likewise.
12395         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
12396         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
12397         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
12398         VMRGEW, and VMRGOW.
12399         * doc/extend.texi: Document various forms of vec_cpsgn,
12400         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
12401         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
12402         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
12403         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
12404         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
12406 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12408         * config/rs6000/rs6000.c (context.h): New include.
12409         (tree-pass.h): Likewise.
12410         (make_pass_analyze_swaps): New decl.
12411         (rs6000_option_override): Register pass_analyze_swaps.
12412         (swap_web_entry): New subsclass of web_entry_base (df.h).
12413         (special_handling_values): New enum.
12414         (union_defs): New function.
12415         (union_uses): Likewise.
12416         (insn_is_load_p): Likewise.
12417         (insn_is_store_p): Likewise.
12418         (insn_is_swap_p): Likewise.
12419         (rtx_is_swappable_p): Likewise.
12420         (insn_is_swappable_p): Likewise.
12421         (chain_purpose): New enum.
12422         (chain_contains_only_swaps): New function.
12423         (mark_swaps_for_removal): Likewise.
12424         (swap_const_vector_halves): Likewise.
12425         (adjust_subreg_index): Likewise.
12426         (permute_load): Likewise.
12427         (permute_store): Likewise.
12428         (handle_special_swappables): Likewise.
12429         (replace_swap_with_copy): Likewise.
12430         (dump_swap_insn_table): Likewise.
12431         (rs6000_analyze_swaps): Likewise.
12432         (pass_data_analyze_swaps): New pass_data.
12433         (pass_analyze_swaps): New rtl_opt_pass.
12434         (make_pass_analyze_swaps): New function.
12435         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
12437 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12439         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
12440         type from rtx to rtx_insn *.
12441         (create_copy_of_insn_rtx): Likewise.
12442         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
12443         (create_copy_of_insn_rtx): Likewise, also for local "res".
12445 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12447         * rtl.h (find_first_parameter_load): Strengthen return type from
12448         rtx to rtx_insn *.
12449         * rtlanal.c (find_first_parameter_load): Strengthen return type
12450         from rtx to rtx_insn *.  Add checked cast for now, to postpone
12451         strengthening the params.
12453 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12455         PR fortran/44054
12456         * diagnostic.c: Set default caret.
12457         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
12458         line is needed.
12459         * diagnostic.h (struct diagnostic_context):
12461 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12463         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
12464         (sel_bb_head): Strengthen return type insn_t (currently just an
12465         rtx) to rtx_insn *.
12466         (sel_bb_end): Likewise.
12468         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
12469         (sel_bb_head): Strengthen return type and local "head" from
12470         insn_t (currently just an rtx) to rtx_insn *.
12471         (sel_bb_end): Likewise for return type.
12472         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
12473         working with insn.
12475 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12477         * basic-block.h (get_last_bb_insn): Strengthen return type from
12478         rtx to rtx_insn *.
12479         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
12480         end".
12482 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12484         PR fortran/44054
12485         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
12486          to here ...
12487         (diagnostic_report_diagnostic): ... from here.
12488         * toplev.c (general_init): Move code to c-family.
12490 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12492         * df.h (web_entry_base): Replace existing struct web_entry with a
12493         new class web_entry_base with only the predecessor member.
12494         (unionfind_root): Remove declaration and move to class member.
12495         (unionfind_union): Remove declaration and move to friend
12496         function.
12497         (union_defs): Remove declaration.
12498         * web.c (web_entry_base::unionfind_root): Modify to be member
12499         function and adjust accessors.
12500         (unionfind_union): Modify to be friend function and adjust
12501         accessors.
12502         (web_entry): New subclass of web_entry_base containing the reg
12503         member.
12504         (union_match_dups): Modify for struct -> class changes.
12505         (union_defs): Likewise.
12506         (entry_register): Likewise.
12507         (pass_web::execute): Likewise.
12509 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
12511         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
12512         builtin define __VEC_ELEMENT_REG_ORDER__.
12514 2014-08-20  Martin Jambor  <mjambor@suse.cz>
12515             Wei Mi  <wmi@google.com>
12517         PR ipa/60449
12518         PR middle-end/61776
12519         * tree-ssa-operands.c (update_stmt_operands): Remove
12520         MODIFIED_NORETURN_CALLS.
12521         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
12522         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
12523         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
12524         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
12525         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
12526         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
12527         (gimple_call_set_ctrl_altering): New func.
12528         (gimple_call_ctrl_altering_p): Ditto.
12529         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
12530         (make_blocks): Use gimple_call_initialize_ctrl_altering.
12531         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
12532         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
12533         remove MODIFIED_NORETURN_CALLS.
12535 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
12537         * coverage.c (coverage_compute_profile_id): Return non-0;
12538         also handle symbols with unique name.
12539         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
12541 2014-08-20  Steve Ellcey  <sellcey@mips.com>
12543         PR middle-end/49191
12544         * doc/sourcebuild.texi (non_strict_align): New.
12546 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
12548         * cgraphunit.c (ipa_passes, compile): Reshedule
12549         symtab_remove_unreachable_nodes passes; update comments.
12550         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
12551         TODO_remove_functions before the pass; the functions ought to be
12552         already removed.
12553         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
12554         TODO_remove_functions.
12555         * passes.c (pass_data_early_local_passes): Do not schedule function
12556         removal.
12557         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
12559 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12561         PR c/59304
12562         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
12563         before setting the option.
12564         * diagnostic.c (diagnostic_classify_diagnostic): Record
12565         command-line status.
12567 2014-08-20  Richard Biener  <rguenther@suse.de>
12569         PR lto/62190
12570         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
12571         to build uint{16,32,64}_type_node.
12573 2014-08-20  Terry Guo  <terry.guo@arm.com>
12575         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
12576         with immediate_operand.
12578 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
12580         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
12581         "insn" from an as_a to a safe_as_a, for the case when "insn" is
12582         NULL.
12584 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12586         PR preprocessor/51303
12587         * incpath.c (remove_duplicates): Use cpp_warning.
12589 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12591         PR c/60975
12592         PR c/53063
12593         * doc/options.texi (CPP): Document it.
12594         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
12595         * optc-gen.awk: Handle CPP.
12596         * opth-gen.awk: Likewise.
12598 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12600         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
12601         rtx_insn *.
12602         (duplicate_insn_chain): Likewise.
12603         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
12604         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
12605         checked cast for now (until we can strengthen the params in the
12606         same way).
12607         (duplicate_insn_chain): Likewise.
12609 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12611         * rtl.h (next_cc0_user): Strengthen return type from rtx to
12612         rtx_insn *.
12613         (prev_cc0_setter): Likewise.
12615         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
12616         rtx_insn *, adding checked casts for now as necessary.
12617         (prev_cc0_setter): Likewise.
12619 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12621         * expr.h (emit_move_insn): Strengthen return type from rtx to
12622         rtx_insn *.
12623         (emit_move_insn_1): Likewise.
12624         (emit_move_complex_push): Likewise.
12625         (emit_move_complex_parts): Likewise.
12627         * expr.c (emit_move_via_integer): Strengthen return type from rtx
12628         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
12629         with insns.
12630         (emit_move_complex_push): Strengthen return type from rtx to
12631         rtx_insn *.
12632         (emit_move_complex): Likewise, also for local "ret".
12633         (emit_move_ccmode): Likewise.
12634         (emit_move_multi_word): Likewise for return type and locals
12635         "last_insn", "seq".
12636         (emit_move_insn_1): Likewise for return type and locals "result",
12637         "ret".
12638         (emit_move_insn): Likewise for return type and local "last_insn".
12639         (compress_float_constant): Likewise.
12641 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12643         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
12644         from rtx to rtx_insn *.
12646         * rtl.h (emit_insn_before): Likewise.
12647         (emit_insn_before_noloc): Likewise.
12648         (emit_insn_before_setloc): Likewise.
12649         (emit_jump_insn_before): Likewise.
12650         (emit_jump_insn_before_noloc): Likewise.
12651         (emit_jump_insn_before_setloc): Likewise.
12652         (emit_call_insn_before): Likewise.
12653         (emit_call_insn_before_noloc): Likewise.
12654         (emit_call_insn_before_setloc): Likewise.
12655         (emit_debug_insn_before): Likewise.
12656         (emit_debug_insn_before_noloc): Likewise.
12657         (emit_debug_insn_before_setloc): Likewise.
12658         (emit_label_before): Likewise.
12659         (emit_insn_after): Likewise.
12660         (emit_insn_after_noloc): Likewise.
12661         (emit_insn_after_setloc): Likewise.
12662         (emit_jump_insn_after): Likewise.
12663         (emit_jump_insn_after_noloc): Likewise.
12664         (emit_jump_insn_after_setloc): Likewise.
12665         (emit_call_insn_after): Likewise.
12666         (emit_call_insn_after_noloc): Likewise.
12667         (emit_call_insn_after_setloc): Likewise.
12668         (emit_debug_insn_after): Likewise.
12669         (emit_debug_insn_after_noloc): Likewise.
12670         (emit_debug_insn_after_setloc): Likewise.
12671         (emit_label_after): Likewise.
12672         (emit_insn): Likewise.
12673         (emit_debug_insn): Likewise.
12674         (emit_jump_insn): Likewise.
12675         (emit_call_insn): Likewise.
12676         (emit_label): Likewise.
12677         (gen_clobber): Likewise.
12678         (emit_clobber): Likewise.
12679         (gen_use): Likewise.
12680         (emit_use): Likewise.
12681         (emit): Likewise.
12683         (emit_barrier_before): Strengthen return type from rtx to
12684         rtx_barrier *.
12685         (emit_barrier_after): Likewise.
12686         (emit_barrier): Likewise.
12688         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
12689         from rtx to rtx_insn *.  Add checked casts for now when converting
12690         "last" from rtx to rtx_insn *.
12691         (emit_insn_before_noloc): Likewise for return type.
12692         (emit_jump_insn_before_noloc): Likewise.
12693         (emit_call_insn_before_noloc): Likewise.
12694         (emit_debug_insn_before_noloc): Likewise.
12695         (emit_barrier_before): Strengthen return type and local "insn"
12696         from rtx to rtx_barrier *.
12697         (emit_label_before): Strengthen return type from rtx to
12698         rtx_insn *.  Add checked cast for now when returning param
12699         (emit_pattern_after_noloc): Strengthen return type from rtx to
12700         rtx_insn *.  Add checked casts for now when converting "last" from
12701         rtx to rtx_insn *.
12702         (emit_insn_after_noloc): Strengthen return type from rtx to
12703         rtx_insn *.
12704         (emit_jump_insn_after_noloc): Likewise.
12705         (emit_call_insn_after_noloc): Likewise.
12706         (emit_debug_insn_after_noloc): Likewise.
12707         (emit_barrier_after): Strengthen return type from rtx to
12708         rtx_barrier *.
12709         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
12710         Add checked cast for now when converting "label" from rtx to
12711         rtx_insn *.
12712         (emit_pattern_after_setloc): Strengthen return type from rtx to
12713         rtx_insn *.  Add checked casts for now when converting "last" from
12714         rtx to rtx_insn *.
12715         (emit_pattern_after): Strengthen return type from rtx to
12716         rtx_insn *.
12717         (emit_insn_after_setloc): Likewise.
12718         (emit_insn_after): Likewise.
12719         (emit_jump_insn_after_setloc): Likewise.
12720         (emit_jump_insn_after): Likewise.
12721         (emit_call_insn_after_setloc): Likewise.
12722         (emit_call_insn_after): Likewise.
12723         (emit_debug_insn_after_setloc): Likewise.
12724         (emit_debug_insn_after): Likewise.
12725         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
12726         when converting "last" from rtx to rtx_insn *.
12727         (emit_pattern_before): Strengthen return type from rtx to
12728         rtx_insn *.
12729         (emit_insn_before_setloc): Likewise.
12730         (emit_insn_before): Likewise.
12731         (emit_jump_insn_before_setloc): Likewise.
12732         (emit_jump_insn_before): Likewise.
12733         (emit_call_insn_before_setloc): Likewise.
12734         (emit_call_insn_before): Likewise.
12735         (emit_debug_insn_before_setloc): Likewise.
12736         (emit_debug_insn_before): Likewise.
12737         (emit_insn): Strengthen return type and locals "last", "insn",
12738         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
12739         within cases where we know we have an insn.
12740         (emit_debug_insn): Likewise.
12741         (emit_jump_insn): Likewise.
12742         (emit_call_insn): Strengthen return type and local "insn" from rtx
12743         to rtx_insn *.
12744         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
12745         a checked cast to rtx_insn * for now on "label".
12746         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
12747         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
12748         (emit_use): Likewise.
12749         (gen_use): Likewise, also for local "seq".
12750         (emit): Likewise for return type and local "insn".
12751         (rtx_insn): Likewise for return type and local "new_rtx".
12753         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
12754         from rtx to rtx_barrier *.
12756         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
12757         changed return type from rtx to rtx_insn *, we must update
12758         "emit_fn" type, and this in turn means updating...
12759         (frame_insn): ...this.  Strengthen return type from rtx to
12760         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
12762 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12764         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
12765         rtx to rtx_jump_table_data *.  Also for local.
12766         * rtl.h (emit_jump_table_data): Likewise.
12768 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12770         * basic-block.h (create_basic_block_structure): Strengthen third
12771         param "bb_note" from rtx to rtx_note *.
12772         * rtl.h (emit_note_before): Strengthen return type from rtx to
12773         rtx_note *.
12774         (emit_note_after): Likewise.
12775         (emit_note): Likewise.
12776         (emit_note_copy): Likewise.  Also, strengthen param similarly.
12777         * function.h (struct rtl_data): Strengthen field
12778         "x_stack_check_probe_note" from rtx to rtx_note *.
12780         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
12781         from rtx to rtx_note *.
12782         * cfgrtl.c (create_basic_block_structure): Strengthen third param
12783         "bb_note" from rtx to rtx_note *.
12784         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
12785         when calling emit_note_copy.
12786         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
12787         rtx_note *.
12788         (emit_note_after): Likewise.
12789         (emit_note_before): Likewise.
12790         (emit_note_copy): Likewise.  Also, strengthen param similarly.
12791         (emit_note): Likewise.
12792         * except.c (emit_note_eh_region_end): Likewise for return type.
12793         Strengthen local "next" from rtx to rtx_insn *.
12794         (convert_to_eh_region_ranges): Strengthen local "note"
12795         from rtx to rtx_note *.
12796         * final.c (change_scope): Likewise.
12797         (reemit_insn_block_notes): Likewise, for both locals named "note".
12798         Also, strengthen local "insn" from rtx to rtx_insn *.
12799         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
12800         rtx to rtx_note *.
12801         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
12802         strengthen local "seq" from rtx to rtx_insn *.
12803         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
12804         to rtx_note *.
12805         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
12806         vec<rtx_note *>.
12807         (get_bb_note_from_pool): Strengthen return type from rtx to
12808         rtx_note *.
12809         (sel_create_basic_block): Strengthen local "new_bb_note" from
12810         insn_t to rtx_note *.
12811         * var-tracking.c (emit_note_insn_var_location): Strengthen local
12812         "note" from rtx to rtx_note *.
12813         (emit_notes_in_bb): Likewise.
12815 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12817         * function.h (struct rtl_data): Strengthen field
12818         "x_parm_birth_insn" from rtx to rtx_insn *.
12819         * function.c (struct assign_parm_data_all): Strengthen fields
12820         "first_conversion_insn" and "last_conversion_insn" from rtx to
12821         rtx_insn *.
12823 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12825         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
12826         to rtx_insn *; also for local "var_end_seq".
12827         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
12828         (maybe_cleanup_end_of_block): Likewise for param "last" and local
12829         "insn".
12830         (expand_gimple_cond): Likewise for locals "last2" and "last".
12831         (mark_transaction_restart_calls): Likewise for local "insn".
12832         (expand_gimple_stmt): Likewise for return type and locals "last"
12833         and "insn".
12834         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
12835         (avoid_complex_debug_insns): Likewise for param "insn".
12836         (expand_debug_locations): Likewise for locals "insn", "last",
12837         "prev_insn" and "insn2".
12838         (expand_gimple_basic_block): Likewise for local "last".
12839         (construct_exit_block): Likewise for locals "head", "end",
12840         "orig_end".
12841         (pass_expand::execute): Likewise for locals "var_seq",
12842         "var_ret_seq", "next".
12844 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12846         * asan.h (asan_emit_stack_protection): Strengthen return type from
12847         rtx to rtx_insn *.
12848         * asan.c (asan_emit_stack_protection): Likewise.  Add local
12849         "insns" to hold the return value.
12851 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12853         * basic-block.h (bb_note): Strengthen return type from rtx to
12854         rtx_note *.
12855         * sched-int.h (bb_note): Likewise.
12856         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
12858 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12860         * rtl.h (make_insn_raw): Strengthen return type from rtx to
12861         rtx_insn *.
12863         * emit-rtl.c (make_insn_raw): Strengthen return type and local
12864         "insn" from rtx to rtx_insn *.
12865         (make_debug_insn_raw): Strengthen return type from rtx to
12866         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
12867         (make_jump_insn_raw):  Strengthen return type from rtx to
12868         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
12869         (make_call_insn_raw):  Strengthen return type from rtx to
12870         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
12871         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
12872         callback from rtx to rtx_insn *; likewise for local "insn" and
12873         "next", adding a checked cast to rtx_insn in the relevant cases of
12874         the switch statement.
12875         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
12876         callback from rtx to rtx_insn *.
12877         (emit_pattern_after_setloc): Likewise.
12878         (emit_pattern_after): Likewise.
12879         (emit_pattern_before_setloc): Likewise.
12880         (emit_pattern_before): Likewise.
12882 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12884         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
12885         rtx_call_insn *.
12886         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
12887         accepting an rtx_insn *.
12888         (last_call_insn): Strengthen return type from rtx to
12889         rtx_call_insn *.
12891 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12893         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
12894         "insns" from rtx to rtx_insn *.
12895         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
12896         locals "insn" and "prev".
12898 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12900         * rtl.h (tablejump_p): Strengthen third param from rtx * to
12901         rtx_jump_table_data **.
12903         * cfgbuild.c (make_edges): Introduce local "table", using it in
12904         place of "tmp" for jump table data.
12905         (find_bb_boundaries): Strengthen local "table" from rtx to
12906         rtx_jump_table_data *.
12907         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
12908         (outgoing_edges_match): Likewise for locals "table1" and "table2".
12909         (try_crossjump_to_edge): Likewise.
12910         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
12911         "table".
12912         (patch_jump_insn): Introduce local "table", using it in place of
12913         "tmp" for jump table data.
12914         (force_nonfallthru_and_redirect): Introduce local "table", so that
12915         call to tablejump_p can receive an rtx_jump_table_data **.  Update
12916         logic around the call to overwrite "note" appropriately if
12917         tablejump_p returns non-zero.
12918         (get_last_bb_insn): Introduce local "table", using it in place of
12919         "tmp" for jump table data.
12920         * dwarf2cfi.c (create_trace_edges): Likewise.
12922         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
12923         from rtx to rtx_jump_table_data *.
12924         (create_fix_barrier): Strengthen local "tmp" from rtx to
12925         rtx_jump_table_data *.
12926         (arm_reorg): Likewise for local "table".
12928         * config/s390/s390.c (s390_chunkify_start): Likewise.
12930         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
12932         * jump.c (delete_related_insns): Strengthen local "lab_next" from
12933         rtx to rtx_jump_table_data *.
12935         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
12936         rtx_jump_table_data **.  Add a checked cast when writing through
12937         the pointer: we know there that local "table" is non-NULL and that
12938         JUMP_TABLE_DATA_P (table) holds.
12939         (label_is_jump_target_p): Introduce local "table", using it in
12940         place of "tmp" for jump table data.
12942 2014-08-19  Marek Polacek  <polacek@redhat.com>
12944         PR c++/62153
12945         * doc/invoke.texi: Document -Wbool-compare.
12947 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12949         * rtl.h (entry_of_function): Strengthen return type from rtx to
12950         rtx_insn *.
12951         * cfgrtl.c (entry_of_function): Likewise.
12953 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12955         * emit-rtl.h (get_insns): Strengthen return type from rtx to
12956         rtx_insn *, adding a checked cast for now.
12957         (get_last_insn): Likewise.
12959 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12961         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
12962         rtx_code_label *.
12964         * emit-rtl.c (gen_label_rtx): Likewise.
12966 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12968         * rtl.h (previous_insn): Strengthen return type from rtx to
12969         rtx_insn *.
12970         (next_insn): Likewise.
12971         (prev_nonnote_insn): Likewise.
12972         (prev_nonnote_insn_bb): Likewise.
12973         (next_nonnote_insn): Likewise.
12974         (next_nonnote_insn_bb): Likewise.
12975         (prev_nondebug_insn): Likewise.
12976         (next_nondebug_insn): Likewise.
12977         (prev_nonnote_nondebug_insn): Likewise.
12978         (next_nonnote_nondebug_insn): Likewise.
12979         (prev_real_insn): Likewise.
12980         (next_real_insn): Likewise.
12981         (prev_active_insn): Likewise.
12982         (next_active_insn): Likewise.
12984         * emit-rtl.c (next_insn): Strengthen return type from rtx to
12985         rtx_insn *, adding a checked cast.
12986         (previous_insn): Likewise.
12987         (next_nonnote_insn): Likewise.
12988         (next_nonnote_insn_bb): Likewise.
12989         (prev_nonnote_insn): Likewise.
12990         (prev_nonnote_insn_bb): Likewise.
12991         (next_nondebug_insn): Likewise.
12992         (prev_nondebug_insn): Likewise.
12993         (next_nonnote_nondebug_insn): Likewise.
12994         (prev_nonnote_nondebug_insn): Likewise.
12995         (next_real_insn): Likewise.
12996         (prev_real_insn): Likewise.
12997         (next_active_insn): Likewise.
12998         (prev_active_insn): Likewise.
13000         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
13001         param "stepfunc" so that it returns an rtx_insn * rather than an
13002         rtx, to track the change to prev_nonnote_insn_bb, which is the
13003         only function this is called with.
13004         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
13006 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
13008         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
13009         assert.
13011 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13013         * coretypes.h (class rtx_debug_insn): Add forward declaration.
13014         (class rtx_nonjump_insn): Likewise.
13015         (class rtx_jump_insn): Likewise.
13016         (class rtx_call_insn): Likewise.
13017         (class rtx_jump_table_data): Likewise.
13018         (class rtx_barrier): Likewise.
13019         (class rtx_code_label): Likewise.
13020         (class rtx_note): Likewise.
13022         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
13023         adding the invariant DEBUG_INSN_P (X).
13024         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
13025         the invariant NONJUMP_INSN_P (X).
13026         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
13027         the invariant JUMP_P (X).
13028         (class rtx_call_insn): New, a subclass of rtx_insn, adding
13029         the invariant CALL_P (X).
13030         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
13031         invariant JUMP_TABLE_DATA_P (X).
13032         (class rtx_barrier): New, a subclass of rtx_insn, adding the
13033         invariant BARRIER_P (X).
13034         (class rtx_code_label): New, a subclass of rtx_insn, adding
13035         the invariant LABEL_P (X).
13036         (class rtx_note): New, a subclass of rtx_insn, adding
13037         the invariant NOTE_P(X).
13038         (is_a_helper <rtx_debug_insn *>::test): New.
13039         (is_a_helper <rtx_nonjump_insn *>::test): New.
13040         (is_a_helper <rtx_jump_insn *>::test): New.
13041         (is_a_helper <rtx_call_insn *>::test): New.
13042         (is_a_helper <rtx_jump_table_data *>::test): New functions,
13043         overloaded for both rtx and rtx_insn *.
13044         (is_a_helper <rtx_barrier *>::test): New.
13045         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
13046         for both rtx and rtx_insn *.
13047         (is_a_helper <rtx_note *>::test): New.
13049 2014-08-19  Marek Polacek  <polacek@redhat.com>
13051         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
13052         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
13053         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
13054         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
13056 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13058         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
13059         rtx_insn *.  To help with transition, for now, convert from an
13060         access macro into a pair of functions: BND_TO, returning an
13061         rtx_insn *, and...
13062         (SET_BND_TO): New function, for use where BND_TO is used as an
13063         lvalue.
13065         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
13066         SET_BND_TO.
13067         (BND_TO): New function, adding a checked cast.
13068         (SET_BND_TO): New function.
13070         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
13071         SET_BND_TO.
13072         (compute_av_set_on_boundaries): Likewise.
13074 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13076         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
13077         destination if it is used in source.
13078         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
13079         (*popcount<mode>2_falsedep_1): Likewise.
13081 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13083         PR other/62168
13084         * configure.ac: Set install_gold_as_default to no first.
13085         * configure: Regenerated.
13087 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13089         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
13090         "note_list" field will eventually be an rtx_insn *.  To help with
13091         transition, for now, convert from an access macro into a pair of
13092         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
13093         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
13094         used as an lvalue.
13096         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
13097         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
13099         * sel-sched-ir.c (init_bb): Likewise.
13100         (sel_restore_notes): Likewise.
13101         (move_bb_info): Likewise.
13102         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
13103         (SET_BB_NOTE_LIST): New function.
13105 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13107         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
13108         field will eventually be an rtx_insn *.  To help with transition,
13109         for now, convert from an access macro into a pair of functions:
13110         VINSN_INSN_RTX, returning an rtx_insn *, and...
13111         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
13112         is used as an lvalue.
13114         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
13115         SET_VINSN_INSN_RTX where it's used as an lvalue.
13116         (VINSN_INSN_RTX): New function.
13117         (SET_VINSN_INSN_RTX): New function.
13119 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13121         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
13122         eventually be rtx_insn *, but to help with transition, for now,
13123         convert from an access macro into a pair of functions: DEP_PRO
13124         returning an rtx_insn * and...
13125         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
13126         lvalue, returning an rtx&.
13127         (DEP_CON): Analogous changes to DEP_PRO above.
13128         (SET_DEP_CON): Likewise.
13130         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
13131         an lvalue to SET_DEP_CON.
13132         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
13133         (sd_copy_back_deps): Likewise for DEP_CON.
13134         (DEP_PRO): New function, adding a checked cast for now.
13135         (DEP_CON): Likewise.
13136         (SET_DEP_PRO): New function.
13137         (SET_DEP_CON): Likewise.
13139 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
13141         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
13142         (extra_options): Add i386/cygwin.opt.
13143         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
13144         (CPP_SPEC): Accept -pthread.
13145         (LINK_SPEC): Ditto.
13146         (GOMP_SELF_SPECS): Update comment.
13147         * config/i386/cygwin.opt: New file for -pthread flag.
13149 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13151         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
13152         * df.h (DF_REF_INSN): Convert from a macro to a function, so
13153         that we can return an rtx_insn *.
13155 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
13157         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
13158         when building executables, not DLLs.  Add --large-address-aware
13159         under the same conditions.
13160         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
13161         when building executables, not DLLs.  Add --large-address-aware
13162         under the same conditions when using -m32.
13164         * config/i386/cygwin-stdint.h: Throughout, make type
13165         definitions dependent on target architecture, not host.
13167 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13169         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
13170         the return type from rtx to rtx_insn *,  which will enable various
13171         conversions in followup patches.  For now this is is done by a
13172         checked cast.
13173         (NEXT_INSN): Likewise.
13174         (SET_PREV_INSN): Convert to an inline function.  This is intended
13175         for use as an lvalue, and so returns an rtx& to allow in-place
13176         modification.
13177         (SET_NEXT_INSN): Likewise.
13179 2014-07-08  Mark Wielaard  <mjw@redhat.com>
13181         PR debug/59051
13182         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
13184 2014-08-19  Marek Polacek  <polacek@redhat.com>
13186         PR c/61271
13187         * cgraphunit.c (handle_alias_pairs): Fix condition.
13189 2014-08-19  Richard Biener  <rguenther@suse.de>
13191         * gimple-fold.c (fold_gimple_assign): Properly build a
13192         null-pointer constant when devirtualizing addresses.
13194 2014-07-07  Mark Wielaard  <mjw@redhat.com>
13196         * dwarf2out.c (decl_quals): New function.
13197         (modified_type_die): Take one cv_quals argument instead of two,
13198         one for const and one for volatile.
13199         (add_type_attribute): Likewise.
13200         (generic_parameter_die): Call add_type_attribute with one modifier
13201         argument.
13202         (base_type_for_mode): Likewise.
13203         (add_bounds_info): Likewise.
13204         (add_subscript_info): Likewise.
13205         (gen_array_type_die): Likewise.
13206         (gen_descr_array_type_die): Likewise.
13207         (gen_entry_point_die): Likewise.
13208         (gen_enumeration_type_die): Likewise.
13209         (gen_formal_parameter_die): Likewise.
13210         (gen_subprogram_die): Likewise.
13211         (gen_variable_die): Likewise.
13212         (gen_const_die): Likewise.
13213         (gen_field_die): Likewise.
13214         (gen_pointer_type_die): Likewise.
13215         (gen_reference_type_die): Likewise.
13216         (gen_ptr_to_mbr_type_die): Likewise.
13217         (gen_inheritance_die): Likewise.
13218         (gen_subroutine_type_die): Likewise.
13219         (gen_typedef_die): Likewise.
13220         (force_type_die): Likewise.
13222 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13224         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
13225         if unset.
13226         * configure: Regenerate.
13228 2014-08-19  Richard Biener  <rguenther@suse.de>
13230         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
13231         DECL_EXTERNALs in BLOCKs as non-references.
13232         * tree-streamer-out.c (streamer_write_chain): Likewise.
13234 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13235             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13236             Anna Tikhonova  <anna.tikhonova@intel.com>
13237             Ilya Tocar  <ilya.tocar@intel.com>
13238             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13239             Ilya Verbin  <ilya.verbin@intel.com>
13240             Kirill Yukhin  <kirill.yukhin@intel.com>
13241             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13243         * config/i386/sse.md
13244         (define_mode_iterator VI48_AVX512F): Delete.
13245         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
13246         (define_mode_iterator VI2_AVX512VL): Ditto.
13247         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
13248         Delete.
13249         (define_insn
13250         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
13251         New.
13252         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
13253         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
13254         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
13255         with VI48_AVX512F_AVX512VL): New.
13256         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
13257         with VI2_AVX512VL): Ditto.
13259 2014-08-19  Marek Polacek  <polacek@redhat.com>
13261         * doc/invoke.texi: Document -Wc99-c11-compat.
13263 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13265         * rtl.h (PREV_INSN): Split macro in two: the existing one,
13266         for rvalues, and...
13267         (SET_PREV_INSN): New macro, for use as an lvalue.
13268         (NEXT_INSN, SET_NEXT_INSN): Likewise.
13270         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
13271         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
13272         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
13273         (fixup_abnormal_edges): Likewise.
13274         (unlink_insn_chain): Likewise.
13275         (fixup_reorder_chain): Likewise.
13276         (cfg_layout_delete_block): Likewise.
13277         (cfg_layout_merge_blocks): Likewise.
13278         * combine.c (update_cfg_for_uncondjump): Likewise.
13279         * emit-rtl.c (link_insn_into_chain): Likewise.
13280         (remove_insn): Likewise.
13281         (delete_insns_since): Likewise.
13282         (reorder_insns_nobb): Likewise.
13283         (emit_insn_after_1): Likewise.
13284         * final.c (rest_of_clean_state): Likewise.
13285         (final_scan_insn): Likewise.
13286         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
13287         * haifa-sched.c (concat_note_lists): Likewise.
13288         (remove_notes): Likewise.
13289         (restore_other_notes): Likewise.
13290         (move_insn): Likewise.
13291         (unlink_bb_notes): Likewise.
13292         (restore_bb_notes): Likewise.
13293         * jump.c (delete_for_peephole): Likewise.
13294         * optabs.c (emit_libcall_block_1): Likewise.
13295         * reorg.c (emit_delay_sequence): Likewise.
13296         (fill_simple_delay_slots): Likewise.
13297         * sel-sched-ir.c (sel_move_insn): Likewise.
13298         (sel_remove_insn): Likewise.
13299         (get_bb_note_from_pool): Likewise.
13300         * sel-sched.c (move_nop_to_previous_block): Likewise.
13302         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
13303         * config/c6x/c6x.c (gen_one_bundle): Likewise.
13304         (c6x_gen_bundles): Likewise.
13305         (hwloop_optimize): Likewise.
13306         * config/frv/frv.c (frv_function_prologue): Likewise.
13307         (frv_register_nop): Likewise.
13308         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
13309         (ia64_reorg): Likewise.
13310         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
13311         (mep_make_bundle): Likewise.
13312         (mep_bundle_insns): Likewise.
13313         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
13314         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
13315         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
13317 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13319         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
13320         return type from rtx to rtx_insn *.
13321         (BB_END): Likewise.
13322         (BB_HEADER): Likewise.
13323         (BB_FOOTER): Likewise.
13324         (SET_BB_HEAD): Convert to a function.
13325         (SET_BB_END): Likewise.
13326         (SET_BB_HEADER): Likewise.
13327         (SET_BB_FOOTER): Likewise.
13329         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
13330         Strengthen the return type from rtx to rtx_insn *.  For now, this
13331         is done by adding a checked cast, but this will eventually
13332         become a field lookup.
13333         (BB_END): Likewise.
13334         (BB_HEADER): Likewise.
13335         (BB_FOOTER): Likewise.
13336         (SET_BB_HEAD): New function, from macro of same name.  This is
13337         intended for use as an lvalue, and so returns an rtx& to allow
13338         in-place modification.
13339         (SET_BB_END): Likewise.
13340         (SET_BB_HEADER): Likewise.
13341         (SET_BB_FOOTER): Likewise.
13343 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
13345         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
13346         for rvalues, and...
13347         (SET_BB_HEAD): New macro, for use as a lvalue.
13348         (BB_END, SET_BB_END): Likewise.
13349         (BB_HEADER, SET_BB_HEADER): Likewise.
13350         (BB_FOOTER, SET_BB_FOOTER): Likewise.
13352         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
13353         of BB_* macros into SET_BB_* macros.
13354         (fix_crossing_unconditional_branches): Likewise.
13355         * caller-save.c (save_call_clobbered_regs): Likewise.
13356         (insert_one_insn): Likewise.
13357         * cfgbuild.c (find_bb_boundaries): Likewise.
13358         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
13359         (outgoing_edges_match): Likewise.
13360         (try_optimize_cfg): Likewise.
13361         * cfgexpand.c (expand_gimple_cond): Likewise.
13362         (expand_gimple_tailcall): Likewise.
13363         (expand_gimple_basic_block): Likewise.
13364         (construct_exit_block): Likewise.
13365         * cfgrtl.c (delete_insn): Likewise.
13366         (create_basic_block_structure): Likewise.
13367         (rtl_delete_block): Likewise.
13368         (rtl_split_block): Likewise.
13369         (emit_nop_for_unique_locus_between): Likewise.
13370         (rtl_merge_blocks): Likewise.
13371         (block_label): Likewise.
13372         (try_redirect_by_replacing_jump): Likewise.
13373         (emit_barrier_after_bb): Likewise.
13374         (fixup_abnormal_edges): Likewise.
13375         (record_effective_endpoints): Likewise.
13376         (relink_block_chain): Likewise.
13377         (fixup_reorder_chain): Likewise.
13378         (fixup_fallthru_exit_predecessor): Likewise.
13379         (cfg_layout_duplicate_bb): Likewise.
13380         (cfg_layout_split_block): Likewise.
13381         (cfg_layout_delete_block): Likewise.
13382         (cfg_layout_merge_blocks): Likewise.
13383         * combine.c (update_cfg_for_uncondjump): Likewise.
13384         * emit-rtl.c (add_insn_after): Likewise.
13385         (remove_insn): Likewise.
13386         (reorder_insns): Likewise.
13387         (emit_insn_after_1): Likewise.
13388         * haifa-sched.c (get_ebb_head_tail): Likewise.
13389         (restore_other_notes): Likewise.
13390         (move_insn): Likewise.
13391         (sched_extend_bb): Likewise.
13392         (fix_jump_move): Likewise.
13393         * ifcvt.c (noce_process_if_block): Likewise.
13394         (dead_or_predicable): Likewise.
13395         * ira.c (update_equiv_regs): Likewise.
13396         * reg-stack.c (change_stack): Likewise.
13397         * sel-sched-ir.c (sel_move_insn): Likewise.
13398         * sel-sched.c (move_nop_to_previous_block): Likewise.
13400         * config/c6x/c6x.c (hwloop_optimize): Likewise.
13401         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
13403 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
13405         * rtl.h (for_each_rtx_in_insn): New function.
13406         * rtlanal.c (for_each_rtx_in_insn): Likewise.
13408 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
13410         * coretypes.h (class rtx_insn): Add forward declaration.
13412         * rtl.h: Include is-a.h.
13413         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
13414         workaround to ensure gengtype knows inheritance is occurring,
13415         whilst continuing to use the pre-existing special-casing for
13416         rtx_def.
13417         (class rtx_insn): New subclass of rtx_def, adding the
13418         invariant that we're dealing with something we can sanely use
13419         INSN_UID, NEXT_INSN, PREV_INSN on.
13420         (is_a_helper <rtx_insn *>::test): New.
13421         (is_a_helper <const rtx_insn *>::test): New.
13423 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
13425         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
13427 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
13429         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
13430         comdats as extern.
13432 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
13434         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
13435         to BUILT_IN_UNREACHABLE.
13437 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
13439         PR target/62011
13440         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
13441         New tune flag.
13442         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
13443         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
13444         (ffs<mode>2): Do not expand with tzcnt for
13445         TARGET_AVOID_FALSE_DEP_FOR_BMI.
13446         (ffssi2_no_cmove): Ditto.
13447         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
13448         (ctz<mode>2): New expander.
13449         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
13450         (*ctz<mode>2_falsedep): New insn.
13451         (*ctz<mode>2): Rename from ctz<mode>2.
13452         (clz<mode>2_lzcnt): New expander.
13453         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
13454         (*clz<mode>2_lzcnt_falsedep): New insn.
13455         (*clz<mode>2): Rename from ctz<mode>2.
13456         (popcount<mode>2): New expander.
13457         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
13458         (*popcount<mode>2_falsedep): New insn.
13459         (*popcount<mode>2): Rename from ctz<mode>2.
13460         (*popcount<mode>2_cmp): Remove.
13461         (*popcountsi2_cmp_zext): Ditto.
13463 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
13465         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
13466         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
13467         * config/microblaze/microblaze.h
13468         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
13470 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13472         PR other/62168
13473         * configure.ac: Set install_gold_as_default to no for
13474          --enable-gold=no.
13475          * configure: Regenerated.
13477 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
13479         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
13480         * config.in: Add undef of HAVE_isl.
13481         * configure: Regenerate.
13482         * configure.ac: Add definition of HAVE_isl.
13483         * graphite-blocking.c: Add checking of HAVE_isl.
13484         * graphite-dependences.c: Likewise.
13485         * graphite-interchange.c: Likewise.
13486         * graphite-isl-ast-to-gimple.c: Likewise.
13487         * graphite-optimize-isl.c: Likewise.
13488         * graphite-poly.c: Likewise.
13489         * graphite-scop-detection.c: Likewise.
13490         * graphite-sese-to-poly.c: Likewise.
13491         * graphite.c: Likewise.
13492         * toplev.c: Replace the checking of HAVE_cloog with the checking
13493         of HAVE_isl.
13495 2014-08-18  Richard Biener  <rguenther@suse.de>
13497         PR tree-optimization/62090
13498         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
13499         (fold_builtin_3): Do not fold snprintf.
13500         (fold_builtin_4): Likewise.
13501         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
13502         moved from builtins.c.
13503         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
13504         (gimple_fold_builtin): Do not fold sprintf here.
13506 2014-08-18  Richard Biener  <rguenther@suse.de>
13508         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
13509         code to ...
13510         (maybe_canonicalize_mem_ref_addr): ... this function.
13511         (fold_stmt_1): Apply it here before all simplification.
13513 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
13515         PR ipa/61800
13516         * cgraph.h (cgraph_node::create_indirect_edge): Add
13517         compute_indirect_info param.
13518         * cgraph.c (cgraph_node::create_indirect_edge): Compute
13519         indirect_info only when it is required.
13520         * cgraphclones.c (cgraph_clone_edge): Do not recompute
13521         indirect_info fore cloned indirect edge.
13523 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13524             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13525             Anna Tikhonova  <anna.tikhonova@intel.com>
13526             Ilya Tocar  <ilya.tocar@intel.com>
13527             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13528             Ilya Verbin  <ilya.verbin@intel.com>
13529             Kirill Yukhin  <kirill.yukhin@intel.com>
13530             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13532         * config/i386/sse.md
13533         (define_mode_iterator VI8_AVX2_AVX512BW): New.
13534         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
13536 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13537             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13538             Anna Tikhonova  <anna.tikhonova@intel.com>
13539             Ilya Tocar  <ilya.tocar@intel.com>
13540             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13541             Ilya Verbin  <ilya.verbin@intel.com>
13542             Kirill Yukhin  <kirill.yukhin@intel.com>
13543             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13545         * config/i386/sse.md
13546         (define_mode_iterator VF1_AVX512VL): New.
13547         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
13548         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
13549         New.
13551 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13552             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13553             Anna Tikhonova  <anna.tikhonova@intel.com>
13554             Ilya Tocar  <ilya.tocar@intel.com>
13555             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13556             Ilya Verbin  <ilya.verbin@intel.com>
13557             Kirill Yukhin  <kirill.yukhin@intel.com>
13558             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13560         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
13561         * config/i386/i386.md
13562         (define_code_iterator any_float): New.
13563         (define_code_attr floatsuffix): New.
13564         * config/i386/sse.md
13565         (define_mode_iterator VF1_128_256VL): New.
13566         (define_mode_iterator VF2_512_256VL): New.
13567         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
13568         TARGET check.
13569         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
13570         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
13571         New.
13572         (define_mode_attr qq2pssuff): New.
13573         (define_mode_attr sselongvecmode): New.
13574         (define_mode_attr sselongvecmodelower): New.
13575         (define_mode_attr sseintvecmode3): New.
13576         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
13577         New.
13578         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
13579         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
13580         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
13581         (define_insn "ufloatv2siv2df2<mask_name>"): New.
13583 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13584             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13585             Anna Tikhonova  <anna.tikhonova@intel.com>
13586             Ilya Tocar  <ilya.tocar@intel.com>
13587             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13588             Ilya Verbin  <ilya.verbin@intel.com>
13589             Kirill Yukhin  <kirill.yukhin@intel.com>
13590             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13592         * config/i386/sse.md
13593         (define_mode_iterator VF2_AVX512VL): New.
13594         (define_mode_attr sseintvecmode2): New.
13595         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
13596         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
13597         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
13598         (define_insn
13599         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
13600         Ditto.
13601         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
13602         Ditto.
13603         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
13604         Ditto.
13606 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13607             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13608             Anna Tikhonova  <anna.tikhonova@intel.com>
13609             Ilya Tocar  <ilya.tocar@intel.com>
13610             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13611             Ilya Verbin  <ilya.verbin@intel.com>
13612             Kirill Yukhin  <kirill.yukhin@intel.com>
13613             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13615         * config/i386/i386.md
13616         (define_insn "*movoi_internal_avx"): Add evex version.
13617         (define_insn "*movti_internal"): Ditto.
13619 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13620             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13621             Anna Tikhonova  <anna.tikhonova@intel.com>
13622             Ilya Tocar  <ilya.tocar@intel.com>
13623             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13624             Ilya Verbin  <ilya.verbin@intel.com>
13625             Kirill Yukhin  <kirill.yukhin@intel.com>
13626             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13628         * config/i386/i386.md
13629         (define_attr "isa"): Add avx512dq, noavx512dq.
13630         (define_attr "enabled"): Ditto.
13631         * config/i386/sse.md
13632         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
13634 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13635             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13636             Anna Tikhonova  <anna.tikhonova@intel.com>
13637             Ilya Tocar  <ilya.tocar@intel.com>
13638             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13639             Ilya Verbin  <ilya.verbin@intel.com>
13640             Kirill Yukhin  <kirill.yukhin@intel.com>
13641             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13643         * config/i386/i386.c
13644         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
13645         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
13646         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
13647         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
13648         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
13649         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
13650         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
13651         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
13652         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
13653         * config/i386/sse.md
13654         (define_mode_iterator VMOVE): Allow V4TI mode.
13655         (define_mode_iterator V_AVX512VL): New.
13656         (define_mode_iterator V): New handling for AVX512VL.
13657         (define_insn "avx512f_load<mode>_mask"): Delete.
13658         (define_insn "<avx512>_load<mode>_mask"): New.
13659         (define_insn "avx512f_store<mode>_mask"): Delete.
13660         (define_insn "<avx512>_store<mode>_mask"): New.
13663 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
13665         PR sanitizer/62089
13666         * asan.c (instrument_derefs): Fix bitfield check.
13668 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13670         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
13671         * config/rs6000/htm.md (ttest): Remove clobber.
13672         * config/rs6000/predicates.md (any_mask_operand): New predicate.
13673         (and_operand): Reformat.
13674         (and_2rld_operand): New predicate.
13675         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
13676         parameter.
13677         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
13678         parameter.  Handle AND directly.
13679         (rs6000_split_logical_di): Remove last parameter.
13680         (rs6000_split_logical): Remove last parameter.  Remove obsolete
13681         comment.
13682         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
13683         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
13684         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
13685         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
13686         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
13687         and 5 anonymous splitters):  Delete.
13688         (and<mode>3): New expander.
13689         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
13690         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
13691         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
13692         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
13693         (floatdisf2_internal1): Remove clobbers.
13694         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
13695         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
13696         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
13697         (and<mode>3 for BOOL_128): Remove clobber.
13698         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
13699         rs6000_split_logical.
13700         (*bool<mode>3_internal for BOOL_128): Adjust call of
13701         rs6000_split_logical.
13702         (*boolc<mode>3_internal1 for BOOL_128,
13703         *boolc<mode>3_internal2 for BOOL_128,
13704         *boolcc<mode>3_internal1 for BOOL_128,
13705         *boolcc<mode>3_internal2 for BOOL_128,
13706         *eqv<mode>3_internal1 for BOOL_128,
13707         *eqv<mode>3_internal2 for BOOL_128,
13708         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
13709         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
13710         clobber.
13711         (*vec_reload_and_reg_<mptrsize>): Delete.
13713 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13715         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
13716         and split, *boolccsi3_internal3 and split): Delete.
13717         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
13718         *boolccdi3_internal3 and split): Delete.
13719         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
13720         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
13722 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13724         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
13725         and split, *boolcsi3_internal3 and split): Delete.
13726         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
13727         *boolcdi3_internal3 and split): Delete.
13728         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
13730 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13732         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
13733         <'u'>: Also support printing the low-order 16 bits.
13734         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
13735         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
13736         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
13737         *booldi3_internal3 and split): Delete.
13738         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
13739         *bool<mode>3_dot2): New.
13740         (two anonymous define_splits for non_logical_cint_operand): Merge.
13742 2014-08-17  Marek Polacek  <polacek@redhat.com>
13743             Manuel López-Ibáñez  <manu@gcc.gnu.org>
13745         PR c/62059
13746         * diagnostic.c (adjust_line): Add gcc_checking_assert.
13747         (diagnostic_show_locus): Don't print caret diagnostic
13748         if a column is larger than the line_width.
13750 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
13752         * common.opt: Make the ISL AST generator to be the main code generator
13753         of Graphite.
13755 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
13757         * wide-int.h (generic_wide_int): Declare as class instead of struct.
13759 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
13761         PR target/61641
13762         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
13763         Declare.
13764         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
13765         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
13766         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
13767         Define.
13768         * config/pa/pa.md (begin_brtab): Delete insn.
13769         (end_brtab): Likewise.
13771 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13773         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
13775 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
13777         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
13778         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
13779         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
13780         (get_dynamic_type): Remove.
13781         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
13782         (clear_speculation): Bring to ipa-deivrt.h
13783         (get_class_context): Rename to ...
13784         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
13785         (contains_type_p): Update.
13786         (get_dynamic_type): Rename to ...
13787         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
13788         (possible_polymorphic_call_targets): UPdate.
13789         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
13790         * ipa-prop.c (ipa_analyze_call_uses): Update.
13792 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
13794         * doc/invoke.texi (SH options): Document missing processor variant
13795         options.  Remove references to Hitachi.  Undocument deprecated mspace
13796         option.
13798 2014-08-15  Jason Merrill  <jason@redhat.com>
13800         * tree.c (type_hash_canon): Uncomment assert.
13802 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13804         * input.h (in_system_header_at): Add comment.
13806 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13808         PR fortran/44054
13809         * diagnostic.c (build_message_string): Make it extern.
13810         * diagnostic.h (build_message_string): Make it extern.
13812 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
13814         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
13815         load/store from/to non-floating class pseudo.
13817 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13819         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
13821 2014-08-15  Richard Biener  <rguenther@suse.de>
13823         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
13824         (get_constraint_for_ssa_var): Remove dead code.
13825         (get_constraint_for_1): Adjust.
13826         (find_what_var_points_to): Likewise.
13827         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
13829 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
13831         PR target/61878
13832         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
13833         (_mm512_mask_cmpge_epu32_mask): Ditto.
13834         (_mm512_cmpge_epu32_mask): Ditto.
13835         (_mm512_mask_cmpge_epi64_mask): Ditto.
13836         (_mm512_cmpge_epi64_mask): Ditto.
13837         (_mm512_mask_cmpge_epu64_mask): Ditto.
13838         (_mm512_cmpge_epu64_mask): Ditto.
13839         (_mm512_mask_cmple_epi32_mask): Ditto.
13840         (_mm512_cmple_epi32_mask): Ditto.
13841         (_mm512_mask_cmple_epu32_mask): Ditto.
13842         (_mm512_cmple_epu32_mask): Ditto.
13843         (_mm512_mask_cmple_epi64_mask): Ditto.
13844         (_mm512_cmple_epi64_mask): Ditto.
13845         (_mm512_mask_cmple_epu64_mask): Ditto.
13846         (_mm512_cmple_epu64_mask): Ditto.
13847         (_mm512_mask_cmplt_epi32_mask): Ditto.
13848         (_mm512_cmplt_epi32_mask): Ditto.
13849         (_mm512_mask_cmplt_epu32_mask): Ditto.
13850         (_mm512_cmplt_epu32_mask): Ditto.
13851         (_mm512_mask_cmplt_epi64_mask): Ditto.
13852         (_mm512_cmplt_epi64_mask): Ditto.
13853         (_mm512_mask_cmplt_epu64_mask): Ditto.
13854         (_mm512_cmplt_epu64_mask): Ditto.
13855         (_mm512_mask_cmpneq_epi32_mask): Ditto.
13856         (_mm512_mask_cmpneq_epu32_mask): Ditto.
13857         (_mm512_cmpneq_epu32_mask): Ditto.
13858         (_mm512_mask_cmpneq_epi64_mask): Ditto.
13859         (_mm512_cmpneq_epi64_mask): Ditto.
13860         (_mm512_mask_cmpneq_epu64_mask): Ditto.
13861         (_mm512_cmpneq_epu64_mask): Ditto.
13862         (_mm512_castpd_ps): Ditto.
13863         (_mm512_castpd_si512): Ditto.
13864         (_mm512_castps_pd): Ditto.
13865         (_mm512_castps_si512): Ditto.
13866         (_mm512_castsi512_ps): Ditto.
13867         (_mm512_castsi512_pd): Ditto.
13868         (_mm512_castpd512_pd128): Ditto.
13869         (_mm512_castps512_ps128): Ditto.
13870         (_mm512_castsi512_si128): Ditto.
13871         (_mm512_castpd512_pd256): Ditto.
13872         (_mm512_castps512_ps256): Ditto.
13873         (_mm512_castsi512_si256): Ditto.
13874         (_mm512_castpd128_pd512): Ditto.
13875         (_mm512_castps128_ps512): Ditto.
13876         (_mm512_castsi128_si512): Ditto.
13877         (_mm512_castpd256_pd512): Ditto.
13878         (_mm512_castps256_ps512): Ditto.
13879         (_mm512_castsi256_si512): Ditto.
13880         (_mm512_cmpeq_epu32_mask): Ditto.
13881         (_mm512_mask_cmpeq_epu32_mask): Ditto.
13882         (_mm512_mask_cmpeq_epu64_mask): Ditto.
13883         (_mm512_cmpeq_epu64_mask): Ditto.
13884         (_mm512_cmpgt_epu32_mask): Ditto.
13885         (_mm512_mask_cmpgt_epu32_mask): Ditto.
13886         (_mm512_mask_cmpgt_epu64_mask): Ditto.
13887         (_mm512_cmpgt_epu64_mask): Ditto.
13888         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
13889         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
13890         * config/i386/i386.c (enum ix86_builtins): Add
13891         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
13892         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
13893         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
13894         (bdesc_args): Add __builtin_ia32_si512_256si,
13895         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
13896         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
13897         __builtin_ia32_pd512_pd.
13898         (ix86_expand_args_builtin): Handle new FTYPEs.
13899         * config/i386/sse.md (castmode): Add 512-bit modes.
13900         (AVX512MODE2P): New.
13901         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
13902         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
13904 2014-08-15  Richard Biener  <rguenther@suse.de>
13906         * fold-const.c (tree_swap_operands_p): Put all constants
13907         last, also strip sign-changing NOPs when considering further
13908         canonicalization.  Canonicalize also when optimizing for size.
13910 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13912         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
13913         one_match > zero_match case to just before simple_sequence.
13915 2014-08-15  Richard Biener  <rguenther@suse.de>
13917         * data-streamer.h (streamer_string_index, string_for_index):
13918         Remove.
13919         * data-streamer-out.c (streamer_string_index): Make static.
13920         * data-streamer-in.c (string_for_index): Likewise.
13921         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
13922         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
13924 2014-08-15  Richard Biener  <rguenther@suse.de>
13926         PR tree-optimization/62031
13927         * tree-data-ref.c (dr_analyze_indices): Do not set
13928         DR_UNCONSTRAINED_BASE.
13929         (dr_may_alias_p): All indirect accesses have to go the
13930         formerly DR_UNCONSTRAINED_BASE path.
13931         * tree-data-ref.h (struct indices): Remove
13932         unconstrained_base member.
13933         (DR_UNCONSTRAINED_BASE): Remove.
13935 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
13937         PR middle-end/62092
13938         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
13939         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
13940         in OMP_CLAUSE_MAP in some outer target region.
13942 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
13944         * tree-ssa-loop-ivopts.c (ivopts_data): New field
13945         name_expansion_cache.
13946         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
13947         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
13948         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
13949         (difference_cannot_overflow_p): New parameter.  Use affine
13950         expansion for equality check.
13951         (iv_elimination_compare_lt): Pass new argument.
13953 2014-08-14  DJ Delorie  <dj@redhat.com>
13955         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
13956         variables to the accumulator.
13958         * config/rl78/predicates.md (rl78_near_mem_operand): New.
13959         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
13960         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
13961         with far-far moves.
13963         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
13964         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
13965         (umulqihi3_virt): Likewise.
13966         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
13967         (umulqihi3_real): Likewise.
13969         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
13971 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
13973         PR tree-optimization/62091
13974         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
13975         function_entry_reached.
13976         (walk_aliased_vdefs): Clear it here.
13977         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
13979 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
13981         * ipa-utils.h (compare_virtual_tables): Declare.
13982         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
13984 2014-08-14  Marek Polacek  <polacek@redhat.com>
13986         DR 458
13987         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
13988         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
13990 2014-08-14  Tom de Vries  <tom@codesourcery.com>
13992         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
13994 2014-08-14  Tom de Vries  <tom@codesourcery.com>
13996         PR rtl-optimization/62004
13997         PR rtl-optimization/62030
13998         * ifcvt.c (rtx_interchangeable_p): New function.
13999         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
14000         * emit-rtl.h (mem_attrs_eq_p): Declare.
14002 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
14004         * graphite-scop-detection.c:
14005         Add inclusion of cp-tree.h.
14006         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
14007         in case they are pointers to object types
14009 2014-08-14  Richard Biener  <rguenther@suse.de>
14011         * BASE-VER: Change to 5.0.0
14013 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14014             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14015             Anna Tikhonova  <anna.tikhonova@intel.com>
14016             Ilya Tocar  <ilya.tocar@intel.com>
14017             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14018             Ilya Verbin  <ilya.verbin@intel.com>
14019             Kirill Yukhin  <kirill.yukhin@intel.com>
14020             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14022         * config/i386/sse.md (define_mode_attr avx512): New.
14023         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
14024         V4DI modes.
14025         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
14026         (define_mode_attr ssse3_avx2): Ditto.
14027         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
14028         (define_mode_attr avx2_avx512bw): New.
14029         (define_mode_attr ssedoublemodelower): New.
14030         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
14031         V32HI, V64QI modes.
14032         (define_mode_attr ssebytemode): Allow V8DI modes.
14033         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
14034         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
14035         (define_mode_attr ssePSmode2): New.
14036         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
14037         V16HI, V32HI modes.
14038         (define_mode_attr dbpsadbwmode): New.
14039         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
14040         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
14041         (vi8_sse4_1_avx2_avx512): New.
14042         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
14043         mode attribute.
14044         (define_mode_attr blendbits): Move before its immediate use.
14046 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14047             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14048             Anna Tikhonova  <anna.tikhonova@intel.com>
14049             Ilya Tocar  <ilya.tocar@intel.com>
14050             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14051             Ilya Verbin  <ilya.verbin@intel.com>
14052             Kirill Yukhin  <kirill.yukhin@intel.com>
14053             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14055         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
14056         * config/i386/subst.md
14057         (define_mode_iterator SUBST_V): Update.
14058         (define_mode_iterator SUBST_A): Ditto.
14059         (define_subst_attr "mask_operand7"): New.
14060         (define_subst_attr "mask_operand10"): New.
14061         (define_subst_attr "mask_operand_arg34") : New.
14062         (define_subst_attr "mask_expand_op3"): New.
14063         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
14064         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
14065         (define_subst_attr "mask_avx512vl_condition"): New.
14066         (define_subst_attr "round_mask_operand4"): Ditto.
14067         (define_subst_attr "round_mask_scalar_op3"): Delete.
14068         (define_subst_attr "round_mask_op4"): New.
14069         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
14070         V16SImode.
14071         (define_subst_attr "round_modev8sf_condition"): New.
14072         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
14073         <MODE>mode.
14074         (define_subst_attr "round_saeonly_mask_operand4"): New.
14075         (define_subst_attr "round_saeonly_mask_op4"): New.
14076         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
14077         V8DImode, V16SImode.
14078         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
14079         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
14080         (define_subst_attr "mask_expand4_args"): New.
14081         (define_subst "mask_expand4"): New.
14083 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14084             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14085             Anna Tikhonova  <anna.tikhonova@intel.com>
14086             Ilya Tocar  <ilya.tocar@intel.com>
14087             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14088             Ilya Verbin  <ilya.verbin@intel.com>
14089             Kirill Yukhin  <kirill.yukhin@intel.com>
14090             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14092         * config/i386/i386.md
14093         (define_attr "isa"): Add avx512bw,noavx512bw.
14094         (define_attr "enabled"): Ditto.
14095         (define_split): Add 32/64-bit mask logic.
14096         (define_insn "*k<logic>qi"): New.
14097         (define_insn "*k<logic>hi"): New.
14098         (define_insn "*anddi_1"): Add mask version.
14099         (define_insn "*andsi_1"): Ditto.
14100         (define_insn "*<code><mode>_1"): Ditto.
14101         (define_insn "*<code>hi_1"): Ditto.
14102         (define_insn "kxnor<mode>"): New.
14103         (define_insn "kunpcksi"): New.
14104         (define_insn "kunpckdi"): New.
14105         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
14106         (define_insn "*one_cmplhi2_1"): Ditto.
14108 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14109             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14110             Anna Tikhonova  <anna.tikhonova@intel.com>
14111             Ilya Tocar  <ilya.tocar@intel.com>
14112             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14113             Ilya Verbin  <ilya.verbin@intel.com>
14114             Kirill Yukhin  <kirill.yukhin@intel.com>
14115             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14117         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
14118         V32HImode.
14120 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14121             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14122             Anna Tikhonova  <anna.tikhonova@intel.com>
14123             Ilya Tocar  <ilya.tocar@intel.com>
14124             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14125             Ilya Verbin  <ilya.verbin@intel.com>
14126             Kirill Yukhin  <kirill.yukhin@intel.com>
14127             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14129         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
14130         registers.
14131         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
14132         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
14133         xmm/ymm16+ when availble.
14134         * config/i386/i386.h
14135         (HARD_REGNO_NREGS): Add mask regs.
14136         (VALID_AVX512F_REG_MODE): Ditto.
14137         (VALID_AVX512F_REG_MODE) : Define.
14138         (VALID_MASK_AVX512BW_MODE): Ditto.
14139         (reg_class) (MASK_REG_P(X)): Define.
14140         * config/i386/i386.md: Do not split long moves with mask register,
14141         use kmovb if avx512bw is availible.
14142         (movdi_internal): Handle mask registers.
14144 2014-08-14  Richard Biener  <rguenther@suse.de>
14146         PR tree-optimization/62081
14147         * tree-ssa-loop.c (pass_fix_loops): New pass.
14148         (pass_tree_loop::gate):  Do not fixup loops here.
14149         * tree-pass.h (make_pass_fix_loops): Declare.
14150         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
14152 2014-08-14  Richard Biener  <rguenther@suse.de>
14154         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
14155         (type_hash_canon): ... this and avoid 2nd lookup for the add.
14157 2014-08-14  Richard Biener  <rguenther@suse.de>
14159         PR tree-optimization/62090
14160         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
14161         (fold_builtin_2): Do not fold sprintf.
14162         (fold_builtin_3): Likewise.
14163         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
14164         moved from builtins.c.
14165         (gimple_fold_builtin): Fold sprintf.
14167 2014-08-14  Richard Biener  <rguenther@suse.de>
14169         PR rtl-optimization/62079
14170         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
14171         run cleanup_cfg.
14173 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
14175         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
14176         current_function_decl.
14178 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
14180         * cgraph.c (cgraph_node::function_symbol): Fix wrong
14181         cgraph_function_node to cgraph_node::function_symbol
14182         refactoring.
14184 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
14186         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
14187         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
14189 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
14191         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
14192         warning.
14194 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
14196         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
14197         generator.
14199 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
14201         PR target/62025
14202         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
14203         any registers that are used in mem_insn.
14205 2014-08-12  Steve Ellcey  <sellcey@mips.com>
14207         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
14209 2014-08-12  Steve Ellcey  <sellcey@mips.com>
14211         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
14212         (MULTILIB_DIRNAMES): Ditto.
14213         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
14214         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
14215         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
14216         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
14217         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
14218         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
14220 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14222         PR target/61413
14223         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
14224         of __ARM_SIZEOF_WCHAR_T.
14226 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14228         PR target/62098
14229         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
14230         Remove unnecessary attributes.
14232 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
14234         * internal-fn.c (init_internal_fns): Fix off-by-one.
14236 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14237             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14238             Anna Tikhonova  <anna.tikhonova@intel.com>
14239             Ilya Tocar  <ilya.tocar@intel.com>
14240             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14241             Ilya Verbin  <ilya.verbin@intel.com>
14242             Kirill Yukhin  <kirill.yukhin@intel.com>
14243             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14245         * config/i386/i386.c (standard_sse_constant_opcode): Use
14246         vpxord/vpternlog if avx512 is availible.
14248 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14250         PR middle-end/62103
14251         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
14252         bitfields, that is when size doesn't match the size of type or the
14253         size of the constructor.
14255 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
14257         * config/rs6000/constraints.md (wh constraint): New constraint,
14258         for FP registers if direct move is available.
14259         (wi constraint): New constraint, for VSX/FP registers that can
14260         handle 64-bit integers.
14261         (wj constraint): New constraint for VSX/FP registers that can
14262         handle 64-bit integers for direct moves.
14263         (wk constraint): New constraint for VSX/FP registers that can
14264         handle 64-bit doubles for direct moves.
14265         (wy constraint): Make documentation match implementation.
14267         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
14268         scalar_in_vmx_p field to simplify tests of whether SFmode or
14269         DFmode can go in the Altivec registers.
14270         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
14271         (rs6000_setup_reg_addr_masks): Likewise.
14272         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
14273         field, and wh/wi/wj/wk constraints.
14274         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
14275         the wh/wi/wj/wk constraints.
14276         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
14277         upper registers, prefer VSX registers unless the operation is a
14278         memory operation with REG+OFFSET addressing.
14280         * config/rs6000/vsx.md (VSr mode attribute): Add support for
14281         DImode.  Change SFmode to use ww constraint instead of d to allow
14282         SF registers in the upper registers.
14283         (VSr2): Likewise.
14284         (VSr3): Likewise.
14285         (VSr5): Fix thinko in comment.
14286         (VSa): New mode attribute that is an alternative to wa, that
14287         returns the VSX register class that a mode can go in, but may not
14288         be the preferred register class.
14289         (VS_64dm): New mode attribute for appropriate register classes for
14290         referencing 64-bit elements of vectors for direct moves and normal
14291         moves.
14292         (VS_64reg): Likewise.
14293         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
14294         register allocator to only registers the data type can handle.
14295         (vsx_le_perm_load_<mode>): Likewise.
14296         (vsx_le_perm_store_<mode>): Likewise.
14297         (vsx_xxpermdi2_le_<mode>): Likewise.
14298         (vsx_xxpermdi4_le_<mode>): Likewise.
14299         (vsx_lxvd2x2_le_<mode>): Likewise.
14300         (vsx_lxvd2x4_le_<mode>): Likewise.
14301         (vsx_stxvd2x2_le_<mode>): Likewise.
14302         (vsx_add<mode>3): Likewise.
14303         (vsx_sub<mode>3): Likewise.
14304         (vsx_mul<mode>3): Likewise.
14305         (vsx_div<mode>3): Likewise.
14306         (vsx_tdiv<mode>3_internal): Likewise.
14307         (vsx_fre<mode>2): Likewise.
14308         (vsx_neg<mode>2): Likewise.
14309         (vsx_abs<mode>2): Likewise.
14310         (vsx_nabs<mode>2): Likewise.
14311         (vsx_smax<mode>3): Likewise.
14312         (vsx_smin<mode>3): Likewise.
14313         (vsx_sqrt<mode>2): Likewise.
14314         (vsx_rsqrte<mode>2): Likewise.
14315         (vsx_tsqrt<mode>2_internal): Likewise.
14316         (vsx_fms<mode>4): Likewise.
14317         (vsx_nfma<mode>4): Likewise.
14318         (vsx_eq<mode>): Likewise.
14319         (vsx_gt<mode>): Likewise.
14320         (vsx_ge<mode>): Likewise.
14321         (vsx_eq<mode>_p): Likewise.
14322         (vsx_gt<mode>_p): Likewise.
14323         (vsx_ge<mode>_p): Likewise.
14324         (vsx_xxsel<mode>): Likewise.
14325         (vsx_xxsel<mode>_uns): Likewise.
14326         (vsx_copysign<mode>3): Likewise.
14327         (vsx_float<VSi><mode>2): Likewise.
14328         (vsx_floatuns<VSi><mode>2): Likewise.
14329         (vsx_fix_trunc<mode><VSi>2): Likewise.
14330         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
14331         (vsx_x<VSv>r<VSs>i): Likewise.
14332         (vsx_x<VSv>r<VSs>ic): Likewise.
14333         (vsx_btrunc<mode>2): Likewise.
14334         (vsx_b2trunc<mode>2): Likewise.
14335         (vsx_floor<mode>2): Likewise.
14336         (vsx_ceil<mode>2): Likewise.
14337         (vsx_<VS_spdp_insn>): Likewise.
14338         (vsx_xscvspdp): Likewise.
14339         (vsx_xvcvspuxds): Likewise.
14340         (vsx_float_fix_<mode>2): Likewise.
14341         (vsx_set_<mode>): Likewise.
14342         (vsx_extract_<mode>_internal1): Likewise.
14343         (vsx_extract_<mode>_internal2): Likewise.
14344         (vsx_extract_<mode>_load): Likewise.
14345         (vsx_extract_<mode>_store): Likewise.
14346         (vsx_splat_<mode>): Likewise.
14347         (vsx_xxspltw_<mode>): Likewise.
14348         (vsx_xxspltw_<mode>_direct): Likewise.
14349         (vsx_xxmrghw_<mode>): Likewise.
14350         (vsx_xxmrglw_<mode>): Likewise.
14351         (vsx_xxsldwi_<mode>): Likewise.
14352         (vsx_xscvdpspn): Tighten constraints to only use register classes
14353         the types use.
14354         (vsx_xscvspdpn): Likewise.
14355         (vsx_xscvdpspn_scalar): Likewise.
14357         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
14358         wj, and wk constraints.
14359         (GPR_REG_CLASS_P): New helper macro for register classes targeting
14360         general purpose registers.
14362         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
14363         direct moves.
14364         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
14365         DImode instead of wm.  Use wk constraint for direct move of DFmode
14366         instead of wm.
14367         (extendsidi2_lfiwax): Likewise.
14368         (lfiwax): Likewise.
14369         (lfiwzx): Likewise.
14370         (movdi_internal64): Likewise.
14372         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
14373         wk constraints. Make the wy constraint documentation match them
14374         implementation.
14376 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
14378         Replacement of isl_int by isl_val
14379         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
14380         (compute_bounds_for_param): use isl_val instead of isl_int
14381         (compute_bounds_for_loop): likewise
14382         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
14383         (build_linearized_memory_access): use isl_val instead of isl_int
14384         (pdr_stride_in_loop): likewise
14385         * graphite-optimize-isl.c:
14386         (getPrevectorMap): use isl_val instead of isl_int
14387         * graphite-poly.c:
14388         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
14389         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
14390         (extern the_isl_ctx): declare
14391         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
14392         (extract_affine_gmp): likewise
14393         (wrap): likewise
14394         (build_loop_iteration_domains): likewise
14395         (add_param_constraints): likewise
14397 2014-08-11  Richard Biener  <rguenther@suse.de>
14399         PR tree-optimization/62075
14400         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
14401         handle uses in patterns.
14403 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14404             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14405             Anna Tikhonova  <anna.tikhonova@intel.com>
14406             Ilya Tocar  <ilya.tocar@intel.com>
14407             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14408             Ilya Verbin  <ilya.verbin@intel.com>
14409             Kirill Yukhin  <kirill.yukhin@intel.com>
14410             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14412         * common/config/i386/i386-common.c
14413         (OPTION_MASK_ISA_AVX512VL_SET): Define.
14414         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
14415         (ix86_handle_option): Handle OPT_mavx512vl.
14416         * config/i386/cpuid.h (bit_AVX512VL): Define.
14417         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
14418         set -mavx512vl accordingly.
14419         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14420         OPTION_MASK_ISA_AVX512VL.
14421         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
14422         (ix86_option_override_internal): Define PTA_AVX512VL, handle
14423         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
14424         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
14425         * config/i386/i386.h (TARGET_AVX512VL): Define.
14426         (TARGET_AVX512VL_P(x)): Ditto.
14427         * config/i386/i386.opt: Add mavx512vl.
14429 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
14431         PR tree-optimization/62073
14432         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
14433         a basic block.
14435 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14436             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14437             Anna Tikhonova  <anna.tikhonova@intel.com>
14438             Ilya Tocar  <ilya.tocar@intel.com>
14439             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14440             Ilya Verbin  <ilya.verbin@intel.com>
14441             Kirill Yukhin  <kirill.yukhin@intel.com>
14442             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14444         * common/config/i386/i386-common.c
14445         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
14446         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
14447         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
14448         (ix86_handle_option): Handle OPT_mavx512bw.
14449         * config/i386/cpuid.h (bit_AVX512BW): Define.
14450         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
14451         set -mavx512bw accordingly.
14452         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14453         OPTION_MASK_ISA_AVX512BW.
14454         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
14455         (ix86_option_override_internal): Define PTA_AVX512BW, handle
14456         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
14457         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
14458         * config/i386/i386.h (TARGET_AVX512BW): Define.
14459         (TARGET_AVX512BW_P(x)): Ditto.
14460         * config/i386/i386.opt: Add mavx512bw.
14462 2014-08-11  Richard Biener  <rguenther@suse.de>
14464         PR tree-optimization/62070
14465         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
14466         Remove SSA checking.
14468 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
14470         * asan.c (asan_check_flags): New enum.
14471         (build_check_stmt_with_calls): Removed function.
14472         (build_check_stmt): Split inlining logic to
14473         asan_expand_check_ifn.
14474         (instrument_derefs): Rename parameter.
14475         (instrument_mem_region_access): Rename parameter.
14476         (instrument_strlen_call): Likewise.
14477         (asan_expand_check_ifn): New function.
14478         (asan_instrument): Remove old code.
14479         (pass_sanopt::execute): Change handling of
14480         asan-instrumentation-with-call-threshold.
14481         (asan_clear_shadow): Fix formatting.
14482         (asan_function_start): Likewise.
14483         (asan_emit_stack_protection): Likewise.
14484         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
14485         Update description.
14486         * internal-fn.c (expand_ASAN_CHECK): New function.
14487         * internal-fn.def (ASAN_CHECK): New internal function.
14488         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
14489         Update description.
14490         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
14491         * tree.c: Small comment fix.
14493 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
14495         * gimple.c (gimple_call_fnspec): Support internal functions.
14496         (gimple_call_return_flags): Use const.
14497         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
14498         * internal-fn.def: Add fnspec information.
14499         * internal-fn.h (internal_fn_fnspec): New function.
14500         (init_internal_fns): Declare new function.
14501         * internal-fn.c (internal_fn_fnspec_array): New global variable.
14502         (init_internal_fns): New function.
14503         * tree-core.h: Update macro call.
14504         * tree.c (build_common_builtin_nodes): Initialize internal fns.
14506 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
14508         * lto-streamer.h (struct output_block::symbol): Change from
14509         struct symtab_node to plain symtab_node.
14510         (referenced_from_this_partition_p): Change first parameter
14511         from struct symtab_node to plain symtab_node.
14513 2014-08-10  Marek Polacek  <polacek@redhat.com>
14515         PR c/51849
14516         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
14518 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
14520         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
14521         DECL correctly; do not give up on types in static storage.
14523 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
14525         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
14527 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
14529         * graphite-isl-ast-to-gimple.c:
14530         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
14532         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
14534 2014-08-08  Guozhi Wei  <carrot@google.com>
14536         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
14538 2014-08-08  Cary Coutant  <ccoutant@google.com>
14540         * dwarf2out.c (get_skeleton_type_unit): Remove.
14541         (output_skeleton_debug_sections): Remove skeleton type units.
14542         (output_comdat_type_unit): Likewise.
14543         (dwarf2out_finish): Likewise.
14545 2014-08-07  Yi Yang  <ahyangyi@google.com>
14547         * predict.c (expr_expected_value_1): Remove the redundant assignment.
14549 2014-08-08  Richard Biener  <rguenther@suse.de>
14551         * lto-streamer.h (struct lto_input_block): Make it a class
14552         with a constructor.
14553         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
14554         (struct lto_function_header, struct lto_simple_header,
14555         struct lto_simple_header_with_strings,
14556         struct lto_decl_header, struct lto_function_header): Make
14557         a simple inheritance hieararchy.  Remove unused fields.
14558         (struct lto_asm_header): Remove.
14559         * lto-streamer-out.c (produce_asm): Adjust.
14560         (lto_output_toplevel_asms): Likewise.
14561         (produce_asm_for_decls): Likewise.
14562         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
14563         * data-streamer-in.c (string_for_index): Likewise.
14564         * ipa-inline-analysis.c (inline_read_section): Likewise.
14565         * ipa-prop.c (ipa_prop_read_section): Likewise.
14566         (read_replacements_section): Likewise.
14567         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
14568         * lto-section-in.c (lto_create_simple_input_block): Likewise.
14569         (lto_destroy_simple_input_block): Likewise.
14570         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
14571         (lto_input_toplevel_asms): Likewise.
14573 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14574             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14575             Anna Tikhonova  <anna.tikhonova@intel.com>
14576             Ilya Tocar  <ilya.tocar@intel.com>
14577             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14578             Ilya Verbin  <ilya.verbin@intel.com>
14579             Kirill Yukhin  <kirill.yukhin@intel.com>
14580             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14582         * common/config/i386/i386-common.c
14583         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
14584         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
14585         (ix86_handle_option): Handle OPT_mavx512dq.
14586         * config/i386/cpuid.h (bit_AVX512DQ): Define.
14587         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
14588         set -mavx512dq accordingly.
14589         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14590         OPTION_MASK_ISA_AVX512DQ.
14591         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
14592         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
14593         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
14594         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
14595         * config/i386/i386.h (TARGET_AVX512DQ): Define.
14596         (TARGET_AVX512DQ_P(x)): Ditto.
14597         * config/i386/i386.opt: Add mavx512dq.
14599 2014-08-08  Richard Biener  <rguenther@suse.de>
14601         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
14602         target_percent, target_percent_s): Export.
14603         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
14604         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
14605         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
14606         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
14607         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
14608         Move to gimple-fold.c.
14609         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
14610         strcat and strcpy.
14611         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
14612         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
14613         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
14614         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
14615         (rewrite_call_expr_array): Remove.
14616         (fold_builtin_sprintf_chk): Likewise.
14617         (fold_builtin_snprintf_chk): Likewise.
14618         (fold_builtin_varargs): Remove handling of sprintf_chk,
14619         vsprintf_chk, snprintf_chk and vsnprintf_chk.
14620         (gimple_fold_builtin_sprintf_chk): Remove.
14621         (gimple_fold_builtin_snprintf_chk): Likewise.
14622         (gimple_fold_builtin_varargs): Likewise.
14623         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
14624         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
14625         * gimple.c (gimple_seq_add_seq_without_update): New function.
14626         * gimple.h (gimple_seq_add_seq_without_update): Declare.
14627         * gimple-fold.c: Include output.h.
14628         (gsi_replace_with_seq_vops): New function, split out from ...
14629         (gimplify_and_update_call_from_tree): ... here.
14630         (replace_call_with_value): New function.
14631         (replace_call_with_call_and_fold): Likewise.
14632         (var_decl_component_p): Moved from builtins.c.
14633         (gimple_fold_builtin_memory_op): Moved from builtins.c
14634         fold_builtin_memory_op and rewritten to GIMPLE.
14635         (gimple_fold_builtin_memset): Likewise.
14636         (gimple_fold_builtin_strcpy): Likewise.
14637         (gimple_fold_builtin_strncpy): Likewise.
14638         (gimple_fold_builtin_strcat): Likewise.
14639         (gimple_fold_builtin_fputs): Likewise.
14640         (gimple_fold_builtin_memory_chk): Likewise.
14641         (gimple_fold_builtin_stxcpy_chk): Likewise.
14642         (gimple_fold_builtin_stxncpy_chk): Likewise.
14643         (gimple_fold_builtin_snprintf_chk): Likewise.
14644         (gimple_fold_builtin_sprintf_chk): Likewise.
14645         (gimple_fold_builtin_strlen): New function.
14646         (gimple_fold_builtin_with_strlen): New function split out from
14647         gimple_fold_builtin.
14648         (gimple_fold_builtin): Change signature and handle
14649         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
14650         here.  Call gimple_fold_builtin_with_strlen.
14651         (gimple_fold_call): Adjust.
14653 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
14655         * calls.c (precompute_arguments): Check
14656          promoted_for_signed_and_unsigned_p and set the promoted mode.
14657         (promoted_for_signed_and_unsigned_p): New function.
14658         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
14659         and set the promoted mode.
14660         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
14661         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
14662         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
14665 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
14667         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
14668         instead of SUBREG_PROMOTED_UNSIGNED_SET.
14669         (expand_call): Likewise.
14670         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
14671         to get promoted mode.
14672         * combine.c (record_promoted_value): Skip > 0 comparison with
14673         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
14674         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
14675         of SUBREG_PROMOTED_UNSIGNED_P.
14676         (convert_modes): Likewise.
14677         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
14678         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
14679         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
14680         SUBREG_PROMOTED_UNSIGNED_SET.
14681         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
14682         instead of SUBREG_PROMOTED_UNSIGNED_SET.
14683         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
14684         SUBREG_PROMOTED_SET.
14685         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
14686         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
14687         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
14688         of SUBREG_PROMOTED_UNSIGNED_P.
14689         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
14690         (SUBREG_PROMOTED_SET): New define.
14691         (SUBREG_PROMOTED_GET): Likewise.
14692         (SUBREG_PROMOTED_SIGN): Likewise.
14693         (SUBREG_PROMOTED_SIGNED_P): Likewise.
14694         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
14695         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
14696         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
14697         instead of SUBREG_PROMOTED_UNSIGNED_GET.
14698         (nonzero_bits1): Skip > 0 comparison with the results as
14699         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
14700         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
14701         of !SUBREG_PROMOTED_UNSIGNED_P.
14702         * simplify-rtx.c (simplify_unary_operation_1): Use new
14703         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
14704         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
14705         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
14706         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
14708 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
14710         * ipa-devirt.c: Include gimple-pretty-print.h
14711         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
14712         further tests.
14713         (decl_maybe_in_construction_p): Fix conditional on cdtor check
14714         (get_polymorphic_call_info): Fix return value
14715         (type_change_info): New sturcture based on ipa-prop
14716         variant.
14717         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
14718         based on ipa-prop variant.
14719         (extr_type_from_vtbl_ptr_store): New function
14720         based on ipa-prop variant.
14721         (record_known_type): New function.
14722         (check_stmt_for_type_change): New function.
14723         (get_dynamic_type): New function.
14724         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
14725         * tree-ssa-pre.c: ipa-utils.h
14726         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
14727         machinery; sanity check with ipa-prop devirtualization.
14728         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
14729         polymorphic flag.
14731 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
14733         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
14734         * alias.c, cfgexpand.c, cgraphbuild.c,
14735         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
14736         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
14737         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
14738         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
14739         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
14740         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14741         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
14742         dse.c, except.c, gengtype.c, gimple-expr.c,
14743         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
14744         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
14745         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
14746         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
14747         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
14748         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
14749         pointer-set.h.
14750         * pointer-set.c: Remove file.
14751         * pointer-set.h: Remove file.
14753 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14755         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
14756         * config/arm/types.md (f_sels, f_seld): Delete.
14758 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14760         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
14761         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
14762         (aarch64_movdi_<mode>high): Likewise.
14763         (aarch64_mov<mode>high_di): Likewise.
14764         (aarch64_movdi_<mode>low): Likewise.
14765         (aarch64_mov<mode>low_di): Likewise.
14766         (aarch64_movtilow_tilow): Likewise.
14767         Add comment explaining usage of fp,simd attributes and of
14768         TARGET_FLOAT and TARGET_SIMD.
14770 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
14771             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14773         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
14774         Use MOVN when one of the half-words is 0xffff.
14776 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
14778         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
14780 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14782         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
14783         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
14784         (rfs_str): String corresponding to RFS_* constants.
14785         (rank_for_schedule_stats_t): New typedef.
14786         (rank_for_schedule_stats): New static variable.
14787         (rfs_result): New static function.
14788         (rank_for_schedule): Track statistics for deciding heuristics.
14789         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
14790         static functions.
14791         (ready_sort): Use them for debug printouts.
14792         (schedule_block): Init statistics state.  Print statistics on
14793         rank_for_schedule decisions.
14795 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14797         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
14799 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
14801         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
14802         constraint.
14804 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
14806         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
14807         function to not conflict.
14808         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
14809         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
14810         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
14811         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
14812         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
14813         of pointer_map.
14815 2014-08-07  Marek Polacek  <polacek@redhat.com>
14817         * fold-const.c (fold_binary_loc): Add folding of
14818         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
14820 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
14822         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
14823         instead of type size.
14824         (ASM_FINISH_DECLARE_OBJECT): Likewise.
14826 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
14828         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
14829         (*thumb1_movqi_insn): Likewise.
14830         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
14832 2014-08-07  Tom de Vries  <tom@codesourcery.com>
14834         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
14835         (glibc_2_11_or_earlier): Remove effective-target keywords.
14837 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
14839         * config/arm/arm.c (bdesc_2arg): Fix typo.
14840         (arm_atomic_assign_expand_fenv): Remove The default implementation.
14842 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
14844         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
14846 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
14848         PR debug/61923
14849         * haifa-sched.c (advance_one_cycle): Fix dump.
14850         (schedule_block): Don't advance cycle if we are already at the
14851         beginning of the cycle.
14853 2014-08-06  Martin Jambor  <mjambor@suse.cz>
14855         PR ipa/61393
14856         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
14858 2014-08-06  Richard Biener  <rguenther@suse.de>
14860         PR lto/62034
14861         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
14862         SCCs here.
14863         (lto_input_tree): Pop SCCs here.
14865 2014-08-06  Richard Biener  <rguenther@suse.de>
14867         PR tree-optimization/61320
14868         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
14869         handle misaligned loads.
14871 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
14873         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
14874         (aarch64_expand_vec_perm_const): Check for dup before zip.
14876 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14878         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
14879         CONST_INT_P instead of GET_CODE and compare.
14880         (aarch64_select_cc_mode): Likewise.
14881         (aarch64_print_operand): Likewise.
14882         (aarch64_rtx_costs): Likewise.
14883         (aarch64_simd_valid_immediate): Likewise.
14884         (aarch64_simd_check_vect_par_cnst_half): Likewise.
14885         (aarch64_simd_emit_pair_result_insn): Likewise.
14887 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
14889         * gdbhooks.py (find_gcc_source_dir): New helper function.
14890         (class PassNames): New class, locating and parsing passes.def.
14891         (class BreakOnPass): New command "break-on-pass".
14893 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
14895         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
14896         getting olde.
14898 2014-08-05  Richard Biener  <rguenther@suse.de>
14900         PR rtl-optimization/61672
14901         * emit-rtl.h (mem_attrs_eq_p): Declare.
14902         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
14903         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
14904         * cfgcleanup.c (merge_memattrs): Likewise.
14905         Include emit-rtl.h.
14907 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14909         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
14910         rather than singleton vectors.
14911         (vqdmlsls_lane_s32): Likewise.
14913 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14915         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
14916         Use VSDQ_HSI mode iterator.
14917         (aarch64_sqrdmulh_laneq<mode>): Likewise.
14918         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
14919         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
14920         Use BUILTIN_VDQHS macro.
14921         (sqrdmulh_laneq): Likewise.
14922         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
14923         (vqdmlals_laneq_s32): Likewise.
14924         (vqdmlslh_laneq_s16): Likewise.
14925         (vqdmlsls_laneq_s32): Likewise.
14926         (vqdmulhh_laneq_s16): Likewise.
14927         (vqdmulhs_laneq_s32): Likewise.
14928         (vqrdmulhh_laneq_s16): Likewise.
14929         (vqrdmulhs_laneq_s32): Likewise.
14931 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14933         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
14934         (vmuld_laneq_f64): Likewise.
14935         (vmuls_laneq_f32): Likewise.
14936         (vmul_n_f64): Likewise.
14937         (vmuld_lane_f64): Reimplement in C.
14938         (vmuls_lane_f32): Likewise.
14940 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14942         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
14943         to reservation.
14944         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
14946 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14948         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
14949         (rbitsi2): Likewise.
14950         (*arm_rev): Set predicable and predicable_short_it attributes.
14952 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14954         * convert.c (convert_to_integer): Guard transformation to lrint by
14955         -fno-math-errno.
14957 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
14959         * config/aarch64/aarch64-builtins.c
14960         (aarch64_simd_builtin_type_mode): Delete.
14961         (v8qi_UP): Remap to V8QImode.
14962         (v4hi_UP): Remap to V4HImode.
14963         (v2si_UP): Remap to V2SImode.
14964         (v2sf_UP): Remap to V2SFmode.
14965         (v1df_UP): Remap to V1DFmode.
14966         (di_UP): Remap to DImode.
14967         (df_UP): Remap to DFmode.
14968         (v16qi_UP):V16QImode.
14969         (v8hi_UP): Remap to V8HImode.
14970         (v4si_UP): Remap to V4SImode.
14971         (v4sf_UP): Remap to V4SFmode.
14972         (v2di_UP): Remap to V2DImode.
14973         (v2df_UP): Remap to V2DFmode.
14974         (ti_UP): Remap to TImode.
14975         (ei_UP): Remap to EImode.
14976         (oi_UP): Remap to OImode.
14977         (ci_UP): Map to CImode.
14978         (xi_UP): Remap to XImode.
14979         (si_UP): Remap to SImode.
14980         (sf_UP): Remap to SFmode.
14981         (hi_UP): Remap to HImode.
14982         (qi_UP): Remap to QImode.
14983         (aarch64_simd_builtin_datum): Make mode a machine_mode.
14984         (VAR1): Build builtin name.
14985         (aarch64_init_simd_builtins): Remove dead code.
14987 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
14989         * graphite-isl-ast-to-gimple.c:
14990         (set_options): New function.
14991         (scop_to_isl_ast): Add calling of set_options.
14993 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
14995         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
14996         (analyze_iv_to_split_insn): Don't initialize them.
14997         (get_ivts_expr): Removed.
14998         (allocate_basic_variable, insert_base_initialization): Use
14999         SET_SRC instead of *get_ivts_expr.
15000         (split_iv): Use &SET_SRC instead of get_ivts_expr.
15002 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
15004         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
15005         (translate_isl_ast_for_loop): Add checking of the
15006         flag_loop_parallelize_all.
15007         (ast_build_before_for): New function.
15008         (scop_to_isl_ast): Add checking of the
15009         flag_loop_parallelize_all.
15010         * graphite-dependences.c: Move the defenition of the
15011         scop_get_dependences from graphite-optimize-isl.c to this file.
15012         (apply_schedule_on_deps): Add checking of the ux's emptiness.
15013         (carries_deps): Add checking of the x's value.
15014         * graphite-optimize-isl.c: Move the defenition of the
15015         scop_get_dependences to graphite-dependences.c.
15016         * graphite-poly.h: Add declarations of scop_get_dependences
15017         and carries_deps.
15019 2014-08-04  Rohit  <rohitarulraj@freescale.com>
15021         PR target/60102
15022         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
15023         names.
15024         (alt_reg_names): Likewise.
15025         (rs6000_dwarf_register_span): For SPE high registers, replace
15026         dwarf register numbers with GCC hard register numbers.
15027         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
15028         (rs6000_dbx_register_number): For SPE high registers, return dwarf
15029         register number for the corresponding GCC hard register number.
15030         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
15031         newly added GCC hard register numbers for SPE high registers.
15032         (DWARF_FRAME_REGISTERS):  Likewise.
15033         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
15034         (DWARF_FRAME_REGNUM): Likewise.
15035         (FIXED_REGISTERS): Likewise.
15036         (CALL_USED_REGISTERS): Likewise.
15037         (CALL_REALLY_USED_REGISTERS): Likewise.
15038         (REG_ALLOC_ORDER): Likewise.
15039         (enum reg_class): Likewise.
15040         (REG_CLASS_NAMES): Likewise.
15041         (REG_CLASS_CONTENTS): Likewise.
15042         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
15044 2014-08-04  Richard Biener  <rguenther@suse.de>
15046         * gimple-fold.h (gimple_fold_builtin): Remove.
15047         * gimple-fold.c (gimple_fold_builtin): Make static.
15048         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
15049         fold_stmt, not gimple_fold_builtin.
15051 2014-08-04  Martin Liska <mliska@suse.cz>
15053         * cgraph.h (csi_end_p): Removed.
15054         (csi_next): Likewise.
15055         (csi_node): Likewise.
15056         (csi_start): Likewise.
15057         (cgraph_node_in_set_p): Likewise.
15058         (cgraph_node_set_size): Likewise.
15059         (vsi_end_p): Likewise.
15060         (vsi_next): Likewise.
15061         (vsi_node): Likewise.
15062         (vsi_start): Likewise.
15063         (varpool_node_set_size): Likewise.
15064         (cgraph_node_set_nonempty_p): Likewise.
15065         (varpool_node_set_nonempty_p): Likewise.
15066         * cgraphunit.c (cgraph_process_new_functions): vec replaces
15067         cgraph_node_set.
15068         * ipa-inline-transform.c: Likewise.
15069         * ipa-utils.c (cgraph_node_set_new): Removed.
15070         (cgraph_node_set_add): Likewise.
15071         (cgraph_node_set_remove): Likewise.
15072         (cgraph_node_set_find): Likewise.
15073         (dump_cgraph_node_set): Likewise.
15074         (debug_cgraph_node_set): Likewise.
15075         (free_cgraph_node_set): Likewise.
15076         (varpool_node_set_new): Likewise.
15077         (varpool_node_set_add): Likewise.
15078         (varpool_node_set_remove): Likewise.
15079         (varpool_node_set_find): Likewise.
15080         (dump_varpool_node_set): Likewise.
15081         (free_varpool_node_set): Likewise.
15082         (debug_varpool_node_set): Likewise.
15083         * tree-emutls.c (struct tls_var_data):
15084         (emutls_index): Removed.
15085         (emutls_decl): Likewise.
15086         (gen_emutls_addr): Function implementation uses newly added
15087         hash_map<varpool_node *, tls_var_data>.
15088         (clear_access_vars): Likewise.
15089         (create_emultls_var): Likewise.
15090         (ipa_lower_emutls): Likewise.
15091         (reset_access): New function.
15093 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
15095         * config/i386/i386.c (ix86_option_override_internal): Add
15096         PTA_RDRND and PTA_MOVBE for bdver4.
15098 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15099             James Greenhalgh  <james.greenhalgh@arm.com>
15101         * doc/md.texi (clrsb): Document.
15102         (clz): Change reference to x into operand 1.
15103         (ctz): Likewise.
15104         (popcount): Likewise.
15106 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15108         PR target/61713
15109         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
15110         move to subtarget in serial version if result is ignored.
15112 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15113             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15115         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
15116         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
15117         (sched_analyze_insn): Update use of try_group_insn to
15118         sched_macro_fuse_insns.
15119         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
15120         arguments that are not conditional jumps.
15122 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
15124         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
15125         family information. Handle BTVER2 cpu with cpuid family value.
15127 2014-08-04  Tom de Vries  <tom@codesourcery.com>
15129         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
15130         (glibc_2_11_or_earlier): Document effective-target keywords.
15132 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
15134         * ipa-devirt.c (odr_type_warn_count): Add type.
15135         (possible_polymorphic_call_targets): Set it.
15136         (ipa_devirt): Use it.
15138 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
15140         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
15141         Document.
15142         * ipa-devirt.c: Include hash-map.h
15143         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
15144         (clear_speculation): Break out of ...
15145         (get_class_context): ... here; speed up handling obviously useless
15146         speculations.
15147         (odr_type_warn_count, decl_warn_count): New structures.
15148         (final_warning_record): New structure.
15149         (final_warning_records): New static variable.
15150         (possible_polymorphic_call_targets): Cleanup handling of
15151         speculative info; do not build speculation when user do not care;
15152         record info about warnings when asked for.
15153         (add_decl_warning): New function.
15154         (type_warning_cmp): New function.
15155         (decl_warning_cmp): New function.
15156         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
15157         (gate): Enable pass when warnings are requested.
15158         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
15159         options.
15161 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
15163         * hash-map.h (default_hashmap_traits::mark_key_deleted):
15164         Fix cast.
15165         (hash_map::remove): New method.
15166         (hash_map::traverse): New method.
15167         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
15168         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
15169         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
15170         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
15171         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
15172         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
15173         pointer_map.
15175 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
15177         * hash-set.h: new File.
15178         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
15179         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
15180         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
15181         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
15182         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
15183         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
15184         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
15185         varpool.c: Use hash_set instead of pointer_set.
15187 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
15189         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
15191 2014-08-01  Jiong Wang <jiong.wang@arm.com>
15193         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
15194         for frame access when strict_p is false.
15196 2014-08-01  Renlin Li <renlin.li@arm.com>
15197 2014-08-01  Jiong Wang <jiong.wang@arm.com>
15199         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
15200         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
15201         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
15202         Declaration.
15203         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
15204         predicate.
15205         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
15206         aarch64_mem_pair_offset.
15208 2014-08-01  Jiong Wang <jiong.wang@arm.com>
15210         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
15211         offset.
15212         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
15213         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
15215 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
15217         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
15219 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
15221         PR regression/61510
15222         * cgraphunit.c (analyze_functions): Use get_create rather than get
15223         for decls which are clones of abstract functions.
15225 2014-08-01  Martin Liska  <mliska@suse.cz>
15227         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
15228         * ipa-prop.h (count_formal_params): Global function created from static.
15229         * ipa-prop.c (count_formal_params): Likewise.
15230         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
15231         profiles for semantically equivalent functions.
15232         * passes.c (do_per_function): If we load body of a function
15233         during WPA, this condition should behave same.
15234         * varpool.c (ctor_for_folding): More tolerant assert for variable
15235         aliases created during WPA.
15237 2014-08-01  Martin Liska  <mliska@suse.cz>
15239         * doc/invoke.texi (Options That Control Optimization): Documentation
15240         for -foptimize-strlen introduced. Optimization levels default options
15241         fixed.
15243 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
15245         * opts.c (common_handle_option): Handle -fsanitize=alignment.
15246         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
15247         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
15248         type to bool.
15249         * stor-layout.h (min_align_of_type): New prototype.
15250         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
15251         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
15252         check.
15253         * ubsan.c: Include builtins.h.
15254         (ubsan_expand_bounds_ifn): Change return type to bool,
15255         always return true.
15256         (ubsan_expand_null_ifn): Change return type to bool, change
15257         argument to gimple_stmt_iterator *.  Handle both null and alignment
15258         sanitization, take type from ckind argument's type rather than
15259         first argument.
15260         (instrument_member_call): Removed.
15261         (instrument_mem_ref): Remove t argument, add mem and base arguments.
15262         Handle both null and alignment sanitization, don't say whole
15263         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
15264         call instead of 2 argument.
15265         (instrument_null): Adjust instrument_mem_ref caller.  Don't
15266         instrument calls here.
15267         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
15268         like SANITIZE_NULL.
15269         * stor-layout.c (min_align_of_type): New function.
15270         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
15271         Or it into SANITIZE_UNDEFINED.
15272         * doc/invoke.texi (-fsanitize=alignment): Document.
15274 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15276         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
15278 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15280         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
15281         inchash.
15282         (vn_reference_compute_hash): Dito.
15283         (vn_nary_op_compute_hash): Dito.
15284         (vn_phi_compute_hash): Dito.
15285         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
15287 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15289         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
15290         Rename to inchash:add_expr_commutative. Convert to inchash.
15291         (iterative_hash_hashable_expr): Rename to
15292         inchash:add_hashable_expr. Convert to inchash.
15293         (avail_expr_hash): Dito.
15295 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15297         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
15298         Convert to inchash.
15300 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15302         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
15304 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15306         * Makefile.in (OBJS): Add rtlhash.o
15307         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
15308         (loc_checksum): Dito.
15309         (loc_checksum_ordered): Dito.
15310         (hash_loc_operands): Dito.
15311         (hash_locs): Dito.
15312         (hash_loc_list): Dito.
15313         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
15314         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
15315         * rtlhash.c: New file.
15316         * rtlhash.h: New file.
15318 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15320         * inchash.h (inchash): Change inchash class to namespace.
15321         (class hash): ... Rename from inchash.
15322         (add_object): Move from macro to class template.
15323         * lto-streamer-out.c (hash_tree): Change inchash
15324         to inchash::hash.
15325         * tree.c (build_type_attribute_qual_variant): Dito.
15326         (type_hash_list): Dito.
15327         (attribute_hash_list): Dito.
15328         (iterative_hstate_expr): Rename to inchash::add_expr
15329         (build_range_type_1): Change inchash to inchash::hash
15330         and use hash::add_expr.
15331         (build_array_type_1): Dito.
15332         (build_function_type): Dito
15333         (build_method_type_directly): Dito.
15334         (build_offset_type): Dito.
15335         (build_complex_type): Dito.
15336         (make_vector_type): Dito.
15337         * tree.h (iterative_hash_expr): Dito.
15339 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
15341         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
15343 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
15345         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
15346         correct alphabetical position.
15347         (vpaddd_f64): Rewrite using builtins.
15348         (vpaddd_s64): Move to correct alphabetical position.
15349         (vpaddd_u64): New.
15351 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
15353         PR target/61844
15354         * config/sh/sh.c (sh_legitimate_address_p,
15355         sh_legitimize_reload_address): Handle reg+reg address modes when
15356         ALLOW_INDEXED_ADDRESS is false.
15357         * config/sh/predicates.md (general_movsrc_operand,
15358         general_movdst_operand): Likewise.
15360 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
15362         * config/aarch64/aarch64-builtins.c
15363         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
15364         BYTES_BIG_ENDIAN.
15366 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
15368         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
15369         the generated mask based on BYTES_BIG_ENDIAN.
15370         (aarch64_simd_check_vect_par_cnst_half): New.
15371         * config/aarch64/aarch64-protos.h
15372         (aarch64_simd_check_vect_par_cnst_half): New.
15373         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
15374         the check out to aarch64_simd_check_vect_par_cnst_half.
15375         (vect_par_cnst_lo_half): Likewise.
15376         * config/aarch64/aarch64-simd.md
15377         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
15378         (move_hi_quad_<mode>): Always generate a low mask.
15380 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15382         * doc/invoke.texi (AVR Options): Add documentation about
15383         __AVR_DEVICE_NAME__ built-in macro.
15385 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
15387         PR target/61948
15388         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
15389         constraints are satisfied.
15390         (<shift>di3_neon): Likewise.
15392 2014-07-31  Richard Biener  <rguenther@suse.de>
15394         PR tree-optimization/61964
15395         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
15396         by structural equality.
15398 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
15400         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
15401         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
15402         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
15403         New enums.
15404         * gcc.c (sanitize_spec_function): Support new option.
15405         (SANITIZER_SPEC): Remove now redundant check.
15406         * opts.c (common_handle_option): Support new option.
15407         (finish_options): Check for incompatibilities.
15408         * toplev.c (process_options): Split userspace-specific checks.
15410 2014-07-31  Richard Biener  <rguenther@suse.de>
15412         * lto-streamer.h (struct output_block): Remove global.
15413         (struct data_in): Remove labels, num_named_labels and
15414         num_unnamed_labels.
15415         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
15416         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
15418 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
15420         PR c++/60517
15421         * common.opt (-Wreturn-local-addr): Moved from c.opt.
15422         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
15423         (isolate_path): New argument to avoid inserting a trap.
15424         (find_implicit_erroneous_behaviour): Handle returning the address
15425         of a local variable.
15426         (find_explicit_erroneous_behaviour): Likewise.
15428 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
15430         PR lto/61868
15431         * toplev.c (init_random_seed): Move piece of code never called to
15432         set_random_seed.
15433         (set_random_seed): see above.
15435 2014-07-31  Tom de Vries  <tom@codesourcery.com>
15437         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
15439 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
15441         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
15442         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
15444 2014-07-31  Richard Biener  <rguenther@suse.de>
15446         * data-streamer.h (streamer_write_data_stream): Declare here,
15447         renamed from ...
15448         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
15449         * lto-cgraph.c (lto_output_node): Adjust.
15450         (lto_output_varpool_node): Likewise.
15451         * data-streamer-out.c (streamer_string_index): Likewise.
15452         (streamer_write_data_stream, lto_append_block): Move from ...
15453         * lto-section-out.c (lto_output_data_stream,
15454         lto_append_block): ... here.
15456 2014-07-30  Mike Stump  <mikestump@comcast.net>
15458         * configure.ac: Also check for popen.
15459         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
15460         * configure: Regenerate.
15461         * config.in:  Regenerate.
15463 2014-07-30  Martin Jambor  <mjambor@suse.cz>
15465         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
15466         parameter to gimple.
15468 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15470         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
15471         address as second parameter to __tpf_eh_return routine.
15473 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
15475         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
15476         Thumb2.
15478 2014-07-30  Tom Tromey  <tromey@redhat.com>
15480         PR c/59855
15481         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
15482         * doc/extend.texi (Type Attributes): Document designated_init
15483         attribute.
15485 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
15487         * graphite-isl-ast-to-gimple.c:
15488         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
15489         (gcc_expression_from_isl_expression): Pass type to
15490         gcc_expression_from_isl_ast_expr_id.
15492 2014-07-30  Richard Biener  <rguenther@suse.de>
15494         * lto-streamer.h (lto_write_data): New function.
15495         * langhooks.c (lhd_append_data): Do not free block.
15496         * lto-section-out.c (lto_write_data): New function writing
15497         raw data to the current section.
15498         (lto_write_stream): Adjust for langhook semantic change.
15499         (lto_destroy_simple_output_block): Write header directly.
15500         * lto-opts.c (lto_write_options): Write options directly.
15501         * lto-streamer-out.c (produce_asm): Write heaeder directly.
15502         (lto_output_toplevel_asms): Likewise.
15503         (copy_function_or_variable): Copy data directly.
15504         (write_global_references): Output index table directly.
15505         (lto_output_decl_state_refs): Likewise.
15506         (write_symbol): Write data directly.
15507         (produce_symtab): Adjust.
15508         (produce_asm_for_decls): Output header and refs directly.
15510 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
15512         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
15513         to speculative_targets
15514         (get_class_context): Fix handling of contextes without outer type;
15515         avoid matching non-polymorphic types in LTO.
15516         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
15517         parameter to speculative_targetsp; handle speculation.
15518         (dump_possible_polymorphic_call_targets): Update dumping.
15520 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
15522         * common.opt (Wodr): Enable by default.
15524 2014-07-29  Olivier Hainque  <hainque@adacore.com>
15526         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
15528 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
15530         PR bootstrap/61914
15531         * gengtype.c (strtoken): New function.
15532         (create_user_defined_type): Replace strtok with strtoken.
15534 2014-07-29  Nathan Sidwell  <nathan@acm.org>
15536         * gcov-io.c (gcov_var): Make hidden.
15537         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
15538         (gcov_do_dump): Declare.
15539         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
15541 2014-07-29  Martin Jambor  <mjambor@suse.cz>
15543         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
15544         parameter to gimple.
15545         (sra_modify_assign): Likewise.
15547 2014-07-29  Richard Biener  <rguenther@suse.de>
15549         PR middle-end/52478
15550         * expr.c (expand_expr_real_2): Revert last change.
15552 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
15554         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
15555         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
15556         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
15557         call.
15558         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
15559         (contains_type_p): Forward declare.
15560         (polymorphic_call_target_hasher::hash): Hash speculative info.
15561         (polymorphic_call_target_hasher::equal): Compare speculative info.
15562         (get_class_context): Handle speuclation.
15563         (contains_type_p): Update.
15564         (get_polymorphic_call_info_for_decl): Update.
15565         (walk_ssa_copies): Break out from ...
15566         (get_polymorphic_call_info): ... here; set speculative context
15567         before giving up.
15568         * ipa-prop.c (ipa_write_indirect_edge_info,
15569         ipa_read_indirect_edge_info): Stream speculative context.
15570         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
15571         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
15572         SPECULATIVE_MAYBE_DERIVED_TYPE).
15573         (possible_polymorphic_call_targets overriders): Update.
15574         (dump_possible_polymorphic_call_targets overriders): Update.
15575         (dump_possible_polymorphic_call_target_p overriders): Update.
15577 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
15579         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
15580         ipa-devirt path; fix thinko there.
15582 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
15584         * config/i386/i386.c (ix86_return_in_memory): Replace one
15585         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
15587 2014-07-28  Marek Polacek  <polacek@redhat.com>
15589         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
15591 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
15593         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
15594         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
15595         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
15596         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
15597         (USE_LD_AS_NEEDED): Likewise.
15598         (ASM_APP_ON): Likewise.
15599         (ASM_APP_OFF): Likewise.
15600         (TARGET_POSIX_IO): Likewise.
15601         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
15602         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
15603         (USE_LD_AS_NEEDED): Likewise.
15604         (ASM_APP_ON): Likewise.
15605         (ASM_APP_OFF): Likewise.
15606         (TARGET_POSIX_IO): Likewise.
15608 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
15610         PR middle-end/61734
15611         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
15612         operators other than the equality operators.
15614 2014-07-28  Richard Biener  <rguenther@suse.de>
15616         PR middle-end/52478
15617         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
15618         sure to register SImode ones, not only >= word_mode ones.
15619         * expr.c (expand_expr_real_2): When expanding -ftrapv
15620         binops do not use OPTAB_LIB_WIDEN.
15622 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
15624         PR middle-end/61919
15625         * tree-outof-ssa.c (insert_partition_copy_on_edge)
15626         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
15627         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
15628         inserting them in the insn stream.
15630 2014-07-28  Marek Polacek  <polacek@redhat.com>
15632         PR middle-end/61913
15633         * common.opt (Wodr): Add Var.
15635 2014-07-28  Richard Biener  <rguenther@suse.de>
15637         PR tree-optimization/61921
15638         * tree-ssa-structalias.c (create_variable_info_for_1): Check
15639         if there is a varpool node before dereferencing it.
15641 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
15643         * graphite-sese-to-poly.c:
15644         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
15645         id of the pbb), which contains pointer to the pbb1.
15647         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
15649 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
15651         * graphite-isl-ast-to-gimple.c:
15652         (graphite_create_new_guard): New function.
15653         (translate_isl_ast_node_if): New function.
15654         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
15656         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
15658 2014-07-27  Anthony Green  <green@moxielogic.com>
15660         * config.gcc: Add moxie-*-moxiebox* configuration.
15661         * config/moxie/moxiebox.h: New file.
15663 2014-07-26  Andrew Pinski  <apinski@cavium.com>
15665         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
15666         from the read only register.
15668 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
15670         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
15671         as the allocation class if it isn't likely to be spilled.
15673 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
15675         * rtl.h (tls_referenced_p): Declare.
15676         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
15677         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
15678         (mips_cannot_force_const_mem): Use tls_referenced_p.
15679         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
15680         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
15681         instead of pa_tls_referenced_p.
15682         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
15683         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
15684         (pa_legitimate_constant_p): Likewise.
15685         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
15686         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
15687         (rs6000_cannot_force_const_mem, rs6000_emit_move)
15688         (rs6000_address_for_altivec): Use tls_referenced_p instead of
15689         rs6000_tls_referenced_p.
15690         (rs6000_tls_symbol_ref_1): Delete.
15692 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
15694         PR target/44551
15695         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
15696         Optimize inverse of a VEC_CONCAT.
15698 2014-07-25  Xinliang David Li  <davidxl@google.com>
15700         * params.def: New parameter.
15701         * coverage.c (get_coverage_counts): Check new flag.
15702         (coverage_compute_profile_id): Check new flag.
15703         (coverage_begin_function): Check new flag.
15704         (coverage_end_function): Check new flag.
15705         * value-prof.c (coverage_node_map_initialized_p): New function.
15706         (init_node_map): Populate map with all functions.
15707         * doc/invoke.texi: Document new parameter.
15709 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
15710             Richard Biener <rguenther@suse.de>
15712         * lto-streamer-out.c (struct sccs): Turn to ...
15713         (class DFS): ... this one; refactor the DFS walk so it can
15714         be re-done on per-SCC basis.
15715         (DFS::DFS): New constructor.
15716         (DFS::~DFS): New destructor.
15717         (hash_tree): Add new MAP argument holding in-SCC hash values;
15718         remove POINTER_TYPE hashing hack.
15719         (scc_entry_compare): Rename to ...
15720         (DFS::scc_entry_compare): ... this one.
15721         (hash_scc): Rename to ...
15722         (DFS::hash_scc): ... this one; pass output_block instead
15723         of streamer_cache; work harder to get unique and stable SCC
15724         hashes.
15725         (DFS_write_tree): Rename to ...
15726         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
15727         (lto_output_tree): Update.
15729 2014-07-25  Andi Kleen  <ak@linux.intel.com>
15731         * lto-streamer-out.c (hash_tree): Convert to inchash.
15733 2014-07-25  Andi Kleen  <ak@linux.intel.com>
15735         * tree.c (build_type_attribute_qual_variant): Use inchash.
15736         (type_hash_list): Dito.
15737         (attribute_hash_list): Dito
15738         (iterative_hstate_expr): Dito.
15739         (iterative_hash_expr): Dito.
15740         (build_range_type_1): Dito.
15741         (build_array_type_1): Dito.
15742         (build_function_type): Dito.
15743         (build_method_type_directly): Dito.
15744         (build_offset_type): Dito.
15745         (build_complex_type): Dito.
15746         (make_vector_type): Dito.
15747         * tree.h (iterative_hash_expr): Add compat wrapper.
15748         (iterative_hstate_expr): Add.
15750 2014-07-25  Andi Kleen  <ak@linux.intel.com>
15752         * Makefile.in (OBJS): Add inchash.o.
15753         (PLUGIN_HEADERS): Add inchash.h.
15754         * ipa-devirt.c: Include inchash.h.
15755         * lto-streamer-out.c: Dito.
15756         * tree-ssa-dom.c: Dito.
15757         * tree-ssa-pre.c: Dito.
15758         * tree-ssa-sccvn.c: Dito.
15759         * tree-ssa-tail-merge.c: Dito.
15760         * asan.c: Dito.
15761         * tree.c (iterative_hash_hashval_t): Move to ...
15762         (iterative_hash_host_wide_int): Move to ...
15763         * inchash.c: Here. New file.
15764         * tree.h (iterative_hash_hashval_t): Move to ...
15765         (iterative_hash_host_wide_int): Move to ...
15766         * inchash.h: Here. New file.
15768 2014-07-25  Richard Biener  <rguenther@suse.de>
15770         PR middle-end/61762
15771         PR middle-end/61894
15772         * fold-const.c (native_encode_int): Add and handle offset
15773         parameter to do partial encodings of expr.
15774         (native_encode_fixed): Likewise.
15775         (native_encode_real): Likewise.
15776         (native_encode_complex): Likewise.
15777         (native_encode_vector): Likewise.
15778         (native_encode_string): Likewise.
15779         (native_encode_expr): Likewise.
15780         * fold-const.c (native_encode_expr): Add offset parameter
15781         defaulting to -1.
15782         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
15783         (fold_ctor_reference): Handle all reads from tcc_constant
15784         ctors.
15786 2014-07-25  Richard Biener  <rguenther@suse.de>
15788         * tree-inline.c (estimate_move_cost): Mark speed_p argument
15789         as possibly unused.
15791 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15793         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
15795 2014-07-24  Kyle McMartin  <kyle@redhat.com>
15797         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
15799 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15801         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
15802         Add prototype.
15803         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
15804         function.
15805         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
15806         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
15807         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
15809 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15811         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
15812         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
15813         aggregate types.  Instead, *all* aggregate types, except for single-
15814         element or homogeneous float/vector aggregates, are quadword-aligned
15815         if required by their type alignment.  Issue -Wpsabi note when a type
15816         is now treated differently than before.
15818 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15820         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
15821         does not fit fully into floating-point registers, and there is still
15822         space in the register parameter area, use GPRs to pass those parts
15823         of the argument.  Issue -Wpsabi note if any parameter is now treated
15824         differently than before.
15825         (rs6000_arg_partial_bytes): Update.
15827 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
15829         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
15831 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
15833         * rtl.h (target_rtl): Remove lang_dependent_initialized.
15834         * toplev.c (initialize_rtl): Don't use it.  Move previously
15835         "language-dependent" calls to...
15836         (backend_init): ...here.
15837         (lang_dependent_init_target): Don't set lang_dependent_initialized.
15838         Assert that RTL initialization hasn't happend yet.
15840 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
15842         PR rtl-optimization/61629
15843         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
15844         they have already been initialized.
15846 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
15848         PR middle-end/61268
15849         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
15850         DECL_INCOMING_RTL and entry_parm.
15851         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
15852         * calls.c (load_register_parameters): Likewise argument values.
15853         (emit_library_call_value_1, store_one_arg): Likewise argument
15854         save areas.
15855         * config/i386/i386.c (assign_386_stack_local): Likewise the local
15856         stack slot.
15857         * explow.c (validize_mem): Modify the argument in-place.
15859 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15861         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
15862         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
15864 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15866         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
15867         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
15869 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15871         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
15872         (aarch64_save_callee_saves): New parameter "skip_wb".
15873         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
15875 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
15877         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
15878         "wb_candidate2".
15879         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
15881 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
15883         * graphite-isl-ast-to-gimple.c:
15884         (graphite_create_new_loop): Add calling of isl_id_free to properly
15885         decrement reference counts.
15887         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
15889 2014-07-24  Martin Liska  <mliska@suse.cz>
15890         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
15891         function used.
15892         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
15893         (rs6000_code_end): Likewise.
15895 2014-07-24  Martin Liska  <mliska@suse.cz>
15897         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
15898         symtab_node funtion used.
15899         (rs6000_xcoff_declare_object_name): Likewise.
15901 2014-07-24  Martin Liska  <mliska@suse.cz>
15903         * cgraphunit.c (compile): Correct function used.
15905 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
15907         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
15908         as non-indexable.
15910 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
15912         PR lto/61802
15913         * varasm.c (bss_initializer_p): Handle offlined ctors.
15914         (align_variable, get_variable_align): Likewise.
15915         (make_decl_one_only): Likewise.
15916         (default_binds_local_p_1): Likewise.
15917         (decl_binds_to_current_def_p): Likewise.
15918         (get_variable_section): Get constructor if it is offlined.
15919         (assemble_variable_contents): Sanity check that the caller
15920         streamed in the ctor in LTO.
15922 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
15924         * graphite-isl-ast-to-gimple.c:
15925         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
15926         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
15927         isl_ast_op_pdiv_r to the different case.
15929         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
15931 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15933         PR middle-end/61876
15934         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
15935         when flag_errno_math is on.
15937 2014-07-24  Martin Liska  <mliska@suse.cz>
15939         * cgraph.h (varpool_node):
15940         (availability get_availability (void)):
15941         created from cgraph_variable_initializer_availability
15942         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
15943         created from: cgraph_variable_initializer_availability
15944         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
15945         (void finalize_named_section_flags (void)):
15946         created from varpool_finalize_named_section_flags
15947         (bool assemble_decl (void)): created from varpool_assemble_decl
15948         (void analyze (void)): created from varpool_analyze_node
15949         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
15950         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
15951         (void remove_initializer (void)): created from varpool_remove_initializer
15952         (tree get_constructor (void)): created from varpool_get_constructor
15953         (bool externally_visible_p (void)): created from varpool_externally_visible_p
15954         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
15955         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
15956         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
15957         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
15958         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
15959         (static bool output_variables (void)): created from varpool_output_variables
15960         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
15961         created from varpool_extra_name_alias
15962         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
15963         (static void dump_varpool (FILE *f)): created from dump_varpool
15964         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
15965         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
15966         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
15967         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
15968         (void assemble_aliases (void)): created from assemble_aliases
15970 2014-07-24  Martin Liska  <mliska@suse.cz>
15972         * cgraph.h (symtab_node):
15973         (void register_symbol (void)): created from symtab_register_node
15974         (void remove (void)): created from symtab_remove_node
15975         (void dump (FILE *f)): created from dump_symtab_node
15976         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
15977         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
15978         (struct ipa_ref *add_reference (symtab_node *referred_node,
15979         enum ipa_ref_use use_type)): created from add_reference
15980         (struct ipa_ref *add_reference (symtab_node *referred_node,
15981         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
15982         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
15983         gimple stmt)): created from maybe_add_reference
15984         (bool semantically_equivalent_p (symtab_node *target)): created from
15985         symtab_semantically_equivalent_p
15986         (void remove_from_same_comdat_group (void)): created from
15987         remove_from_same_comdat_group
15988         (void add_to_same_comdat_group (symtab_node *old_node)): created from
15989         symtab_add_to_same_comdat_group
15990         (void dissolve_same_comdat_group_list (void)): created from
15991         symtab_dissolve_same_comdat_group_list
15992         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
15993         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
15994         created from symtab_alias_ultimate_target
15995         (inline symtab_node *next_defined_symbol (void)): created from
15996         symtab_next_defined_symbol
15997         (bool resolve_alias (symtab_node *target)): created from
15998         symtab_resolve_alias
15999         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
16000         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
16001         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
16002         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
16003         (void set_section (const char *section)): created from set_section_1
16004         (enum availability get_availability (void)): created from symtab_node_availability
16005         (void make_decl_local (void)): created from symtab_make_decl_local
16006         (bool real_symbol_p (void)): created from symtab_read_node
16007         (can_be_discarded_p (void)): created from symtab_can_be_discarded
16008         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
16009         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
16010         symtab_in_same_comdat_p;
16011         (bool address_taken_from_non_vtable_p (void)): created from
16012         address_taken_from_non_vtable_p
16013         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
16014         (static void dump_table (FILE *)): created from dump_symtab
16015         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
16016         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
16017         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
16018         symtab_used_from_object_file_p
16019         (void dump_base (FILE *)): created from dump_symtab_base
16020         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
16021         (void unregister (void)): created from symtab_unregister_node
16022         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
16023         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
16024         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
16025         symtab_nonoverwritable_alias_1
16026         * cgraph.h (cgraph_node):
16027         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
16028         created from cgraph_remove_node_and_inline_clones
16029         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
16030         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
16031         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
16032         (cgraph_node *function_symbol (enum availability *avail = NULL)):
16033         created from cgraph_function_node
16034         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
16035         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
16036         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
16037         created from cgraph_create_clone
16038         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
16039         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
16040         created from cgraph_create_virtual_clone
16041         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
16042         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
16043         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
16044         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
16045         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
16046         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
16047         created from cgraph_function_version_info
16048         (struct cgraph_function_version_info *insert_new_function_version (void)):
16049         created from insert_new_cgraph_node_version
16050         (struct cgraph_function_version_info *function_version (void)): created from
16051         get_cgraph_node_version
16052         (void analyze (void)): created from analyze_function
16053         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
16054         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
16055         tree real_alias) cgraph_add_thunk
16056         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
16057         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
16058         created from cgraph_function_or_thunk_node
16059         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
16060         created from expand_thunk
16061         (void reset (void)): created from cgraph_reset_node
16062         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
16063         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
16064         (void remove (void)): created from cgraph_remove_node
16065         (void dump (FILE *f)): created from dump_cgraph_node
16066         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
16067         (bool get_body (void)): created from cgraph_get_body
16068         (void release_body (void)): created from cgraph_release_function_body
16069         (void unnest (void)): created from cgraph_unnest_node
16070         (void make_local (void)): created from cgraph_make_node_local
16071         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
16072         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
16073         gcov_type count, int freq)): created from cgraph_create_edge
16074         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
16075         gcov_type count, int freq)): created from cgraph_create_indirect_edge
16076         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
16077         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
16078         created from cgraph_create_edge_including_clones
16079         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
16080         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
16081         (void remove_callers (void)): created from cgraph_node_remove_callers
16082         (void remove_callees (void)): created from cgraph_node_remove_callees
16083         (enum availability get_availability (void)): created from cgraph_function_body_availability
16084         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
16085         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
16086         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
16087         (void call_duplication_hooks (cgraph_node *node2)): created from
16088         cgraph_call_node_duplication_hooks
16089         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
16090         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
16091         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
16092         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
16093         (void call_function_insertion_hooks (void)):
16094         created from cgraph_call_function_insertion_hooks
16095         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
16096         (bool local_p (void)): created from cgraph_local_node
16097         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
16098         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
16099         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
16100         (inline bool only_called_directly_or_aliased_p (void)):
16101         created from cgraph_only_called_directly_or_aliased_p
16102         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
16103         created from cgraph_will_be_removed_from_program_if_no_direct_calls
16104         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
16105         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
16106         (bool can_remove_if_no_direct_calls_p (void)):
16107         created from cgraph_can_remove_if_no_direct_calls_p
16108         (inline bool has_gimple_body_p (void)):
16109         created from cgraph_function_with_gimple_body_p
16110         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
16111         (static void dump_cgraph (FILE *f)): created from dump_cgraph
16112         (static inline void debug_cgraph (void)): created from debug_cgraph
16113         (static void record_function_versions (tree decl1, tree decl2)):
16114         created from record_function_versions
16115         (static void delete_function_version (tree decl)):
16116         created from delete_function_version
16117         (static void add_new_function (tree fndecl, bool lowered)):
16118         created from cgraph_add_new_function
16119         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
16120         (static cgraph_node * create (tree decl)): created from cgraph_create_node
16121         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
16122         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
16123         (static cgraph_node *get_for_asmname (tree asmname)):
16124         created from cgraph_node_for_asm
16125         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
16126         created from cgraph_same_body_alias
16127         (static bool used_from_object_file_p_worker (cgraph_node *node,
16128         void *): new function
16129         (static bool non_local_p (cgraph_node *node, void *)):
16130         created from cgraph_non_local_node_p_1
16131         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
16132         created from verify_cgraph
16133         (static bool make_local (cgraph_node *node, void *)):
16134         created from cgraph_make_node_local
16135         (static cgraph_node *create_alias (tree alias, tree target)):
16136         created from cgraph_create_function_alias
16137         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
16138         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
16139         created from cgraph_create_edge_1
16140         * cgraph.h (varpool_node):
16141         (void remove (void)): created from varpool_remove_node
16142         (void dump (FILE *f)): created from dump_varpool_node
16144 2014-07-24  Richard Biener  <rguenther@suse.de>
16146         PR ipa/61823
16147         * tree-ssa-structalias.c (create_variable_info_for_1):
16148         Use varpool_get_constructor.
16149         (create_variable_info_for): Likewise.
16151 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
16153         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
16154         subtract outgoing area size when restoring stack_pointer_rtx.
16156 2014-07-24  Nick Clifton  <nickc@redhat.com>
16158         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
16159         that operations are taking place in parallel.
16160         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
16162 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
16164         * omp-low.c (extract_omp_for_data): Add missing break statement.
16166 2014-07-24  Richard Biener  <rguenther@suse.de>
16168         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
16169         * tree-inline.c (estimate_move_cost): Add speed_p parameter
16170         and adjust MOVE_RATIO query accordingly.
16171         (estimate_num_insns): Adjust callers.
16172         * ipa-prop.c (ipa_populate_param_decls): Likewise.
16173         * ipa-cp.c (gather_context_independent_values,
16174         estimate_local_effects): Likewise.
16175         * ipa-split.c (consider_split): Likewise.
16177 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
16179         * config/i386/driver-i386.c: Remove names of unused arguments and
16180         unnecessary unused attributes.
16181         * config/i386/host-mingw32.c: Likewise.
16182         * config/i386/i386.c: Likewise.
16183         * config/i386/winnt-stubs.c: Likewise.
16184         * config/i386/winnt.c: Likewise.
16186 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16188         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
16189         (aarch64_gen_loadwb_pair): New helper function.
16190         (aarch64_expand_epilogue): Simplify code using new helper functions.
16191         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
16193 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16195         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
16196         (aarch64_gen_storewb_pair): New helper function.
16197         (aarch64_expand_prologue): Simplify code using new helper functions.
16198         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
16200 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16202         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
16203         Rename to aarch64_save_callee_saves, remove restore code.
16204         (aarch64_restore_callee_saves): New function.
16206 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16208         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
16209         (aarch64_save_callee_saves): New function to handle reg save
16210         for both core and vectore regs.
16212 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16214         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
16215         (aarch64_gen_store_pair): New helper function.
16216         (aarch64_save_or_restore_callee_save_registers)
16217         (aarch64_save_or_restore_fprs): Use new helper functions.
16219 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16221         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
16222         (aarch64_save_or_restore_callee_save_registers)
16223         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
16225 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16227         * config/aarch64/aarch64.c
16228         (aarch64_save_or_restore_callee_save_registers)
16229         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
16231 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16233         * config/aarch64/aarch64.c
16234         (aarch64_save_or_restore_callee_save_registers)
16235         (aarch64_save_or_restore_fprs): Remove 'increment'.
16237 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16239         * config/aarch64/aarch64.c
16240         (aarch64_save_or_restore_callee_save_registers)
16241         (aarch64_save_or_restore_fprs): Use register offset in
16242         cfun->machine->frame.reg_offset.
16244 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16246         * config/aarch64/aarch64.c
16247         (aarch64_save_or_restore_callee_save_registers)
16248         (aarch64_save_or_restore_fprs): Remove base_rtx.
16250 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16252         * config/aarch64/aarch64.c
16253         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
16254         to 'start_offset'.  Remove local variable 'start_offset'.
16256 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16258         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
16259         type to HOST_WIDE_INT.
16261 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16263         * config/aarch64/aarch64.c (aarch64_expand_prologue)
16264         (aarch64_save_or_restore_fprs)
16265         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
16267 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16269         * config/arm/t-rtems-eabi: Add
16270         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
16271         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
16272         mbig-endian/mthumb/march=armv7-r, and
16273         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
16274         multilibs.
16276 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16277             Chris Johns <chrisj@rtems.org>
16278             Joel Sherrill <joel.sherrill@oarcorp.com>
16280         * config.gcc: Add nios2-*-rtems*.
16281         * config/nios2/rtems.h: New file.
16282         * gcc/config/nios2/t-rtems: New file.
16284 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
16286         PR target/61396
16287         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
16288         constant numbers, not general constants.
16289         (rs6000_expand_vector_init): Ditto.
16291 2014-07-23  Nathan Sidwell  <nathan@acm.org>
16293         * gcov-tool.c (gcov_list): Declare here.
16294         (set_gcov_list): Remove.
16295         (gcov_output_files): Set gcov_list directly.
16297 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
16299         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
16301 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16303         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
16304         callee-saved registers are available for padding purpose
16305         and r3 is not mandatory, then prefer use those callee-saved
16306         instead of r3.
16308 2014-07-23  Richard Biener  <rguenther@suse.de>
16310         * params.def (PARAM_MAX_COMBINE_INSNS): New.
16311         * combine.c: Include statistics.h and params.h.
16312         (combine_instructions): Guard three and four insn combines
16313         with max-combine-insns value.  Record statistics for combines
16314         performed.
16315         * doc/invoke.texi (max-combine-insns): Document new param.
16317 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
16319         * graphite-isl-ast-to-gimple.c:
16320         (translate_isl_ast_node_block): New function.
16321         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
16323         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
16324         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
16326 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
16328         * graphite-isl-ast-to-gimple.c:
16329         (get_max_schedule_dimensions): New function.
16330         (extend_schedule): Likewise.
16331         (generate_isl_schedule): Add calling of extend_schedule and
16332         get_max_schedule_dimensions.
16334 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16336         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
16337         (case UNSPEC): Handle UNSPEC_RBIT.
16339 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16341         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
16342         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
16344 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16346         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
16348 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
16350         * graphite-isl-ast-to-gimple.c:
16351         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
16352         (ivs_params_clear):
16353         (build_iv_mapping): New function.
16354         (translate_isl_ast_node_user): Likewise.
16355         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
16357         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
16358         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
16359         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
16361 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
16363         PR target/55701
16364         * config/arm/arm.md (setmem): New pattern.
16365         * config/arm/arm-protos.h (struct tune_params): New fields.
16366         (arm_gen_setmem): New prototype.
16367         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
16368         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
16369         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
16370         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
16371         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
16372         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
16373         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
16374         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
16375         (arm_const_inline_cost): New function.
16376         (arm_block_set_max_insns): New function.
16377         (arm_block_set_non_vect_profit_p): New function.
16378         (arm_block_set_vect_profit_p): New function.
16379         (arm_block_set_unaligned_vect): New function.
16380         (arm_block_set_aligned_vect): New function.
16381         (arm_block_set_unaligned_non_vect): New function.
16382         (arm_block_set_aligned_non_vect): New function.
16383         (arm_block_set_vect, arm_gen_setmem): New functions.
16385 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
16387         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
16389 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
16391         PR target/61855
16392         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
16393         out of #ifdef __OPTIMIZE__.
16395 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
16397         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
16398         different trapping status if -fnon-call-exceptions is enabled.
16400 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
16402         * expr.c (store_field): Handle VOIDmode for calls that return values
16403         in multiple locations.
16405 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16407         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
16408         (altivec_vsldoi_<mode>): Likewise.
16410 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
16412         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
16413         to the number of characters in the line.
16415 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
16417         * graphite-isl-ast-to-gimple.c: Add using of
16418         build_nonstandard_integer_type instead of int128_integer_type_node.
16420 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
16422         * toplev.c (output_stack_usage): Adjust the location of the warning.
16424 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
16426         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
16427         (*membar_storeload): Disable for LEON3.
16429 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16431         PR rtl-optimization/61461
16432         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
16434 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
16436         PR target/61794
16437         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
16438         Fix instruction constraint.
16439         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
16441 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
16443         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
16445 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
16447         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
16448         GNU coding standards.
16449         (nds32_register_move_cost): Likewise.
16450         (nds32_memory_move_cost): Likewise.
16451         (nds32_address_cost): Likewise.
16453 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16455         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
16457 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
16459         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
16460         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
16461         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
16462         (HAVE_sync_compare_and_swapqi): Define.
16463         (HAVE_sync_compare_and_swaphi): Likewise.
16464         (HAVE_sync_compare_and_swapsi): Likewise.
16466 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
16468         * config/mips/p5600.md: Add missing cpu tests.
16470 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16472         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
16473         (vmla_f64): Likewise.
16474         (vfms_f64): Likewise.
16475         (vmls_f64): Likewise.
16477 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16479         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
16480         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
16482 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16484         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
16485         (vmlal_high_lane_s32): Likewise.
16486         (vmlal_high_lane_u16): Likewise.
16487         (vmlal_high_lane_u32): Likewise.
16488         (vmlsl_high_lane_s16): Likewise.
16489         (vmlsl_high_lane_s32): Likewise.
16490         (vmlsl_high_lane_u16): Likewise.
16491         (vmlsl_high_lane_u32): Likewise.
16493 2014-07-17  Terry Guo  <terry.guo@arm.com>
16495         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
16496         (alus_reg): Renamed to alus_sreg.
16497         * config/arm/arm-fixed.md: Change type of non-dsp instructions
16498         from alu_reg to alu_sreg.  Change type of dsp instructions from
16499         alu_reg to alu_dsp_reg.
16500         * config/arm/thumb1.md: Likewise.
16501         * config/arm/thumb2.md: Likewise.
16502         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
16503         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
16504         with alu_sreg and alus_sreg.
16505         * config/arm/arm1026ejs.md (alu_op): Likewise.
16506         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
16507         * config/arm/arm926ejs.md (9_alu_op): Likewise.
16508         * config/arm/fa526.md (526_alu_op): Likewise.
16509         * config/arm/fa606te.md (606te_alu_op): Likewise.
16510         * config/arm/fa626te.md (626te_alu_op): Likewise.
16511         * config/arm/fa726te.md (726te_alu_op): Likewise.
16512         * config/arm/fmp626.md (mp626_alu_op): Likewise.
16513         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
16514         alu_sreg, alu_dsp_reg and alus_sreg.
16515         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
16516         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
16517         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
16518         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
16519         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
16520         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
16521         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
16522         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
16523         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
16524         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
16525         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
16526         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
16527         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
16528         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
16529         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
16530         alus_reg to alus_sreg.
16532 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
16534         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
16535         infinity format.
16537 2014-07-17  Richard Biener  <rguenther@suse.de>
16539         PR rtl-optimization/61801
16540         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
16541         don't set reg_pending_barrier if it appears in a debug-insn.
16543 2014-07-16  DJ Delorie  <dj@redhat.com>
16545         * config/rx/rx.c (rx_option_override): Fix alignment values.
16546         (rx_align_for_label): Likewise.
16548 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
16550         PR target/61737.
16551         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
16552         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
16553         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
16554         functions.
16555         (cris_print_index, cris_print_operand, cris_constant_index_p)
16556         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
16557         (cris_address_cost): Ditto last CONSTANT_P.
16558         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
16559         callers changed.  Yield cris_offsettable_symbol for non-PIC
16560         constant symbolic expressions including labels.  Yield cris_unspec
16561         for all unspecs.
16562         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
16563         target to pic_offset_table_rtx for calls that will likely go
16564         through PLT, const0_rtx when they can't.  All callers changed.
16565         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
16566         symbolic expressions to be PICified.  Remove second, redundant,
16567         assert on can_create_pseudo_p returning non-zero.  Use
16568         replace_equiv_address_nv, not replace_equiv_address, for final
16569         operand update.
16570         * config/cris/cris.md ("movsi"): Move variable t to pattern
16571         toplevel. Adjust assert for new cris_symbol_type member.  Use
16572         CONSTANT_P instead of CONSTANT_ADDRESS_P.
16573         ("*movsi_internal") <case 9>: Make check for valid unspec operands
16574         for lapc stricter.
16575         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
16576         ("call", "call_value"): Use second incoming operand as a marker
16577         for pic-offset-table-register being used.
16578         ("*expanded_call_non_v32", "*expanded_call_v32")
16579         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
16580         second incoming operand to CALL, match cris_call_type_marker.
16581         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
16582         ("*expanded_call_side"): Ditto.  Fix typo in comment.
16583         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
16584         CONSTANT_P.
16585         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
16586         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
16587         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
16588         users changed.  Add members cris_offsettable_symbol and cris_unspec.
16589         (cris_symbol_type): Rename from cris_pic_symbol_type.
16590         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
16591         just CONSTANT_P.
16592         * config/cris/cris-protos.h (cris_symbol_type_of,
16593         cris_expand_pic_call_address): Adjust prototypes.
16594         (cris_legitimate_constant_p): New prototype.
16596         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
16597         an existing tmake_file.  Don't add t-slibgcc and t-linux.
16599 2014-07-17  Jason Merrill  <jason@redhat.com>
16601         PR c++/61623
16602         * symtab.c (symtab_remove_from_same_comdat_group): Also
16603         set_comdat_group to NULL_TREE.
16604         (verify_symtab): Fix diagnostic.
16606 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
16608         PR target/61662
16609         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
16611 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
16613         Support location tracking for built-in macro tokens
16614         * input.h (is_location_from_builtin_token): New function declaration.
16615         * input.c (is_location_from_builtin_token): New function definition.
16616         * toplev.c (general_init): Tell libcpp what the pre-defined
16617         spelling location for built-in tokens is.
16619 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
16621         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
16622         on the FUNCTION_DECL.
16624 2014-07-16  Richard Biener  <rguenther@suse.de>
16626         PR other/61782
16627         * doc/extend.texi (always_inline): Clarify.
16629 2014-07-15  Eric Christopher  <echristo@gmail.com>
16631         * doc/invoke.texi (Link Options): Document -z option.
16633 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
16635         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
16636         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
16638 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
16640         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
16642 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
16644         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
16645         varpool_assemble_decl.
16646         * varpool.c (varpool_assemble_decl): Assert that node->definition is
16647         true.
16649 2014-07-15  Michael Matz  <matz@suse.de>
16651         PR rtl-optimization/61772
16652         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
16654 2014-07-15  Richard Biener  <rguenther@suse.de>
16656         * opts.c (default_options_table): Disable bit-ccp at -Og.
16658 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
16660         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
16662 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
16664         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
16665         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
16666         call langhook for unknown declaration.
16667         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
16668         * tree.h (DECL_ARGUMENTS): Update.
16669         * print-tree.c (print_node): Update.
16670         * tree-core.h (tree_decl_non_common): Remove arguments.
16671         (tree_function_decl): Add arguments.
16673 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
16675         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
16677 2014-07-14  Richard Biener  <rguenther@suse.de>
16679         PR tree-optimization/61779
16680         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
16681         simplifying a condition.
16683 2014-07-14  Richard Biener  <rguenther@suse.de>
16685         * builtins.c (c_strlen): Make only_value == 2 really only
16686         affect warning generation.
16688 2014-07-14  Richard Biener  <rguenther@suse.de>
16690         PR tree-optimization/61757
16691         PR tree-optimization/61783
16692         PR tree-optimization/61787
16693         * tree-ssa-dom.c (record_equality): Revert canonicalization
16694         change and add comment.
16695         (propagate_rhs_into_lhs): Revert previous fix, removing
16696         loop depth restriction again.
16698 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16700         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
16701         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
16702         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
16703         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
16704         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
16705         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
16706         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
16708 2014-07-14  Richard Biener  <rguenther@suse.de>
16710         * cgraph.h (decl_in_symtab_p): Make inline.
16712 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
16714         PR middle-end/61294
16715         * doc/invoke.texi (-Wmemset-transposed-args): Document.
16717         PR target/61656
16718         * config/i386/i386.c (classify_argument): Don't merge classes above
16719         number of words.
16721 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
16723         * cgraph.h (symtab_node): Add nonzero_address.
16724         (decl_in_symtab_p): Break out from ...
16725         (symtab_get_node): ... here.
16726         * fold-const.c: Include cgraph.h
16727         (tree_single_nonzero_warnv_p): Use symtab to determine
16728         if symbol is non-zero.
16729         * symtab.c (symtab_node::nonzero_address): New method.
16731 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
16733         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
16734         forgotten in previous commit.
16736 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
16738         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
16739         on builtin types.
16740         * ipa-devirt.c: Include stor-layout.h and intl.h
16741         (odr_subtypes_equivalent_p): New function.
16742         (warn_odr): New function.
16743         (warn_type_mismatch): New function.
16744         (odr_types_equivalent_p): New function.
16745         (add_type_duplicate): Use it.
16746         * common.opt (Wodr): New flag.
16747         * doc/invoke.texi (Wodr): Document new warning.
16749 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
16751         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
16752         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
16753         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
16754         (varpool_get_constructor): Push CTORS_IN timevar.
16755         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
16757 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
16759         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
16760         Remove VOID_FTYPE_PUSHORT.
16761         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
16762         Change code to USHORT_FTYPE_VOID.
16763         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
16764         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
16765         (ix86_atomic_assign_expand_fenv): Update for
16766         __builtin_ia32_fnstsw changes.
16767         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
16768         (fnstsw): Change operand 0 to nonimmediate operand.
16770 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
16772         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
16773         (varpool_get_constructor): New function.
16774         (varpool_ctor_useable_for_folding_p): Break out from ...
16775         (ctor_for_folding): ... here; use varpool_get_constructor.
16776         (varpool_assemble_decl): Likewise.
16777         * lto-streamer.h (struct output_block): Turn cgraph_node
16778         to symbol filed.
16779         (lto_input_variable_constructor): Declare.
16780         * ipa-visibility.c (function_and_variable_visibility): Use
16781         varpool_get_constructor.
16782         * cgraph.h (varpool_get_constructor): Declare.
16783         (varpool_ctor_useable_for_folding_p): New function.
16784         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
16785         parameter; return error_mark_node for non-trivial constructors.
16786         (lto_write_tree_1, DFS_write_tree): Update use of
16787         get_symbol_initial_value.
16788         (output_function): Update initialization of symbol.
16789         (output_constructor): New function.
16790         (copy_function): Rename to ..
16791         (copy_function_or_variable): ... this one; handle vars too.
16792         (lto_output): Output variable sections.
16793         * lto-streamer-in.c (input_constructor): New function.
16794         (lto_read_body): Rename from ...
16795         (lto_read_body_or_constructor): ... this one; handle vars too.
16796         (lto_input_variable_constructor): New function.
16797         * ipa-prop.c (ipa_prop_write_jump_functions,
16798         ipa_prop_write_all_agg_replacement): Update.
16799         * lto-cgraph.c (compute_ltrans_boundary): Use it.
16800         (output_cgraph_opt_summary): Set symbol to NULL.
16802 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
16804         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
16805         non-polymorphic types.
16806         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
16807         * ipa-devirt.c (types_same_for_odr): Do not explode when one
16808         of types is not polymorphic.
16810 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
16812         * lra-constraints.c (remove_inheritance_pseudos): Process
16813         destination pseudo too.
16815 2014-07-11  Rong Xu  <xur@google.com>
16817         * gcov-tool.c (gcov_output_files): Fix build error introduced in
16818         commit r212448.
16820 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
16822         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
16823         * config/avr/avr-devices.c (AVR_MCU): Same.
16824         (avr_mcu_types): add text start value to end of device list.
16825         * config/avr/avr-mcus.def: Add text section start for all devices.
16826         (ata5782): Add new avr5 device.
16827         (ata5831): Same.
16828         * config/avr/avr-tables.opt: Regenerate.
16829         * config/avr/avr.h: Add declaration for text section start handler.
16830         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
16831         SPEC functions.
16832         (LINK_SPEC): Include text section start handler to linker spec.
16833         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
16834         pass -Ttext option to linker if the text section start for the device
16835         is not zero.
16836         * config/avr/t-multilib: Regenerate.
16837         * doc/avr-mmcu.texi: Regenerate.
16839 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
16841         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
16842         * config/rs6000/aix52.h (LINK_SPEC): Same.
16843         * config/rs6000/aix53.h (LINK_SPEC): Same.
16844         * config/rs6000/aix61.h (LINK_SPEC): Same.
16845         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
16847 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
16849         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
16850         (graphite_verify): New function.
16851         (ivs_params_clear): New function.
16852         (gcc_expression_from_isl_ast_expr_id): New function.
16853         (gcc_expression_from_isl_expr_int): New function.
16854         (binary_op_to_tree): New function.
16855         (ternary_op_to_tree): New function.
16856         (unary_op_to_tree): New function.
16857         (nary_op_to_tree): New function.
16858         (gcc_expression_from_isl_expr_op): New function.
16859         (gcc_expression_from_isl_expression): New function.
16860         (graphite_create_new_loop): New function.
16861         (translate_isl_ast_for_loop): New function.
16862         (get_upper_bound): New function.
16863         (graphite_create_new_loop_guard): New function.
16864         (translate_isl_ast_node_for): New function.
16865         (translate_isl_ast): New function.
16866         (add_parameters_to_ivs_params): New function.
16867         (scop_to_isl_ast): New parameter ip.
16868         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
16870 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
16872         * config/xtensa/predicates.md (call expander): Update for
16873         DECL_SECTION_NAME being string.
16875 2014-07-11  Richard Biener  <rguenther@suse.de>
16877         PR middle-end/61473
16878         * builtins.c (fold_builtin_memory_op): Inline memory moves that
16879         can be implemented with a single load followed by a single store.
16880         (c_strlen): Only warn when only_value is not 2.
16882 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
16884         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
16886 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
16888         PR target/61561
16889         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
16890         (*movhi_bytes): Likewise.
16891         (*arm_movqi_insn): Likewise.
16893 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
16895         PR target/56858
16896         * config/alpha/alpha.c: Include tree-pass.h, context.h
16897         and pass_manager.h.
16898         (pass_data_handle_trap_shadows): New pass.
16899         (pass_handle_trap_shadows::gate): New pass gate function.
16900         (make_pass_handle_trap_shadows): New function.
16901         (rest_of_handle_trap_shadows): Ditto.
16903         (alpha_align_insns_1): Rename from alpha_align_insns.
16904         (pass_data_align_insns): New pass.
16905         (pass_align_insns::gate): New pass gate function.
16906         (make_pass_aling_insns): New function.
16907         (rest_of_align_insns): Ditto.
16908         (alpha_align_insns): Ditto.
16910         (alpha_option_override): Declare handle_trap_shadows info
16911         and align_insns_info.  Register handle_trap_shadows and align_insns
16912         passes here.
16913         (alpha_reorg): Do not call alpha_trap_shadows and
16914         alpha_align_insn from here.
16916         (alpha_pad_function_end): Do not skip BARRIERs.
16918 2014-07-10  Rong Xu  <xur@google.com>
16920         Add gcov-tool: an offline gcda profile processing tool support.
16921         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
16922         (gcov_is_error): Ditto.
16923         (gcov_read_string): Ditto.
16924         (gcov_read_sync): Ditto.
16925         * gcov-io.h: Move counter defines to gcov-counter.def.
16926         * gcov-dump.c (tag_counters): Use gcov-counter.def.
16927         * coverage.c: Ditto.
16928         * gcov-tool.c: Offline gcda profile processing tool.
16929         (unlink_gcda_file): Remove one gcda file.
16930         (unlink_profile_dir): Remove gcda files from the profile path.
16931         (gcov_output_files): Output gcda files to an output dir.
16932         (profile_merge): Merge two profiles in directory.
16933         (print_merge_usage_message): Print merge usage.
16934         (merge_usage): Print merge usage and exit.
16935         (do_merge): Driver for profile merge sub-command.
16936         (profile_rewrite): Rewrite profile.
16937         (print_rewrite_usage_message): Print rewrite usage.
16938         (rewrite_usage): Print rewrite usage and exit.
16939         (do_rewrite): Driver for profile rewrite sub-command.
16940         (print_usage): Print gcov-info usage and exit.
16941         (print_version): Print gcov-info version.
16942         (process_args): Process arguments.
16943         (main): Main routine for gcov-tool.
16944         * Makefile.in: Build and install gcov-tool.
16945         * gcov-counter.def: New file split from gcov-io.h.
16946         * doc/gcc.texi: Include gcov-tool.texi.
16947         * doc/gcov-tool.texi: Document for gcov-tool.
16949 2014-07-10  Richard Biener  <rguenther@suse.de>
16951         PR tree-optimization/61757
16952         * tree-ssa-dom.c (loop_depth_of_name): Restore.
16953         (propagate_rhs_into_lhs): Revert part of last change.
16955 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
16957         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
16958         FUNCTION_DECLs.
16960 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
16962         PR middle-end/53590
16963         * function.c (allocate_struct_function): Revert r188667 change.
16965         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
16967 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
16969         * doc/install.texi: Remove links to defunct package providers for
16970         Solaris.
16972 2014-07-09  Tom de Vries  <tom@codesourcery.com>
16974         * final.c (get_call_fndecl): Declare.
16975         (self_recursive_call_p): New function.
16976         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
16978 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16980         * ipa-devirt.c (record_node): Walk through aliases.
16982 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16984         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
16986 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16988         Revert:
16989         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16991 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16993         * ipa-visibility.c (function_and_variable_visibility): Remove
16994         temporary hack disabling local aliases on AIX.
16996 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
16998         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
16999         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
17001 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17003         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
17004         * rs6000/rs6000.c: Inline output of .set instruction.
17005         (declare_alias_data): New struct.
17006         (rs6000_declare_alias): New function.
17007         (rs6000_xcoff_declare_function_name): Use it.
17008         (rs6000_xcoff_declare_object_name): New function.
17009         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
17010         (ASM_OUTPUT_DEF): Turn to empty definition.
17012 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
17014         PR bootstrap/61679
17015         * hash-table.h: use hash_table::value_type instead of
17016         Descriptor::value_type in the return types of several methods.
17018 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
17020         * tree-pass.h (pass_data): Remove has_execute member.
17021         * passes.c (execute_one_pass): Don't check pass->has_execute.
17022         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
17023         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
17024         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
17025         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
17026         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
17027         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
17028         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
17029         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
17030         gimple-low.c, gimple-ssa-isolate-paths.c,
17031         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
17032         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
17033         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
17034         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
17035         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
17036         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
17037         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
17038         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
17039         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
17040         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
17041         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
17042         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
17043         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
17044         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17045         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
17046         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
17047         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
17048         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
17049         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
17050         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
17051         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
17052         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
17053         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
17054         web.c: Remove initializer for pass_data::has_execute.
17056 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
17058         * graphite-htab.h: Use hash_map instead of hash_table.
17059         * graphite-clast-to-gimple.c: Adjust.
17060         * passes.c: Use hash_map instead of hash_table.
17061         * sese.c: Likewise.
17062         * sese.h: Remove now unused code.
17064 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
17066         PR target/61599
17067         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
17068         than zero.
17070 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
17072         PR rtl-optimization/61673
17073         * combine.c (simplify_comparison): Test just mode's sign bit
17074         in tmode rather than the sign bit and any bits above it.
17076 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
17078         * graphite-isl-ast-to-gimple.c (generate_isl_context):
17079         Add __isl_give to the declaration.
17080         (generate_isl_schedule): Likewise.
17081         (scop_to_isl_ast): Likewise.
17083 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17085         * config/arm/arm.c (cortexa5_extra_costs): New table.
17086         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
17088 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
17090         PR tree-optimization/61725
17091         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
17092         range, use range_includes_zerop_p instead of integer_zerop on
17093         vr0->min, only use log2 of max if min is not negative.
17095 2014-07-08  Richard Biener  <rguenther@suse.de>
17097         * tree-ssa-dom.h (loop_depth_of_name): Remove.
17098         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
17099         restriction on loop depth difference.
17100         (record_equality): Likewise.
17101         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
17102         (loop_depth_of_name): Remove.
17103         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
17104         restriction on loop depth difference.
17105         (init_copy_prop): Likewise.
17107 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17109         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
17110         parameter.
17111         (walk_aliased_vdefs): Likewise.
17112         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
17113         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
17114         (detect_type_change_from_memory_writes): Check if entry was reached.
17116 2014-07-08  Richard Biener  <rguenther@suse.de>
17118         PR tree-optimization/61681
17119         * tree-ssa-structalias.c (find_what_var_points_to): Expand
17120         NONLOCAL inside ESCAPED.
17122 2014-07-08  Richard Biener  <rguenther@suse.de>
17124         PR tree-optimization/61680
17125         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17126         Handle properly all read-write dependences with group accesses.
17128 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
17130         PR tree-optimization/61576
17131         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
17132         block containing reduction statement is predecessor of phi basi block.
17134 2014-07-08  Marek Polacek  <polacek@redhat.com>
17136         PR c/60226
17137         * fold-const.c (round_up_loc): Change the parameter type.
17138         Remove assert.
17139         * fold-const.h (round_up_loc): Adjust declaration.
17140         * stor-layout.c (finalize_record_size): Check for too large types.
17142 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
17144         * symtab.c: Include calls.h.
17145         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
17147 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
17149         * config/rs6000/rs6000.c (output_vec_const_move): Handle
17150         little-endian code generation.
17151         * config/rs6000/spe.md (spe_evmergehi): Rename to...
17152         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
17153         (spe_evmergehilo): Rename to...
17154         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
17155         (spe_evmergelo): Rename to...
17156         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
17157         (spe_evmergelohi): Rename to...
17158         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
17159         (spe_evmergehi, spe_evmergehilo): New expanders.
17160         (spe_evmergelo, spe_evmergelohi): Likewise.
17161         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
17162         (*frob_tf_ti): Likewise.
17163         (*frob_<mode>_di_2): Likewise.
17164         (*frob_tf_di_8_2): Likewise.
17165         (*frob_di_<mode>): Likewise.
17166         (*frob_ti_tf): Likewise.
17167         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
17168         (*frob_ti_<mode>_8_2): Likewise.
17169         (*frob_ti_tf_2): Likewise.
17170         (mov_si<mode>_e500_subreg0): Rename to...
17171         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
17172         endianness only.
17173         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
17174         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
17175         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
17176         the big endianness only.
17177         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
17178         (*mov_si<mode>_e500_subreg0_2): Rename to...
17179         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
17180         big big endianness only.
17181         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
17182         (*mov_si<mode>_e500_subreg4): Rename to...
17183         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
17184         endianness only.
17185         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
17186         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
17187         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
17188         the big endianness only.
17189         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
17190         pattern.
17191         (*mov_si<mode>_e500_subreg4_2): Rename to...
17192         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
17193         endianness only.
17194         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
17195         (*mov_sitf_e500_subreg8): Rename to...
17196         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
17197         endianness only.
17198         (*mov_sitf_e500_subreg8_le): New instruction pattern.
17199         (*mov_sitf_e500_subreg8_2): Rename to...
17200         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
17201         endianness only.
17202         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
17203         (*mov_sitf_e500_subreg12): Rename to...
17204         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
17205         endianness only.
17206         (*mov_sitf_e500_subreg12_le): New instruction pattern.
17207         (*mov_sitf_e500_subreg12_2): Rename to...
17208         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
17209         endianness only.
17210         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
17212 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
17214         * asan.c (instrument_strlen_call): Do not instrument first byte
17215         in strlen if already instrumented.
17217 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17219         * config/arm/arm.opt (mwords-little-endian): Delete.
17220         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
17221         of TARGET_LITTLE_WORDS.
17222         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
17223         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
17224         warning.
17225         * doc/invoke.texi: Remove references to -mwords-little-endian.
17227 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
17229         * expmed.c (struct init_expmed_rtl): Change all fields but
17230         pow2 and cint from struct rtx_def to rtx.
17231         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
17232         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
17233         at the end again.
17235 2014-07-06  Marek Polacek  <polacek@redhat.com>
17237         PR c/6940
17238         * doc/invoke.texi: Document -Wsizeof-array-argument.
17240 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
17242         * wide-int.h (wide_int_storage): Change declaration from struct
17243         to class.
17245 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
17247         * cgraph.c (cgraph_create_indirect_edge): Update call of
17248         get_polymorphic_call_info.
17249         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
17250         (possible_polymorphic_call_targets): Add parameter call.
17251         (decl_maybe_in_construction_p): New predicate.
17252         (get_polymorphic_call_info): Add parameter call;
17253         use decl_maybe_in_construction_p.
17254         * gimple-fold.c (fold_gimple_assign): Update use of
17255         possible_polymorphic_call_targets.
17256         (gimple_fold_call): Likewise.
17257         * ipa-prop.c: Inlcude calls.h
17258         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
17259         (param_type_may_change_p): New predicate.
17260         (detect_type_change_from_memory_writes): Break out from ...
17261         (detect_type_change): ... this one; use param_type_may_change_p.
17262         (detect_type_change_ssa): Use param_type_may_change_p.
17263         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
17265 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
17267         PR target/49423
17268         * config/arm/arm-protos.h (arm_legitimate_address_p,
17269         arm_is_constant_pool_ref): Add prototypes.
17270         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
17271         (arm_is_constant_pool_ref) New function.
17272         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
17273         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
17274         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
17275         operand. Remove pool_range and neg_pool_range attributes.
17276         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
17277         pool_range and neg_pool_range attributes.
17278         * config/arm/constraints.md (Uh): New constraint.
17279         (Uq): Don't allow constant pool references.
17281 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
17283         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
17284         (move_lo_quad_internal_be_<mode>): Likewise.
17285         (move_lo_quad_<mode>): Convert to define_expand.
17286         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
17287         (aarch64_simd_move_hi_quad_be_<mode>): New.
17288         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
17289         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
17290         (aarch64_combinez_be<mode>): New.
17291         (aarch64_combine<mode>): Convert to define_expand.
17292         (aarch64_combine_internal<mode>): New.
17293         (aarch64_simd_combine<mode>): Remove bogus RTL description.
17295 2014-07-04  Tom de Vries  <tom@codesourcery.com>
17297         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
17298         combination of earlyclobber and read/write modifiers.
17300 2014-07-04  Tom de Vries  <tom@codesourcery.com>
17302         * config/aarch64/aarch64-simd.md
17303         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
17305 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
17307         PR target/61714
17308         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
17310 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
17312         PR middle-end/61654
17313         * cgraphunit.c (expand_thunk): Call free_dominance_info.
17315         PR tree-optimization/61684
17316         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
17317         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
17319 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17320             Kito Cheng  <kito@0xlab.org>
17321             Monk Chiang  <sh.chiang04@gmail.com>
17323         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
17324         (nds32_symbol_load_store_p): Move to ...
17325         (nds32_fp_as_gp_check_available): Move to ...
17326         * config/nds32/nds32-fp-as-gp.c: ... here.
17327         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
17328         extern declaration.
17330 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17331             Kito Cheng  <kito@0xlab.org>
17332             Monk Chiang  <sh.chiang04@gmail.com>
17334         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
17335         (nds32_expand_store_multiple): Move to ...
17336         (nds32_expand_movmemqi): Move to ...
17337         * config/nds32/nds32-memory-manipulation.c: ... here.
17339 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17340             Kito Cheng  <kito@0xlab.org>
17341             Monk Chiang  <sh.chiang04@gmail.com>
17343         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
17344         (nds32_output_casesi_pc_relative): Move to ...
17345         (nds32_output_casesi): Move to ...
17346         (nds32_mem_format): Move to ...
17347         (nds32_output_16bit_store): Move to ...
17348         (nds32_output_16bit_load): Move to ...
17349         (nds32_output_32bit_store): Move to ...
17350         (nds32_output_32bit_load): Move to ...
17351         (nds32_output_32bit_load_s): Move to ...
17352         (nds32_output_stack_push): Move to ...
17353         (nds32_output_stack_pop): Move to ...
17354         * config/nds32/nds32-md-auxiliary.c: ... here.
17356 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17357             Ling-Hua Tseng  <uranus@tinlans.org>
17359         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
17360         the purpose of this file.
17362 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17363             Kito Cheng  <kito@0xlab.org>
17364             Monk Chiang  <sh.chiang04@gmail.com>
17366         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
17367         (nds32_address_cost): Move implementation to ...
17368         * config/nds32/nds32-cost.c: ... here.
17369         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
17370         (nds32_address_cost_impl): Declare.
17372 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17373             Kito Cheng  <kito@0xlab.org>
17374             Monk Chiang  <sh.chiang04@gmail.com>
17376         * config/nds32/nds32.c
17377         (nds32_consecutive_registers_load_store_p): Move to ...
17378         (nds32_valid_multiple_load_store): Move to ...
17379         (nds32_valid_stack_push_pop): Move to ...
17380         (nds32_can_use_bclr_p): Move to ...
17381         (nds32_can_use_bset_p): Move to ...
17382         (nds32_can_use_btgl_p): Move to ...
17383         (nds32_can_use_bitci_p): Move to ...
17384         * config/nds32/nds32-predicates.c: ... here.
17386 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17387             Kito Cheng  <kito@0xlab.org>
17388             Monk Chiang  <sh.chiang04@gmail.com>
17390         * config/nds32/nds32.c
17391         (nds32_expand_builtin_null_ftype_reg): Move to ...
17392         (nds32_expand_builtin_reg_ftype_imm): Move to ...
17393         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
17394         (nds32_init_builtins): Move implementation to ...
17395         (nds32_expand_builtin): Move implementation to ...
17396         * config/nds32/nds32-intrinsic.c: ... here.
17397         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
17398         (nds32_expand_builtin_impl): Declare.
17400 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17401             Kito Cheng  <kito@0xlab.org>
17402             Monk Chiang  <sh.chiang04@gmail.com>
17404         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
17405         (nds32_emit_section_tail_template): Move to ...
17406         (nds32_emit_isr_jmptbl_section): Move to ...
17407         (nds32_emit_isr_vector_section): Move to ...
17408         (nds32_emit_isr_reset_conten): Move to ...
17409         (nds32_check_isr_attrs_conflict): Move to ...
17410         (nds32_construct_isr_vectors_information): Move to ...
17411         (nds32_asm_file_start): Move implementation to ...
17412         (nds32_asm_file_end): Move implementation to ...
17413         * config/nds32/nds32-isr.c: ... here.
17414         * config/nds32/nds32-protos.h
17415         (nds32_check_isr_attrs_conflict): Declare.
17416         (nds32_construct_isr_vectors_information): Declare.
17417         (nds32_asm_file_start_for_isr): Declare.
17418         (nds32_asm_file_end_for_isr): Declare.
17420 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17421             Kito Cheng  <kito@0xlab.org>
17422             Monk Chiang  <sh.chiang04@gmail.com>
17424         * config.gcc (nds32*): Add new modules to extra_objs.
17425         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
17426         (nds32be-*-*): Likewise.
17427         * config/nds32/nds32-cost.c: New file.
17428         * config/nds32/nds32-fp-as-gp.c: New file.
17429         * config/nds32/nds32-intrinsic.c: New file.
17430         * config/nds32/nds32-isr.c: New file.
17431         * config/nds32/nds32-md-auxiliary.c: New file.
17432         * config/nds32/nds32-memory-manipulation.c: New file.
17433         * config/nds32/nds32-pipelines-auxiliary.c: New file.
17434         * config/nds32/nds32-predicates.c: New file.
17435         * config/nds32/t-nds32: New file.
17437 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
17439         PR tree-optimization/61682
17440         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
17441         using cases and when one of the operands is equal to 1.
17443 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
17445         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
17446         ashr<mode>3): Correct mode of operands[2].
17447         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
17448         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
17449         Correct mode of operands[2].  Fix split condition.
17451 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
17453         * arm.md (arch): Add armv6_or_vfpv3.
17454         (arch_enabled): Add test for the above.
17455         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
17456         on VFP9.
17457         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
17459 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
17461         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
17462         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
17463         HWI 1 and negate the unsigned value.
17464         * expmed.c (expand_sdiv_pow2): For modes wider than word always
17465         use AND instead of shift.
17466         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
17468 2014-07-03  Marek Polacek  <polacek@redhat.com>
17470         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
17471         (-fsanitize=float-divide-by-zero): Move to the table with
17472         -fsanitize=undefined suboptions.
17473         (-fsanitize=float-cast-overflow): Likewise.
17475 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
17477         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
17478         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
17479         endianness.
17481 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17483         * loop-invariant.c (struct invariant): Add a new member: eqno;
17484         (find_identical_invariants): Update eqno;
17485         (create_new_invariant): Init eqno;
17486         (get_inv_cost): Compute comp_cost with eqno;
17488 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
17490         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
17491         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
17492         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
17493         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
17494         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
17496 2014-07-02  Christian Bruel  <christian.bruel@st.com>
17498         PR target/29349
17499         PR target/53513
17500         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
17501         (make_preds_opaque): Delete.
17502         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
17503         (commit_mode_sets): New function.
17504         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
17505         Process all modes at once.
17506         * basic-block.h (pre_edge_lcm_avs): Declare.
17507         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
17508         Call clear_aux_for_edges. Fix comments.
17509         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
17510         (pre_edge_rev_lcm): Idem.
17511         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
17512         parameter.
17513         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
17514         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
17515         Idem.
17516         * config/i386/i386.c (x96_emit_mode_set): Idem.
17517         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
17518         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
17519         (fpscr_toggle) Disallow from delay slot.
17520         * target.def (emit_mode_set): Add prev_mode parameter.
17521         * doc/tm.texi: Regenerate.
17523 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17525         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
17526         variable i.
17528 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
17530         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
17531         vtable_pointer_value_to_vtable): Constify.
17532         (contains_polymorphic_type_p): Declare.
17533         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
17534         vtable_pointer_value_to_vtable): Constify.
17535         (contains_polymorphic_type_p): New predicate.
17536         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
17537         polymorphic types.
17538         (ipa_set_ancestor_jf): Likewise.
17539         (detect_type_change): Return false in easy cases.
17540         (compute_complex_assign_jump_func): Require type to contain
17541         polymorphic type.
17542         (compute_known_type_jump_func): Likewise.
17544 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
17546         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
17547         Remove.
17548         (type_in_anonymous_namespace_p): Constify argument.
17549         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
17550         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
17551         (main_odr_variant): New function.
17552         (hash_type_name): Make static; update assert; do not ICE on
17553         non-records.
17554         (types_same_for_odr): Bring here from tree.c; simplify and remove
17555         old structural comparing code that doesn't work for templates.
17556         (odr_hasher::equal): Update assert.
17557         (add_type_duplicate): Return true when bases should be computed;
17558         replace incomplete loader by complete; do not output duplicated
17559         warnings; do not ICE on non-records; set odr_violated flag.
17560         (get_odr_type): Be ready to replace incomplete type by complete
17561         one; work on ODR variants instead of main variants; reorder item
17562         in array so bases have still smaller indexes.
17563         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
17564         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
17566 2014-07-01  Cary Coutant  <ccoutant@google.com>
17568         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
17569         lookup.
17570         (resolve_addr_in_expr): When replacing the rtx in a location list
17571         entry, get a new address table entry.
17572         (dwarf2out_finish): Call index_location_lists even if there are no
17573         addr_index_table entries yet.
17575 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
17577         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
17578         change for not being obvious.
17580 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
17582         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
17583         unused argument.
17585 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17587         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
17588         (vcagt_f64): Likewise.
17589         (vcale_f64): Likewise.
17590         (vcaled_f64): Likewise.
17591         (vcales_f32): Likewise.
17592         (vcalt_f64): Likewise.
17593         (vcaltd_f64): Likewise.
17594         (vcalts_f32): Likewise.
17596 2014-07-01  Marek Polacek  <polacek@redhat.com>
17598         * doc/invoke.texi: Document -Wint-conversion.
17600 2014-07-01  Marek Polacek  <polacek@redhat.com>
17602         PR c/58286
17603         * doc/invoke.texi: Document -Wincompatible-pointer-types.
17605 2014-07-01  Martin Liska  <mliska@suse.cz>
17607         IPA REF alias refactoring
17608         * cgraph.h (iterate_direct_aliases): New function.
17609         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
17610         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
17611         FOR_EACH_ALIAS added.
17612         (cgraph_for_node_and_aliases): Likewise.
17613         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
17614         * ipa-inline.c (reset_edge_caches): Likewise.
17615         (update_caller_keys): Likewise.
17616         * trans-mem.c (ipa_tm_execute): Likewise.
17617         *varpool.c (varpool_analyze_node): Likewise.
17618         (varpool_for_node_and_aliases): Likewise.
17619         * ipa-ref.h (first_alias): New function.
17620         (last_alias): Likewise.
17621         (has_aliases_p): Likewise.
17622         * ipa-ref.c (ipa_ref::remove_reference): Removal function
17623         is sensitive to IPA_REF_ALIASes.
17624         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
17625         are put at the beginning of the list.
17626         (symtab_node::iterate_direct_aliases): New function.
17628 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17630         Revert:
17631         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
17632         type is complete.
17633         (write_ts_type_common_tree_pointers): Do not stream fields not set
17634         for incomplete types; do not stream duplicated fields for variants;
17635         sanity check that variant and type match.
17636         (write_ts_type_non_common_tree_pointers): Likewise.
17637         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
17638         TYPE_SIZE whether type is complete.
17639         (lto_input_ts_type_common_tree_pointers): Do same changes as in
17640         write_ts_type_common_tree_pointers
17641         (lto_input_ts_type_non_common_tree_pointers): Likewise.
17643 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
17645         * var-tracking.c (add_stores): Return instead of asserting if old
17646         and new values for conditional store are the same.
17648 2014-06-30  Richard Henderson  <rth@redhat.com>
17650         PR rtl-opt/61608
17651         PR target/39284
17652         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
17653         the cfg if there were any changes.
17654         * passes.def: Revert move of peephole2 after reorder_blocks;
17655         move duplicate_computed_gotos before peephole2.
17657 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
17659         * except.c (emit_note_eh_region_end): New helper function.
17660         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
17661         emit EH_REGION_END note.
17662         * jump.c (cleanup_barriers): Do not split a call and its
17663         corresponding CALL_ARG_LOCATION note.
17665 2014-06-30  Jeff Law  <law@redhat.com>
17667         PR tree-optimization/61607
17668         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
17669         deeper into the SSA_NAME_VALUE chain.
17671 2014-06-30  Marek Polacek  <polacek@redhat.com>
17673         * convert.c (convert_to_integer): Don't instrument conversions if the
17674         function has no_sanitize_undefined attribute.
17675         * ubsan.c: Don't run the ubsan pass if the function has
17676         no_sanitize_undefined attribute.
17678 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
17680         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
17681         -fsanitize=undefined suboptions.
17683 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
17685         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
17686         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
17687         against bigendian and adjust indices.
17689 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
17691         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
17693 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17695         PR target/61633
17696         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
17697         Add alternative; make early clobber.  Adjust both split patterns
17698         to use operand 0 as the working register.
17700 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
17702         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
17703         as ira_object_id_map might be NULL, or 1.
17705 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17707         * loop-invariant.c (get_inv_cost): Handle register class.
17708         (gain_for_invariant): Check the register pressure of the inv
17709         and its overlapped register class, other than all.
17711 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
17713         * doc/invoke.texi (Optimize Options): Fix descriptions of
17714         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
17716 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
17718         * doc/extend.texi (Function Attributes): Update 'naked' attribute
17719         documentation.
17721 2014-06-29  Tobias Grosser <tobias@grosser.es>
17723         PR bootstrap/61650
17724         * graphite-isl-ast-to-gimple.c: Add missing guards.
17726 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
17728         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
17729         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
17730         * flag-types.h: Add new enum fgraphite_generator.
17731         * graphite-isl-ast-to-gimple.c: New.
17732         * graphite-isl-ast-to-gimple.h: New.
17733         * graphite.c (graphite_transform_loops): Add choice of Graphite
17734         code generator, which depends on flag_graphite_code_gen.
17736 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
17738         * graphite-dependences.c (subtract_commutative_associative_deps):
17739         Add NULL checking of the following variables: must_raw_no_source,
17740         may_raw_no_source, must_war_no_source, may_war_no_source,
17741         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
17742         must_war, may_war, must_waw, may_waw.
17744 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
17746         * graphite-clast-to-gimple.c: gloog is renamed to
17747         graphite_regenerate_ast_cloog.  gloog_error is renamed to
17748         graphite_regenerate_error.
17749         * graphite-clast-to-gimple.h: The definition of the struct
17750         bb_pbb_def is moved to graphite-htab.h.
17751         Add inclusion of the hash-table.h.
17752         * graphite-htab.h: The declaration of the function gloog is moved
17753         to graphite-clast-to-gimple.h and renamed to
17754         graphite_regenerate_ast_cloog.
17755         * graphite.c (graphite_transform_loops): gloog is renamed
17756         to graphite_regenerate_ast_cloog.
17758 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17760         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
17761         type is complete.
17762         (write_ts_type_common_tree_pointers): Do not stream fields not set
17763         for incomplete types; do not stream duplicated fields for variants;
17764         sanity check that variant and type match.
17765         (write_ts_type_non_common_tree_pointers): Likewise.
17766         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
17767         TYPE_SIZE whether type is complete.
17768         (lto_input_ts_type_common_tree_pointers): Do same changes as in
17769         write_ts_type_common_tree_pointers
17770         (lto_input_ts_type_non_common_tree_pointers): Likewise.
17772 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17774         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
17776 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17778         * tree-inline.c (remap_type_1): Do not duplicate fields
17779         that are shared in between type and its main variant.
17781 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17783         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
17784         of the type.
17785         (ipa_set_ancestor_jf) Likewise.
17786         (check_stmt_for_type_change): Check that we work on main variant.
17787         (detect_type_change): Look into main variant.
17788         (compute_known_type_jump_func): Check that main variant has BINFO.
17790 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17792         * ipa-devirt.c (set_type_binfo): New function.
17793         (add_type_duplicate): Use it.
17794         (get_odr_type): Sanity check that binfos points to main variants.
17795         (get_class_context): Be sure the context's outer_type is main variant.
17796         (contains_type_p): Walk main variant.
17797         (get_polymorphic_call_info_for_decl): Set outer_type to be
17798         main variant.
17799         (get_polymorphic_call_info): Likewise.
17800         (possible_polymorphic_call_targets): Sanity check that we operate
17801         on main variant.
17803 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17805         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
17807 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17809         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
17810         accidental change due to wide-int branch merge.
17812 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17814         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
17815         compressed debug support.
17816         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
17817         * configure: Regenerate.
17818         * config.in: Regenerate.
17819         * common.opt (compressed_debug_sections): New enum.
17820         (gz, gz=): New options.
17821         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
17822         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
17823         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
17824         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
17825         LINK_COMPRESS_DEBUG_SPEC.
17826         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
17827         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
17828         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
17829         (Debugging Options): Document -gz[=type].
17831 2014-06-27  Martin Jambor  <mjambor@suse.cz>
17833         PR ipa/61160
17834         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
17835         args_to_skip, use those from node instead.  Copy args_to_skip and
17836         combined_args_to_skip from node to the new thunk.
17837         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
17838         (cgraph_create_virtual_clone): Moved computation of
17839         combined_args_to_skip...
17840         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
17842 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
17844         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
17845         redundant diagnostic machinary.
17847 2014-06-27  Richard Biener  <rguenther@suse.de>
17849         * tree-ssa-math-opts.c (bswap_replace): Fix
17850         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
17852 2014-06-27  Martin Liska  <mliska@suse.cz>
17854         * gimple.h (gimple_location_safe): New function introduced.
17855         * cgraphunit.c (walk_polymorphic_call_targets): Usage
17856         of gimple_location_safe replaces gimple_location.
17857         (gimple_fold_call): Likewise.
17858         * ipa-devirt.c (ipa_devirt): Likewise.
17859         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
17860         * ipa.c (walk_polymorphic_call_targets): Likewise.
17861         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
17863 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
17865         PR tree-optimization/57233
17866         PR tree-optimization/61299
17867         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
17868         functions.
17869         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
17870         would be lowered to scalar shifts, check if corresponding
17871         shifts and vector BIT_IOR_EXPR are supported and don't lower
17872         or lower just to narrower vector type in that case.
17873         * expmed.c (expand_shift_1): Fix up handling of vector
17874         shifts and rotates.
17876 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
17878         PR target/61586
17879         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
17881 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
17883         * doc/invoke.texi (-fsemantic-interposition): Document.
17884         * common.opt (fsemantic-interposition): New flag.
17885         * varasm.c (decl_replaceable_p): Use it.
17887 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17889         PR target/61542
17890         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
17891         extraction other than index 3.
17893 2014-06-26  Teresa Johnson  <tejohnson@google.com>
17895         * doc/invoke.texi: Fix typo.
17896         * dumpfile.c: Add support for documented -fdump-* options
17897         optimized/missed/note/optall.
17899 2014-06-26  Martin Jambor  <mjambor@suse.cz>
17901         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
17902         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
17903         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
17904         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
17905         * opts.c (default_options_optimization): Set
17906         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
17907         * doc/invoke.texi (allow-load-data-races)
17908         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
17909         (allow-store-data-races): Document the new default.
17911 2014-06-26  Martin Jambor  <mjambor@suse.cz>
17913         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
17914         renamed to ipa_impossible_devirt_target.  Fix typo.
17915         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
17916         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
17917         ipa_impossible_devirt_target.
17919 2014-06-26  Richard Biener  <rguenther@suse.de>
17921         PR tree-optimization/61607
17922         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
17923         explaining why we restrict copies on loop depth.
17924         * tree-ssa-dom.c (cprop_operand): Remove restriction on
17925         on loop depth.
17926         (record_equivalences_from_phis): Instead add it here.
17928 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
17930         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
17931         (LTO_WRAPPER_OBJS): New variable.
17932         (lto-wrapper$(exeext)): Use it.
17933         * collect2.c: Include "collect-utils.h".
17934         (verbose, debug): Remove variables.
17935         (at_file_supplied): No longer static.
17936         (tool_name): New variable.
17937         (do_wait, fork_execute, maybe_unlink): Don't declare.
17938         (tool_cleanup): No longer static.
17939         (notice): Remove function.
17940         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
17941         fork_execute calls.
17942         (collect_wait, do_wait, collect_execute): Remove functions.
17943         (maybe_unlink): No longer static.
17944         * collect2.h (verbose, debug): Don't declare.
17945         (at_file_supplied): Declare.
17946         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
17947         changed.
17948         (collect_execute): Replace with implementation from collect2, plus a
17949         new arg use_atfile.  All callers changed.
17950         (collect_wait): Replace with implementation from collect2.
17951         (maybe_unlink_file): Remove function.
17952         (fork_execute): Replace with implementation from collect2, plus a
17953         new arg use_atfile.  All callers changed.
17954         (do_wait): Add call to utils_cleanup to the error path.
17955         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
17956         (tool_cleanup): Adjust declarations.
17957         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
17958         * tlink.c: Include "collect-utils.h".
17959         (tlink_execute): New arg use_atfile.  All callers changed.
17960         (tlink_init, tlink_execute): Remove declarations.
17962         * collect-utils.c (save_temps): New variable.
17963         (do_wait): Use it instead of debug.  Use fatal_error.
17964         * collect-utils.h (save_temps): Declare.
17965         * collect2.c (verbose): Rename from vflag.  All uses changed.
17966         (tool_cleanup): New function, copied from collect_atexit.
17967         (collect_atexit, handler): Just call it.
17968         * collect2.h (verbose): Declaration renamed from vflag.
17969         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
17970         debug.
17972         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
17973         (lto-wrapper$(exeext)): Link with collect-utils.o.
17974         * collect-utils.c: New file.
17975         * collect-utils.h: New file.
17976         * lto-wrapper.c: Include "collect-utils.h".
17977         (args_name): Delete variable.
17978         (tool_name): New variable.
17979         (tool_cleanup): New function.
17980         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
17981         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
17982         (fork_execute): Remove functions.
17984 2014-06-26  Nick Clifton  <nickc@redhat.com>
17986         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
17988         * doc/extend.texi (Function Attributes): Fix typo in description
17989         of RX vector attribute.
17991 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
17993         * config.gcc (supported_defaults): Error when passing either
17994         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
17996 2014-06-26  Richard Biener  <rguenther@suse.de>
17998         * tree-ssa-dom.c (cprop_operand): Remove restriction on
17999         propagating volatile pointers.
18001 2014-06-26  Richard Biener  <rguenther@suse.de>
18003         PR tree-optimization/61607
18004         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
18005         loop if we redirected its latch edge.
18006         (thread_block_1): Do not cancel loops prematurely.
18008 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
18010         * toplev.c (backend_init_target): Move init_emit_regs and
18011         init_regs to...
18012         (backend_init) ... here; skip ira_init_once and backend_init_target.
18013         (target_reinit) ... and here; clear
18014         this_target_rtl->lang_dependent_initialized.
18015         (lang_dependent_init_target): Clear
18016         this_target_rtl->lang_dependent_initialized;
18017         break out rtl initialization to ...
18018         (initialize_rtl): ... here; call also backend_init_target
18019         and ira_init_once.
18020         * toplev.h (initialize_rtl): New function.
18021         * function.c: Include toplev.h
18022         (init_function_start): Call initialize_rtl.
18023         * rtl.h (target_rtl): Add target_specific_initialized,
18024         lang_dependent_initialized.
18026 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
18027             Jakub Jelinek  <jakub@redhat.com>
18029         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
18031 2014-06-25  Tom de Vries  <tom@codesourcery.com>
18033         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
18035 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18037         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
18038         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
18039         Issue a strict overflow warning if appropriate.
18041 2014-06-25  Martin Liska  <mliska@suse.cz>
18043         IPA REF refactoring
18044         * Makefile.in: Removed header file (ipa-ref-inline.h).
18045         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
18046         called.
18047         (cgraph_speculative_call_info): Likewise.
18048         (cgraph_for_node_thunks_and_aliases): Likewise.
18049         (cgraph_for_node_and_aliases): Likewise.
18050         (verify_cgraph_node): Likewise.
18051         * cgraph.h: Batch of IPA REF functions become member functions of
18052         symtab_node: add_reference, maybe_add_reference, clone_references,
18053         clone_referring, clone_reference, find_reference,
18054         remove_stmt_references, remove_all_references,
18055         remove_all_referring, dump_references, dump_referring,
18056         has_alias_p, iterate_reference, iterate_referring.
18057         * cgraphbuild.c (record_reference): New IPA REF function used.
18058         (record_type_list): Likewise.
18059         (record_eh_tables): Likewise.
18060         (mark_address): Likewise.
18061         (mark_load): Likewise.
18062         (mark_store): Likewise.
18063         (pass_build_cgraph_edges): Likewise.
18064         (rebuild_cgraph_edge): Likewise.
18065         (cgraph_rebuild_references): Likewise.
18066         (pass_remove_cgraph_callee_edges): Likewise.
18067         * cgraphclones.c (cgraph_clone_node): Likewise.
18068         (cgraph_create_virtual_clone): Likewise.
18069         (cgraph_materialize_clone): Likewise.
18070         (cgraph_materialize_all_clones): Likewise.
18071         * cgraphunit.c (cgraph_reset_node): Likewise.
18072         (cgraph_reset_node): Likewise.
18073         (analyze_function): Likewise.
18074         (assemble_thunks_and_aliases): Likewise.
18075         (expand_function): Likewise.
18076         * ipa-comdats.c (propagate_comdat_group): Likewise.
18077         (enqueue_references): Likewise.
18078         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
18079         (create_specialized_node): Likewise.
18080         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
18081         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
18082         * ipa-inline.c (reset_edge_caches): Likewise.
18083         (update_caller_keys): Likewise.
18084         (execute): Likewise.
18085         * ipa-prop.c (remove_described_reference): Likewise.
18086         (propagate_controlled_uses): Likewise.
18087         (ipa_edge_duplication_hook): Likewise.
18088         (ipa_modify_call_arguments): Likewise.
18089         * ipa-pure-const.c (propagate_pure_const): Likewise.
18090         * ipa-ref-inline.h: Header file removed, functions moved
18091         to symtab_node class.
18092         * ipa-ref.c (remove_reference): New class member function.
18093         (cannot_lead_to_return): New class member function.
18094         (referring_ref_list): Likewise.
18095         (referred_ref_list): Likewise.
18096         Rest of functions moved to symtab_node class.
18097         * ipa-ref.h: New member functions remove_reference,
18098         cannot_lead_to_return, referring_ref_list, referred_ref_list added
18099         to ipa_ref class.
18100         ipa_ref_list class has new member functions: first_reference,
18101         first_referring, clear, nreferences.
18102         * ipa-reference.c (analyze_function): New IPA REF function used.
18103         (write_node_summary_p): Likewise.
18104         (ipa_reference_write_optimization_summary): Likewise.
18105         * ipa-split.c (split_function): Likewise.
18106         * ipa-utils.c (ipa_reverse_postorder): Likewise.
18107         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
18108         (function_and_variable_visibility): Likewise.
18109         * ipa.c (has_addr_references_p): Likewise.
18110         (process_references): Argument type changed.
18111         (symtab_remove_unreachable_nodes): New IPA REF function used.
18112         (process_references): Likewise.
18113         (set_writeonly_bit): Likewise.
18114         * lto-cgraph.c: Implementation of new symtab_node member functions
18115         that uses new IPA REF functions.
18116         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
18117         function used.
18118         * lto-streamer-out.c (output_symbol_p): Likewise.
18119         * lto-streamer.h (referenced_from_this_partition_p): Argument type
18120         changed.
18121         * symtab.c: Implementation of new IPA REF API.
18122         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
18123         (ipa_tm_create_version): Likewise.
18124         (ipa_tm_execute): Likewise.
18125         * tree-emutls.c (gen_emutls_addr): Likewise.
18126         * tree-inline.c (copy_bb): Likewise.
18127         (delete_unreachable_blocks_update_callgraph): Likewise.
18128         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
18129         (varpool_for_node_and_aliases): Likewise.
18131 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
18133         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
18135 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
18137         PR bootstrap/61598
18138         * fold-const.c (fold_checksum_tree): Use a hash_table of const
18139         tree_node * instead of tree_node *.
18140         (fold): Adjust.
18141         (print_fold_checksum): Likewise.
18142         (fold_check_failed): Likewise.
18143         (debug_fold_checksum): Likewise.
18144         (fold_build1_stat_loc): Likewise.
18145         (fold_build2_stat_loc): Likewise.
18146         (fold_build3_stat_loc): Likewise.
18147         (fold_build_call_array_loc): Likewise.
18149 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
18151         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
18152         implementation with call to...
18153         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
18154         function.
18155         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
18156         Declare.
18158 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
18160         PR tree-optimization/57742
18161         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
18162         after replacing the statement.
18164 2014-06-25  Nick Clifton  <nickc@redhat.com>
18166         * config/v850/v850.c (GHS_default_section_names): Change to const
18167         char * type.
18168         (GHS_current_section_names): Likewise.
18169         (v850_insert_attributes): Do not build strings, just assign the
18170         names directly.  Change the type of 'chosen_section' to const
18171         char*.
18172         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
18173         directly to the array entry.
18174         * config/v850/v850.h (GHS_default_section_names): Change to const
18175         char * type.
18176         (GHS_current_section_names): Likewise.
18178 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
18180         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
18181         (LANG_HOOKS_DECLS): Add it.
18182         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
18183         has correct type.
18184         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
18185         * langhooks.h (struct lang_hooks_for_decls): Add
18186         omp_clause_linear_ctor hook.
18187         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
18188         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
18189         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
18190         combined simd loop use omp_clause_linear_ctor hook.
18192 2014-06-24  Cong Hou  <congh@google.com>
18194         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
18195         pattern recognition.
18196         (type_conversion_p): PROMOTION is true if it's a type promotion
18197         conversion, and false otherwise.  Return true if the given expression
18198         is a type conversion one.
18199         * tree-vectorizer.h: Adjust the number of patterns.
18200         * tree.def: Add SAD_EXPR.
18201         * optabs.def: Add sad_optab.
18202         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
18203         * expr.c (expand_expr_real_2): Likewise.
18204         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
18205         * gimple.c (get_gimple_rhs_num_ops): Likewise.
18206         * optabs.c (optab_for_tree_code): Likewise.
18207         * tree-cfg.c (estimate_operator_cost): Likewise.
18208         * tree-ssa-operands.c (get_expr_operands): Likewise.
18209         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
18210         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
18211         * doc/generic.texi: Add document for SAD_EXPR.
18212         * doc/md.texi: Add document for ssad and usad.
18214 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
18216         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
18217         qualification in cast.
18219 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
18221         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
18222         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
18223         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
18224         (tree_function_decl): ... here.
18225         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
18226         streaming of vindex to ...
18227         (write_ts_function_decl_tree_pointers): ... here.
18228         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
18229         Do not stream DECL_VINDEX.
18230         (lto_input_ts_function_decl_tree_pointers): Stream it here.
18232 2014-06-24  Catherine Moore  <clm@codesourcery.com>
18233             Sandra Loosemore  <sandra@codesourcery.com>
18235         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
18236         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
18237         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
18239 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
18241         * doc/invoke.texi (Warning Options): Remove duplicated
18242         -Wmaybe-uninitialized.
18244 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
18246         PR tree-optimization/57742
18247         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
18248         (handle_builtin_malloc, handle_builtin_memset): New functions.
18249         (strlen_optimize_stmt): Call them.
18250         * passes.def: Move strlen after loop+dom but before vrp.
18252 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
18254         PR target/61570
18255         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
18256         model family 6 CPU with has_longmode never use a CPU without
18257         64-bit support.
18259 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18261         PR target/61570
18262         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
18263         the last change.
18265 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
18267         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
18268         * dominance.c (iterate_fix_dominators): Use hash_map instead of
18269         pointer_map.
18270         * hash-map.h: New file.
18271         * ipa-comdats.c: Use hash_map instead of pointer_map.
18272         * ipa.c: Likewise.
18273         * lto-section-out.c: Adjust.
18274         * lto-streamer.h: Replace pointer_map with hash_map.
18275         * symtab.c (verify_symtab): Likewise.
18276         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
18277         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
18278         * tree-streamer.h: Likewise.
18279         * tree-streamer.c: Adjust.
18280         * pointer-set.h: Remove pointer_map.
18282 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
18284         * hash-table.h: Add a template arg to choose between storing values
18285         and storing pointers to values, and then provide partial
18286         specializations for both.
18287         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
18288         should store, not the type values should point to.
18289         * tree-into-ssa.c (var_info_hasher): Likewise.
18290         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
18291         * tree-complex.c: Adjust.
18292         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
18293         table instead of int_tree_map *.
18294         * tree-parloops.c: Adjust.
18295         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
18296         type is being stored.
18297         * tree-vectorizer.c: Adjust.
18299 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
18301         * hash-table.h: Remove a layer of indirection from hash_table so that
18302         it contains the hash table's data instead of a pointer to the data.
18303         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
18304         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
18305         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
18306         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
18307         fold-const.c, gcse.c, ggc-common.c,
18308         gimple-ssa-strength-reduction.c, gimplify.c,
18309         graphite-clast-to-gimple.c, graphite-dependences.c,
18310         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
18311         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
18312         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
18313         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
18314         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
18315         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
18316         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
18317         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
18318         tree-ssa-live.c, tree-ssa-loop-im.c,
18319         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
18320         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
18321         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
18322         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
18323         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
18324         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
18325         vtable-verify.c, vtable-verify.h: Adjust.
18327 2014-06-24  Richard Biener  <rguenther@suse.de>
18329         PR tree-optimization/61572
18330         * tree-ssa-sink.c (statement_sink_location): Do not sink
18331         loads from hard registers.
18333 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
18335         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
18336         not mentioned in clauses use private clause if the iterator is
18337         declared in #pragma omp for simd, and when adding lastprivate
18338         instead, add it to the outer #pragma omp for too.  Diagnose
18339         if the variable is private in outer context.  For simd collapse > 1
18340         loops, replace all iterators with temporaries.
18341         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
18342         same even in collapse > 1 loops.
18344         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
18345         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
18346         non-NULL.
18347         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
18348         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
18349         non-NULL.
18350         (gimplify_adjust_omp_clauses): Likewise.
18351         * omp-low.c (lower_rec_simd_input_clauses,
18352         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
18353         safelen the same as safelen(1).
18354         * tree-nested.c (convert_nonlocal_omp_clauses,
18355         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
18356         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
18357         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
18358         Fixup handling of GIMPLE_OMP_TARGET.
18359         (convert_tramp_reference_stmt, convert_gimple_call): Handle
18360         GIMPLE_OMP_TARGET.
18362 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
18364         PR tree-optimization/61554
18365         * tree-ssa-propagate.c: Include "bitmap.h".
18366         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
18367         properly update constructor/destructor.
18368         (substitute_and_fold_dom_walker::before_dom_children):
18369         Remove call to gimple_purge_dead_eh_edges, add bb->index to
18370         need_eh_cleaup instead.
18371         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
18372         need_eh_cleanup.
18374 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
18376         * varpool.c (dump_varpool_node): Dump used_by_single_function.
18377         * tree-pass.h (make_pass_ipa_single_use): New pass.
18378         * cgraph.h (used_by_single_function): New flag.
18379         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
18380         Stream it.
18381         * passes.def (pass_ipa_single_use): Scedule.
18382         * ipa.c (BOTTOM): New macro.
18383         (meet): New function
18384         (propagate_single_user): New function.
18385         (ipa_single_use): New function.
18386         (pass_data_ipa_single_use): New pass.
18387         (pass_ipa_single_use): New pass.
18388         (pass_ipa_single_use::gate): New gate.
18389         (make_pass_ipa_single_use): New function.
18391 2014-06-23  Kai Tietz  <ktietz@redhat.com>
18393         PR target/39284
18394         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
18395         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
18397 2014-06-23  Richard Biener  <rguenther@suse.de>
18399         * tree-ssa-loop.c (gate_loop): New function.
18400         (pass_tree_loop::gate): Call it.
18401         (pass_data_tree_no_loop, pass_tree_no_loop,
18402         make_pass_tree_no_loop): New.
18403         * tree-vectorizer.c: Include tree-scalar-evolution.c
18404         (pass_slp_vectorize::execute): Initialize loops and SCEV if
18405         required.
18406         (pass_slp_vectorize::clone): New method.
18407         * timevar.def (TV_TREE_NOLOOP): New.
18408         * tree-pass.h (make_pass_tree_no_loop): Declare.
18409         * passes.def (pass_tree_no_loop): New pass group with
18410         SLP vectorizer.
18412 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18414         PR target/61570
18415         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
18416         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
18418 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
18420         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
18421         "yes" where needed.
18423 2014-06-23  Alan Modra  <amodra@gmail.com>
18425         PR bootstrap/61583
18426         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
18427         to zero on debug statements.
18429 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
18431         PR target/60825
18432         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
18433         Ignore third operand if present by marking qualifier_internal.
18435         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
18437         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
18438         vector extension.
18439         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
18440         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
18441         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
18442         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
18443         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
18444         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
18445         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
18446         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
18447         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
18448         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
18449         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
18450         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
18451         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
18452         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
18453         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
18454         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
18455         logic in GCC vector extensions
18457         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
18458         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
18459         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
18460         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
18461         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
18462         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
18463         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
18464         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
18465         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
18466         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
18468         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
18470         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
18471         extensions.
18473         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
18474         (vget_low_s64): Use __GET_LOW macro.
18475         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
18476         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
18477         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
18478         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
18479         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
18481         (vcombine_s64): Use GCC vector extensions; remove cast.
18482         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
18483         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
18484         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
18485         Fix type signature; remove cast.
18487 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
18489         PR target/60825
18490         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
18491         V1DFmode.
18492         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
18493         add V1DFmode
18494         (BUILTIN_VD1): New.
18495         (BUILTIN_VD_RE): Remove.
18496         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
18497         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
18498         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
18499         variant but not df.
18500         (vreinterpretv1df*, vreinterpret*v1df): New.
18501         (vreinterpretdf*, vreinterpret*df): Remove.
18502         * config/aarch64/aarch64-simd.md (aarch64_create,
18503         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
18504         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
18505         (VD1): New.
18506         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
18507         (vcreate_f64): Remove cast, use v1df builtin.
18508         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
18509         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
18510         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
18511         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
18512         vmov_n_f64, vst1_f64): Use gcc vector extensions.
18513         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
18514         add range check using __builtin_aarch64_im_lane_boundsi.
18515         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
18516         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
18517         type signature, use gcc vector extensions.
18518         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
18519         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
18520         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
18521         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
18522         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
18523         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
18524         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
18525         vreinterpret_u64_f64): Use v1df builtin not df.
18527 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
18529         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
18530         vector registers.
18532 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
18534         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
18535         priority directly.
18537 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18539         * loop-invariant.c (pre_check_invariant_p): New function.
18540         (find_invariant_insn): Call pre_check_invariant_p.
18542 2014-06-22  Richard Henderson  <rth@redhat.com>
18544         PR target/61565
18545         * compare-elim.c (struct comparison): Add eh_note.
18546         (find_comparison_dom_walker::before_dom_children): Don't eliminate
18547         a redundant comparison in a different EH region.  Purge EH edges if
18548         necessary.
18550 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
18552         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
18553         (var_shift): Use it.
18554         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
18555         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18556         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18557         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18558         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18559         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
18560         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
18561         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
18562         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
18563         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
18564         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
18565         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
18566         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
18567         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
18568         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
18569         *rotldi3_internal15be): Use the new attribute.  Merge register and
18570         integer alternatives.
18572 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
18574         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
18575         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
18576         split, *ashrdi3_internal3 and split): Delete, merge into...
18577         (ashr<mode>3): New expander.
18578         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
18579         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
18581 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
18583         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
18584         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
18585         *rotldi3_internal3 and split): Delete, merge into...
18586         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
18587         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
18588         Use "rotlw" extended mnemonic.
18590 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
18592         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
18593         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
18594         and split, *ashldi3_internal3 and split): Delete, merge into...
18595         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
18596         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
18598 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
18600         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
18601         (lshrsi3, two anonymous define_insns and define_splits,
18602         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
18603         *lshrdi3_internal3 and split): Delete, merge into...
18604         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
18605         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
18607 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
18609         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
18610         Remove "O" alternative.
18612 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
18614         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
18615         (mips_move_from_gpr_cost): Likewise.
18616         (mips_register_move_cost): Update accordingly.
18617         (mips_secondary_reload_class): Remove name of in_p.
18619 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
18621         PR target/61503
18622         * config/i386/i386.md (x86_64_shrd, x86_shrd,
18623         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
18625 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18627         * config/nios2/nios2.c: Include "builtins.h".
18629 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
18631         * cgraph.h (tls_model_names): New variable.
18632         * print-tree.c (print_node): Simplify.
18633         * varpool.c (tls_model_names): New variable.
18634         (dump_varpool_node): Output tls model.
18636 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
18638         * ipa-visibility.c (function_and_variable_visibility): Disable
18639         temporarily local aliases for some targets.
18641 2014-06-20  Marek Polacek  <polacek@redhat.com>
18643         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
18644         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
18645         into SANITIZE_UNDEFINED.
18646         * doc/invoke.texi: Describe -fsanitize=bounds.
18647         * gimplify.c (gimplify_call_expr): Add gimplification of internal
18648         functions created in the FEs.
18649         * internal-fn.c: Move "internal-fn.h" after "tree.h".
18650         (expand_UBSAN_BOUNDS): New function.
18651         * internal-fn.def (UBSAN_BOUNDS): New internal function.
18652         * internal-fn.h: Don't define internal functions here.
18653         * opts.c (common_handle_option): Add -fsanitize=bounds.
18654         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
18655         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
18656         * tree-core.h: Define internal functions here.
18657         (struct tree_base): Add ifn field.
18658         * tree-pretty-print.c: Include "internal-fn.h".
18659         (dump_generic_node): Handle functions without CALL_EXPR_FN.
18660         * tree.c (get_callee_fndecl): Likewise.
18661         (build_call_expr_internal_loc): New function.
18662         * tree.def (CALL_EXPR): Update description.
18663         * tree.h (CALL_EXPR_IFN): Define.
18664         (build_call_expr_internal_loc): Declare.
18665         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
18666         types.
18667         (ubsan_type_descriptor): Change bool parameter to enum
18668         ubsan_print_style.  Adjust the code.  Add handling of
18669         UBSAN_PRINT_ARRAY.
18670         (ubsan_expand_bounds_ifn): New function.
18671         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
18672         (ubsan_build_overflow_builtin): Likewise.
18673         (instrument_bool_enum_load): Likewise.
18674         (ubsan_instrument_float_cast): Likewise.
18675         * ubsan.h (enum ubsan_print_style): New enum.
18676         (ubsan_expand_bounds_ifn): Declare.
18677         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
18679 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
18681         * config/rs6000/rs6000.md: Append `DONE' to preparation
18682         statements of `bswap' pattern splitters.
18684 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18686         * target.def (call_fusage_contains_non_callee_clobbers): Update
18687         definition.
18688         * doc/tm.texi: Regenerate.
18690 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
18691             Max Ostapenko  <m.ostapenko@partner.samsung.com>
18693         PR sanitizer/61547
18694         * asan.c (instrument_strlen_call): Fixed instrumentation of
18695         trailing byte.
18697 2014-06-20  Martin Jambor  <mjambor@suse.cz>
18699         PR ipa/61540
18700         * ipa-prop.c (impossible_devirt_target): New function.
18701         (try_make_edge_direct_virtual_call): Use it, also instead of
18702         asserting.
18704 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
18705             Max Ostapenko  <m.ostapenko@partner.samsung.com>
18707         PR sanitizer/61530
18708         * asan.c (build_check_stmt): Add condition.
18710 2014-06-20  Martin Jambor  <mjambor@suse.cz>
18712         PR ipa/61211
18713         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
18714         expanded clones.
18716 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18718         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
18719         Update comments.
18720         (VCONQ): Make comment more helpful.
18721         (VCON): Delete.
18722         * config/aarch64/aarch64-simd.md
18723         (aarch64_sqdmulh_lane<mode>):
18724         Use VCOND for operands 2.  Update lane checking and flipping logic.
18725         (aarch64_sqrdmulh_lane<mode>): Likewise.
18726         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
18727         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
18728         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
18729         attribute of operand 3 to VCOND.
18730         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
18731         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
18732         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
18733         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
18734         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
18735         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
18736         define_insn.
18737         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
18738         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
18739         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
18740         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
18741         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
18742         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
18743         operand to VCOND.  Update lane flipping and bounds checking logic.
18744         (aarch64_sqdmlal2_lane<mode>): Likewise.
18745         (aarch64_sqdmlsl_lane<mode>): Likewise.
18746         (aarch64_sqdmull_lane<mode>): Likewise.
18747         (aarch64_sqdmull2_lane<mode>): Likewise.
18748         (aarch64_sqdmlal_laneq<mode>):
18749         Replace VCON usage with VCONQ.
18750         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
18751         (aarch64_sqdmlal2_laneq<mode>): Emit
18752         aarch64_sqdmlal2_laneq<mode>_internal insn.
18753         Replace VCON with VCONQ.
18754         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
18755         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
18756         (aarch64_sqdmull_laneq<mode>): Emit
18757         aarch64_sqdmull_laneq<mode>_internal insn.
18758         Replace VCON with VCONQ.
18759         (aarch64_sqdmull2_laneq<mode>): Emit
18760         aarch64_sqdmull2_laneq<mode>_internal insn.
18761         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
18762         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
18763         of 3rd argument to int16x4_t.
18764         (vqdmlalh_lane_s16): Likewise.
18765         (vqdmlslh_lane_s16): Likewise.
18766         (vqdmull_high_lane_s16): Likewise.
18767         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
18768         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
18769         (vqdmlsl_lane_s16): Likewise.
18770         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
18771         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
18772         (vqdmlals_lane_s32): Likewise.
18773         (vqdmlsls_lane_s32): Likewise.
18774         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
18775         (vqdmulls_lane_s32): Likewise.
18776         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
18777         (vqdmlsl_lane_s32): Likewise.
18778         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
18779         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
18780         (vqrdmulhh_lane_s16): Likewise.
18781         (vqdmlsl_high_lane_s16): Likewise.
18782         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
18783         (vqdmlsl_high_lane_s32): Likewise.
18784         (vqrdmulhs_lane_s32): Likewise.
18786 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18788         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
18789         get_call_reg_set_usage.
18791 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18793         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
18794         it contains all call_used_regs.
18796 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18798         * final.c (collect_fn_hard_reg_usage): Add and use variable
18799         function_used_regs.
18801 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
18803         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
18804         (set_init_priority, get_init_priority, set_fini_priority,
18805         get_fini_priority): New methods.
18806         * tree.c (init_priority_for_decl): Remove.
18807         (init_ttree): Do not initialize init priority.
18808         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
18809         (decl_priority_info): Remove.
18810         (decl_init_priority_insert): Rewrite.
18811         (decl_fini_priority_insert): Rewrite.
18812         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
18813         tree_priority_map_marked_p): Remove.
18814         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
18815         * lto-streamer-out.c (hash_tree): Do not hash priorities.
18816         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
18817         not output priorities.
18818         (pack_ts_function_decl_value_fields): Likewise.
18819         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
18820         not input priorities.
18821         (unpack_ts_function_decl_value_fields): Likewise.
18822         * symtab.c (symbol_priority_map): Declare.
18823         (init_priority_hash): Declare.
18824         (symtab_unregister_node): Unregister from priority hash, too.
18825         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
18826         New methods.
18827         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
18828         (symbol_priority_info): New function.
18829         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
18830         New methods.
18831         * tree-core.h (tree_priority_map): Remove.
18833 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
18835         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
18836         0xff to uint64_t before shifting it up.
18838 2014-06-20  Julian Brown  <julian@codesourcery.com>
18839             Chung-Lin Tang  <cltang@codesourcery.com>
18841         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
18842         TARGET_THUMB1_ONLY. Add comments.
18844 2014-06-19  Tom de Vries  <tom@codesourcery.com>
18846         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
18847         return type to void.
18848         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
18850 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18852         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
18853         as "move", from depends_on.
18855 2014-06-19  Terry Guo  <terry.guo@arm.com>
18857         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
18858         stage.
18860 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
18862         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
18863         Remove cr5.
18864         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
18866 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18868         PR target/61550
18869         * config/sh/sh.c (prepare_move_operands): Don't process TLS
18870         addresses here if reload in progress or completed.
18872 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
18874         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
18875         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
18876         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
18877         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
18878         (mips_register_priority): New function that implements the target
18879         hook TARGET_REGISTER_PRIORITY.
18880         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
18881         (mips_lra_p): Likewise for TARGET_LRA_P.
18882         (TARGET_REGISTER_PRIORITY): Define macro.
18883         (TARGET_SPILL_CLASS): Likewise.
18884         (TARGET_LRA_P): Likewise.
18885         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
18886         classes.
18887         (REG_CLASS_NAMES): Likewise.
18888         (REG_CLASS_CONTENTS): Likewise.
18889         (BASE_REG_CLASS): Use M16_SP_REGS.
18890         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
18891         New set attribute to enable alternatives depending on the register
18892         allocator used.
18893         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
18894         (*lea64): Disable pattern for MIPS16.
18895         * config/mips/mips.opt (mlra): New option.
18897 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
18899         * lra-constraints.c (base_to_reg): New function.
18900         (process_address): Use new function.
18902 2014-06-18  Tom de Vries  <tom@codesourcery.com>
18904         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
18905         * config/aarch64/aarch64.c
18906         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
18907         (aarch64_emit_call_insn): New function.
18908         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
18909         of emit_call_insn.
18910         * config/aarch64/aarch64.md (define_expand "call_internal")
18911         (define_expand "call_value_internal", define_expand "sibcall_internal")
18912         (define_expand "sibcall_value_internal"): New.
18913         (define_expand "call", define_expand "call_value")
18914         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
18915         expand variant and aarch64_emit_call_insn.
18917 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
18918             Tom de Vries  <tom@codesourcery.com>
18920         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
18921         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
18922         Redefine to true.
18923         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
18924         clobbers to CALL_INSN_FUNCTION_USAGE.
18925         (define_expand "sibcall_internal")
18926         (define_expand "sibcall_value_internal"): New.
18927         (define_expand "call", define_expand "call_value"): Add argument to
18928         arm_emit_call_insn.
18929         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
18930         (define_expand "sibcall_value"): Use sibcall_value_internal and
18931         arm_emit_call_insn.
18933 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18935         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
18937 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18939         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
18940         __udivmoddi4.
18942 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18944         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
18945         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
18946         annotations. Fix DWARF information.
18948 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18950         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
18951         __udivmoddi4, and fixups for negative operands.
18953 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18955         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
18957 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18959         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
18960         to __udivmoddi4.
18962 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18964         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
18965         manipulation.
18967 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18969         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
18970         describing register usage on function entry and exit.
18972 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18974         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
18975         (__aeabi_ldivmod): Fix whitespace.
18977 2014-06-18  Andreas Schwab  <schwab@suse.de>
18979         * doc/md.texi (Standard Names): Use @itemx for grouped items.
18980         Remove blank line after @item.
18982 2014-06-18  Richard Henderson  <rth@redhat.com>
18984         PR target/61545
18985         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
18987 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
18989         * config/arm/arm.c (neon_vector_mem_operand): Allow register
18990         POST_MODIFY for neon loads and stores.
18991         (arm_print_operand): Output post-index register for neon loads and
18992         stores.
18994 2014-06-18  Richard Biener  <rguenther@suse.de>
18996         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
18998 2014-06-18  Richard Biener  <rguenther@suse.de>
19000         * tree-pass.h (make_pass_dce_loop): Remove.
19001         * passes.def: Replace pass_dce_loop with pass_dce.
19002         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
19003         changed free niter estimates and reset the scev cache.
19004         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
19005         make_pass_dce_loop): Remove.
19006         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
19007         (fini_copy_prop): Return whether something changed.  Always
19008         let substitute_and_fold perform DCE and free niter estimates
19009         and reset the scev cache if so.
19010         (execute_copy_prop): If sth changed schedule cleanup-cfg.
19011         (pass_data_copy_prop): Do not unconditionally schedule
19012         cleanup-cfg or update-ssa.
19014 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
19016         PR tree-optimization/61518
19017         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
19018         reduction var is used in reduction stmt or phi-function only.
19020 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19022         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
19024 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19026         PR tree-optimization/61517
19027         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
19028         whose rhs's first tree is the source expression instead of the
19029         expression itself.
19030         (find_bswap_or_nop): Likewise.
19031         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
19032         gimple stmt whose rhs's first tree is the source. In the memory source
19033         case, move the stmt to be replaced close to one of the original load to
19034         avoid the problem of a store between the load and the stmt's original
19035         location.
19036         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
19037         signature.
19039 2014-06-18  Andreas Schwab  <schwab@suse.de>
19041         PR rtl-optimization/54555
19042         * postreload.c (move2add_use_add2_insn): Substitute
19043         STRICT_LOW_PART only if it is cheaper.
19045 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
19047         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
19048         Do not use unspec as call operand.  Use memory_operand instead of
19049         memory_nox32_operand and add "m" operand constraint.  Disable
19050         pattern for TARGET_X32.
19051         (*sibcall_pop_memory): Ditto.
19052         (*sibcall_value_memory): Ditto.
19053         (*sibcall_value_pop_memory): Ditto.
19054         (sibcall peepholes): Merge SImode and DImode patterns using
19055         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
19056         Disable pattern for TARGET_X32.  Check if eliminated register is
19057         really dead after call insn.  Generate call RTX without unspec operand.
19058         (sibcall_value peepholes): Ditto.
19059         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
19060         instead of memory_nox32_operand.  Check if eliminated register is
19061         really dead after call insn. Generate call RTX without unspec operand.
19062         (sibcall_value_pop peepholes): Ditto.
19063         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
19065 2014-06-18  Terry Guo  <terry.guo@arm.com>
19067         PR target/61544
19068         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
19069         reach the head.
19071 2014-06-18  Olivier Hainque  <hainque@adacore.com>
19073         * tree-core.h (tree_block): Add an "end_locus" field, allowing
19074         memorization of the end of block source location.
19075         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
19076         * gimplify.c (gimplify_bind_expr): Propagate the block start and
19077         end source location info we have on the block entry/exit code we
19078         generate.
19080 2014-06-18  Richard Biener  <rguenther@suse.de>
19082         * common.opt (fssa-phiopt): New option.
19083         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
19084         but not with -Og.
19085         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
19086         * doc/invoke.texi (-fssa-phiopt): Document.
19088 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19090         * genattrtab.c (n_bypassed): New variable.
19091         (process_bypasses): Initialise n_bypassed.
19092         Count number of bypassed reservations.
19093         (make_automaton_attrs): Allocate space for bypassed reservations
19094         rather than number of bypasses.
19096 2014-06-18  Richard Biener  <rguenther@suse.de>
19098         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
19099         we propagated anything.
19100         (substitute_and_fold_dom_walker::before_dom_children): Something
19101         changed if we propagated into PHI arguments.
19102         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
19103         we removed a stmt.
19105 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
19107         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
19108         vector case.
19109         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
19110         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
19111         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
19112         Introduces alternative way of loads group permutaions.
19113         (vect_transform_grouped_load): Try alternative way of permutations.
19115 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
19117         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
19118         changed in ORT_TARGET region, don't jump to do_outer.
19119         (struct gimplify_adjust_omp_clauses_data): New type.
19120         (gimplify_adjust_omp_clauses_1): Adjust for data being
19121         a struct gimplify_adjust_omp_clauses_data pointer instead
19122         of tree *.  Pass pre_p as a new argument to
19123         lang_hooks.decls.omp_finish_clause hook.
19124         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
19125         splay_tree_foreach to pass both list_p and pre_p.
19126         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
19127         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
19128         gimplify_adjust_omp_clauses callers.
19129         * langhooks.c (lhd_omp_finish_clause): New function.
19130         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
19131         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
19132         * langhooks.h (struct lang_hooks_for_decls): Add a new
19133         gimple_seq * argument to omp_finish_clause hook.
19134         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
19135         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
19136         (scan_omp_parallel, lower_omp_for): When adding
19137         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
19138         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
19139         * tree-nested.c (convert_nonlocal_omp_clauses,
19140         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
19141         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
19143 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
19145         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
19146         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
19148 2014-06-17  Xinliang David Li  <davidxl@google.com>
19150         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
19151         * passes.c (pass_init_dump_file): Do not set initialize
19152         flag to false unconditionally.
19154 2014-06-17  Richard Biener  <rguenther@suse.de>
19156         * genopinit.c (main): Use vec<>::qsort method.
19157         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
19158         Likewise.
19159         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
19161 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
19163         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
19164         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
19165         (mips_move_to_gpr_cost): Remove ST_REGS case.
19166         (mips_move_from_gpr_cost): Likewise.
19167         (mips_register_move_cost): Likewise.
19168         (mips_secondary_reload_class): Likewise.
19170 2014-06-17  Richard Biener  <rguenther@suse.de>
19172         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
19173         (pass_all_optimizations): Move 3rd copy-prop pass from after
19174         fre to before ifcombine/phiopt.
19176 2014-06-17  Richard Biener  <rguenther@suse.de>
19178         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
19179         and allow all blocks to be forwarders.
19181 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
19183         PR target/61483
19184         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
19185         variable 'size'; calculate 'size' right in the front; use
19186         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
19187         pcum->aapcs_stack_words.
19189 2014-06-17  Nick Clifton  <nickc@redhat.com>
19191         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
19192         (umulhi3, mulsidi3, umulsidi3): Likewise.
19194 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
19196         PR middle-end/61508
19197         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
19198         check for section name.
19200 2014-06-17  Richard Biener  <rguenther@suse.de>
19202         * tree-ssa-propagate.c: Include domwalk.h.
19203         (substitute_and_fold): Outline main worker into a domwalker ...
19204         (substitute_and_fold_dom_walker::before_dom_children): ... here.
19205         Schedule stmts we can fully propagate for removal.  Remove
19206         poor-mans DCE.
19207         (substitute_and_fold): Apply a dominator walk to perform
19208         substitution.  Process stmts scheduled for removal here.
19210 2014-06-17  Richard Biener  <rguenther@suse.de>
19212         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
19213         of PHI node moving.
19215 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
19217         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
19218         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
19219         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
19220         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
19221         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
19222         TARGET_HARD_FLOAT.
19223         (get_fpscr) : Likewise.
19225 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
19227         PR rtl-optimization/61325
19228         * lra-constraints.c (valid_address_p): Add forward declaration.
19229         (simplify_operand_subreg): Check address validity before and after
19230         alter_reg of memory subreg.
19232 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
19234         * config/i386/i386.c (decide_alg): Correctly handle
19235         maximum size of stringop algorithm.
19237 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
19239         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
19241 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
19243         PR rtl-optimization/61522
19244         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
19246 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
19248         Revert:
19249         * symtab.c (symtab_node::reset_section): New method.
19250         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
19251         for localization.
19252         * cgraph.h (reset_section): Declare.
19253         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
19254         do not consider comdat locals.
19255         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
19256         for new symbol.
19257         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
19258         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
19259         reset sections of symbols dragged out of the comdats.
19260         (function_and_variable_visibility): Reset sections of
19261         localized symbols.
19263 2014-06-16  Richard Biener  <rguenther@suse.de>
19265         PR tree-optimization/61482
19266         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
19267         [-INF(OVF), +INF(OVF)] range.
19269 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
19271         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
19272         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
19273         handling 32-bit multiplication.
19275 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
19277         PR middle-end/61430
19278         * lra-lives.c (process_bb_lives): Skip creating copy during
19279         insn scan when src/dest has constrained to same regno.
19281 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
19283         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
19284         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
19286 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
19288         * asan.c (check_func): New function.
19289         (maybe_create_ssa_name): Likewise.
19290         (build_check_stmt_with_calls): Likewise.
19291         (use_calls_p): Likewise.
19292         (report_error_func): Change interface.
19293         (build_check_stmt): Allow non-integer lengths; add support
19294         for new parameter.
19295         (asan_instrument): Likewise.
19296         (instrument_mem_region_access): Moved code to build_check_stmt.
19297         (instrument_derefs): Likewise.
19298         (instrument_strlen_call): Likewise.
19299         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
19300         * doc/invoke.texi: Describe new parameter.
19301         * params.def: Define new parameter.
19302         * params.h: Likewise.
19303         * sanitizer.def: Describe new builtins.
19305 2014-06-16  Richard Biener  <rguenther@suse.de>
19307         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19308         Make all defs available at the end.
19309         (eliminate): If we remove a PHI node schedule cfg-cleanup.
19311 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
19313         PR plugins/45078
19314         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
19316 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
19318         PR bootstrap/61516
19319         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
19320         initialization.  Replace remaining use of uid.
19322 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
19324         * c-family/c-common.c (handle_tls_model_attribute): Use
19325         set_decl_tls_model.
19326         * c-family/c-common.c (handle_tls_model_attribute): Use
19327         set_decl_tls_model.
19328         * cgraph.h (struct varpool_node): Add tls_model.
19329         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
19330         * tree.h (DECL_TLS_MODEL): Update.
19331         (DECL_THREAD_LOCAL_P): Check that variable is static.
19332         (decl_tls_model): Declare.
19333         (set_decl_tls_model): Declare.
19334         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
19335         set symbol prorperties.
19336         (get_emutls_init_templ_addr): Cleanup.
19337         (new_emutls_decl): Update.
19338         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
19339         (lto_input_varpool_node): Likewise.
19340         * lto-streamer-out.c (hash_tree): Likewise.
19341         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
19342         not stream DECL_TLS_MODEL.
19343         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
19344         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
19346 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19348         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
19350 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19352         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
19353         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
19354         lists.
19355         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
19356         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
19357         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
19358         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
19359         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
19360         (df_get_artificial_defs, df_get_artificial_uses)
19361         (df_single_def, df_single_use): Update accordingly.
19362         (df_refs_chain_dump): Take the first element in a linked list as
19363         parameter, rather than a pointer to an array of pointers.
19364         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
19365         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
19366         (df_chain_create_bb_process_use): Likewise.
19367         (df_md_bb_local_compute_process_def): Likewise.
19368         * fwprop.c (process_defs, process_uses): Likewise.
19369         (register_active_defs, update_uses): Likewise.
19370         (forward_propagate_asm): Update for new df_ref linking.
19371         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
19372         (df_null_ref_rec, df_null_mw_rec): Likewise.
19373         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
19374         explicitly.
19375         (df_scan_free_bb_info): Remove check for null artificial_defs.
19376         (df_install_ref_incremental): Adjust for new df_ref linking.
19377         Use a single-element insertion rather than a full sort.
19378         (df_ref_chain_delete_du_chain): Take the first element
19379         in a linked list as parameter, rather than a pointer to an array of
19380         pointers.
19381         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
19382         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
19383         (df_insn_info_delete): Remove check for null defs and call to
19384         df_scan_free_mws_vec.
19385         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
19386         null rather than df_null_*_rec.
19387         (df_insn_rescan_debug_internal): Likewise, and update null
19388         checks in the same way.  Remove check for null defs.
19389         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
19390         Move a single element rather doing a full sort.
19391         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
19392         linking.
19393         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
19394         Initialize df_ref and df_mw_hardreg lists to null rather than
19395         df_null_*_rec.
19396         (df_ref_compare): Take df_refs as parameter, transferring the
19397         old interface to...
19398         (df_ref_ptr_compare): ...this new function.
19399         (df_sort_and_compress_refs): Update accordingly.
19400         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
19401         old interface to...
19402         (df_mw_ptr_compare): ...this new function.
19403         (df_sort_and_compress_mws): Update accordingly.
19404         (df_install_refs, df_install_mws): Return a linked list rather than
19405         an array of pointers.
19406         (df_refs_add_to_chains): Assert that old lists are empty rather
19407         than freeing them.
19408         (df_insn_refs_verify): Don't handle null defs speciailly.
19409         * web.c (union_match_dups): Update for new df_ref linking.
19411 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19413         * df.h (df_ref_create, df_ref_remove): Delete.
19414         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
19415         (df_ref_remove): Likewise.
19417 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19419         * df.h (df_single_def, df_single_use): New functions.
19420         * ira.c (find_moveable_pseudos): Use them.
19422 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19424         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
19425         * df-problems.c (df_note_bb_compute): Use it.
19426         * regstat.c (regstat_bb_compute_ri): Likewise.
19428 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19430         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
19431         * cse.c (cse_extended_basic_block): Use them.
19432         * dce.c (mark_artificial_use): Likewise.
19433         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
19434         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
19435         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
19436         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
19437         (df_simulate_initialize_backwards): Likewise.
19438         (df_simulate_finalize_backwards): Likewise.
19439         (df_simulate_initialize_forwards): Likewise.
19440         (df_md_simulate_artificial_defs_at_top): Likewise.
19441         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
19442         * regrename.c (init_rename_info): Likewise.
19443         * regstat.c (regstat_bb_compute_ri): Likewise.
19444         (regstat_bb_compute_calls_crossed): Likewise.
19446 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19448         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
19449         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
19450         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
19451         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
19452         * combine.c (create_log_links): Likewise.
19453         * compare-elim.c (find_flags_uses_in_insn): Likewise.
19454         (try_eliminate_compare): Likewise.
19455         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
19456         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
19457         (remove_reg_equal_equiv_notes_for_defs): Likewise.
19458         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
19459         (word_dce_process_block, dce_process_block): Likewise.
19460         * ddg.c (def_has_ccmode_p): Likewise.
19461         * df-core.c (df_bb_regno_first_def_find): Likewise.
19462         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
19463         * df-problems.c (df_rd_simulate_one_insn): Likewise.
19464         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
19465         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
19466         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
19467         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
19468         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
19469         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
19470         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
19471         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
19472         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
19473         * fwprop.c (local_ref_killed_between_p): Likewise.
19474         (all_uses_available_at, free_load_extend): Likewise.
19475         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
19476         * hw-doloop.c (scan_loop): Likewise.
19477         * ifcvt.c (dead_or_predicable): Likewise.
19478         * init-regs.c (initialize_uninitialized_regs): Likewise.
19479         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
19480         (process_bb_node_lives): Likewise.
19481         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
19482         (find_moveable_pseudos): Likewise.
19483         * loop-invariant.c (check_dependencies, record_uses): Likewise.
19484         * recog.c (peep2_find_free_register): Likewise.
19485         * ree.c (get_defs): Likewise.
19486         * regstat.c (regstat_bb_compute_ri): Likewise.
19487         (regstat_bb_compute_calls_crossed): Likewise.
19488         * sched-deps.c (find_inc, find_mem): Likewise.
19489         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
19490         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
19491         * shrink-wrap.c (requires_stack_frame_p): Likewise.
19492         (prepare_shrink_wrap): Likewise.
19493         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
19494         * web.c (union_defs, pass_web::execute): Likewise.
19495         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
19496         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
19498 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
19500         * lra-assign.c (assign_by_spills): Add code to assign vector regs
19501         to inheritance pseudos.
19502         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
19504 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
19506         PR target/61415
19507         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
19508         (BU_MISC_2): Rename to ...
19509         (BU_LDBL128_2): ... this.
19510         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
19511         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
19512         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
19513         RS6000_BTM_LDBL128.
19514         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
19515         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
19516         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
19517         (unpacktf_1): Likewise.
19518         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
19519         (__builtin_longdouble_dw1): Likewise.
19520         * doc/sourcebuild.texi (longdouble128): Document.
19522 2014-06-13  Jeff Law  <law@redhat.com>
19524         PR rtl-optimization/61094
19525         PR rtl-optimization/61446
19526         * ree.c (combine_reaching_defs): Get the mode for the copy from
19527         the extension insn rather than the defining insn.
19529 2014-06-13  Dehao Chen  <dehao@google.com>
19531         * dwarf2out.c (add_linkage_name): Emit more linkage name.
19533 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
19535         * doc/install.texi (--enable-linker-plugin-configure-flags)
19536         (--enable-linker-plugin-flags): Document new flags.
19538 2014-06-13  Martin Jambor  <mjambor@suse.cz>
19540         PR ipa/61186
19541         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
19542         cache_token if returning early.
19544 2014-06-13  Nick Clifton  <nickc@redhat.com>
19546         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
19547         requested alignment is active.
19548         (LABEL_ALIGN): Likewise.
19549         (LOOP_ALIGN): Likewise.
19551 2014-06-13  Richard Biener  <rguenther@suse.de>
19553         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19554         Rewrite to propagate the VN result into all uses where
19555         possible and to remove stmts becoming dead because of that.
19556         (eliminate): Generalize stmt removal handling, remove in
19557         reverse dominator order to support proper debug stmt
19558         generation.  Update stmts before removing stmts.
19559         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
19561 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19563         PR tree-optimization/61375
19564         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
19565         symbolic number cannot be represented in an uint64_t.
19566         (find_bswap_or_nop_1): Likewise.
19568 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
19570         * symtab.c (symtab_node::reset_section): New method.
19571         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
19572         for localization.
19573         * cgraph.h (reset_section): Declare.
19574         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
19575         do not consider comdat locals.
19576         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
19577         for new symbol.
19578         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
19579         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
19580         reset sections of symbols dragged out of the comdats.
19581         (function_and_variable_visibility): Reset sections of
19582         localized symbols.
19584 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
19586         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
19587         to use symtab and decl_binds_to_current_def_p
19588         * tree-vectorizer.c (increase_alignment): Increase alignment
19589         of alias target, too.
19591 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
19593         PR middle-end/61486
19594         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
19595         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
19596         if outer combined construct is distribute.
19597         (gimplify_omp_for): For OMP_DISTRIBUTE set
19598         gimplify_omp_ctxp->distribute.
19599         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
19600         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
19601         mapping into decl map.
19603 2014-06-12  Jason Merrill  <jason@redhat.com>
19605         * common.opt (fabi-version): Change default to 0.
19607 2014-06-12  Jason Merrill  <jason@redhat.com>
19609         * toplev.c (process_options): Reject -fabi-version=1.
19611 2014-06-12  Jeff Law  <law@redhat.com>
19613         PR tree-optimization/61009
19614         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
19615         value when we stop processing a block due to problematic PHIs.
19617 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
19619         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
19620         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
19621         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
19622         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
19623         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
19624         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
19625         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
19626         are not in the spec.
19628 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
19630         PR target/59843
19631         * config/aarch64/aarch64-modes.def: Add V1DFmode.
19632         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
19633         Support V1DFmode.
19635 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
19637         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
19639 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
19641         PR target/61443
19642         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
19643         loading from address spaces.
19645 2014-06-12  Martin Liska  <mliska@suse.cz>
19647         PR ipa/61462
19648         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
19649         statement is reachable.
19651 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
19653         * symtab.c (section_hash): New hash.
19654         (symtab_unregister_node): Clear section before freeing.
19655         (hash_section_hash_entry): New haser.
19656         (eq_sections): New function.
19657         (symtab_node::set_section_for_node): New method.
19658         (set_section_1): Update.
19659         (symtab_node::set_section): Take string instead of tree as parameter.
19660         (symtab_resolve_alias): Update.
19661         * cgraph.h (section_hash_entry_d): New structure.
19662         (section_hash_entry): New typedef.
19663         (cgraph_node): Change comdat_group_ to x_comdat_group,
19664         change section_ to x_section and turn into section_hash_entry;
19665         update accestors; put set_section_for_node offline.
19666         * tree.c (decl_section_name): Turn into string.
19667         (set_decl_section_name): Change parameter to be string.
19668         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
19669         * sdbout.c (sdbout_one_type): Update.
19670         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
19671         * varasm.c (IN_NAMED_SECTION, get_named_section,
19672         resolve_unique_section, hot_function_section, get_named_text_section,
19673         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
19674         make_decl_rtl, default_unique_section): Update.
19675         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
19676         (c6x_elf_unique_section): Update.
19677         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
19678         * config/pa/pa.c (pa_function_section): Update.
19679         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
19680         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
19681         * config/arc/arc.c (arc_in_small_data_p): Update.
19682         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
19683         * config/mcore/mcore.c (mcore_unique_section): Update.
19684         * config/mips/mips.c (mips16_build_function_stub): Update.
19685         (mips16_build_call_stub): Update.
19686         (mips_function_rodata_section): Update.
19687         (mips_in_small_data_p): Update.
19688         * config/score/score.c (score_in_small_data_p): Update.
19689         * config/rx/rx.c (rx_in_small_data): Update.
19690         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
19691         (rs6000_xcoff_asm_named_section): Update.
19692         (rs6000_xcoff_unique_section): Update.
19693         * config/frv/frv.c (frv_string_begins_with): Update.
19694         (frv_in_small_data_p): Update.
19695         * config/v850/v850.c (v850_encode_data_area): Update.
19696         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
19697         (bfin_handle_l1_data_attribute): Update.
19698         (bfin_handle_l2_attribute): Update.
19699         * config/mep/mep.c (mep_unique_section): Update.
19700         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
19701         Update.
19702         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
19703         (h8300_handle_tiny_data_attribute): Update.
19704         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
19705         (m32r_in_small_data_p): Update.
19706         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
19707         * config/i386/i386.c (ix86_in_large_data_p): Update.
19708         * config/i386/winnt.c (i386_pe_unique_section): Update.
19709         * config/darwin.c (darwin_function_section): Update.
19710         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
19711         * tree-emutls.c (get_emutls_init_templ_addr): Update.
19712         (new_emutls_decl): Update.
19713         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
19714         input_varpool_node): Update.
19715         (ead_string_cst): Turn to ...
19716         (read_string): ... this one.
19717         * dwarf2out.c (secname_for_decl): Update.
19718         * asan.c (asan_protect_global): Update.
19720 2014-06-11  DJ Delorie  <dj@redhat.com>
19722         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
19723         cache lines.
19724         * config/rx/rx.c (rx_option_override): Likewise.
19725         (rx_align_for_label): Likewise.
19727         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
19729 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
19731         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
19732         prototype.
19734 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19736         * common.md: New file.
19737         * doc/md.texi: Update description of generic, machine-independent
19738         constraints.
19739         * config/s390/constraints.md (e): Delete.
19740         * Makefile.in (md_file): Include common.md.
19741         * config/m32c/t-m32c (md_file): Likewise.
19742         * genpreds.c (general_mem): New array.
19743         (generic_constraint_letters): Remove constraints now defined by
19744         common.md.
19745         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
19746         Allow the first character to be '<' or '>' as well.
19747         * genoutput.c (general_mem): New array.
19748         (indep_constraints): Remove constraints now defined by common.md.
19749         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
19750         Remove special handling of 'm'.
19751         * ira-costs.c (record_reg_classes): Remove special handling of
19752         constraints now defined by common.md.
19753         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19754         * ira-lives.c (single_reg_class): Likewise.
19755         (ira_implicitly_set_insn_hard_regs): Likewise.
19756         * lra-constraints.c (reg_class_from_constraints): Likewise.
19757         (process_alt_operands, process_address, curr_insn_transform): Likewise.
19758         * postreload.c (reload_cse_simplify_operands): Likewise.
19759         * reload.c (push_secondary_reload, scratch_reload_class)
19760         (find_reloads, alternative_allows_const_pool_ref): Likewise.
19761         * reload1.c (maybe_fix_stack_asms): Likewise.
19762         * targhooks.c (default_secondary_reload): Likewise.
19763         * stmt.c (parse_output_constraint): Likewise.
19764         * recog.c (preprocess_constraints): Likewise.
19765         (constrain_operands, peep2_find_free_register): Likewise.
19766         (asm_operand_ok): Likewise, but add a comment saying why 'o'
19767         must be handled specially.
19769 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19771         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
19772         * genpreds.c (have_const_dbl_constraints): Delete.
19773         (add_constraint): Don't set it.
19774         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
19775         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
19776         constraints using the lookup_constraint logic.
19777         * ira-lives.c (single_reg_class): Likewise.
19778         * ira.c (ira_setup_alts): Likewise.
19779         * lra-constraints.c (process_alt_operands): Likewise.
19780         * recog.c (asm_operand_ok, constrain_operands): Likewise.
19781         * reload.c (find_reloads): Likewise.
19783 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19785         * genpreds.c (const_int_start, const_int_end): New variables.
19786         (choose_enum_order): Output CONST_INT constraints before memory
19787         constraints.
19788         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
19789         Add CT_CONST_INT.
19790         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
19791         * ira.c (ira_setup_alts): Likewise.
19792         * lra-constraints.c (process_alt_operands): Likewise.
19793         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
19794         * reload.c (find_reloads): Likewise.
19796 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19798         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
19799         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
19800         * recog.c (preprocess_constraints): Update accordingly.
19802 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19804         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
19805         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
19806         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
19807         * genpreds.c (print_type_tree): New function.
19808         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
19809         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
19810         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
19811         Write out enum constraint_type and get_constraint_type.
19812         * lra-constraints.c (satisfies_memory_constraint_p): Take a
19813         constraint_num rather than a constraint string.
19814         (satisfies_address_constraint_p): Likewise.
19815         (reg_class_from_constraints): Avoid old constraint macros.
19816         (process_alt_operands, process_address_1): Likewise.
19817         (curr_insn_transform): Likewise.
19818         * ira-costs.c (record_reg_classes): Likewise.
19819         (record_operand_costs): Likewise.
19820         * ira-lives.c (single_reg_class): Likewise.
19821         (ira_implicitly_set_insn_hard_regs): Likewise.
19822         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19823         * postreload.c (reload_cse_simplify_operands): Likewise.
19824         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
19825         (constrain_operands, peep2_find_free_register): Likewise.
19826         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
19827         (find_reloads, alternative_allows_const_pool_ref): Likewise.
19828         * reload1.c (maybe_fix_stack_asms): Likewise.
19829         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
19830         * targhooks.c (default_secondary_reload): Likewise.
19831         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
19832         to EXTRA_CONSTRAINT_STR.
19833         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
19835 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19837         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
19838         (write_constraint_satisfied_p_array): ...this new function.
19839         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
19840         an array.
19841         (write_insn_preds_c): Update accordingly.
19843 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19845         * genpreds.c (write_lookup_constraint): Rename to...
19846         (write_lookup_constraint_1): ...this.
19847         (write_lookup_constraint_array): New function.
19848         (write_tm_preds_h): Define lookup_constraint as an inline function
19849         that uses write_lookup_constraint_array where possible.
19850         (write_insn_preds_c): Update for the changes above.
19852 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19854         * doc/md.texi (regclass_for_constraint): Rename to...
19855         (reg_class_for_constraint): ...this.
19856         * genpreds.c (num_constraints, enum_order, register_start)
19857         (register_end, satisfied_start, memory_start, memory_end)
19858         (address_start, address_end): New variables.
19859         (add_constraint): Count the number of constraints.
19860         (choose_enum_order): New function.
19861         (write_enum_constraint_num): Iterate over enum_order.
19862         (write_regclass_for_constraint): Rename to...
19863         (write_reg_class_for_constraint_1): ...this and update output
19864         accordingly.
19865         (write_constraint_satisfied_p): Rename to...
19866         (write_constraint_satisfied_p_1): ...this and update output
19867         accordingly.  Do nothing if all extra constraints are register
19868         constraints.
19869         (write_insn_extra_memory_constraint): Delete.
19870         (write_insn_extra_address_constraint): Delete.
19871         (write_range_function): New function.
19872         (write_tm_preds_h): Define constraint_satisfied_p and
19873         reg_class_for_constraint as inline functions that do a range check
19874         before calling the out-of-line function.  Use write_range_function
19875         to implement insn_extra_{register,memory,address}_constraint,
19876         the first of which is new.
19877         (write_insn_preds_c): Update after above changes to write_* functions.
19878         (main): Call choose_enum_order.
19880 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19882         PR tree-optimization/61306
19883         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
19884         expression instead of its size.
19885         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
19886         false to prevent optimization when the result is unpredictable due to
19887         arithmetic right shift of signed type with highest byte is set.
19888         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
19889         (init_symbolic_number): Likewise.
19890         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
19891         when the result is unpredictable due to sign extension.
19893 2014-06-11  Terry Guo  <terry.guo@arm.com>
19895         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
19896         (*thumb1_addsi3): Ditto.
19897         (*thumb_subdi3): Ditto.
19898         (thumb1_subsi3_insn): Ditto.
19899         (*thumb_mulsi3): Ditto.
19900         (*thumb_mulsi3_v6): Ditto.
19901         (*thumb1_andsi3_insn): Ditto.
19902         (thumb1_bicsi3): Ditto.
19903         (*thumb1_iorsi3_insn): Ditto.
19904         (*thumb1_xorsi3_insn): Ditto.
19905         (*thumb1_ashlsi3): Ditto.
19906         (*thumb1_ashrsi3): Ditto.
19907         (*thumb1_lshrsi3): Ditto.
19908         (*thumb1_rotrsi3): Ditto.
19909         (*thumb1_negdi2): Ditto.
19910         (*thumb1_negsi2): Ditto.
19911         (*thumb1_abssi2): Ditto.
19912         (*thumb1_neg_abssi2): Ditto.
19913         (*thumb1_one_cmplsi2): Ditto.
19914         (*thumb1_zero_extendhisi2): Ditto.
19915         (*thumb1_zero_extendqisi2): Ditto.
19916         (*thumb1_zero_extendqisi2_v6): Ditto.
19917         (thumb1_extendhisi2): Ditto.
19918         (thumb1_extendqisi2): Ditto.
19919         (*thumb1_movdi_insn): Ditto.
19920         (*thumb1_movsi_insn): Ditto.
19921         (*thumb1_movhi_insn): Ditto.
19922         (thumb_movhi_clobber): Ditto.
19923         (*thumb1_movqi_insn): Ditto.
19924         (*thumb1_movhf): Ditto.
19925         (*thumb1_movsf_insn): Ditto.
19926         (*thumb_movdf_insn): Ditto.
19927         (movmem12b): Ditto.
19928         (movmem8b): Ditto.
19929         (cbranchqi4): Ditto.
19930         (cbranchsi4_insn): Ditto.
19931         (cbranchsi4_scratch): Ditto.
19932         (*negated_cbranchsi4): Ditto.
19933         (*tbit_cbranch): Ditto.
19934         (*tlobits_cbranch): Ditto.
19935         (*tstsi3_cbranch): Ditto.
19936         (*cbranchne_decr1): Ditto.
19937         (*addsi3_cbranch): Ditto.
19938         (*addsi3_cbranch_scratch): Ditto.
19939         (*thumb_cmpdi_zero): Ditto.
19940         (cstoresi_eq0_thumb1): Ditto.
19941         (cstoresi_ne0_thumb1): Ditto.
19942         (*cstoresi_eq0_thumb1_insn): Ditto.
19943         (*cstoresi_ne0_thumb1_insn): Ditto.
19944         (cstoresi_nltu_thumb1): Ditto.
19945         (cstoresi_ltu_thumb1): Ditto.
19946         (thumb1_addsi3_addgeu): Ditto.
19947         (*thumb_jump): Ditto.
19948         (*call_reg_thumb1_v5): Ditto.
19949         (*call_reg_thumb1): Ditto.
19950         (*call_value_reg_thumb1_v5): Ditto.
19951         (*call_value_reg_thumb1): Ditto.
19952         (*call_insn): Ditto.
19953         (*call_value_insn): Ditto.
19954         (thumb1_casesi_internal_pic): Ditto.
19955         (thumb1_casesi_dispatch): Ditto.
19956         (*thumb1_indirect_jump): Ditto.
19957         (prologue_thumb1_interwork): Ditto.
19958         (*epilogue_insns): Ditto.
19959         (consttable_1): Ditto.
19960         (consttable_2): Ditto.
19961         (tablejump): Ditto.
19962         (*thumb1_tablejump): Ditto.
19963         (thumb_eh_return): Ditto.
19964         (define_peephole2): Two of them are thumb1 only and got moved into
19965         new file thumb1.md.
19966         (define_split): Six of them are thumb1 only and got moved into new
19967         file thumb1.md.
19968         * config/arm/thumb1.md: New file comprised of above thumb1 only
19969         patterns.
19971 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19973         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
19974         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
19975         dependencies.
19976         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
19977         (aarch64_crc_builtin_datum): New struct.
19978         (aarch64_crc_builtin_data): New.
19979         (aarch64_init_crc32_builtins): New function.
19980         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
19981         (aarch64_crc32_expand_builtin): New.
19982         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
19983         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19984         __ARM_FEATURE_CRC32 when appropriate.
19985         (TARGET_CRC32): Define.
19986         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
19987         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
19988         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
19989         (aarch64_<crc_variant>): New pattern.
19990         * config/aarch64/arm_acle.h: New file.
19991         * config/aarch64/iterators.md (CRC): New int iterator.
19992         (crc_variant, crc_mode): New int attributes.
19993         * doc/aarch64-acle-intrinsics.texi: New file.
19994         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
19995         Include aarch64-acle-intrinsics.texi.
19997 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
19999         * tree-vect-data-refs.c (vect_grouped_store_supported): New
20000         check for stores group of length 3.
20001         (vect_permute_store_chain): New permutations for stores group of
20002         length 3.
20003         * tree-vect-stmts.c (vect_model_store_cost): Change cost
20004         of vec_perm_shuffle for the new permutations.
20006 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
20008         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
20009         table rewriting temporarily on targets not supporting ONE_ONLY.
20011 2014-06-11  Richard Biener  <rguenther@suse.de>
20013         PR middle-end/61437
20014         Revert
20015         2014-06-04  Richard Biener  <rguenther@suse.de>
20017         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
20018         TREE_PUBLIC and DECL_EXTERNAL decls.
20020 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
20022         * varasm.c (set_implicit_section): New function.
20023         (resolve_unique_section): Use it to set implicit section
20024         for aliases, too.
20025         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
20026         (default_function_section): Likewise.
20027         (decl_binds_to_current_def_p): Constify argument.
20028         * varasm.h (decl_binds_to_current_def_p): Update prototype.
20029         * asan.c (asan_protect_global): Use
20030         symtab_get_node (decl)->implicit_section.
20031         * symtab.c (dump_symtab_base): Dump implicit sections.
20032         (verify_symtab_base): Verify sanity of sectoins and comdats.
20033         (symtab_resolve_alias): Alias share the section of its target.
20034         (set_section_1): New function.
20035         (symtab_node::set_section): Move here, recurse to aliases.
20036         (verify_symtab): Check for duplicated symtab lists.
20037         * tree-core.h (implicit_section_name_p): Remove.
20038         * tree-vect-data-refs.c: Include varasm.h.
20039         (vect_can_force_dr_alignment_p): Fix conditional on when
20040         decl bints to current definition; use
20041         symtab_get_node (decl)->implicit_section.
20042         * cgraph.c (cgraph_make_node_local_1): Fix section set.
20043         * cgraph.h (struct symtab_node): Add implicit_section.
20044         (set_section): Rename to ...
20045         (set_section_for_node): ... this one.
20046         (set_section): Declare.
20047         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
20048         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
20049         input_overwrite_node, input_varpool_node): Stream implicit_section.
20050         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
20051         removal; it will fail in LTO.
20053 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20055         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
20056         Change second alternative type to f_mcr.
20057         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
20058         and 12th alternatives' types to f_mcr and f_mrc.
20059         (*movdi_aarch64): Same for 12th and 13th alternatives.
20060         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
20061         (aarch64_movtilow_tilow): Change type to fmov.
20063 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
20065         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
20066         (aarch64_save_or_restore_callee_save_registers): Fix layout.
20068 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20070         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
20071         New expander.
20072         (aarch64_sqrdmulh_lane<mode>): Likewise.
20073         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
20074         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
20075         (aarch64_sqdmulh_laneq<mode>): New expander.
20076         (aarch64_sqrdmulh_laneq<mode>): Likewise.
20077         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
20078         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
20079         (aarch64_sqdmulh_lane<mode>): New expander.
20080         (aarch64_sqrdmulh_lane<mode>): Likewise.
20081         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
20082         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
20083         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
20084         (aarch64_sqdmlal_laneq<mode>): Likewise.
20085         (aarch64_sqdmlsl_lane<mode>): Likewise.
20086         (aarch64_sqdmlsl_laneq<mode>): Likewise.
20087         (aarch64_sqdmlal2_lane<mode>): Likewise.
20088         (aarch64_sqdmlal2_laneq<mode>): Likewise.
20089         (aarch64_sqdmlsl2_lane<mode>): Likewise.
20090         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20091         (aarch64_sqdmull_lane<mode>): Likewise.
20092         (aarch64_sqdmull_laneq<mode>): Likewise.
20093         (aarch64_sqdmull2_lane<mode>): Likewise.
20094         (aarch64_sqdmull2_laneq<mode>): Likewise.
20096 2014-06-10  Richard Biener  <rguenther@suse.de>
20098         PR tree-optimization/61438
20099         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
20100         (eliminate_dom_walker::before_dom_children): Only try to inhibit
20101         insertion of IVs if running PRE.
20102         (eliminate): Adjust.
20103         (pass_pre::execute): Likewise.
20104         (pass_fre::execute): Likewise.
20106 2014-06-10  Richard Biener  <rguenther@suse.de>
20108         PR middle-end/61456
20109         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
20110         Do not use the main variant for the type comparison.
20111         (ncr_compar): Likewise.
20112         (nonoverlapping_component_refs_p): Likewise.
20114 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20116         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
20117         REG_CFA_RESTORE mode.
20119 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
20121         * config/i386/i386.c (expand_vec_perm_pblendv): New.
20122         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
20123         expand_vec_perm_pblendv.
20125 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20127         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
20128         available.
20129         Simplify description of __crc32d and __crc32cd intrinsics.
20130         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
20131         availability.
20133 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
20135         PR lto/61334
20136         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
20137         * config.in: Regenerate.
20138         * configure: Likewise.
20140 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
20142         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
20143         and public vars.
20144         (intersect_static_var_sets): Remove.
20145         (propagate): Do not prune local statics.
20147 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
20149         PR fortran/60928
20150         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
20151         Set lastprivate_firstprivate even if omp_private_outer_ref
20152         langhook returns true.
20153         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
20154         langhook, call unshare_expr on new_var and call
20155         build_outer_var_ref to get the last argument.
20157 2014-06-10  Marek Polacek  <polacek@redhat.com>
20159         PR c/60988
20160         * doc/extend.texi: Add cindex for transparent_union.
20162 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20164         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
20165         init_symbolic_number ().
20167 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
20169         PR middle-end/61141
20170         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
20171         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
20172         (verify_rtl_sharing): Likewise.
20174 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
20176         PR c++/54442
20177         * tree.c (build_qualified_type): Use a canonical type for
20178         TYPE_CANONICAL.
20180 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20182         * config/arm/arm-modes.def: Remove XFmode.
20184 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
20186         PR target/61062
20187         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
20188         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
20189         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
20190         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
20191         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
20192         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
20193         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
20194         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
20195         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
20197 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
20199         * tree-core.h (tree_decl_with_vis): Remove section_name.
20201 2014-06-09  Kito Cheng  <kito@0xlab.org>
20203         * ira.c (ira): Don't call init_caller_save if LRA enabled
20204         since LRA use its own infrastructure to handle that.
20206 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
20208         * symtab.c (dump_symtab_base): Update dumping.
20209         (symtab_make_decl_local): Clear only DECL_COMDAT.
20210         * tree-vect-data-refs.c (Check that variable is static before
20211         tampering with sections.
20212         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
20213         (cgraph_create_virtual_clone): Likewise.
20214         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
20215         (decl_section_name, set_decl_section_name): New accessors.
20216         (find_decls_types_r): Do not walk section name
20217         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
20218         (decl_comdat_group, decl_comdat_group_id): Constify.
20219         (decl_section_name, set_decl_section_name): Update.
20220         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
20221         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
20222         (cgraph_make_node_local_1): Clear section and comdat group.
20223         * cgraph.h (set_comdat_group): Sanity check.
20224         (get_section, set_section): New.
20225         * ipa-comdats.c (ipa_comdats): Use get_section.
20226         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
20227         * lto-streamer-out.c: Do not follow section names.
20228         * c-family/c-common.c (handle_section_attribute): Update.
20229         * lto-cgraph.c (lto_output_node): Output section.
20230         (lto_output_varpool_node): Likewise.
20231         (read_comdat_group): Rename to ...
20232         (read_identifier): ... this one.
20233         (read_string_cst): New function.
20234         (input_node, input_varpool_node): Input section names.
20235         * tree-emutls.c (get_emutls_init_templ_addr): Update.
20236         (new_emutls_decl): Update.
20237         (secname_for_decl): Check section names only of static vars.
20238         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
20239         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
20240         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
20241         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
20242         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
20243         * config/mcore/mcore.c (mcore_unique_section): Likewise.
20244         * config/mips/mips.c (mips16_build_function_stub): Likewise.
20245         * config/v850/v850.c (v850_insert_attributes): Likewise.
20246         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
20247         Likewise.
20248         (h8300_handle_tiny_data_attribute): Likewise.
20249         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
20250         (bfin_handle_l2_attribute): Likewise.
20252 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
20254         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
20255         remove static initializer.
20257 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
20259         * varasm.c (use_blocks_for_decl_p): Check symbol table
20260         instead of alias attribute.
20261         (place_block_symbol): Recurse on aliases.
20263 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
20265         * ipa-visibility.c: Include varasm.h
20266         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
20268 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
20270         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
20271         outputting aliases.
20273 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
20275         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
20276         from test_insn into GGC space escape via SET_SRC.
20278 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
20280         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
20281         call statement, if any.
20282         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
20283         statements, if any.  Tidy up.
20285 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
20287         PR target/61431
20288         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
20289         iterators, VSX_D that handles 64-bit types, and VSX_LE that
20290         handles swapping the two 64-bit double words on little endian
20291         systems.  Include V1TImode and optionally TImode in VSX_LE so that
20292         these types are properly swapped.  Change all of the insns and
20293         splits that do the 64-bit swaps to use VSX_LE.
20294         (vsx_le_perm_load_<mode>): Likewise.
20295         (vsx_le_perm_store_<mode>): Likewise.
20296         (splitters for little endian memory operations): Likewise.
20297         (vsx_xxpermdi2_le_<mode>): Likewise.
20298         (vsx_lxvd2x2_le_<mode>): Likewise.
20299         (vsx_stxvd2x2_le_<mode>): Likewise.
20301 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
20303         PR target/61423
20304         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
20305         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
20306         and corresponding splitters.  Zero extend general register
20307         or memory input operand to XMM temporary.  Enable for
20308         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
20309         (floatunssi<mode>2): Update expander predicate.
20311 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
20313         PR rtl-optimization/61325
20314         * lra-constraints.c (process_address_1): Check scale equal to one
20315         to prevent transformation: base + scale * index => base + new_reg.
20317 2014-06-06  Richard Biener  <rguenther@suse.de>
20319         PR tree-optimization/59299
20320         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
20321         a def operand.
20322         (nearest_common_dominator_of_uses): Likewise.
20323         (statement_sink_location): Adjust.  Support sinking loads.
20325 2014-06-06  Martin Jambor  <mjambor@suse.cz>
20327         * ipa-prop.c (get_place_in_agg_contents_list): New function.
20328         (build_agg_jump_func_from_list): Likewise.
20329         (determine_known_aggregate_parts): Renamed to
20330         determine_locally_known_aggregate_parts.  Moved some functionality
20331         to the two functions above, removed bound checks.
20333 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
20335         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
20336         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
20337         (aarch64_progress_pointer): Likewise.
20338         (aarch64_copy_one_part_and_move_pointers): Likewise.
20339         (aarch64_expand_movmen): Likewise.
20340         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
20341         * config/aarch64/aarch64.md (movmem<mode>): New.
20343 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
20345         * targhooks.c (default_add_stmt_cost): Call target specific
20346         hook instead of default one.
20348 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20350         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
20351         endianness instead of host endianness.
20352         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
20353         comments.
20355 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
20357         PR debug/53927
20358         * function.c (instantiate_decls): Process the saved static chain.
20359         (expand_function_start): If not optimizing, save the static chain
20360         onto the stack.
20361         * tree-nested.c (convert_all_function_calls): Always create the static
20362         chain for nested functions if not optimizing.
20364 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
20366         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
20368 2014-06-06  Richard Biener  <rguenther@suse.de>
20370         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
20371         (construct_init_block): Likewise.
20372         (construct_exit_block): Likewise.
20373         (pass_expand::execute): Likewise.
20374         * graphite.c (graphite_transforms): Replace check for current_loops
20375         with a check for > 1 loops.
20376         (pass_graphite_transforms::execute): Adjust.
20377         * ipa-split.c (split_function): Remove check for current_loops.
20378         * omp-low.c (expand_parallel_call): Likewise.
20379         (expand_omp_for_init_counts): Likewise.
20380         (extract_omp_for_update_vars): Likewise.
20381         (expand_omp_for_generic): Likewise.
20382         (expand_omp_sections): Likewise.
20383         (expand_omp_target): Likewise.
20384         * tracer.c (tail_duplicate): Likewise.
20385         (pass_tracer::execute): Likewise.
20386         * trans-mem.c (expand_transaction): Likewise.
20387         * tree-complex.c (expand_complex_div_wide): Likewise.
20388         * tree-eh.c (lower_resx): Likewise.
20389         (cleanup_empty_eh_merge_phis): Likewise.
20390         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
20391         current_loops with a check for > 1 loops.
20392         (pass_predcom::execute): Adjust.
20393         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
20394         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
20395         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
20396         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
20397         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
20398         * tree-switch-conversion.c (process_switch): Likewise.
20399         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
20400         * tree-vrp.c (vrp_visit_phi_node): Likewise.
20401         (execute_vrp): Likewise.
20402         * ubsan.c (ubsan_expand_null_ifn): Likewise.
20404 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
20406         * rtl.h (insn_location): Declare.
20407         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
20408         with UNKNOWN_LOCATION.
20409         * emit-rtl.c (insn_location): New function.
20410         * final.c (notice_source_line): Check that the instruction has a
20411         location before retrieving it and use insn_location.
20412         * modulo-sched.c (loop_single_full_bb_p): Likewise.
20413         * print-rtl.c (print_rtx): Likewise.
20415 2014-06-06  Richard Biener  <rguenther@suse.de>
20417         * passes.def: Move 2nd VRP pass before phi-only-cprop.
20419 2014-06-06  Christian Bruel  <christian.bruel@st.com>
20421         PR tree-optimization/43934
20422         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
20423         cost.
20425 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
20427         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
20428         return NO_REGS for extra address and memory constraints.  Handle
20429         operands that match (or are equivalent to something that matches)
20430         extra constant constraints.  Ignore other non-register operands.
20432 2014-06-06  Alan Modra  <amodra@gmail.com>
20434         PR target/61300
20435         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
20436         * doc/tm.texi: Regenerate.
20437         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
20438         Use throughout in place of REG_PARM_STACK_SPACE.
20439         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
20440         "incoming" param.  Pass to rs6000_function_parms_need_stack.
20441         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
20442         prototype_p when incoming.  Use function decl when incoming
20443         to handle K&R style functions.
20444         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
20445         (INCOMING_REG_PARM_STACK_SPACE): Define.
20447 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
20449         PR target/52472
20450         * cfgexpand.c (expand_debug_expr): Use address space of nested
20451         TREE_TYPE for ADDR_EXPR and MEM_REF.
20453 2014-06-05  Jeff Law  <law@redhat.com>
20455         PR tree-optimization/61289
20456         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
20457         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
20458         looking for those which match LHS.  All callers changed.
20459         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
20460         parameters and code which manipulated them.  All callers changed.
20461         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
20462         and DST_MAP parameters.  Simplify invalidation code by just calling
20463         invalidate_equivalences.  All callers changed.
20464         (thread_across_edge): Simplify now that we don't need to maintain
20465         the map of equivalences to invalidate.
20467 2014-06-05  Kai Tietz  <ktietz@redhat.com>
20468             Richard Henderson  <rth@redhat.com>
20470         PR target/46219
20471         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
20472         checking for !TARGET_X32.
20473         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
20474         (sibcall_intern): New define_insn, plus required peepholes.
20475         (sibcall_pop_intern): Likewise.
20476         (sibcall_value_intern): Likewise.
20477         (sibcall_value_pop_intern): Likewise.
20479 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
20481         * tree-inline.c (tree_function_versioning): Check DF info existence
20482         before accessing it.
20484 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20486         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
20487         frame_size.
20488         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
20489         aarch64_frame hard_fp_offset and frame_size.
20490         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
20491         frame_size; remove original_frame_size.
20492         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
20493         (aarch64_initial_elimination_offset): Remove frame_size and
20494         offset.  Use aarch64_frame frame_size.
20496 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20497             Jiong Wang  <jiong.wang@arm.com>
20498             Renlin  <renlin.li@arm.com>
20500         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
20501         initialization of R30 offset.  Update offset.  Iterate core
20502         regisers upto X30.  Remove X29, X30 specific code.
20504 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20505             Jiong Wang  <jiong.wang@arm.com>
20507         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
20508         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
20509         (aarch64_register_saved_on_entry): Adjust test.
20511 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20513         * config/aarch64/aarch64.h (machine_function): Move
20514         saved_varargs_size from here...
20515         (aarch64_frame): ... to here.
20517         * config/aarch64/aarch64.c (aarch64_expand_prologue)
20518         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
20519         (aarch64_initial_elimination_offset)
20520         (aarch64_setup_incoming_varargs): Adjust location of
20521         saved_varargs_size.
20523 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20525         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
20526         layout comment.
20528 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
20529             Prachi Godbole  <Prachi.Godbole@imgtec.com>
20531         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
20532         mips32r5 entry to use PROCESSOR_P5600.
20533         * config/mips/mips-tables.opt: Regenerate.
20534         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
20535         * config/mips/mips.c (mips_fmadd_bypass): New function.
20536         (mips_rtx_cost_data): Add costs for p5600.
20537         (mips_issue_rate): Add support for p5600.
20538         (mips_multipass_dfa_lookahead): Likewise.
20539         * config/mips/mips.h (TUNE_P5600): New define.
20540         (TUNE_MACC_CHAINS): Add TUNE_P5600.
20541         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
20542         * config/mips/mips.md: Include p5600.md.
20543         (processor): Add p5600.
20544         * config/mips/p5600.md: New file.
20546 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
20548         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
20549         * config/i386/predicates.md (palignr_operand): New.
20550         Indicates if permutation is suitable for palignr instruction.
20552 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
20554         PR tree-optimization/61319
20555         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20556         stmt belongs to loop.
20558 2014-06-05  Richard Biener  <rguenther@suse.de>
20560         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
20561         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
20562         (lookup_tmp_var): Adjust.
20563         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
20565 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20567         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
20569 2014-06-05  Marek Polacek  <polacek@redhat.com>
20571         PR c/49706
20572         * doc/invoke.texi: Document -Wlogical-not-parentheses.
20574 2014-06-04  Tom de Vries  <tom@codesourcery.com>
20576         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
20577         CONST_INT.
20579 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
20581         PR tree-optimization/61385
20582         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
20584 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
20586         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
20587         changed to use fatal_error.
20588         (main): Ensure lto_wrapper_cleanup is run atexit.
20590 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20592         * lra-constraints.c (valid_address_p): Move earlier in file.
20593         (address_eliminator): New structure.
20594         (satisfies_memory_constraint_p): New function.
20595         (satisfies_address_constraint_p): Likewise.
20596         (process_alt_operands, process_address, curr_insn_transform): Use them.
20598 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20600         * lra-int.h (lra_static_insn_data): Make operand_alternative a
20601         const pointer.
20602         (target_lra_int, default_target_lra_int, this_target_lra_int)
20603         (op_alt_data): Delete.
20604         * lra.h (lra_init): Delete.
20605         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
20606         (init_insn_code_data_once): Remove op_alt_data handling.
20607         (finish_insn_code_data_once): Likewise.
20608         (init_op_alt_data): Delete.
20609         (get_static_insn_data): Initialize operand_alternative to null.
20610         (free_insn_recog_data): Cast operand_alternative before freeing it.
20611         (setup_operand_alternative): Take the operand_alternative as
20612         parameter and assume it isn't already cached in the static
20613         insn data.
20614         (lra_set_insn_recog_data): Update accordingly.
20615         (lra_init): Delete.
20616         * ira.c (ira_init): Don't call lra_init.
20617         * target-globals.h (this_target_lra_int): Declare.
20618         (target_globals): Remove lra_int.
20619         (restore_target_globals): Update accordingly.
20620         * target-globals.c: Don't include lra-int.h.
20621         (default_target_globals, save_target_globals): Remove lra_int.
20623 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20625         * recog.h (operand_alternative): Convert reg_class, reject,
20626         matched and matches into bitfields.
20627         (preprocess_constraints): New overload.
20628         (preprocess_insn_constraints): New function.
20629         (preprocess_constraints): Take the insn as parameter.
20630         (recog_op_alt): Change into a pointer.
20631         (target_recog): Add x_op_alt.
20632         * recog.c (asm_op_alt): New variable.
20633         (recog_op_alt): Change into a pointer.
20634         (preprocess_constraints): New overload, replacing the old function
20635         definition with one that doesn't use global state.
20636         (preprocess_insn_constraints): New function.
20637         (preprocess_constraints): Use them.  Take the insn as parameter.
20638         Use asm_op_alt for asms.
20639         (recog_init): Free existing x_op_alt entries.
20640         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
20641         pointer const.
20642         (make_early_clobber_and_input_conflicts): Likewise.
20643         (process_bb_node_lives): Pass the insn to process_constraints.
20644         * reg-stack.c (check_asm_stack_operands): Likewise.
20645         (subst_asm_stack_regs): Likewise.
20646         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
20647         * regrename.c (build_def_use): Likewise.
20648         * sched-deps.c (sched_analyze_insn): Likewise.
20649         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
20650         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
20651         (note_invalid_constants): Likewise.
20652         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20653         (ix86_legitimate_combined_insn): Make operand_alternative pointer
20654         const.
20656 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20658         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
20659         * ira-lives.c (check_and_make_def_conflict): Check for disabled
20660         alternatives.
20661         (make_early_clobber_and_input_conflicts): Likewise.
20662         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20664 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20666         * recog.h (alternative_class): New function.
20667         (which_op_alt): Return a const recog_op_alt.
20668         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
20669         (subst_asm_stack_regs): Likewise.
20670         * config/arm/arm.c (note_invalid_constants): Likewise.
20671         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
20672         the operand_alternative; use alternative class instead.
20673         * sel-sched.c (get_reg_class): Likewise.
20674         * regrename.c (build_def_use): Likewise.
20675         (hide_operands, restore_operands, record_out_operands): Update type
20676         accordingly.
20678 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20680         * recog.h (recog_op_alt): Convert to a flat array.
20681         (which_op_alt): New function.
20682         * recog.c (recog_op_alt): Convert to a flat array.
20683         (preprocess_constraints): Update accordingly, grouping all
20684         operands of the same alternative together, rather than the
20685         other way around.
20686         * ira-lives.c (check_and_make_def_conflict): Likewise.
20687         (make_early_clobber_and_input_conflicts): Likewise.
20688         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20689         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
20690         (subst_asm_stack_regs): Likewise.
20691         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
20692         * regrename.c (hide_operands, record_out_operands): Likewise.
20693         (build_def_use): Likewise.
20694         * sel-sched.c (get_reg_class): Likewise.
20695         * config/arm/arm.c (note_invalid_constants): Likewise.
20697 2014-06-04  Jason Merrill  <jason@redhat.com>
20699         PR c++/51253
20700         PR c++/61382
20701         * gimplify.c (gimplify_arg): Non-static.
20702         * gimplify.h: Declare it.
20704 2014-06-04  Richard Biener  <rguenther@suse.de>
20706         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
20707         TREE_PUBLIC and DECL_EXTERNAL decls.
20709 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
20711         * regcprop.c (copyprop_hardreg_forward_1): Account for
20712         HARD_REGNO_CALL_PART_CLOBBERED.
20714 2014-06-04  Richard Biener  <rguenther@suse.de>
20716         * configure.ac: Check whether the underlying type of int64_t
20717         is long or long long.
20718         * configure: Regenerate.
20719         * config.in: Likewise.
20720         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
20721         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20723 2014-06-04  Richard Biener  <rguenther@suse.de>
20725         PR tree-optimization/60098
20726         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
20727         we hit a kill.
20728         (dse_optimize_stmt): Simplify, now that we found a kill
20729         earlier.
20731 2014-06-04  Richard Biener  <rguenther@suse.de>
20733         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
20734         of accesses with non-invariant address.
20736 2014-06-04  Martin Liska  <mliska@suse.cz>
20738         * cgraph.h (cgraph_make_wrapper): New function introduced.
20739         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
20740         * ipa-inline.h (inline_analyze_function): The function is global.
20741         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
20743 2014-06-04  Martin Liska  <mliska@suse.cz>
20745         * tree.h (private_lookup_attribute_starting): New function.
20746         (lookup_attribute_starting): Likewise.
20747         * tree.c (private_lookup_attribute_starting): Likewise.
20749 2014-06-04  Martin Liska  <mliska@suse.cz>
20751         * cgraph.h (expand_thunk): New argument added.
20752         (address_taken_from_non_vtable_p): New global function.
20753         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
20754         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
20755         * cgraphunit.c (analyze_function): Likewise.
20756         (assemble_thunks_and_aliases): Argument added to call.
20757         (expand_thunk): New argument forces to produce GIMPLE thunk.
20759 2014-06-04  Martin Liska  <mliska@suse.cz>
20761         * coverage.h (coverage_compute_cfg_checksum): Argument added.
20762         * coverage.c (coverage_compute_cfg_checksum): Likewise.
20763         * profile.c (branch_prob): Likewise.
20765 2014-06-04  Martin Jambor  <mjambor@suse.cz>
20767         PR ipa/61340
20768         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
20769         handler for switch on an ipa_ref_use enum.
20770         * ipa-reference.c (analyze_function): Likewise.
20772 2014-06-04  Kai Tietz  <ktietz@redhat.com>
20774         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
20775         from old call-instruction.
20777 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
20779         * config/aarch64/aarch64.c (aarch64_classify_address)
20780         (aarch64_legitimize_reload_address): Support full addressing modes
20781         for vector modes.
20782         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
20783         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
20785 2014-06-03  Andrew Pinski  <apinski@cavium.com>
20787         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
20788         for OP0.
20790 2014-06-03  Andrew Pinski  <apinski@cavium.com>
20792         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
20793         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
20795 2014-06-03  Kai Tietz  <ktietz@redhat.com>
20797         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
20798         for 64-bit ms-abi.
20800 2014-06-03  Dehao Chen  <dehao@google.com>
20802         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
20803         the same loop.
20805 2014-06-03  Marek Polacek  <polacek@redhat.com>
20807         PR c/60439
20808         * doc/invoke.texi: Document -Wswitch-bool.
20809         * function.c (stack_protect_epilogue): Cast controlling expression of
20810         the switch to int.
20811         * gengtype.c (walk_type): Generate switch expression with its
20812         controlling expression cast to int.
20814 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
20816         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
20817         and attiny841.
20818         * config/avr/avr-tables.opt: Regenerate.
20819         * config/avr/t-multilib: Regenerate.
20820         * doc/avr-mmcu.texi: Regenerate.
20822 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
20823             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
20825         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
20826         (ata6617c, ata664251): Add new avr35 devices.
20827         (ata6612c): Add new avr4 device.
20828         (ata6613c, ata6614q): Add new avr5 devices.
20829         * config/avr/avr-tables.opt: Regenerate.
20830         * config/avr/t-multilib: Regenerate.
20831         * doc/avr-mmcu.texi: Regenerate.
20833 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
20835         * gcc/config/aarch64/aarch64-builtins.c
20836         (aarch64_types_binop_ssu_qualifiers): New static data.
20837         (TYPES_BINOP_SSU): Define.
20838         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
20839         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
20840         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
20841         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
20842         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
20843         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
20844         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
20845         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
20846         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
20847         suffix to builtin function name, remove cast.
20848         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
20849         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
20850         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
20852 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
20854         * gcc/config/aarch64/aarch64-builtins.c
20855         (aarch64_types_binop_uus_qualifiers,
20856         aarch64_types_shift_to_unsigned_qualifiers,
20857         aarch64_types_unsigned_shiftacc_qualifiers): Define.
20858         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
20859         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
20860         sqshlu_n, uqshl_n): Update qualifiers.
20861         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
20862         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
20863         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
20864         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
20865         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
20866         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
20867         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
20868         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
20869         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
20870         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
20871         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
20872         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
20873         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
20874         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
20875         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
20876         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
20877         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
20878         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
20879         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
20880         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
20881         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
20882         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
20883         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
20884         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
20885         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
20886         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
20887         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
20889 2014-06-03  Teresa Johnson  <tejohnson@google.com>
20891         * tree-sra.c (modify_function): Record caller nodes after rebuild.
20893 2014-06-02  Jason Merrill  <jason@redhat.com>
20895         PR c++/61020
20896         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
20898 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
20900         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
20901         location == 0.
20903 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
20905         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
20906         New pattern.
20907         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
20908         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
20909         * config/aarch64/iterators.md (REVERSE): New iterator.
20910         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
20911         (rev_op): New int_attribute.
20912         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
20913         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
20914         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
20915         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
20916         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
20917         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
20918         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
20919         Replace temporary __asm__ with __builtin_shuffle.
20921 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
20923         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
20924         mips64r5.
20925         * config/mips/mips-tables.opt: Regenerate.
20926         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
20927         to use mips_isa_rev rather than ISA_MIPS32R2.
20928         * config/mips/mips.h (ISA_MIPS32R3): New define.
20929         (ISA_MIPS32R5): New define.
20930         (ISA_MIPS64R3): New define.
20931         (ISA_MIPS64R5): New define.
20932         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
20933         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
20934         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
20935         and mips64r5.
20936         (MIPS_ISA_SYNCI_SPEC): Likewise.
20937         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
20938         (LINK_SPEC): Added mips32r3 and mips32r5.
20939         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
20940         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
20941         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
20942         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
20943         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
20944         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
20945         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
20947 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
20949         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
20950         options.
20951         * config/mips/mips.opt (mxpa): New option.
20952         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
20953         assembler.
20955 2014-06-03  Martin Jambor  <mjambor@suse.cz>
20957         PR ipa/61160
20958         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
20959         thunks.
20961 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20963         PR tree-optimization/61328
20964         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
20965         initialization from find_bswap_or_nop_1.
20966         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
20967         in source_expr2 before using the size value the function sets. Also
20968         make use of init_symbolic_number () in both the old place and
20969         find_bswap_or_nop_load () to avoid reading uninitialized memory when
20970         doing recursion in the GIMPLE_BINARY_RHS case.
20972 2014-06-03  Richard Biener  <rguenther@suse.de>
20974         PR tree-optimization/61383
20975         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
20976         stmts can't trap.
20978 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
20980         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
20981         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
20982         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
20983         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
20984         in this file.
20985         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
20986         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
20987         * system.h: ...here and make it unconditional.
20988         * target.def (conditional_register_usage): Mention
20989         define_register_constraint instead of old-style constraint macros.
20990         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
20991         * doc/tm.texi: Regenerate.
20992         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
20993         protected by !USE_MD_CONSTRAINTS.
20994         * config/frv/frv.md: Remove quote from old version of documentation.
20995         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
20996         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
20997         CONST_DOUBLE_OK_FOR_LETTER.
20998         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
21000 2014-06-02  Andrew Pinski  <apinski@cavium.com>
21002         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
21003         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
21004         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
21005         file whose name depends on -mabi= and -mbig-endian.
21006         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
21007         Handle LP64 better and handle ilp32 too.
21008         (MULTILIB_OPTIONS): Delete.
21009         (MULTILIB_DIRNAMES): Delete.
21011 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
21013         * expr.h: Remove prototypes of functions defined in builtins.c.
21014         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
21015         Remove prototypes of functions defined in builtins.c.
21016         * builtins.h: Update prototype list to include all exported functions.
21017         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
21018         no_c99_libc_has_function): Move to targhooks.c
21019         (build_string_literal, build_call_expr_loc_array,
21020         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
21021         to tree.c.
21022         (expand_builtin_object_size, fold_builtin_object_size): Make static.
21023         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
21024         no_c99_libc_has_function): Relocate from builtins.c.
21025         * tree.c: Include builtins.h.
21026         (build_call_expr_loc_array, build_call_expr_loc_vec,
21027         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
21028         from builtins.c.
21029         * fold-const.h (fold_fma): Move prototype to builtins.h.
21030         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
21031         * asan.c: Include builtins.h.
21032         * cfgexpand.c: Likewise.
21033         * convert.c: Likewise.
21034         * emit-rtl.c: Likewise.
21035         * except.c: Likewise.
21036         * expr.c: Likewise.
21037         * fold-const.c: Likewise.
21038         * gimple-fold.c: Likewise.
21039         * gimple-ssa-strength-reduction.c: Likewise.
21040         * gimplify.c: Likewise.
21041         * ipa-inline.c: Likewise.
21042         * ipa-prop.c: Likewise.
21043         * lto-streamer-out.c: Likewise.
21044         * stmt.c: Likewise.
21045         * tree-inline.c: Likewise.
21046         * tree-object-size.c: Likewise.
21047         * tree-sra.c: Likewise.
21048         * tree-ssa-ccp.c: Likewise.
21049         * tree-ssa-forwprop.c: Likewise.
21050         * tree-ssa-loop-ivcanon.c: Likewise.
21051         * tree-ssa-loop-ivopts.c: Likewise.
21052         * tree-ssa-math-opts.c: Likewise.
21053         * tree-ssa-reassoc.c: Likewise.
21054         * tree-ssa-threadedge.c: Likewise.
21055         * tree-streamer-in.c: Likewise.
21056         * tree-vect-data-refs.c: Likewise.
21057         * tree-vect-patterns.c: Likewise.
21058         * tree-vect-stmts.c: Likewise.
21059         * config/aarch64/aarch64.c: Likewise.
21060         * config/alpha/alpha.c: Likewise.
21061         * config/arc/arc.c: Likewise.
21062         * config/arm/arm.c: Likewise.
21063         * config/avr/avr.c: Likewise.
21064         * config/bfin/bfin.c: Likewise.
21065         * config/c6x/c6x.c: Likewise.
21066         * config/cr16/cr16.c: Likewise.
21067         * config/cris/cris.c: Likewise.
21068         * config/epiphany/epiphany.c: Likewise.
21069         * config/fr30/fr30.c: Likewise.
21070         * config/frv/frv.c: Likewise.
21071         * config/h8300/h8300.c: Likewise.
21072         * config/i386/i386.c: Likewise.
21073         * config/i386/winnt.c: Likewise.
21074         * config/ia64/ia64.c: Likewise.
21075         * config/iq2000/iq2000.c: Likewise.
21076         * config/lm32/lm32.c: Likewise.
21077         * config/m32c/m32c.c: Likewise.
21078         * config/m32r/m32r.c: Likewise.
21079         * config/m68k/m68k.c: Likewise.
21080         * config/mcore/mcore.c: Likewise.
21081         * config/mep/mep.c: Likewise.
21082         * config/microblaze/microblaze.c: Likewise.
21083         * config/mips/mips.c: Likewise.
21084         * config/mmix/mmix.c: Likewise.
21085         * config/mn10300/mn10300.c: Likewise.
21086         * config/moxie/moxie.c: Likewise.
21087         * config/msp430/msp430.c: Likewise.
21088         * config/nds32/nds32.c: Likewise.
21089         * config/pa/pa.c: Likewise.
21090         * config/pdp11/pdp11.c: Likewise.
21091         * config/picochip/picochip.c: Likewise.
21092         * config/rl78/rl78.c: Likewise.
21093         * config/rs6000/rs6000.c: Likewise.
21094         * config/rx/rx.c: Likewise.
21095         * config/s390/s390.c: Likewise.
21096         * config/score/score.c: Likewise.
21097         * config/sh/sh.c: Likewise.
21098         * config/sparc/sparc.c: Likewise.
21099         * config/spu/spu.c: Likewise.
21100         * config/stormy16/stormy16.c: Likewise.
21101         * config/tilegx/tilegx.c: Likewise.
21102         * config/tilepro/tilepro.c: Likewise.
21103         * config/v850/v850.c: Likewise.
21104         * config/vax/vax.c: Likewise.
21105         * config/xtensa/xtensa.c: Likewise.
21107 2014-06-02  Jeff Law  <law@redhat.com>
21109         PR rtl-optimization/61094
21110         * ree.c (combine_reaching_defs): Do not reextend an insn if it
21111         was marked as do_no_reextend.  If a copy is needed to eliminate
21112         an extension, then mark it as do_not_reextend.
21114 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21116         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
21118 2014-06-02  Richard Henderson  <rth@redhat.com>
21120         PR target/61336
21121         * config/alpha/alpha.c (print_operand_address): Allow symbolic
21122         addresses inside asms.  Use output_operand_lossage instead of
21123         gcc_unreachable.
21125 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
21127         PR target/61239
21128         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
21129         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
21131 2014-06-02  Tom de Vries  <tom@codesourcery.com>
21133         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
21134         case that x has VOIDmode.
21136 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
21138         * varasm.c (copy_constant): Delete function.
21139         (build_constant_desc): Don't call it.
21141 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21143         PR target/61154
21144         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
21145         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
21146         with immediate_operand.
21148 2014-06-02  Andreas Schwab  <schwab@suse.de>
21150         * config/ia64/ia64.c
21151         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
21152         pending_data_specs first.
21154 2014-06-02  Richard Biener  <rguenther@suse.de>
21156         PR tree-optimization/61378
21157         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
21158         valueized_anything.
21160 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
21162         * config/i386/constraints.md (Bw): Rename from 'w'.
21163         (Bz): Rename from 'z'.
21164         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
21166 2014-06-01  Kai Tietz  <ktietz@redhat.com>
21168         PR target/61377
21169         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
21170         * config/i386/i386.md (sibcall_insn_operand): Use Bs
21171         instead of m constraint.
21173 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
21175         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
21176         a separate alternative where the scratch operand 2 is marked as
21177         early clobber.
21179 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
21181         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
21182         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
21183         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
21184         and __builtins_arm_get_fpscr.
21185         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
21186         __builtins_arm_get_fpscr.
21187         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
21188         __builtins_arm_ldfpscr.
21189         (arm_atomic_assign_expand_fenv): New function.
21190         * config/arm/vfp.md (set_fpscr): New pattern.
21191         (get_fpscr) : Likewise.
21192         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
21193         VUNSPEC_SET_FPSCR.
21194         * doc/extend.texi (AARCH64 Built-in Functions) : Document
21195         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
21197 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
21199         * asan.c (report_error_func): Add SLOW_P argument, use
21200         BUILT_IN_ASAN_*_N if set.
21201         (build_check_stmt): Likewise.
21202         (instrument_derefs): If T has insufficient alignment,
21203         force same handling as for odd sizes.
21205         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
21206         BUILT_IN_ASAN_REPORT_STORE_N): New.
21207         * asan.c (struct asan_mem_ref): Change access_size type to
21208         HOST_WIDE_INT.
21209         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
21210         update_mem_ref_hash_table): Likewise.
21211         (asan_mem_ref_hasher::hash): Hash in a HWI.
21212         (report_error_func): Change size_in_bytes argument to HWI.
21213         Use *_N builtins if size_in_bytes is larger than 16 or not power of
21214         two.
21215         (build_shadow_mem_access): New function.
21216         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
21217         Handle size_in_bytes not power of two or larger than 16.
21218         (instrument_derefs): Don't give up if size_in_bytes is not
21219         power of two or is larger than 16.
21221 2014-05-30  Kai Tietz  <ktietz@redhat.com>
21223         PR target/60104
21224         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
21225         for sibling-tail-calls.
21226         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
21227         to its use.
21228         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
21229         (sibcall_insn_operand): Add check for sibcall_memory_operand.
21231 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21233         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
21234         * config/avr/avr-tables.opt: Regenerate.
21235         * config/avr/t-multilib: Regenerate.
21236         * doc/avr-mmcu.texi: Regenerate.
21238 2014-05-30  Ian Lance Taylor  <iant@google.com>
21240         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
21241         target("sse").
21243 2014-05-30  Tom de Vries  <tom@codesourcery.com>
21245         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
21246         Redefine as true.
21248 2014-05-30  Tom de Vries  <tom@codesourcery.com>
21250         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
21251         * lra.c (initialize_lra_reg_info_element): Add init of
21252         actual_call_used_reg_set field.
21253         (lra): Call lra_create_live_ranges before lra_inheritance for
21254         -fuse-caller-save.
21255         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
21256         -fuse-caller-save.
21257         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
21258         instead of call_used_reg_set for -fuse-caller-save.
21259         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
21261 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21263         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
21264         to mov_imm.
21265         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
21267 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
21269         * ira.c (ira_get_dup_out_num): Check for output operands at
21270         the start of the loop.  Handle cases where an included alternative
21271         follows an excluded one.
21273 2014-05-29  Mike Stump  <mikestump@comcast.net>
21275         PR debug/61352
21276         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
21277         post ld passes when lto is used.
21279 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
21281         PR rtl-optimization/61325
21282         * lra-constraints.c (process_address): Rename to process_address_1.
21283         (process_address): New function.
21285 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
21287         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
21288         TYPES_BINOPV): New static data.
21289         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
21290         New builtin.
21291         * config/aarch64/aarch64-simd.md (aarch64_ext,
21292         aarch64_im_lane_boundsi): New patterns.
21293         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
21294         patterns for EXT.
21295         (aarch64_evpc_ext): New function.
21297         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
21299         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
21300         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
21301         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
21302         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
21303         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
21305 2014-05-29  Tom de Vries  <tom@codesourcery.com>
21307         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
21309 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
21310             Richard Sandiford  <rdsandiford@googlemail.com>
21312         * arm/iterators.md (shiftable_ops): New code iterator.
21313         (t2_binop0, arith_shift_insn): New code attributes.
21314         * arm/predicates.md (shift_nomul_operator): New predicate.
21315         * arm/arm.md (insn_enabled): Delete.
21316         (enabled): Remove insn_enabled test.
21317         (*arith_shiftsi): Delete.  Replace with ...
21318         (*<arith_shift_insn>_multsi): ... new pattern.
21319         (*<arith_shift_insn>_shiftsi): ... new pattern.
21320         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
21322 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
21323             Tom de Vries  <tom@codesourcery.com>
21325         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
21326         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
21327         clobber.
21328         (mips_split_call): Use POST_CALL_TMP_REG.
21329         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
21331 2014-05-29  Tom de Vries  <tom@codesourcery.com>
21333         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
21334         with #ifdef STACK_REGS.
21336 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
21338         * varasm.c (get_variable_section): Walk aliases.
21339         (place_block_symbol): Walk aliases.
21341 2014-05-28  Tom de Vries  <tom@codesourcery.com>
21343         Revert:
21344         2014-05-28  Tom de Vries  <tom@codesourcery.com>
21346         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
21347         * lra.c (initialize_lra_reg_info_element): Add init of
21348         actual_call_used_reg_set field.
21349         (lra): Call lra_create_live_ranges before lra_inheritance for
21350         -fuse-caller-save.
21351         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
21352         -fuse-caller-save.
21353         * lra-constraints.c (need_for_call_save_p): Use
21354         actual_call_used_reg_set instead of call_used_reg_set for
21355         -fuse-caller-save.
21356         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
21358 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21360         * doc/md.texi: Document that the % constraint character must
21361         be at the beginning of the string.
21362         * genoutput.c (validate_insn_alternatives): Check that '=',
21363         '+' and '%' only appear at the beginning of a constraint.
21364         * ira.c (commutative_constraint_p): Delete.
21365         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
21366         at the start of the string.
21367         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
21368         duplicate '='s.
21369         * config/arm/neon.md (bicdi3_neon): Likewise.
21370         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
21371         (slt_si, sltu_si): Likewise.
21372         * config/vax/vax.md (sbcdi3): Likewise.
21373         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
21374         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
21375         (mul64): Move '%' to beginning of constraint.
21376         * config/arm/arm.md (*xordi3_insn): Likewise.
21377         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
21378         (xorsi3): Likewise.
21380 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21382         * doc/md.texi: Document the restrictions on the "enabled" attribute.
21384 2014-05-28  Jason Merrill  <jason@redhat.com>
21386         PR c++/47202
21387         * cgraph.h (symtab_node::get_comdat_group_id): New.
21388         * cgraphunit.c (analyze_functions): Call it.
21389         * symtab.c (dump_symtab_node): Likewise.
21390         * tree.c (decl_comdat_group_id): New.
21391         * tree.h: Declare it.
21392         * lto-streamer-out.c (write_symbol): Use it.
21393         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
21395 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
21397         PR bootstrap/PR61146
21398         * wide-int.cc: Do not include longlong.h when compiling with clang.
21400 2014-05-28  Richard Biener  <rguenther@suse.de>
21402         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
21403         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
21404         (vrp_visit_assignment_or_call): Print less vertical space.
21405         (vrp_visit_stmt): Likewise.
21406         (vrp_visit_phi_node): Likewise.  For a PHI argument with
21407         VR_VARYING range consider recording it as copy.
21409 2014-05-28  Richard Biener  <rguenther@suse.de>
21411         Revert
21412         2014-05-28  Richard Biener  <rguenther@suse.de>
21414         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
21416 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21418         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
21419         sufficiently aligned and an offset is used at the same time.
21420         (expand_expr_real_1): Likewise.
21422 2014-05-28  Richard Biener  <rguenther@suse.de>
21424         PR middle-end/61045
21425         * fold-const.c (fold_comparison): When folding
21426         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
21427         the sign of the remaining constant operand stays the same.
21429 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
21431         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
21432         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
21433         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
21434         to the assembler.
21435         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
21436         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
21437         (m32bit-doubles) Likewise.
21438         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
21439         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
21440         option for RL78.
21442 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21444         * configure.ac ($gcc_cv_ld_clearcap): New test.
21445         * configure: Regenerate.
21446         * config.in: Regenerate.
21447         * config/sol2.opt (mclear-hwcap): New option.
21448         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
21449         * config/sol2-clearcap.map: Moved here from
21450         testsuite/gcc.target/i386/clearcap.map.
21451         * config/sol2-clearcapv2.map: Move here from
21452         gcc.target/i386/clearcapv2.map.
21453         * config/t-sol2 (install): Depend on install-clearcap-map.
21454         (install-clearcap-map): New target.
21455         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
21456         -mclear-hwcap.
21458 2014-05-28  Richard Biener  <rguenther@suse.de>
21460         * hwint.h (*_HALF_WIDE_INT*): Move to ...
21461         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
21462         ... here and remove the rest.
21463         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
21465 2014-05-28  Richard Biener  <rguenther@suse.de>
21467         PR tree-optimization/61335
21468         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
21469         new range fails, drop to varying.
21471 2014-05-28  Olivier Hainque  <hainque@adacore.com>
21473         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
21474         (CPP_SPEC): Add entry for -mcpu=8548.
21475         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
21476         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
21478 2014-05-28  Tom de Vries  <tom@codesourcery.com>
21480         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
21481         * lra.c (initialize_lra_reg_info_element): Add init of
21482         actual_call_used_reg_set field.
21483         (lra): Call lra_create_live_ranges before lra_inheritance for
21484         -fuse-caller-save.
21485         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
21486         -fuse-caller-save.
21487         * lra-constraints.c (need_for_call_save_p): Use
21488         actual_call_used_reg_set instead of call_used_reg_set for
21489         -fuse-caller-save.
21490         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
21492 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
21493             Tom de Vries  <tom@codesourcery.com>
21495         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
21496         to gccoptlist.
21497         (@item -fuse-caller-save): New item.
21499 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
21500             Tom de Vries  <tom@codesourcery.com>
21502         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
21503         OPT_fuse_caller_save.
21505 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
21506             Tom de Vries  <tom@codesourcery.com>
21508         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
21509         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
21510         get_call_reg_set_usage.
21511         * resource.c (mark_set_resources, mark_target_live_regs): Use
21512         get_call_reg_set_usage.
21513         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
21514         field.
21515         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
21516         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
21517         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
21518         * ira-build.c (ira_create_allocno): Init
21519         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
21520         (create_cap_allocno, propagate_allocno_info)
21521         (propagate_some_info_from_allocno)
21522         (copy_info_to_removed_store_destinations): Handle
21523         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
21524         * ira-costs.c (ira_tune_allocno_costs): Use
21525         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
21527 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
21528             Tom de Vries  <tom@codesourcery.com>
21530         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
21531         and function_used_regs_valid fields.
21532         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
21533         find_all_hard_reg_sets.
21534         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
21535         (get_call_reg_set_usage): New function.
21536         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
21537         * regs.h (get_call_reg_set_usage): Declare.
21539 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
21541         PR libgcc/61152
21542         * config/dbx.h (License): Add Runtime Library Exception.
21543         * config/newlib-stdint.h (License): Same.
21544         * config/rtems.h (License): Same
21545         * config/initfini-array.h (License): Same
21546         * config/v850/v850.h (License): Same.
21547         * config/v850/v850-opts.h (License): Same
21548         * config/v850/rtems.h (License): Same.
21550 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
21552         PR target/61044
21553         * doc/extend.texi (Local Labels): Note that label differences are
21554         not supported for AVR.
21556 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21557             Olivier Hainque  <hainque@adacore.com>
21559         * rtl.h (set_for_reg_notes): Declare.
21560         * emit-rtl.c (set_for_reg_notes): New function.
21561         (set_unique_reg_note): Use it.
21562         * optabs.c (add_equal_note): Likewise
21564 2014-05-27  Andrew Pinski  <apinski@cavium.com>
21566         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
21567         Use <w> for the register in assembly template.
21568         (stack_protect_test): Use the mode of operands[0] for the result.
21569         (stack_protect_test_<mode>): Use <w> for the register
21570         in assembly template.
21572 2014-05-27  DJ Delorie  <dj@redhat.com>
21574         * config/rx/rx.c (add_vector_labels): New.
21575         (rx_output_function_prologue): Call it.
21576         (rx_handle_func_attribute): Don't require empty arguments.
21577         (rx_handle_vector_attribute): New.
21578         (rx_attribute_table): Add "vector" attribute.
21579         * doc/extend.texi (interrupt, vector): Document new/changed
21580         RX-specific attributes.
21582         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
21584 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
21586         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
21587         predicate to detect a negative quotient.
21589 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
21591         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
21592         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
21593         Add X - Y CMP 0 to X CMP Y transformation.
21594         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
21596 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
21598         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
21599         before printing.
21601 2014-05-27  Steve Ellcey  <sellcey@mips.com>
21603         * config/mips/mips.c: Add include of cgraph.h.
21605 2014-05-27  Richard Biener  <rguenther@suse.de>
21607         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
21609 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
21611         PR libgcc/61152
21612         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
21613         * config/arm/arm-cores.def (License): Same.
21614         * config/arm/arm-opts.h (License): Same.
21615         * config/arm/aout.h (License): Same.
21616         * config/arm/bpabi.h (License): Same.
21617         * config/arm/elf.h (License): Same.
21618         * config/arm/linux-elf.h (License): Same.
21619         * config/arm/linux-gas.h (License): Same.
21620         * config/arm/netbsd-elf.h (License): Same.
21621         * config/arm/uclinux-eabi.h (License): Same.
21622         * config/arm/uclinux-elf.h (License): Same.
21623         * config/arm/vxworks.h (License): Same.
21625 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21627         * config/arm/neon.md (neon_bswap<mode>): New pattern.
21628         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
21629         (arm_init_neon_builtins): Handle NEON_BSWAP.
21630         Define required type nodes.
21631         (arm_expand_neon_builtin): Handle NEON_BSWAP.
21632         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
21633         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
21634         * config/arm/iterators.md (VDQHSD): New mode iterator.
21636 2014-05-27  Richard Biener  <rguenther@suse.de>
21638         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
21639         Try using literal operands when comparing value-ranges failed.
21641 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
21643         * ira.c (commutative_operand): Adjust for change to recog_data.
21644         [Missing from previous commit.]
21646 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
21648         * system.h (TEST_BIT): New macro.
21649         * recog.h (alternative_mask): New type.
21650         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
21651         (recog_data_d): Replace alternative_enabled_p array with
21652         enabled_alternatives.
21653         (target_recog): New structure.
21654         (default_target_recog, this_target_recog): Declare.
21655         (get_enabled_alternatives, recog_init): Likewise.
21656         * recog.c (default_target_recog, this_target_recog): New variables.
21657         (get_enabled_alternatives): New function.
21658         (extract_insn): Use it.
21659         (recog_init): New function.
21660         (preprocess_constraints, constrain_operands): Adjust for change to
21661         recog_data.
21662         * postreload.c (reload_cse_simplify_operands): Likewise.
21663         * reload.c (find_reloads): Likewise.
21664         * ira-costs.c (record_reg_classes): Likewise.
21665         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
21666         all alternatives after a disabled one would be skipped.
21667         (ira_implicitly_set_insn_hard_regs): Likewise.
21668         * ira.c (ira_setup_alts): Adjust for change to recog_data.
21669         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
21670         with enabled_alternatives.
21671         * lra.c (free_insn_recog_data): Update accordingly.
21672         (lra_update_insn_recog_data): Likewise.
21673         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
21674         * lra-constraints.c (process_alt_operands): Likewise.  Handle
21675         only_alternative as part of the enabled mask.
21676         * target-globals.h (this_target_recog): Declare.
21677         (target_globals): Add a recog field.
21678         (restore_target_globals): Restore this_target_recog.
21679         * target-globals.c: Include recog.h.
21680         (default_target_globals): Initialize recog field.
21681         (save_target_globals): Likewise.
21682         * reginfo.c (reinit_regs): Call recog_init.
21683         * toplev.c (backend_init_target): Likewise.
21685 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
21687         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
21688         rather than any named insn's code.
21690 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
21692         PR libgcc/61152
21693         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
21694         * config/arm/arm-cores.def (License): Same.
21696 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
21698         * tree.h (decl_comdat_group): Declare.
21699         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
21700         * tree.c (decl_comdat_group): Here.
21702 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
21704         PR rtl-optimization/61222
21705         * combine.c (simplify_shift_const_1): When moving a PLUS outside
21706         the shift, truncate the PLUS operand to the result mode.
21708 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
21710         PR target/61271
21711         * config/i386/i386.c (ix86_rtx_costs)
21712         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
21713         Fix condition.
21715 2014-05-26  Martin Jambor  <mjambor@suse.cz>
21717         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
21718         subreg uses.
21720 2014-05-26  Richard Biener  <rguenther@suse.de>
21722         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
21723         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
21724         Provide specializations.
21725         (wi::int_traits <HOST_WIDE_INT>,
21726         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
21728 2014-05-26  Alan Modra  <amodra@gmail.com>
21730         PR target/61098
21731         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
21732         params and return a bool.  Remove dead code.  Update comment.
21733         Assert we have a const_int source.  Remove bogus code from
21734         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
21735         handling of constants > 2G and reg_equal note, from..
21736         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
21737         return value.  Update comment.  If we can, use a new pseudo
21738         for intermediate calculations.
21739         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
21740         prototype.
21741         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
21742         call to rs6000_emit_set_const in splitter.
21743         (movdi_internal64+2, +3): Likewise.
21745 2014-05-26  Richard Biener  <rguenther@suse.de>
21747         * system.h: Define __STDC_FORMAT_MACROS before
21748         including inttypes.h.
21749         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
21750         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
21751         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
21752         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
21753         HOST_WIDEST_INT_C): Remove.
21754         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
21755         if C99 inttypes.h is not available.
21756         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
21757         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
21758         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
21759         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
21760         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
21761         (struct output_info): Likewise.
21762         (print_statistics): Adjust.
21763         (dump_bitmap_statistics): Likewise.
21764         * bt-load.c (migrate_btr_defs): Print with PRId64.
21765         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
21766         (MAX_SAFE_MULTIPLIER): Adjust.
21767         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
21768         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
21769         dump_cgraph_node): Likewise.
21770         * final.c (dump_basic_block_info): Likewise.
21771         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
21772         * gcov.c (format_gcov): Likewise.
21773         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
21774         for calculation.
21775         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
21776         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
21777         (inline_small_functions, dump_overall_stats, dump_inline_stats):
21778         Use PRId64 for dumping.
21779         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
21780         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
21781         (add_allocno_hard_regs): Adjust.
21782         * loop-doloop.c (doloop_modify): Print using PRId64.
21783         * loop-iv.c (inverse): Compute in uint64_t.
21784         (determine_max_iter, iv_number_of_iterations): Likewise.
21785         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
21786         Print using PRId64.
21787         * lto-streamer-out.c (write_symbol): Use uint64_t.
21788         * mcf.c (CAP_INFINITY): Use int64_t maximum.
21789         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
21790         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
21791         * modulo-sched.c (const_iteration_count): Use int64_t.
21792         (sms_schedule): Dump using PRId64.
21793         * predict.c (dump_prediction): Likewise.
21794         * pretty-print.h (pp_widest_integer): Remove.
21795         * profile.c (get_working_sets, is_edge_inconsistent,
21796         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
21797         * tree-pretty-print.c (pp_double_int): Remove case handling
21798         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
21799         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
21800         and adjust users.
21801         (pass_optimize_bswap::execute): Remove restriction on hosts.
21802         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
21803         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
21804         * tree.c (widest_int_cst_value): Remove.
21805         * tree.h (widest_int_cst_value): Likewise.
21806         * value-prof.c (dump_histogram_value): Print using PRId64.
21807         * gengtype.c (main): Also inject int64_t.
21808         * ggc-page.c (struct max_alignment): Use int64_t.
21809         * alloc-pool.c (struct allocation_object_def): Likewise.
21810         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
21811         for computation.
21812         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
21813         * doc/tm.texi: Regenerated.
21814         * gengtype-lex.l (IWORD): Handle [u]int64_t.
21815         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
21816         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
21817         mmix_output_register_setting): Use [u]int64_t in prototypes.
21818         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
21819         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
21820         mmix_output_octa, mmix_output_shifted_value): Adjust.
21821         (mmix_intval): Adjust.  Remove unreachable case.
21822         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
21824 2014-05-26  Richard Biener  <rguenther@suse.de>
21826         * configure.ac: Drop __int64 type check.  Insist that we
21827         found uint64_t and int64_t.
21828         * hwint.h (HOST_BITS_PER___INT64): Remove.
21829         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
21830         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
21831         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
21832         (HOST_WIDEST_FAST_INT): Remove __int64 case.
21833         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
21834         for dst_q_src_df_rms_cdt.
21835         * configure: Regenerate.
21836         * config.in: Likewise.
21838 2014-05-26  Michael Tautschnig  <mt@debian.org>
21840         PR target/61249
21841         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
21842         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
21844 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21846         PR rtl-optimization/61278
21847         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
21849 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21851         PR rtl-optimization/61220
21852         Part of PR rtl-optimization/61225
21853         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
21854         insn; skip split_edge for a block with only one successor.
21856 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21858         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
21859         for variables.
21861 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21863         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
21864         (update_vtable_references): New function.
21865         (function_and_variable_visibility): Rewrite also vtable initializers.
21866         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
21868 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21870         * ggc.h (ggc_grow): New function.
21871         * ggc-none.c (ggc_grow): New function.
21872         * ggc-page.c (ggc_grow): Likewise.
21874 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21876         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
21877         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
21878         comdat_can_be_unshared_p, cgraph_externally_visible_p,
21879         varpool_externally_visible_p, can_replace_by_local_alias,
21880         update_visibility_by_resolution_info, function_and_variable_visibility,
21881         pass_data_ipa_function_and_variable_visibility,
21882         make_pass_ipa_function_and_variable_visibility,
21883         whole_program_function_and_variable_visibility,
21884         pass_data_ipa_whole_program_visibility,
21885         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
21886         * cgraph.h (cgraph_local_node_p): Declare.
21887         * ipa-visibility.c: New file.
21888         * Makefile.in (OBJS): Add ipa-visiblity.o
21890 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21892         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
21893         that var decl is available.
21895 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21897         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
21898         symtab_node pointer.
21899         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
21900         (find_decls_types_r): Do not walk COMDAT_GROUP.
21901         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
21902         * varasm.c (make_decl_one_only): Use set_comdat_group;
21903         create node if needed.
21904         * ipa-inline-transform.c (save_inline_function_body): Update
21905         way we decl->symtab mapping.
21906         * symtab.c (symtab_hash, hash_node, eq_node
21907         symtab_insert_node_to_hashtable): Remove.
21908         (symtab_register_node): Update.
21909         (symtab_unregister_node): Update.
21910         (symtab_get_node): Reimplement as inline function.
21911         (symtab_add_to_same_comdat_group): Update.
21912         (symtab_dissolve_same_comdat_group_list): Update.
21913         (dump_symtab_base): Update.
21914         (verify_symtab_base): Update.
21915         (symtab_make_decl_local): Update.
21916         (fixup_same_cpp_alias_visibility): Update.
21917         (symtab_nonoverwritable_alias): Update.
21918         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
21919         * ipa.c (update_visibility_by_resolution_info): UPdate.
21920         * bb-reorder.c: Include cgraph.h
21921         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
21922         with comdat groups.
21923         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
21924         * cgraph.c (cgraph_get_create_node): Update.
21925         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
21926         and comdat_group_.
21927         (symtab_get_node): Make inline.
21928         (symtab_insert_node_to_hashtable): Remove.
21929         (symtab_can_be_discarded): Update.
21930         (decl_comdat_group): New function.
21931         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
21932         Update.
21933         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
21934         comdat group name.
21935         (read_comdat_group): New function.
21936         (input_node, input_varpool_node): Use it.
21937         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
21938         comdat groups.
21939         * mips.c (mips_start_unique_function): Likewise.
21940         (ix86_code_end): Likewise.
21941         (rs6000_code_end): Likweise.
21942         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
21944 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21946         * gengtype-state.c (fatal_reading_state): Bring offline.
21947         * optabs.c (widening_optab_handler): Bring offline.
21948         * optabs.h (widening_optab_handler): Likewise.
21949         * final.c (get_attr_length_1): Likewise.
21951 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
21953         * sched-int.h (sd_iterator_cond): Manually tail recurse.
21955 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21957         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
21958         (ppc440-compare): Include shift with dot.
21959         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
21960         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
21961         without dot.
21962         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
21963         without dot.
21964         (e6500_sfx2): Include it.
21965         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
21966         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
21967         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
21968         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
21969         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
21970         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
21971         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
21972         *lshiftrt_internal1le, *lshiftrt_internal1be,
21973         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
21974         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
21975         *rotldi3_internal10le, *rotldi3_internal10be,
21976         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
21977         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
21978         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
21979         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
21980         define_insns): Use type "shift" in the appropriate alternatives.
21982 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
21984         * config/rs6000/rs6000.md (type): Add "logical".  Delete
21985         "fast_compare".
21986         (dot): Adjust comment.
21987         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
21988         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
21989         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
21990         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
21991         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
21992         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
21993         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
21994         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
21996         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
21997         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
21998         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
21999         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22000         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22001         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22002         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22003         * config/rs6000/8540.md (ppc8540_su): Adjust.
22004         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22005         cell-cmp-microcoded): Adjust.
22006         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
22007         * config/rs6000/e500mc.md (e500mc_su): Adjust.
22008         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
22009         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
22010         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
22011         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22012         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
22013         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
22014         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
22015         Adjust.
22016         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
22017         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
22018         Adjust.  Adjust comment.
22019         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22020         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
22022 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22024         * config/rs6000/rs6000.md (type): Add "add".
22025         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
22026         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
22027         define_insns): Use it.
22028         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
22030         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22031         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
22032         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22033         * config/rs6000/601.md (ppc601-integer): Adjust.
22034         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22035         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22036         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22037         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22038         * config/rs6000/8540.md (ppc8540_su): Adjust.
22039         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22040         cell-cmp-microcoded): Adjust.
22041         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
22042         * config/rs6000/e500mc.md (e500mc_su): Adjust.
22043         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
22044         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
22045         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
22046         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22047         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
22048         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
22049         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
22050         Adjust.
22051         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
22052         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
22053         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22054         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
22056 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22058         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
22059         "delayed_compare", "var_delayed_compare".
22060         (var_shift): New attribute.
22061         (cell_micro): Adjust.
22062         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
22063         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
22064         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
22065         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
22066         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
22067         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
22068         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
22069         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
22070         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
22071         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22072         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
22073         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
22074         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
22075         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
22076         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
22077         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
22078         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
22079         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
22080         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
22081         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
22082         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
22083         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
22084         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
22085         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22086         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22088         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22089         * config/rs6000/440.md (ppc440-integer): Adjust.
22090         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22091         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
22092         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22093         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22094         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22095         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22096         * config/rs6000/8540.md (ppc8540_su): Adjust.
22097         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22098         cell-cmp-microcoded): Adjust.
22099         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
22100         * config/rs6000/e500mc.md (e500mc_su): Adjust.
22101         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
22102         e500mc64_delayed): Adjust.
22103         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
22104         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
22105         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22106         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
22107         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
22108         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
22109         power6-delayed-compare, power6-var-delayed-compare): Adjust.
22110         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
22111         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
22112         Adjust comment.
22113         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22114         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
22116 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22118         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
22119         (bits): New mode_attr.
22120         (idiv_ldiv): Delete mode_attr.
22121         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
22122         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22123         rs6000_adjust_priority, is_nonpipeline_insn,
22124         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22126         * config/rs6000/40x.md (ppc403-idiv): Adjust.
22127         * config/rs6000/440.md (ppc440-idiv): Adjust.
22128         * config/rs6000/476.md (ppc476-idiv): Adjust.
22129         * config/rs6000/601.md (ppc601-idiv): Adjust.
22130         * config/rs6000/603.md (ppc603-idiv): Adjust.
22131         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
22132         ppc620-ldiv): Adjust.
22133         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
22134         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
22135         * config/rs6000/8540.md (ppc8540_divide): Adjust.
22136         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
22137         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
22138         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
22139         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
22140         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
22141         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
22142         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
22143         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
22144         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
22145         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
22146         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
22147         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
22148         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
22149         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
22150         * config/rs6000/titan.md (titan_fxu_div): Adjust.
22152 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22154         * config/rs6000/rs6000.md (type): Delete "insert_word",
22155         "insert_dword".  Add "insert".
22156         (size): Update comment.
22157         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22158         insn_must_be_first_in_group): Adjust.
22159         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
22160         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
22161         *insvsi_internal6, insvdi_internal): Adjust.
22163         * config/rs6000/40x.md (ppc403-integer): Adjust.
22164         * config/rs6000/440.md (ppc440-integer): Adjust.
22165         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
22166         * config/rs6000/601.md (ppc601-integer): Adjust.
22167         * config/rs6000/603.md (ppc603-integer): Adjust.
22168         * config/rs6000/6xx.md (ppc604-integer): Adjust.
22169         * config/rs6000/7450.md (ppc7450-integer): Adjust.
22170         * config/rs6000/7xx.md (ppc750-integer): Adjust.
22171         * config/rs6000/8540.md (ppc8540_su): Adjust.
22172         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
22173         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
22174         * config/rs6000/e500mc.md (e500mc_su): Adjust.
22175         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
22176         * config/rs6000/e5500.md (e5500_sfx): Adjust.
22177         * config/rs6000/e6500.md (e6500_sfx): Adjust.
22178         * config/rs6000/mpc.md (mpccore-integer): Adjust.
22179         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
22180         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
22181         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
22182         * config/rs6000/power7.md (power7-integer): Adjust.
22183         * config/rs6000/power8.md (power8-1cyc): Adjust.
22184         * config/rs6000/rs64.md (rs64a-integer): Adjust.
22185         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
22187 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22189         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
22190         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
22191         (size): New attribute.
22192         (dot): New attribute.
22193         (cell_micro): Adjust.
22194         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
22195         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
22196         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
22197         umuldi3_highpart): Adjust.
22198         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22199         rs6000_adjust_priority, is_nonpipeline_insn,
22200         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22202         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
22203         ppc405-imul3): Adjust.
22204         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
22205         * config/rs6000/476.md (ppc476-imul): Adjust.
22206         * config/rs6000/601.md (ppc601-imul): Adjust.
22207         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
22208         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
22209         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
22210         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
22211         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
22212         Adjust.
22213         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
22214         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
22215         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
22216         cell-imul): Adjust.
22217         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
22218         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
22219         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
22220         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
22221         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
22222         * config/rs6000/mpc.md (mpccore-imul): Adjust.
22223         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
22224         power4-lmul, power4-imul, power4-imul3): Adjust.
22225         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
22226         power5-lmul, power5-imul, power5-imul3): Adjust.
22227         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
22228         power6-lmul, power6-imul, power6-imul3): Adjust.
22229         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
22230         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
22232         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
22233         rs64a-lmul): Adjust.
22234         * config/rs6000/titan.md (titan_imul): Adjust.
22236 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22238         * config/rs6000/rs6000.md (type): Add new value "halfmul".
22239         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
22240         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
22241         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
22242         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
22243         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
22244         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
22245         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
22246         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
22247         * config/rs6000/titan.md: Delete nonsensical comment.
22248         (titan_imul): Add type imul3.
22249         (titan_mulhw): Remove type imul3; add type halfmul.
22251 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22253         * config/rs6000/rs6000.md (type): Reorder, reformat.
22255 2014-05-23  Martin Jambor  <mjambor@suse.cz>
22257         PR tree-optimization/53787
22258         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
22259         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
22260         analysis_done, update all uses.
22261         * ipa-prop.c: Include domwalk.h
22262         (param_analysis_info): Removed.
22263         (param_aa_status): New type.
22264         (ipa_bb_info): Likewise.
22265         (func_body_info): Likewise.
22266         (ipa_get_bb_info): New function.
22267         (aa_overwalked): Likewise.
22268         (find_dominating_aa_status): Likewise.
22269         (parm_bb_aa_status_for_bb): Likewise.
22270         (parm_preserved_before_stmt_p): Changed to use new param AA info.
22271         (load_from_unmodified_param): Accept func_body_info as a parameter
22272         instead of parms_ainfo.
22273         (parm_ref_data_preserved_p): Changed to use new param AA info.
22274         (parm_ref_data_pass_through_p): Likewise.
22275         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
22276         (compute_complex_assign_jump_func): Changed to use new param AA info.
22277         (compute_complex_ancestor_jump_func): Likewise.
22278         (ipa_compute_jump_functions_for_edge): Likewise.
22279         (ipa_compute_jump_functions): Removed.
22280         (ipa_compute_jump_functions_for_bb): New function.
22281         (ipa_analyze_indirect_call_uses): Likewise, moved variable
22282         declarations down.
22283         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
22284         and info, moved variable declarations down.
22285         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
22286         node and info.
22287         (ipa_analyze_stmt_uses): Likewise.
22288         (ipa_analyze_params_uses): Removed.
22289         (ipa_analyze_params_uses_in_bb): New function.
22290         (ipa_analyze_controlled_uses): Likewise.
22291         (free_ipa_bb_info): Likewise.
22292         (analysis_dom_walker): New class.
22293         (ipa_analyze_node): Handle node-specific forbidden analysis,
22294         initialize and free func_body_info, use dominator walker.
22295         (ipcp_modif_dom_walker): New class.
22296         (ipcp_transform_function): Create and free func_body_info, use
22297         ipcp_modif_dom_walker, moved a lot of functionality there.
22299 2014-05-23  Marek Polacek  <polacek@redhat.com>
22300             Jakub Jelinek  <jakub@redhat.com>
22302         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
22303         * gcc.c (sanitize_spec_function): Likewise.
22304         * convert.c (convert_to_integer): Include "ubsan.h".  Add
22305         floating-point to integer instrumentation.
22306         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
22307         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
22308         SANITIZE_NONDEFAULT.
22309         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
22310         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
22311         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
22312         * ubsan.c: Include "realmpfr.h" and "dfp.h".
22313         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
22314         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
22315         float/double/long double.
22316         (ubsan_instrument_float_cast): New function.
22317         * ubsan.h (ubsan_instrument_float_cast): Declare.
22319 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
22321         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
22322         predicate.
22323         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
22324         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
22325         Adjust for tailcalling through registers.
22326         * config/aarch64/aarch64.h (enum reg_class): New caller save
22327         register class.
22328         (REG_CLASS_NAMES): Likewise.
22329         (REG_CLASS_CONTENTS): Likewise.
22330         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
22331         Allow tailcalling without decls.
22333 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
22335         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
22336         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
22338         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
22339         gsi, and variables v_* to v*.
22341 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
22343         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
22345 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
22347         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
22348         * omp-low.c: Update accordingly.
22350         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
22351         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
22352         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
22353         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
22354         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
22355         GF_OMP_TARGET_KIND_UPDATE.
22357         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
22358         Explicitly enumerate the expected region types.
22360 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
22362         PR other/56955
22363         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
22364         documentation; the old documentation didn't clearly state the
22365         constraints on the contents of the pointed-to storage.
22367 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22369         Fix bootstrap error on ia64
22370         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
22371         Return default value.
22373 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22375         PR tree-optimization/54733
22376         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
22377         (CMPNOP): Define.
22378         (find_bswap_or_nop_load): New.
22379         (find_bswap_1): Renamed to ...
22380         (find_bswap_or_nop_1): This. Also add support for memory source.
22381         (find_bswap): Renamed to ...
22382         (find_bswap_or_nop): This. Also add support for memory source and
22383         detection of bitwise operations equivalent to load in target
22384         endianness.
22385         (execute_optimize_bswap): Likewise. Also move its leading comment back
22386         in place and split statement transformation into ...
22387         (bswap_replace): This.
22389 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
22391         PR rtl-optimization/61215
22392         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
22393         simplify_gen_subreg until final substitution.
22395 2014-05-23  Alan Modra  <amodra@gmail.com>
22397         PR target/61231
22398         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
22399         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
22400         Use "Y" constraint rather than "m".
22402 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
22404         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
22405         define.
22406         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
22407         New function declaration.
22408         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
22409         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
22410         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
22411         (aarch64_init_builtins) : Initialize builtins
22412         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
22413         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
22414         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
22415         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
22416         and __builtins_aarch64_set_fpsr.
22417         (aarch64_atomic_assign_expand_fenv): New function.
22418         * config/aarch64/aarch64.md (set_fpcr): New pattern.
22419         (get_fpcr) : Likewise.
22420         (set_fpsr) : Likewise.
22421         (get_fpsr) : Likewise.
22422         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
22423          and UNSPECV_SET_FPSR.
22424         * doc/extend.texi (AARCH64 Built-in Functions) : Document
22425         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
22426         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
22428 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
22430         PR rtl-optimization/60969
22431         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
22432         constraints.  Set up mem cost for NO_REGS case.
22434 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
22436         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
22438 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
22440         * config/darwin.c: Include "lto-section-names.h".
22441         (LTO_SEGMENT_NAME): Don't define.
22442         * config/i386/winnt.c: Include "lto-section-names.h".
22443         * lto-streamer.c: Include "lto-section-names.h".
22444         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
22445         * lto-wrapper.c: Include "lto-section-names.h".
22446         (LTO_SECTION_NAME_PREFIX): Don't define.
22447         * lto-section-names.h: New file.
22448         * cgraphunit.c: Include "lto-section-names.h".
22450 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
22452         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
22454 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
22456         PR target/61208
22457         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
22459 2014-05-22  Nick Clifton  <nickc@redhat.com>
22461         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
22463 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
22465         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
22466         -> (T)A transformation to integer types.
22468 2014-05-22  Teresa Johnson  <tejohnson@google.com>
22470         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
22471         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
22472         (gcov_rewrite): Use gcov_nonruntime_assert.
22473         (gcov_open): Ditto.
22474         (gcov_write_words): Ditto.
22475         (gcov_write_length): Ditto.
22476         (gcov_read_words): Use gcov_nonruntime_assert, and remove
22477         gcc_assert from IN_LIBGCOV code.
22478         (gcov_read_summary): Use gcov_error to flag profile corruption.
22479         (gcov_sync): Use gcov_nonruntime_assert.
22480         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
22481         (gcov_histo_index): Use gcov_nonruntime_assert.
22482         (static void gcov_histogram_merge): Ditto.
22483         (compute_working_sets): Ditto.
22484         * gcov-io.h (gcov_nonruntime_assert): Define.
22485         (gcov_error): Define for !IN_LIBGCOV
22487 2014-05-22  Richard Biener  <rguenther@suse.de>
22489         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22490         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
22491         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
22492         and deallocation site.
22493         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22494         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
22495         passing through the incoming points-to set.
22496         (handle_lhs_call): Use flags argument instead of recomputing it.
22497         (find_func_aliases_for_call): Call handle_lhs_call with proper
22498         call return flags.
22500 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
22502         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
22503         all padding bits in REAL_VALUE_TYPE are cleared.
22505 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22507         Cleanup and improve multipass_dfa_lookahead_guard
22508         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
22509         (core2i7_first_cycle_multipass_begin,)
22510         (core2i7_first_cycle_multipass_issue,)
22511         (core2i7_first_cycle_multipass_backtrack): Update signature.
22512         * config/ia64/ia64.c
22513         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
22514         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
22515         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
22516         hook definition.
22517         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
22518         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
22519         values.
22520         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
22521         return values.
22522         * doc/tm.texi: Regenerate.
22523         * doc/tm.texi.in
22524         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
22525         * haifa-sched.c (ready_try): Make signed to allow negative values.
22526         (rebug_ready_list_1): Update.
22527         (choose_ready): Simplify.
22528         (sched_extend_ready_list): Update.
22530 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22532         Remove IA64 speculation tweaking flags
22533         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
22534         speculation tuning flags.
22535         (msched-prefer-non-data-spec-insns,)
22536         (msched-prefer-non-control-spec-insns): Obsolete options.
22537         * haifa-sched.c (choose_ready): Remove handling of
22538         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
22539         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
22540         and PREFER_NON_DATA_SPEC.
22541         * sel-sched.c (process_spec_exprs): Remove handling of
22542         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
22544 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22546         Improve scheduling debug output
22547         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
22548         (advance_one_cycle): Update.
22549         (schedule_insn, queue_to_ready): Add debug printouts.
22550         (debug_ready_list_1): New static function.
22551         (debug_ready_list): Update.
22552         (max_issue): Add debug printouts.
22553         (dump_insn_stream): New static function.
22554         (schedule_block): Use it.  Also better indent printouts.
22556 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22558         Fix sched_insn debug counter
22559         * haifa-sched.c (schedule_insn): Update.
22560         (struct haifa_saved_data): Add nonscheduled_insns_begin.
22561         (save_backtrack_point, restore_backtrack_point): Update.
22562         (first_nonscheduled_insn): New static function.
22563         (queue_to_ready, choose_ready): Use it.
22564         (schedule_block): Init nonscheduled_insns_begin.
22565         (sched_emit_insn): Update.
22568 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
22570         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
22571         to GENERAL_REGS.
22572         (aarch64_secondary_reload) : LikeWise.
22573         (aarch64_class_max_nregs) : Remove CORE_REGS.
22574         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
22575         (REG_CLASS_NAMES) : Likewise.
22576         (REG_CLASS_CONTENTS) : LikeWise.
22577         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
22579 2014-05-21  Guozhi Wei  <carrot@google.com>
22581         PR target/61202
22582         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
22583         constraint.
22584         (vqdmulhq_n_s16): Likewise.
22586 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
22588         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
22590 2014-05-21  Marek Polacek  <polacek@redhat.com>
22592         PR sanitizer/61272
22593         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
22595 2014-05-21  Martin Jambor  <mjambor@suse.cz>
22597         * doc/invoke.texi (Optimize Options): Document parameters
22598         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
22599         ipa-cp-array-index-hint-bonus.
22601 2014-05-21  Mark Wielaard  <mjw@redhat.com>
22603         PR debug/16063
22604         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
22605         version >= 3 or not strict DWARF.
22606         * langhooks.h (struct lang_hooks_for_types): Add
22607         enum_underlying_base_type.
22608         * langhooks.c (lhd_enum_underlying_base_type): New function.
22609         * gcc/langhooks.h (struct lang_hooks_for_types): Add
22610         enum_underlying_base_type.
22611         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
22612         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
22613         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
22615 2014-05-21  Richard Biener  <rguenther@suse.de>
22617         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
22619 2014-05-21  John Marino  <gnugcc@marino.st>
22621         * config.gcc (*-*-dragonfly*): New target.
22622         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
22623         * configure: Regenerate.
22624         * config/dragonfly-stdint.h: New.
22625         * config/dragonfly.h: New.
22626         * config/dragonfly.opt: New.
22627         * config/i386/dragonfly.h: New.
22628         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
22630 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
22632         * tree.def (VOID_CST): New.
22633         * tree-core.h (TI_VOID): New.
22634         * tree.h (void_node): New.
22635         * tree.c (tree_node_structure_for_code, tree_code_size)
22636         (iterative_hash_expr): Handle VOID_CST.
22637         (build_common_tree_nodes): Initialize void_node.
22639 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
22641         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
22642         functions.
22643         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
22645         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
22646         more places.
22648         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
22649         flag_reorder_blocks_and_partition.
22650         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
22652 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
22654         PR target/54236
22655         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
22656         constraints.
22657         (*addc_r_t): Add new insn_and_split.
22659 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
22661         PR middle-end/61252
22662         * omp-low.c (handle_simd_reference): New function.
22663         (lower_rec_input_clauses): Use it.  Defer adding reference
22664         initialization even for reduction without placeholder if in simd,
22665         handle it properly later on.
22667 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22669         PR tree-optimization/60899
22670         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
22671         assume all static symbols will have definition wile parsing and
22672         check the do have definition later in compilation; check that
22673         variable referring symbol will be output before concluding that
22674         reference is safe; be conservative for referring local statics;
22675         be more precise about when comdat is output in other partition.
22677 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22679         PR bootstrap/60984
22680         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
22681         parameter.
22682         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
22683         (ipa_inline): Loop inline_to_all_callers until no more aliases
22684         are removed.
22686 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22688         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
22689         set writeonly flag only for vars actually written to.
22691 2014-05-20  Dehao Chen  <dehao@google.com>
22693         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
22694         and callee count to get clone count.
22695         * tree-inline.c (expand_call_inline): Use callee count instead of bb
22696         count in copy_body.
22698 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
22700         PR rtl-optimization/61243
22701         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
22703 2014-05-20  Xinliang David Li  <davidxl@google.com>
22705         * cgraphunit.c (walk_polymorphic_call_targets): Add
22706         dbgcnt and fopt-info support.
22707         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
22708         * ipa-devirt.c (ipa_devirt): Ditto.
22709         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
22710         * ipa.c (walk_polymorphic_call_targets): Ditto.
22711         * gimple-fold.c (fold_gimple_assign): Ditto.
22712         (gimple_fold_call): Ditto.
22713         * dbgcnt.def: New counter.
22715 2014-05-20  DJ Delorie  <dj@redhat.com>
22717         * config/msp430/msp430.md (split): Don't allow subregs when
22718         splitting SImode adds.
22719         (andneghi): Fix subtraction logic.
22720         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
22722 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22724         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
22725         symbols.
22726         * except.c (switch_to_exception_section, resolve_unique_section,
22727         get_named_text_section, default_function_rodata_section,
22728         align_variable, get_block_for_decl, default_section_type_flags):
22729         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
22730         * symtab.c (symtab_add_to_same_comdat_group,
22731         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
22732         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
22733         Likewise.
22734         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
22735         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
22736         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
22737         (c6x_function_in_section_p): Likewise.
22738         * config/darwin.c (machopic_select_section): Likewise.
22739         * config/arm/arm.c (arm_function_in_section_p): Likewise.
22740         * config/mips/mips.c (mips_function_rodata_section): Likewise.
22741         * config/mep/mep.c (mep_select_section): LIkewise.
22742         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
22744 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
22746         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
22747         EH region of calls to pure functions that can throw an exception.
22748         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
22749         (copy_reference_ops_from_call): Also copy the EH region of the call if
22750         it can throw an exception.
22752 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22754         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
22755         nested VEC_SELECTs that are inverses of each other.
22757 2014-05-20  Richard Biener  <rguenther@suse.de>
22759         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
22760         (extract_and_process_scc_for_name): not here.
22761         (cond_dom_walker::before_dom_children): Only process
22762         stmts that end the BB in interesting ways.
22763         (run_scc_vn): Mark param uses as visited.
22765 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22767         * config/arm/arm.md (arith_shiftsi): Do not predicate for
22768         arm_restrict_it.
22770 2014-05-20  Nick Clifton  <nickc@redhat.com>
22772         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
22773         (msp430_gimplify_va_arg_expr): New function.
22774         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
22776         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
22777         operand 0 in order to prevent confusion about the number of
22778         registers involved.
22780 2014-05-20  Richard Biener  <rguenther@suse.de>
22782         PR tree-optimization/61221
22783         * tree-ssa-pre.c (el_to_update): Remove.
22784         (eliminate_dom_walker::before_dom_children): Handle released
22785         VDEFs by value-numbering them to the associated VUSE.  Update
22786         stmt immediately for substituted call address.
22787         (eliminate): Remove delayed stmt updating code.
22788         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
22789         possibly late re-numbered vuses.
22790         (vn_reference_lookup_2): Adjust.
22791         (vn_reference_lookup_pieces): Likewise.
22792         (vn_reference_lookup): Likewise.
22794 2014-05-20  Richard Biener  <rguenther@suse.de>
22796         * config.gcc: Remove need_64bit_hwint.
22797         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
22798         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
22799         it to be true.
22800         * config.in: Regenerate.
22801         * configure: Likewise.
22803 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
22805         * doc/extend.texi: Create Label Attributes section,
22806         move all label attributes into it and reference it.
22808 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
22810         * arm.c (thumb1_reorg): When scanning backwards skip anything
22811         that's not a proper insn.
22813 2014-05-19  Richard Biener  <rguenther@suse.de>
22815         PR tree-optimization/61221
22816         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22817         Do nothing for unreachable blocks.
22818         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
22819         Improve unreachability detection.
22821 2014-05-19  Richard Biener  <rguenther@suse.de>
22823         PR tree-optimization/61209
22824         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
22826 2014-05-19  Nick Clifton  <nickc@redhat.com>
22828         * except.c (init_eh): Fix computation of builtin setjmp buffer
22829         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
22831 2014-05-19  Richard Biener  <rguenther@suse.de>
22833         PR tree-optimization/61184
22834         * tree-vrp.c (is_negative_overflow_infinity): Use
22835         TREE_OVERFLOW_P and do that check first.
22836         (is_positive_overflow_infinity): Likewise.
22837         (is_overflow_infinity): Likewise.
22838         (vrp_operand_equal_p): Properly treat operands with
22839         differing overflow as not equal.
22841 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
22843         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
22844         shift simplification where it was intended.
22846 2014-05-19  Christian Bruel  <christian.bruel@st.com>
22848         PR target/61195
22849         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
22851 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
22853         PR target/61084
22854         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
22855         than wide_int.
22857 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
22859         * reg-notes.def (CROSSING_JUMP): Likewise.
22860         * rtl.h (rtx_def): Update comment for jump flag.
22861         (CROSSING_JUMP_P): Define.
22862         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
22863         of a REG_CROSSING_JUMP note.
22864         * cfghooks.c (tidy_fallthru_edges): Likewise.
22865         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
22866         * emit-rtl.c (try_split): Likewise.
22867         * haifa-sched.c (sched_create_recovery_edges): Likewise.
22868         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
22869         * jump.c (redirect_jump_2): Likewise.
22870         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
22871         (relax_delay_slots): Likewise.
22872         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
22873         (bbit_di): Likewise.
22874         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
22875         * config/sh/sh.md (jump_compact): Likewise.
22876         * bb-reorder.c (rotate_loop): Likewise.
22877         (pass_duplicate_computed_gotos::execute): Likewise.
22878         (add_reg_crossing_jump_notes): Rename to...
22879         (update_crossing_jump_flags): ...this.
22880         (pass_partition_blocks::execute): Update accordingly.
22882 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
22884         * tree.h: Remove extraneous template <>.
22886 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
22888         * ipa.c (symtab_remove_unreachable_nodes): Remove
22889         symbol from comdat group if its body was eliminated.
22890         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
22891         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
22892         (symtab_unregister_node): ... this one.
22893         (verify_symtab_base): More strict checking of comdats.
22894         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
22896 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
22898         * tree-pass.h (make_pass_ipa_comdats): New pass.
22899         * timevar.def (TV_IPA_COMDATS): New timevar.
22900         * passes.def (pass_ipa_comdats): Add.
22901         * Makefile.in (OBJS): Add ipa-comdats.o
22902         * ipa-comdats.c: New file.
22904 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
22906         * ipa.c (update_visibility_by_resolution_info): New function.
22907         (function_and_variable_visibility): Use it.
22909 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
22911         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
22912         New functions.
22913         (FOR_EACH_DEFINED_SYMBOL): New macro.
22914         (varpool_first_static_initializer, varpool_next_static_initializer,
22915         varpool_first_defined_variable, varpool_next_defined_variable):
22916         Fix comments.
22917         (symtab_in_same_comdat_p): Correctly deal with inline functions.
22919 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22921         * ggc-page.c (ggc_handle_finalizers): Add comment.
22923 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22925         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
22926         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
22927         (ggc_internal_cleared_alloc): Likewise.
22928         * ggc-page.c (finalizer): New class.
22929         (vec_finalizer): Likewise.
22930         (globals::finalizers): New member.
22931         (globals::vec_finalizers): Likewise.
22932         (ggc_internal_alloc): Record the finalizer if any for the block being
22933         allocated.
22934         (ggc_handle_finalizers): New function.
22935         (ggc_collect): Call ggc_handle_finalizers.
22936         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
22937         finalizer.
22938         (ggc_internal_cleared_alloc): Likewise.
22939         (finalize): New function.
22940         (need_finalization_p): Likewise.
22941         (ggc_alloc): Install the type's destructor as the finalizer if it
22942         might do something.
22943         (ggc_cleared_alloc): Likewise.
22944         (ggc_vec_alloc): Likewise.
22945         (ggc_cleared_vec_alloc): Likewise.
22947 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22949         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
22951 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
22953         * alias.c (record_alias_subset): Adjust.
22954         * bitmap.c (bitmap_element_allocate): Likewise.
22955         (bitmap_gc_alloc_stat): Likewise.
22956         * cfg.c (init_flow): Likewise.
22957         (alloc_block): Likewise.
22958         (unchecked_make_edge): Likewise.
22959         * cfgloop.c (alloc_loop): Likewise.
22960         (flow_loops_find): Likewise.
22961         (rescan_loop_exit): Likewise.
22962         * cfgrtl.c (init_rtl_bb_info): Likewise.
22963         * cgraph.c (insert_new_cgraph_node_version): Likewise.
22964         (cgraph_allocate_node): Likewise.
22965         (cgraph_create_edge_1): Likewise.
22966         (cgraph_allocate_init_indirect_info): Likewise.
22967         * cgraphclones.c (cgraph_clone_edge): Likewise.
22968         * cgraphunit.c (add_asm_node): Likewise.
22969         (init_lowered_empty_function): Likewise.
22970         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
22971         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
22972         (alpha_use_linkage): Likewise.
22973         * config/arc/arc.c (arc_init_machine_status): Likewise.
22974         * config/arm/arm.c (arm_init_machine_status): Likewise.
22975         * config/avr/avr.c (avr_init_machine_status): Likewise.
22976         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
22977         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
22978         * config/cris/cris.c (cris_init_machine_status): Likewise.
22979         * config/darwin.c (machopic_indirection_name): Likewise.
22980         (darwin_build_constant_cfstring): Likewise.
22981         (darwin_enter_string_into_cfstring_table): Likewise.
22982         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
22983         * config/frv/frv.c (frv_init_machine_status): Likewise.
22984         * config/i386/i386.c (get_dllimport_decl): Likewise.
22985         (ix86_init_machine_status): Likewise.
22986         (assign_386_stack_local): Likewise.
22987         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
22988         (i386_pe_maybe_record_exported_symbol): Likewise.
22989         (i386_pe_record_stub): Likewise.
22990         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
22991         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
22992         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
22993         (m32c_note_pragma_address): Likewise.
22994         * config/mep/mep.c (mep_init_machine_status): Likewise.
22995         (mep_note_pragma_flag): Likewise.
22996         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
22997         (mips16_local_alias): Likewise.
22998         (mips_init_machine_status): Likewise.
22999         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
23000         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
23001         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
23002         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
23003         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
23004         * config/pa/pa.c (pa_init_machine_status): Likewise.
23005         (pa_get_deferred_plabel): Likewise.
23006         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
23007         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
23008         (rs6000_init_machine_status): Likewise.
23009         (output_toc): Likewise.
23010         * config/s390/s390.c (s390_init_machine_status): Likewise.
23011         * config/score/score.c (score_output_external): Likewise.
23012         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
23013         * config/spu/spu.c (spu_init_machine_status): Likewise.
23014         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
23015         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
23016         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
23017         * coverage.c (coverage_end_function): Likewise.
23018         * dbxout.c (dbxout_init): Likewise.
23019         * doc/gty.texi: Don't mention variable_size attribute.
23020         * dwarf2cfi.c (new_cfi): Adjust.
23021         (new_cfi_row): Likewise.
23022         (copy_cfi_row): Likewise.
23023         (create_cie_data): Likewise.
23024         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
23025         (new_loc_descr): Likewise.
23026         (find_AT_string_in_table): Likewise.
23027         (add_addr_table_entry): Likewise.
23028         (new_die): Likewise.
23029         (add_var_loc_to_decl): Likewise.
23030         (clone_die): Likewise.
23031         (clone_as_declaration): Likewise.
23032         (break_out_comdat_types): Likewise.
23033         (new_loc_list): Likewise.
23034         (add_loc_descr_to_each): Likewise.
23035         (add_location_or_const_value_attribute): Likewise.
23036         (add_linkage_name): Likewise.
23037         (lookup_filename): Likewise.
23038         (dwarf2out_var_location): Likewise.
23039         (new_line_info_table): Likewise.
23040         (dwarf2out_init): Likewise.
23041         (mem_loc_descriptor): Likewise.
23042         (loc_descriptor): Likewise.
23043         (add_const_value_attribute): Likewise.
23044         (tree_add_const_value_attribute): Likewise.
23045         (comp_dir_string): Likewise.
23046         (dwarf2out_vms_debug_main_pointer): Likewise.
23047         (string_cst_pool_decl): Likewise.
23048         * emit-rtl.c (set_mem_attrs): Likewise.
23049         (get_reg_attrs): Likewise.
23050         (start_sequence): Likewise.
23051         (init_emit): Likewise.
23052         (init_emit_regs): Likewise.
23053         * except.c (init_eh_for_function): Likewise.
23054         (gen_eh_region): Likewise.
23055         (gen_eh_region_catch): Likewise.
23056         (gen_eh_landing_pad): Likewise.
23057         (add_call_site): Likewise.
23058         * function.c (add_frame_space): Likewise.
23059         (insert_temp_slot_address): Likewise.
23060         (assign_stack_temp_for_type): Likewise.
23061         (get_hard_reg_initial_val): Likewise.
23062         (allocate_struct_function): Likewise.
23063         (prepare_function_start): Likewise.
23064         (types_used_by_var_decl_insert): Likewise.
23065         * gengtype.c (variable_size_p): Remove function.
23066         (enum alloc_quantity): Remove enum.
23067         (write_typed_alloc_def): Remove function.
23068         (write_typed_struct_alloc_def): Likewise.
23069         (write_typed_typedef_alloc_def): Likewise.
23070         (write_typed_alloc_defns): Likewise.
23071         (main): Adjust.
23072         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
23073         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
23074         * ggc.h (ggc_alloc): new function.
23075         (ggc_cleared_alloc): Likewise.
23076         (ggc_vec_alloc): Template on type of vector element, and remove
23077         element size argument.
23078         (ggc_cleared_vec_alloc): Likewise.
23079         * gimple.c (gimple_build_omp_for): Adjust.
23080         (gimple_copy): Likewise.
23081         * ipa-cp.c (get_replacement_map): Likewise.
23082         (find_aggregate_values_for_callers_subset): Likewise.
23083         (known_aggs_to_agg_replacement_list): Likewise.
23084         * ipa-devirt.c (get_odr_type): Likewise.
23085         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
23086         (read_agg_replacement_chain): Likewise.
23087         * loop-iv.c (get_simple_loop_desc): Likewise.
23088         * lto-cgraph.c (input_node_opt_summary): Likewise.
23089         * lto-section-in.c (lto_new_in_decl_state): Likewise.
23090         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
23091         (input_eh_region): Likewise.
23092         (input_eh_lp): Likewise.
23093         (input_cfg): Likewise.
23094         * optabs.c (set_optab_libfunc): Likewise.
23095         (init_tree_optimization_optabs): Likewise.
23096         (set_conv_libfunc): Likewise.
23097         * passes.c (do_per_function_toporder): Likewise.
23098         * rtl.h: Don't use variable_size gty attribute.
23099         * sese.c (if_region_set_false_region): Adjust.
23100         * stringpool.c (gt_pch_save_stringpool): Likewise.
23101         * target-globals.c (save_target_globals): Likewise.
23102         * toplev.c (general_init): Likewise.
23103         * trans-mem.c (record_tm_replacement): Likewise.
23104         (split_bb_make_tm_edge): Likewise.
23105         * tree-cfg.c (move_sese_region_to_fn): Likewise.
23106         * tree-data-ref.h (lambda_vector_new): Likewise.
23107         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
23108         * tree-iterator.c (tsi_link_before): Likewise.
23109         (tsi_link_after): Likewise.
23110         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
23111         * tree-ssa-loop-niter.c (record_estimate): Likewise.
23112         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
23113         * tree-ssa-operands.h: Don't use variable_size gty attribute.
23114         * tree-ssa.c (init_tree_ssa): Adjust.
23115         * tree-ssanames.c (set_range_info): Likewise.
23116         (get_ptr_info): Likewise.
23117         (duplicate_ssa_name_ptr_info): Likewise.
23118         (duplicate_ssa_name_range_info): Likewise.
23119         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
23120         (unpack_ts_fixed_cst_value_fields): Likewise.
23121         * tree.c (build_fixed): Likewise.
23122         (build_real): Likewise.
23123         (build_string): Likewise.
23124         (decl_priority_info): Likewise.
23125         (decl_debug_expr_insert): Likewise.
23126         (decl_value_expr_insert): Likewise.
23127         (decl_debug_args_insert): Likewise.
23128         (type_hash_add): Likewise.
23129         (build_omp_clause): Likewise.
23130         * ubsan.c (decl_for_type_insert): Likewise.
23131         * varasm.c (get_unnamed_section): Likewise.
23132         (get_noswitch_section): Likewise.
23133         (get_section): Likewise.
23134         (get_block_for_section): Likewise.
23135         (create_block_symbol): Likewise.
23136         (build_constant_desc): Likewise.
23137         (create_constant_pool): Likewise.
23138         (force_const_mem): Likewise.
23139         (record_tm_clone_pair): Likewise.
23140         * varpool.c (varpool_create_empty_node): Likewise.
23142 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
23144         * dwarf2out.c (tree_add_const_value_attribute): Call
23145         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
23146         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
23147         instead of ggc_internal_<x>alloc_stat.
23148         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
23149         (ggc_realloc): Likewise.
23150         * ggc-none.c (ggc_internal_alloc): Likewise.
23151         (ggc_internal_cleared_alloc): Likewise.
23152         * ggc-page.c: Likewise.
23153         * ggc.h (ggc_internal_alloc_stat): Likewise.
23154         (ggc_internal_alloc): Remove macro.
23155         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
23156         (ggc_internal_cleared_alloc): Remove macro.
23157         (GGC_RESIZEVEC): Adjust.
23158         (ggc_resizevar): Remove macro.
23159         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
23160         (ggc_internal_cleared_vec_alloc_stat): Likewise.
23161         (ggc_internal_vec_cleared_alloc): Remove macro.
23162         (ggc_alloc_atomic_stat): Drop _stat suffix.
23163         (ggc_alloc_atomic): Remove macro.
23164         (ggc_alloc_cleared_atomic): Remove macro.
23165         (ggc_alloc_string_stat): Drop _stat suffix.
23166         (ggc_alloc_string): Remove macro.
23167         (ggc_alloc_rtx_def_stat): Adjust.
23168         (ggc_alloc_tree_node_stat): Likewise.
23169         (ggc_alloc_cleared_tree_node_stat): Likewise.
23170         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
23171         (ggc_alloc_cleared_simd_clone_stat): Likewise.
23172         * gimple.c (gimple_build_omp_for): Likewise.
23173         (gimple_copy): Likewise.
23174         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
23175         * toplev.c (realloc_for_line_map): Adjust.
23176         * tree-data-ref.h (lambda_vector_new): Likewise.
23177         * tree-phinodes.c (allocate_phi_node): Likewise.
23178         * tree.c (grow_tree_vec_stat): Likewise.
23179         * vec.h (va_gc::reserve): Adjust.
23181 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
23183         * config/microblaze/microblaze.c (break_handler): New Declaration.
23184         (microblaze_break_function_p,microblaze_is_break_handler): New.
23185         (compute_frame_size): Use microblaze_break_function_p.
23186         Add the test of break_handler.
23187         (microblaze_function_prologue) : Add the test of variable
23188         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
23189         (microblaze_function_epilogue) : Add the test of break_handler.
23190         (microblaze_globalize_label) : Add the test of break_handler.
23191         Check the name by BREAK_HANDLER_NAME.
23193         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
23195         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
23196         microblaze_is_break_handler test.
23197         (call_internal1,call_value_intern): Use microblaze_break_function_p.
23198         Use SYMBOL_REF_DECL.
23200         * config/microblaze/microblaze-protos.h
23201         (microblaze_break_function_p,microblaze_is_break_handler):
23202         New Declaration.
23204         * doc/extend.texi (MicroBlaze break_handler Functions): Document
23205         new MicroBlaze break_handler functions.
23207 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
23209         * doc/extend.texi (Size of an asm): Move node text according
23210         to its @menu entry position.
23212 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
23214         PR tree-optimization/61140
23215         PR tree-optimization/61150
23216         PR tree-optimization/61197
23217         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
23219 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
23221         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
23223 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
23225         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
23226         __SIZEOF_INT128__ is defined.
23228 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
23230         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
23231         (rs6000_delegitimize_address): Use it.
23233 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
23235         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
23236         inplace argument.  Store the new address in the original MEM when true.
23237         * emit-rtl.c (change_address_1): Likewise.
23238         (adjust_address_1, adjust_automodify_address_1, offset_address):
23239         Update accordingly.
23240         * rtl.h (plus_constant): Add an inplace argument.
23241         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
23242         when true.  Avoid generating (plus X (const_int 0)).
23243         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
23244         in-place.  Pass true to plus_constant.
23245         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
23247 2014-05-16  Dehao Chen  <dehao@google.com>
23249         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
23251 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
23253         PR target/54089
23254         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
23255         patterns.
23256         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
23258 2014-05-16  Dehao Chen  <dehao@google.com>
23260         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
23261         optimize_function_for_size_p.
23262         * regs.h (REG_FREQ_FROM_BB): Likewise.
23264 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
23266         PR target/51244
23267         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
23268         negt_reg_operand cases.
23269         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
23270         predicate.
23271         * config/sh/predicates.md (cbranch_treg_value): Simplify.
23273 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
23275         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
23276         target variants.
23278 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
23280         Revert:
23281         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
23283         * tree-cfg.c (dump_function_to_file): Dump the return type of
23284         functions, in a line to itself before the function body, mimicking
23285         the layout of a C function.
23287 2014-05-16  Dehao Chen  <dehao@google.com>
23289         * cfghooks.c (make_forwarder_block): Use direct computation to
23290         get fall-through edge's count and frequency.
23292 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
23294         * config/arc/arc.c (arc_init): Fix typo in error message.
23295         * config/i386/i386.c (ix86_expand_builtin): Likewise.
23296         (split_stack_prologue_scratch_regno): Likewise.
23297         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
23298         word from error message.
23300 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23302         * ira-costs.c: Fix typo in comment.
23304 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
23306         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
23308 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
23310         * varpool.c (dump_varpool_node): Dump write-only flag.
23311         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
23312         write-only flag.
23313         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
23314         write-only variables.
23315         * ipa.c (process_references): New function.
23316         (set_readonly_bit): New function.
23317         (set_writeonly_bit): New function.
23318         (clear_addressable_bit): New function.
23319         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
23320         fix handling of aliases.
23321         * cgraph.h (struct varpool_node): Add writeonly flag.
23323 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
23325         PR rtl-optimization/60969
23326         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
23327         Calculate costs for this case.
23329 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
23331         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
23332         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
23334 2014-05-16  Richard Biener  <rguenther@suse.de>
23336         PR tree-optimization/61194
23337         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
23338         bool patterns ending in a COND_EXPR.
23340 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23342         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
23344 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23346         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
23347         where we were unable to cost an RTX.
23349 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23351         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
23352         HIGH, LO_SUM.
23354 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23355             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23357         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
23359 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23360             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23362         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
23363         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
23365 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23366             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23368         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
23369         operators.
23371 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23372             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23374         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
23375         DIV/MOD.
23377 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23378             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23380         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
23381         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
23383 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23384             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23386         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
23387         rotates and shifts.
23389 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23390             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23392         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
23393         ZERO_EXTEND and SIGN_EXTEND better.
23395 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23396             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23398         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
23399         logical operations.
23401 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23402             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23404         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
23405         costs when costing loads and stores to memory.
23407 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23408             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
23410         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
23411         for SET RTX.
23413 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23415         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
23417 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23418             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23420         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
23421         to...
23422         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
23423         well formed.
23424         (aarch64_rtx_mult_cost): New.
23425         (aarch64_rtx_costs): Use it, refactor as appropriate.
23427 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23428             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23430         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
23431         emit instructions, return number of instructions which would
23432         be emitted.
23433         (aarch64_add_constant): Update call to aarch64_build_constant.
23434         (aarch64_output_mi_thunk): Likewise.
23435         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
23436         a CONST_DOUBLE.
23438 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23440         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
23441         (TARGET_RTX_COSTS): Call it.
23443 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23445         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
23446         (cortexa57_vector_cost): Likewise.
23447         (cortexa57_tunings): Use them.
23449 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23451         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
23452         (cpu_addrcost_table): Use it.
23453         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
23454         (aarch64_address_cost): Rewrite using aarch64_classify_address,
23455         move it.
23457 2014-05-16  Richard Biener  <rguenther@suse.de>
23459         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
23460         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
23461         (visit_phi): Ignore edges marked as not executable.
23462         (class cond_dom_walker): New.
23463         (cond_dom_walker::before_dom_children): Value-number
23464         control statements and mark successor edges as not
23465         executable if possible.
23466         (run_scc_vn): First walk all control statements in
23467         dominator order, marking edges as not executable.
23468         * tree-inline.c (copy_edges_for_bb): Be not confused
23469         about random edge flags.
23471 2014-05-16  Richard Biener  <rguenther@suse.de>
23473         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
23475 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
23477         PR target/61193
23478         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
23479         (__TM_simple_begin): Use it.
23480         (__TM_begin): Likewise.
23482 2014-05-15  Martin Jambor  <mjambor@suse.cz>
23484         PR ipa/61085
23485         * ipa-prop.c (update_indirect_edges_after_inlining): Check
23486         type_preserved flag when the indirect edge is polymorphic.
23488 2014-05-15  Martin Jambor  <mjambor@suse.cz>
23490         PR tree-optimization/61090
23491         * tree-sra.c (sra_modify_expr): Pass the current gsi to
23492         build_ref_for_model.
23494 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23496         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
23497         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
23499 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
23501         PR tree-optimization/61158
23502         * fold-const.c (fold_binary_loc): If X is zero-extended and
23503         shiftc >= prec, make sure zerobits is all ones instead of
23504         invoking undefined behavior.
23506 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23508         * regcprop.h: New file.
23509         * regcprop.c (skip_debug_insn_p): New decl.
23510         (replace_oldest_value_reg): Check skip_debug_insn_p.
23511         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
23512         * shrink-wrap.c: Include regcprop.h.
23513         (prepare_shrink_wrap): Call
23514         copyprop_hardreg_forward_bb_without_debug_insn.
23516 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23518         * shrink-wrap.h: Update comment.
23519         * shrink-wrap.c: Update comment.
23520         (next_block_for_reg): Rename to live_edge_for_reg.
23521         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
23522         (move_insn_for_shrink_wrap): Split live_edge.
23523         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
23525 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
23527         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
23528         Delete.
23529         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
23530         * config/sparc/sparc.md (fptype_ut699): New attribute.
23531         (in_branch_delay): Return false if -mfix-ut699 is specified and
23532         fptype_ut699 is set to single.
23533         (truncdfsf2): Add fptype_ut699 attribute.
23534         (fix_truncdfsi2): Likewise.
23535         (floatsisf2): Change fptype attribute.
23536         (fix_truncsfsi2): Likewise.
23537         (negtf2_notv9): Delete.
23538         (negtf2_v9): Likewise.
23539         (negtf2_hq): New instruction.
23540         (negtf2): New instruction and splitter.
23541         (negdf2_notv9): Rewrite.
23542         (abstf2_notv9): Delete.
23543         (abstf2_hq_v9): Likewise.
23544         (abstf2_v9): Likewise.
23545         (abstf2_hq): New instruction.
23546         (abstf2): New instruction and splitter.
23547         (absdf2_notv9): Rewrite.
23549 2014-05-14  Cary Coutant  <ccoutant@google.com>
23551         PR debug/61013
23552         * opts.c (common_handle_option): Don't special-case "-g".
23553         (set_debug_level): Default to at least level 2 with "-g".
23555 2014-05-14  DJ Delorie  <dj@redhat.com>
23557         * config/msp430/msp430.c (msp430_builtin): Add
23558         MSP430_BUILTIN_DELAY_CYCLES.
23559         (msp430_init_builtins): Register void __delay_cycles(long long).
23560         (msp430_builtin_decl): Add it.
23561         (cg_magic_constant): New.
23562         (msp430_expand_delay_cycles): New.
23563         (msp430_expand_builtin): Call it.
23564         (msp430_print_operand_raw): Change integer printing from "int" to
23565         HOST_WIDE_INT.
23566         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
23567         (delay_cycles_start): New.
23568         (delay_cycles_end): New.
23569         (delay_cycles_32): New.
23570         (delay_cycles_32x): New.
23571         (delay_cycles_16): New.
23572         (delay_cycles_16x): New.
23573         (delay_cycles_2): New.
23574         (delay_cycles_1): New.
23575         * doc/extend.texi: Document __delay_cycles().
23577 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
23579         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
23580         length attribute computation.
23582 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
23584         PR debug/61188
23585         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
23587 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
23589         PR target/61084
23590         * config/sparc/sparc.md: Fix types of low and high in DI constant
23591         splitter.  Use gen_int_mode in some other splitters.
23593 2014-05-14  Martin Jambor  <mjambor@suse.cz>
23595         PR ipa/60897
23596         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
23598 2014-05-14  James Norris  <jnorris@codesourcery.com>
23600         * omp-low.c (expand_parallel_call): Remove shadow variable.
23601         (expand_omp_taskreg): Likewise.
23603 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
23605         * common/config/i386/i386-common.c
23606         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
23607         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
23608         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
23609         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
23610         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
23611         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
23612         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
23613         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
23614         xsavecintrin.h, xsavesintrin.h.
23615         (x86_64-*-*): Ditto.
23616         * config/i386/clflushoptintrin.h: New.
23617         * config/i386/xsavecintrin.h: Ditto.
23618         * config/i386/xsavesintrin.h: Ditto.
23619         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
23620         (bit_XSAVES): Ditto.
23621         (bit_XSAVES): Ditto.
23622         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
23623         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
23624         -mno-clflushopt.
23625         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23626         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
23627         OPTION_MASK_ISA_XSAVES.
23628         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
23629         -mxsavec, -mxsaves.
23630         (PTA_CLFLUSHOPT) Define.
23631         (PTA_XSAVEC): Ditto.
23632         (PTA_XSAVES): Ditto.
23633         (ix86_option_override_internal): Handle new options.
23634         (ix86_valid_target_attribute_inner_p): Ditto.
23635         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
23636         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
23637         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
23638         (bdesc_special_args): Add __builtin_ia32_xsaves,
23639         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
23640         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
23641         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
23642         (ix86_expand_builtin): Handle new builtins.
23643         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
23644         (TARGET_CLFLUSHOPT_P): Ditto.
23645         (TARGET_XSAVEC): Ditto.
23646         (TARGET_XSAVEC_P): Ditto.
23647         (TARGET_XSAVES): Ditto.
23648         (TARGET_XSAVES_P): Ditto.
23649         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
23650         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
23651         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
23652         (ANY_XRSTOR): New.
23653         (ANY_XRSTOR64): Ditto.
23654         (xrstor): Ditto.
23655         (xrstor): Change into <xrstor>.
23656         (xrstor_rex64): Change into <xrstor>_rex64.
23657         (xrstor64): Change into <xrstor>64
23658         (clflushopt): New.
23659         * config/i386/i386.opt (mclflushopt): New.
23660         (mxsavec): Ditto.
23661         (mxsaves): Ditto.
23662         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
23663         xsavecintrin.h.
23664         * doc/invoke.texi: Document new options.
23666 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
23668         PR rtl-optimization/60866
23669         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
23670         Default it to -1.  Pass it down to init_simplejump_data.
23671         (init_simplejump_data): New parameter old_seqno.  Pass it down
23672         to get_seqno_for_a_jump.
23673         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
23674         initializing new jump seqno as a last resort.  Add comment.
23675         (sel_redirect_edge_and_branch): Save old seqno of the conditional
23676         jump and pass it down to sel_init_new_insn.
23677         (sel_redirect_edge_and_branch_force): Likewise.
23679 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
23681         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
23682         shifted values to avoid build warning.
23684 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
23686         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
23687         * cfgrtl.c (rtl_merge_blocks): Fix comment.
23688         (cfg_layout_merge_blocks): Likewise.
23689         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
23691 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
23693         PR rtl-optimization/60901
23694         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
23695         bb predecessor belongs to the same scheduling region.  Adjust comment.
23697 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
23699         * doc/sourcebuild.texi: (dfp_hw): Document.
23700         (p8vector_hw): Likewise.
23701         (powerpc_eabi_ok): Likewise.
23702         (powerpc_elfv2): Likewise.
23703         (powerpc_htm_ok): Likewise.
23704         (ppc_recip_hw): Likewise.
23705         (vsx_hw): Likewise.
23707 2014-05-13  Cary Coutant  <ccoutant@google.com>
23709         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
23711 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
23713         * gengtype-parse.c (require3): Eliminate in favor of...
23714         (require4): New.
23715         (require_template_declaration): Update to support optional single *
23716         on a type.
23718         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
23719         (create_user_defined_type): Handle a single level of explicit
23720         pointerness within template arguments.
23721         (struct write_types_data): Add field "kind".
23722         (filter_type_name): Handle "*" character.
23723         (write_user_func_for_structure_ptr): Require a write_types_data
23724         rather than just a prefix string, so that we can look up the kind
23725         of the wtd and use it as an index into wrote_user_func_for_ptr,
23726         ensuring that such functions are written at most once.  Support
23727         subclasses by invoking the marking function of the ultimate base class.
23728         (write_user_func_for_structure_body): Require a write_types_data
23729         rather than just a prefix string, so that we can pass this to
23730         write_user_func_for_structure_ptr.
23731         (write_func_for_structure): Likewise.
23732         (ggc_wtd): Add initializer of new "kind" field.
23733         (pch_wtd): Likewise.
23735         * gengtype.h (enum write_types_kinds): New.
23736         (struct type): Add field wrote_user_func_for_ptr to the "s"
23737         union member.
23739 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
23741         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
23742         instead of const_binop.
23743         (fold_binary_loc): Likewise.
23745 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
23747         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
23748         calculation to match get_ref_base_and_extent.
23750 2014-05-13  Catherine Moore  <clm@codesourcery.com>
23751             Sandra Loosemore  <sandra@codesourcery.com>
23753         * configure.ac: Fix assembly for explicit JALR relocation check.
23754         * configure: Regenerate.
23756 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23758         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
23759         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
23760         Remove associated type declarations and initialisations.
23761         (arm_expand_neon_builtin): Likewise.
23762         (neon_emit_pair_result_insn): Delete.
23763         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
23764         * config/arm/neon.md (neon_vtrn<mode>): Delete.
23765         (neon_vzip<mode>): Likewise.
23766         (neon_vuzp<mode>): Likewise.
23768 2014-05-13  Richard Biener  <rguenther@suse.de>
23770         PR ipa/60973
23771         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
23772         it needs revisiting whether the call still may be tail-called.
23774 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23776         * rtl.def (SYMBOL_REF): Remove middle "0" field.
23777         * rtl.h (block_symbol): Reduce number of fields to 2.
23778         (rtx_def): Add u2.symbol_ref_flags.
23779         (SYMBOL_REF_FLAGS): Use it.
23780         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
23781         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
23782         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
23783         Lower index of SYMBOL_REF_DATA.
23784         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
23785         Print SYMBOL_REF_FLAGS at the same time.
23786         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
23788 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23790         * rtl.def (VAR_LOCATION): Remove "i" field.
23791         * rtl.h (rtx_def): Add u2.var_location_status.
23792         (PAT_VAR_LOCATION_STATUS): Use it.
23793         (gen_rtx_VAR_LOCATION): Declare.
23794         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
23795         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
23796         * var-tracking.c (emit_note_insn_var_location): Remove casts.
23798 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23800         * rtl.def (scratch): Fix outdated comment and remove "0" field.
23801         * gengtype.c (adjust_field_rtx_def): Update accordingly.
23803 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23805         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
23806         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
23807         * rtl.h (rtx_def): Add insn_uid to u2 field.
23808         (RTX_FLAG_CHECK8): Delete in favor of...
23809         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
23810         (INSN_DELETED_P): Update accordingly.
23811         (INSN_UID): Use u2.insn_uid.
23812         (INSN_CHAIN_CODE_P): Define.
23813         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
23814         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
23815         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
23816         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
23817         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
23818         indices accordingly.
23819         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
23820         Update indices for insn-chain rtxes.
23821         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
23822         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
23823         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
23824         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
23825         * combine.c (try_combine): Likewise.
23826         * ira.c (setup_prohibited_mode_move_regs): Likewise.
23828 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23830         * rtl.def (REG): Remove middle field.
23831         * rtl.h (rtx_def): Add orignal_regno to u2.
23832         (ORIGINAL_REGNO): Use it instead of field 1.
23833         (REG_ATTRS): Lower field index accordingly.
23834         * gengtype.c (adjust_field_rtx_def): Remove handling of
23835         ORIGINAL_REGNO.  Move REG_ATTRS index down.
23836         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
23837         code that prints the REGNO.
23839 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23841         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
23842         GENERATOR_FILE.
23844 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23846         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
23848 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
23850         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
23851         (alloc_iv): Lower base expressions containing ADDR_EXPR.
23853 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
23855         * config/aarch64/aarch64-protos.h
23856         (aarch64_hard_regno_caller_save_mode): New prototype.
23857         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
23858         New function.
23859         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
23861 2014-05-13  Christian Bruel  <christian.bruel@st.com>
23863         * target.def (mode_switching): New hook vector.
23864         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
23865         (mode_exit, modepriority_to_mode): Likewise.
23866         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
23867         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23868         * target.h: Include tm.h and hard-reg-set.h.
23869         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
23870         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
23871         * doc/tm.texi Regenerate.
23872         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
23873         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23874         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
23875         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
23876         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
23877         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23878         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
23879         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
23880         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
23881         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
23882         (ix86_emit_mode_set): Hookify.
23883         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
23884         Delete.
23885         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
23886         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
23887         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
23888         (epiphany_mode_priority_to_mode): Remove declaration.
23889         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
23890         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
23891         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
23892         Likewise.
23893         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
23894         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
23895         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
23897 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
23899         PR target/61060
23900         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
23901         is const0_rtx, return immediately.  Don't test count == 0 when
23902         it is always true.
23904 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23906         * Makefile.in: add shrink-wrap.o.
23907         * config/i386/i386.c: include "shrink-wrap.h"
23908         * function.c: Likewise.
23909         (requires_stack_frame_p, next_block_for_reg,
23910         move_insn_for_shrink_wrap, prepare_shrink_wrap,
23911         dup_block_and_redirect): Move to shrink-wrap.c
23912         (thread_prologue_and_epilogue_insns): Extract three code segments
23913         as functions in shrink-wrap.c
23914         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
23915         shrink-wrap.h
23916         * shrink-wrap.c: New file.
23917         * shrink-wrap.h: New file.
23919 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
23921         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
23922         reference to Solaris.
23924 2014-05-12  Mike Stump  <mikestump@comcast.net>
23926         PR other/31778
23927         * genattrtab.c (filename): Add.
23928         (convert_set_attr_alternative): Improve error message.
23929         (check_defs): Restore read_md_filename for error messages.
23930         (gen_insn): Save filename.
23932 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
23934         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
23935         -fno-local-ivars and -fivar-visibility.
23936         * c-family/c.opt: Make -Wshadow also implicitly enable
23937         -Wshadow-ivar.
23939 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
23941         * doc/tm.texi: Remove reference to deleted macro.
23942         * doc/tm.texi.in: Likewise.
23944 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23946         PR target/60991
23947         * config/avr/avr.c (avr_out_store_psi): Use correct constant
23948         to restore Y.
23950 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
23952         PR libgcc/61152
23953         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
23954         * config/arm/aout.h (License): Same.
23955         * config/arm/bpabi.h (License): Same.
23956         * config/arm/elf.h (License): Same.
23957         * config/arm/linux-elf.h (License): Same.
23958         * config/arm/linux-gas.h (License): Same.
23959         * config/arm/netbsd-elf.h (License): Same.
23960         * config/arm/uclinux-eabi.h (License): Same.
23961         * config/arm/uclinux-elf.h (License): Same.
23962         * config/arm/vxworks.h (License): Same.
23964 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
23966         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
23967         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
23968         number of operands to 3.
23969         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
23970         * tree-nested.c (convert_nonlocal_omp_clauses,
23971         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
23972         * gimplify.c (gimplify_scan_omp_clauses): Handle
23973         OMP_CLAUSE_LINEAR_STMT.
23974         * omp-low.c (lower_rec_input_clauses): Fix typo.
23975         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
23976         cast between Fortran boolean_type_node and C _Bool if
23977         needed.
23979 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
23981         PR tree-optimization/61136
23982         * wide-int.h (multiple_of_p): Define a version that doesn't return
23983         the quotient.
23984         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
23985         integer_zerop/const_binop pair.
23986         (multiple_of_p): Likewise, converting both operands to widest_int
23987         precision.
23989 2014-05-09  Teresa Johnson  <tejohnson@google.com>
23991         * cgraphunit.c (analyze_functions): Use correct dump file.
23993 2014-05-09  Florian Weimer  <fweimer@redhat.com>
23995         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
23996         expand_used_vars.
23997         (stack_protect_return_slot_p): New function.
23998         (expand_used_vars): Call stack_protect_decl_p and
23999         stack_protect_return_slot_p for -fstack-protector-strong.
24001 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
24002         Andrew Haley <aph@redhat.com>
24003         Richard Sandiford <rdsandiford@googlemail.com>
24005         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
24006         pages.
24008 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
24010         PR middle-end/61111
24011         * fold-const.c (fold_binary_loc): Changed width of mask.
24013 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
24015         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
24016         unsigned int initializers for regno_in, regno_out.
24018 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
24020         PR target/61055
24021         * config/avr/avr.md (cc): Add new attribute set_vzn.
24022         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
24023         Set cc insn attribute to set_vzn instead of set_zn for alternatives
24024         with INC, DEC or NEG.
24025         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
24026         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
24027         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
24029 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24031         Revert:
24032         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24034         * wide-int.cc (UTItype): Define.
24035         (UDWtype): Define for appropriate W_TYPE_SIZE.
24037 2014-05-09  Richard Biener  <rguenther@suse.de>
24039         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
24040         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
24041         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
24042         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
24043         ssa_propagate): Adjust.
24045 2014-05-08  Jeff Law  <law@redhat.com>
24047         PR tree-optimization/61009
24048         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
24049         tri-state rather than a boolean.  When a block is too big to
24050         thread through, inform caller via negative return value.
24051         (thread_across_edge): If a block was too big for normal threading,
24052         then it's too big for a joiner too, so remove temporary equivalences
24053         and return immediately.
24055 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24056             Matthias Klose  <doko@ubuntu.com>
24058         PR driver/61106
24059         * optc-gen.awk: Fix option handling for -Wunused-parameter.
24061 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
24063         PR target/59952
24064         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
24066 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
24068         PR target/61092
24069         * config/alpha/alpha.c: Include gimple-iterator.h.
24070         (alpha_gimple_fold_builtin): New function.  Move
24071         ALPHA_BUILTIN_UMULH folding from ...
24072         (alpha_fold_builtin): ... here.
24073         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
24075 2014-05-08  Wei Mi  <wmi@google.com>
24077         PR target/58066
24078         * config/i386/i386.c (ix86_compute_frame_layout): Update
24079         preferred_stack_boundary for call, expanded from tls descriptor.
24080         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
24081         to depend on SP register.
24082         (*tls_local_dynamic_base_32_gnu): Ditto.
24083         (*tls_local_dynamic_32_once): Ditto.
24084         (tls_global_dynamic_64_<mode>): Set
24085         ix86_tls_descriptor_calls_expanded_in_cfun.
24086         (tls_local_dynamic_base_64_<mode>): Ditto.
24087         (tls_global_dynamic_32): Set
24088         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
24089         to depend on SP register.
24090         (tls_local_dynamic_base_32): Ditto.
24092 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24094         * config/arm/arm_neon.h: Update comment.
24095         * config/arm/neon-docgen.ml: Delete.
24096         * config/arm/neon-gen.ml: Delete.
24097         * doc/arm-neon-intrinsics.texi: Update comment.
24099 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24101         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
24102         and v4sf versions.
24103         (vand, vorr, veor, vorn, vbic): Remove.
24104         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
24105         iterator.
24106         (neon_vsub_unspec): Likewise.
24107         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
24109 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24111         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
24112         (vadd_s16): Likewise.
24113         (vadd_s32): Likewise.
24114         (vadd_f32): Likewise.
24115         (vadd_u8): Likewise.
24116         (vadd_u16): Likewise.
24117         (vadd_u32): Likewise.
24118         (vadd_s64): Likewise.
24119         (vadd_u64): Likewise.
24120         (vaddq_s8): Likewise.
24121         (vaddq_s16): Likewise.
24122         (vaddq_s32): Likewise.
24123         (vaddq_s64): Likewise.
24124         (vaddq_f32): Likewise.
24125         (vaddq_u8): Likewise.
24126         (vaddq_u16): Likewise.
24127         (vaddq_u32): Likewise.
24128         (vaddq_u64): Likewise.
24129         (vmul_s8): Likewise.
24130         (vmul_s16): Likewise.
24131         (vmul_s32): Likewise.
24132         (vmul_f32): Likewise.
24133         (vmul_u8): Likewise.
24134         (vmul_u16): Likewise.
24135         (vmul_u32): Likewise.
24136         (vmul_p8): Likewise.
24137         (vmulq_s8): Likewise.
24138         (vmulq_s16): Likewise.
24139         (vmulq_s32): Likewise.
24140         (vmulq_f32): Likewise.
24141         (vmulq_u8): Likewise.
24142         (vmulq_u16): Likewise.
24143         (vmulq_u32): Likewise.
24144         (vsub_s8): Likewise.
24145         (vsub_s16): Likewise.
24146         (vsub_s32): Likewise.
24147         (vsub_f32): Likewise.
24148         (vsub_u8): Likewise.
24149         (vsub_u16): Likewise.
24150         (vsub_u32): Likewise.
24151         (vsub_s64): Likewise.
24152         (vsub_u64): Likewise.
24153         (vsubq_s8): Likewise.
24154         (vsubq_s16): Likewise.
24155         (vsubq_s32): Likewise.
24156         (vsubq_s64): Likewise.
24157         (vsubq_f32): Likewise.
24158         (vsubq_u8): Likewise.
24159         (vsubq_u16): Likewise.
24160         (vsubq_u32): Likewise.
24161         (vsubq_u64): Likewise.
24162         (vand_s8): Likewise.
24163         (vand_s16): Likewise.
24164         (vand_s32): Likewise.
24165         (vand_u8): Likewise.
24166         (vand_u16): Likewise.
24167         (vand_u32): Likewise.
24168         (vand_s64): Likewise.
24169         (vand_u64): Likewise.
24170         (vandq_s8): Likewise.
24171         (vandq_s16): Likewise.
24172         (vandq_s32): Likewise.
24173         (vandq_s64): Likewise.
24174         (vandq_u8): Likewise.
24175         (vandq_u16): Likewise.
24176         (vandq_u32): Likewise.
24177         (vandq_u64): Likewise.
24178         (vorr_s8): Likewise.
24179         (vorr_s16): Likewise.
24180         (vorr_s32): Likewise.
24181         (vorr_u8): Likewise.
24182         (vorr_u16): Likewise.
24183         (vorr_u32): Likewise.
24184         (vorr_s64): Likewise.
24185         (vorr_u64): Likewise.
24186         (vorrq_s8): Likewise.
24187         (vorrq_s16): Likewise.
24188         (vorrq_s32): Likewise.
24189         (vorrq_s64): Likewise.
24190         (vorrq_u8): Likewise.
24191         (vorrq_u16): Likewise.
24192         (vorrq_u32): Likewise.
24193         (vorrq_u64): Likewise.
24194         (veor_s8): Likewise.
24195         (veor_s16): Likewise.
24196         (veor_s32): Likewise.
24197         (veor_u8): Likewise.
24198         (veor_u16): Likewise.
24199         (veor_u32): Likewise.
24200         (veor_s64): Likewise.
24201         (veor_u64): Likewise.
24202         (veorq_s8): Likewise.
24203         (veorq_s16): Likewise.
24204         (veorq_s32): Likewise.
24205         (veorq_s64): Likewise.
24206         (veorq_u8): Likewise.
24207         (veorq_u16): Likewise.
24208         (veorq_u32): Likewise.
24209         (veorq_u64): Likewise.
24210         (vbic_s8): Likewise.
24211         (vbic_s16): Likewise.
24212         (vbic_s32): Likewise.
24213         (vbic_u8): Likewise.
24214         (vbic_u16): Likewise.
24215         (vbic_u32): Likewise.
24216         (vbic_s64): Likewise.
24217         (vbic_u64): Likewise.
24218         (vbicq_s8): Likewise.
24219         (vbicq_s16): Likewise.
24220         (vbicq_s32): Likewise.
24221         (vbicq_s64): Likewise.
24222         (vbicq_u8): Likewise.
24223         (vbicq_u16): Likewise.
24224         (vbicq_u32): Likewise.
24225         (vbicq_u64): Likewise.
24226         (vorn_s8): Likewise.
24227         (vorn_s16): Likewise.
24228         (vorn_s32): Likewise.
24229         (vorn_u8): Likewise.
24230         (vorn_u16): Likewise.
24231         (vorn_u32): Likewise.
24232         (vorn_s64): Likewise.
24233         (vorn_u64): Likewise.
24234         (vornq_s8): Likewise.
24235         (vornq_s16): Likewise.
24236         (vornq_s32): Likewise.
24237         (vornq_s64): Likewise.
24238         (vornq_u8): Likewise.
24239         (vornq_u16): Likewise.
24240         (vornq_u32): Likewise.
24241         (vornq_u64): Likewise.
24243 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24245         * wide-int.cc (UTItype): Define.
24246         (UDWtype): Define for appropriate W_TYPE_SIZE.
24248 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
24250         PR tree-optimization/59100
24251         * tree-ssa-phiopt.c: Include tree-inline.h.
24252         (neutral_element_p, absorbing_element_p): New functions.
24253         (value_replacement): Handle conditional binary operations with a
24254         neutral or absorbing element.
24256 2014-05-08  Richard Biener  <rguenther@suse.de>
24258         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
24259         folding the expression.
24260         (valueize_expr): Remove.
24261         (visit_reference_op_load): Do not valueize the result of
24262         vn_get_expr_for.
24263         (simplify_binary_expression): Likewise.
24264         (simplify_unary_expression): Likewise.
24266 2014-05-08  Richard Biener  <rguenther@suse.de>
24268         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
24269         looking at TYPE_ARG_TYPES.
24271 2014-05-08  Richard Biener  <rguenther@suse.de>
24273         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
24274         pointer propagation special-case.
24276 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
24278         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
24279         core part of address expressions.
24281 2014-05-08  Alan Modra  <amodra@gmail.com>
24283         PR target/60737
24284         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
24285         loads and stores when -mno-strict-align at any alignment.
24286         (expand_block_clear): Similarly.  Also correct calculation of
24287         instruction count.
24289 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24291         PR middle-end/39246
24292         * tree-complex.c (expand_complex_move): Keep line info when expanding
24293         complex move.
24294         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
24295         of complex expression. Use new argument to display correct location
24296         for values coming from phi statement.
24297         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
24298         (warn_uninitialized_phi): Pass location of phi argument to
24299         warn_uninit.
24300         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
24301         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
24303 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
24305         * config/rs6000/predicates.md (indexed_address_mem): New.
24306         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
24307         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
24308         fpstore_ux, fpstore_u.
24309         (sign_extend, indexed, update): New.
24310         (cell_micro): Adjust.
24311         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
24312         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
24313         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
24314         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
24315         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
24316         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
24317         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
24318         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
24319         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
24320         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
24321         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
24322         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
24323         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
24324         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
24325         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
24327         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
24328         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
24329         *vsx_extract_<mode>_store): Adjust.
24330         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
24331         is_cracked_insn, insn_must_be_first_in_group,
24332         insn_must_be_last_in_group): Adjust.
24334         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
24335         Adjust.
24336         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
24337         ppc440-fpstore): Adjust.
24338         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
24339         ppc476-fpstore): Adjust.
24340         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
24341         ppc601-fpstore): Adjust.
24342         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
24343         Adjust.
24344         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
24345         Adjust.
24346         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
24347         ppc7450-fpstore): Adjust.
24348         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
24349         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
24350         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
24351         Adjust.
24352         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
24353         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
24354         cell-fpstore, cell-fpstore-update): Adjust.
24355         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
24356         ppce300c3_store, ppce300c3_fpstore): Adjust.
24357         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
24358         e500mc_fpstore): Adjust.
24359         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
24360         e500mc64_store, e500mc64_fpstore): Adjust.
24361         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
24362         e5500_fpstore): Adjust.
24363         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
24364         e6500_fpstore): Adjust.
24365         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
24366         Adjust.
24367         * config/rs6000/power4.md (power4-load, power4-load-ext,
24368         power4-load-ext-update, power4-load-ext-update-indexed,
24369         power4-load-update-indexed, power4-load-update, power4-fpload,
24370         power4-fpload-update, power4-store, power4-store-update,
24371         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
24372         Adjust.
24373         * config/rs6000/power5.md (power5-load, power5-load-ext,
24374         power5-load-ext-update, power5-load-ext-update-indexed,
24375         power5-load-update-indexed, power5-load-update, power5-fpload,
24376         power5-fpload-update, power5-store, power5-store-update,
24377         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
24378         Adjust.
24379         * config/rs6000/power6.md (power6-load, power6-load-ext,
24380         power6-load-update, power6-load-update-indexed,
24381         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
24382         power6-fpload-update, power6-store, power6-store-update,
24383         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
24384         Adjust.
24385         * config/rs6000/power7.md (power7-load, power7-load-ext,
24386         power7-load-update, power7-load-update-indexed,
24387         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
24388         power7-fpload-update, power7-store, power7-store-update,
24389         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
24390         Adjust.
24391         * config/rs6000/power8.md (power8-load, power8-load-update,
24392         power8-load-ext, power8-load-ext-update, power8-fpload,
24393         power8-fpload-update, power8-store, power8-store-update-indexed,
24394         power8-fpstore, power8-fpstore-update): Adjust.
24395         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
24396         Adjust.
24397         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
24398         titan_lsu_store, titan_lsu_fpstore): Adjust.
24399         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
24401 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
24403         PR target/60884
24404         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
24405         unrolled byte insns.  Emit address increments after move insns.
24407 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
24409         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
24410         const_gimple, rather than a gimple.
24411         (gimple_call_builtin_p): Likewise, for the three variants.
24413         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
24414         (gimple_call_builtin_p): Likewise, for the three variants.
24416 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24418         PR tree-optimization/61095
24419         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
24421 2014-05-07  Richard Biener  <rguenther@suse.de>
24423         PR tree-optimization/61034
24424         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
24425         (maybe_skip_until): Use translate to take into account
24426         lattices when trying to do disambiguations.
24427         (get_continuation_for_phi_1): Likewise.
24428         (get_continuation_for_phi): Adjust for added translate arguments.
24429         (walk_non_aliased_vuses): Likewise.
24430         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
24431         (walk_non_aliased_vuses): Likewise.
24432         (call_may_clobber_ref_p_1): Declare.
24433         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
24434         calls.  Stop early if we are only supposed to disambiguate.
24435         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
24437 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
24439         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
24440         Emit an error when the function has arguments.
24442 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
24444         * cfgloop.h (unswitch_loops): Remove.
24445         * doc/passes.texi: Remove references to loop-unswitch.c
24446         * timevar.def (TV_LOOP_UNSWITCH): Remove.
24448 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
24450         * tree-vect-data-refs.c (vect_grouped_load_supported): New
24451         check for loads group of length 3.
24452         (vect_permute_load_chain): New permutations for loads group of
24453         length 3.
24454         * tree-vect-stmts.c (vect_model_load_cost): Change cost
24455         of vec_perm_shuffle for the new permutations.
24457 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
24459         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
24460         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
24461         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
24462         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
24463         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
24464         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
24465         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
24466         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
24468 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
24470         * loop-unswitch.c: Delete.
24472 2014-05-07  Richard Biener  <rguenther@suse.de>
24474         * config.gcc: Always set need_64bit_hwint to yes.
24476 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
24478         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
24479         of using optimize_size.
24481 2014-05-06  Mike Stump  <mikestump@comcast.net>
24483         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
24485 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
24487         * config/i386/sse.md (*mov<mode>_internal)
24488         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
24489         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
24490         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
24491         (*<code><mode>3, *andnot<mode>3<mask_name>)
24492         (<mask_codefor><code><mode>3<mask_name>): Only consider
24493         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
24495 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
24497         Revert:
24498         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
24500         * lra-constraints.c (valid_address_p): Move earlier in file.
24501         Add a constraint argument to the address_info version.
24502         (satisfies_memory_constraint_p): New function.
24503         (satisfies_address_constraint_p): Likewise.
24504         (process_alt_operands, curr_insn_transform): Use them.
24505         (process_address): Pass the constraint to valid_address_p when
24506         checking address operands.
24508 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
24510         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
24511         to their respective blocks.  Fix inadvertent use of "node".
24513 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
24515         * emit-rtl.c (init_derived_machine_modes): New functionm, split
24516         out from...
24517         (init_emit_once): ...here.
24518         * rtl.h (init_derived_machine_modes): Declare.
24519         * toplev.c (do_compile): Call it even if no_backend.
24521 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
24522             Mike Stump  <mikestump@comcast.net>
24523             Richard Sandiford  <rdsandiford@googlemail.com>
24524             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24526         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
24527         (rtx_equal_for_memref_p): Update comment.
24528         (adjust_offset_for_component_ref): Use wide-int interfaces.
24529         * builtins.c (get_object_alignment_2): Likewise.
24530         (c_readstr): Likewise.
24531         (target_char_cast): Add comment.
24532         (determine_block_size): Use wide-int interfaces.
24533         (expand_builtin_signbit): Likewise.
24534         (fold_builtin_int_roundingfn): Likewise.
24535         (fold_builtin_bitop): Likewise.
24536         (fold_builtin_bswap): Likewise.
24537         (fold_builtin_logarithm): Use signop.
24538         (fold_builtin_pow): Likewise.
24539         (fold_builtin_memory_op): Use wide-int interfaces.
24540         (fold_builtin_object_size): Likewise.
24541         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
24542         nb_iterations_estimate.
24543         (record_niter_bound): Use wide-int interfaces.
24544         (get_estimated_loop_iterations_int): Likewise.
24545         (get_estimated_loop_iterations): Likewise.
24546         (get_max_loop_iterations): Likewise.
24547         * cfgloop.h: Include wide-int.h.
24548         (struct nb_iter_bound): Change bound to widest_int.
24549         (struct loop): Change nb_iterations_upper_bound and
24550         nb_iterations_estimate to widest_int.
24551         (record_niter_bound): Switch to use widest_int.
24552         (get_estimated_loop_iterations): Likewise.
24553         (get_max_loop_iterations): Likewise.
24554         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
24555         update for wide-int.
24556         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
24557         * combine.c (try_combine): Likewise.
24558         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
24559         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
24560         interfaces.
24561         (aarch64_float_const_representable_p): Likewise.
24562         * config/arc/arc.c: Include wide-int.h.
24563         (arc_can_use_doloop_p): Use wide-int interfaces.
24564         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
24565         (vfp3_const_double_index): Likewise.
24566         * config/avr/avr.c (avr_out_round): Likewise.
24567         (avr_fold_builtin): Likewise.
24568         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
24569         (bfin_can_use_doloop_p): Likewise.
24570         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
24571         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
24572         * config/i386/i386.c: Include wide-int.h.
24573         (ix86_data_alignment): Use wide-int interfaces.
24574         (ix86_local_alignment): Likewise.
24575         (ix86_emit_swsqrtsf): Update real_from_integer.
24576         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
24577         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
24578         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
24579         (zero_constant): Likewise.
24580         (input_operand): Likewise.
24581         (splat_input_operand): Likewise.
24582         (non_logical_cint_operand): Change const_double to const_wide_int.
24583         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
24584         (easy_altivec_constant): Remove comment.
24585         (paired_expand_vector_init): Use CONSTANT_P.
24586         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
24587         (rs6000_emit_move): Update checks.
24588         (rs6000_aggregate_candidate): Use wide-int interfaces.
24589         (rs6000_expand_ternop_builtin): Likewise.
24590         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
24591         (rs6000_assemble_integer): Likewise.
24592         (rs6000_hash_constant): Likewise.
24593         (output_toc): Likewise.
24594         (rs6000_rtx_costs): Likewise.
24595         (rs6000_emit_swrsqrt); Update call to real_from_integer.
24596         * config/rs6000/rs6000-c.c: Include wide-int.h.
24597         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
24598         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
24599         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
24600         Handle CONST_WIDE_INT.
24601         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
24602         Use tree_fits_uhwi_p.
24603         * config/sparc/sparc.c: Include wide-int.h.
24604         (sparc_fold_builtin): Use wide-int interfaces.
24605         * config/vax/vax.c: Include wide-int.h.
24606         (vax_float_literal): Use real_from_integer.
24607         * coretypes.h (struct hwivec_def): New.
24608         (hwivec): New.
24609         (const_hwivec): New.
24610         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
24611         (equiv_constant): Handle CONST_WIDE_INT.
24612         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
24613         (cselib_hash_rtx): Handle CONST_WIDE_INT.
24614         * dbxout.c (stabstr_U): Use wide-int interfaces.
24615         (dbxout_type): Update to use cst_fits_shwi_p.
24616         * defaults.h (LOG2_BITS_PER_UNIT): Define.
24617         (TARGET_SUPPORTS_WIDE_INT): Add default.
24618         * dfp.c: Include wide-int.h.
24619         (decimal_real_to_integer2): Use wide-int interfaces and rename to
24620         decimal_real_to_integer.
24621         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
24622         decimal_real_to_integer.
24623         * doc/generic.texi (Constant expressions): Update for wide_int.
24624         * doc/rtl.texi (const_double): Likewise.
24625         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
24626         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
24627         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
24628         (REAL_VALUE_FROM_INT): Remove.
24629         (TARGET_SUPPORTS_WIDE_INT): New.
24630         * doc/tm.texi: Regenerate.
24631         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
24632         * double-int.h: Include wide-int.h.
24633         (struct wi::int_traits): New.
24634         * dwarf2out.c (get_full_len): New.
24635         (dw_val_equal_p): Add case dw_val_class_wide_int.
24636         (size_of_loc_descr): Likewise.
24637         (output_loc_operands): Likewise.
24638         (insert_double): Remove.
24639         (insert_wide_int): New.
24640         (add_AT_wide): New.
24641         (print_die): Add case dw_val_class_wide_int.
24642         (attr_checksum): Likewise.
24643         (attr_checksum_ordered): Likewise.
24644         (same_dw_val_p): Likewise.
24645         (size_of_die): Likewise.
24646         (value_format): Likewise.
24647         (output_die): Likewise.
24648         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
24649         Use wide-int.
24650         (clz_loc_descriptor): Use wide-int interfaces.
24651         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
24652         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
24653         (round_up_to_align): Use wide-int interfaces.
24654         (field_byte_offset): Likewise.
24655         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
24656         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
24657         CONST_DOUBLE handling.  Use wide-int interfaces.
24658         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
24659         (gen_enumeration_type_die): Use add_AT_wide.
24660         (hash_loc_operands): Add case dw_val_class_wide_int.
24661         (compare_loc_operands): Likewise.
24662         * dwarf2out.h: Include wide-int.h.
24663         (wide_int_ptr): New.
24664         (enum dw_val_class): Add dw_val_class_wide_int.
24665         (struct dw_val_struct): Add val_wide.
24666         * emit-rtl.c (const_wide_int_htab): New.
24667         (const_wide_int_htab_hash): New.
24668         (const_wide_int_htab_eq): New.
24669         (lookup_const_wide_int): New.
24670         (const_double_htab_hash): Use wide-int interfaces.
24671         (const_double_htab_eq): Likewise.
24672         (rtx_to_double_int): Conditionally compile for wide-int.
24673         (immed_double_int_const): Rename to immed_wide_int_const and
24674         update for wide-int.
24675         (immed_double_const): Conditionally compile for wide-int.
24676         (init_emit_once): Use wide-int interfaces.
24677         * explow.c (plus_constant): Likewise.
24678         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
24679         (lshift_value): Use wide-int interfaces.
24680         (expand_mult): Likewise.
24681         (choose_multiplier): Likewise.
24682         (expand_smod_pow2): Likewise.
24683         (make_tree): Likewise.
24684         * expr.c (convert_modes): Consolidate handling of constants.
24685         Use wide-int interfaces.
24686         (emit_group_load_1): Add note.
24687         (store_expr): Update comment.
24688         (get_inner_reference): Use wide-int interfaces.
24689         (expand_constructor): Update comment.
24690         (expand_expr_real_2): Use wide-int interfaces.
24691         (expand_expr_real_1): Likewise.
24692         (reduce_to_bit_field_precision): Likewise.
24693         (const_vector_from_tree): Likewise.
24694         * final.c: Include wide-int-print.h.
24695         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
24696         * fixed-value.c: Include wide-int.h.
24697         (fixed_from_string): Use wide-int interfaces.
24698         (fixed_to_decimal): Likewise.
24699         (fixed_convert_from_real): Likewise.
24700         (real_convert_from_fixed): Likewise.
24701         * fold-const.h (mem_ref_offset): Return an offset_int.
24702         (div_if_zero_remainder): Remove code parameter.
24703         * fold-const.c (div_if_zero_remainder): Remove code parameter.
24704         Use wide-int interfaces.
24705         (may_negate_without_overflow_p): Use wide-int interfaces.
24706         (negate_expr_p): Likewise.
24707         (fold_negate_expr): Likewise.
24708         (int_const_binop_1): Likewise.
24709         (const_binop): Likewise.
24710         (fold_convert_const_int_from_int): Likewise.
24711         (fold_convert_const_int_from_real): Likewise.
24712         (fold_convert_const_int_from_fixed): Likewise.
24713         (fold_convert_const_fixed_from_int): Likewise.
24714         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
24715         (sign_bit_p): Use wide-int interfaces.
24716         (make_range_step): Likewise.
24717         (build_range_check): Likewise.  Pass an integer of the correct type
24718         instead of using integer_one_node.
24719         (range_predecessor): Pass an integer of the correct type instead
24720         of using integer_one_node.
24721         (range_successor): Likewise.
24722         (merge_ranges): Likewise.
24723         (unextend): Use wide-int interfaces.
24724         (extract_muldiv_1): Likewise.
24725         (fold_div_compare): Likewise.
24726         (fold_single_bit_test): Likewise.
24727         (fold_sign_changed_comparison): Likewise.
24728         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
24729         (fold_plusminus_mult_expr): Use wide-int interfaces.
24730         (native_encode_int): Likewise.
24731         (native_interpret_int): Likewise.
24732         (fold_unary_loc): Likewise.
24733         (pointer_may_wrap_p): Likewise.
24734         (size_low_cst): Likewise.
24735         (mask_with_tz): Likewise.
24736         (fold_binary_loc): Likewise.
24737         (fold_ternary_loc): Likewise.
24738         (multiple_of_p): Likewise.
24739         (tree_call_nonnegative_warnv_p): Update calls to
24740         tree_int_cst_min_precision and real_from_integer.
24741         (fold_negate_const): Use wide-int interfaces.
24742         (fold_abs_const): Likewise.
24743         (fold_relational_const): Use tree_int_cst_lt.
24744         (round_up_loc): Use wide-int interfaces.
24745         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
24746         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
24747         * gengtype.c: Remove include of double-int.h.
24748         (do_typedef): Use wide-int interfaces.
24749         (open_base_files): Add wide-int.h.
24750         (main): Add offset_int and widest_int typedefs.
24751         * gengtype-lex.l: Handle "^".
24752         (CXX_KEYWORD): Add "static".
24753         * gengtype-parse.c (require3): New.
24754         (require_template_declaration): Handle constant template arguments
24755         and nested templates.
24756         * gengtype-state.c: Don't include "double-int.h".
24757         * genpreds.c (write_one_predicate_function): Update comment.
24758         (write_tm_constrs_h): Add check for hval and lval use in
24759         CONST_WIDE_INT.
24760         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
24761         (add_to_sequence): Likewise.
24762         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
24763         and const_double_operand.
24764         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
24765         interfaces.
24766         * gimple-fold.c (get_base_constructor): Likewise.
24767         (fold_array_ctor_reference): Likewise.
24768         (fold_nonarray_ctor_reference): Likewise.
24769         (fold_const_aggregate_ref_1): Likewise.
24770         (gimple_val_nonnegative_real_p): Likewise.
24771         (gimple_fold_indirect_ref): Likewise.
24772         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
24773         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
24774         (struct slsr_cand_d): Change index to be widest_int.
24775         (struct incr_info_d): Change incr to be widest_int.
24776         (alloc_cand_and_find_basis): Use wide-int interfaces.
24777         (slsr_process_phi): Likewise.
24778         (backtrace_base_for_ref): Likewise.  Return a widest_int.
24779         (restructure_reference): Take a widest_int instead of a double_int.
24780         (slsr_process_ref): Use wide-int interfaces.
24781         (create_mul_ssa_cand): Likewise.
24782         (create_mul_imm_cand): Likewise.
24783         (create_add_ssa_cand): Likewise.
24784         (create_add_imm_cand): Take a widest_int instead of a double_int.
24785         (slsr_process_add): Use wide-int interfaces.
24786         (slsr_process_cast): Likewise.
24787         (slsr_process_copy): Likewise.
24788         (dump_candidate): Likewise.
24789         (dump_incr_vec): Likewise.
24790         (replace_ref): Likewise.
24791         (cand_increment): Likewise.  Return a widest_int.
24792         (cand_abs_increment): Likewise.
24793         (replace_mult_candidate): Take a widest_int instead of a double_int.
24794         (replace_unconditional_candidate): Use wide-int interfaces.
24795         (incr_vec_index): Take a widest_int instead of a double_int.
24796         (create_add_on_incoming_edge): Likewise.
24797         (create_phi_basis): Use wide-int interfaces.
24798         (replace_conditional_candidate): Likewise.
24799         (record_increment): Take a widest_int instead of a double_int.
24800         (record_phi_increments): Use wide-int interfaces.
24801         (phi_incr_cost): Take a widest_int instead of a double_int.
24802         (lowest_cost_path): Likewise.
24803         (total_savings): Likewise.
24804         (analyze_increments): Use wide-int interfaces.
24805         (ncd_with_phi): Take a widest_int instead of a double_int.
24806         (ncd_of_cand_and_phis): Likewise.
24807         (nearest_common_dominator_for_cands): Likewise.
24808         (insert_initializers): Use wide-int interfaces.
24809         (all_phi_incrs_profitable): Likewise.
24810         (replace_one_candidate): Likewise.
24811         (replace_profitable_candidates): Likewise.
24812         * godump.c: Include wide-int-print.h.
24813         (go_output_typedef): Use wide-int interfaces.
24814         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
24815         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
24816         (build_loop_iteration_domains): Likewise.
24817         * hooks.h: Include wide-int.h rather than double-int.h.
24818         (hook_bool_dint_dint_uint_bool_true): Delete.
24819         (hook_bool_wint_wint_uint_bool_true): Declare.
24820         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
24821         (hook_bool_wint_wint_uint_bool_true): New.
24822         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
24823         interfaces.
24824         (ubsan_expand_si_overflow_mul_check): Likewise.
24825         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
24826         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
24827         (get_ancestor_addr_info): Likewise.
24828         (ipa_modify_call_arguments): Likewise.
24829         * loop-doloop.c (doloop_modify): Likewise.
24830         (doloop_optimize): Likewise.
24831         * loop-iv.c (iv_number_of_iterations): Likewise.
24832         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
24833         (unroll_loop_constant_iterations): Likewise.
24834         (decide_unroll_runtime_iterations): Likewise.
24835         (unroll_loop_runtime_iterations): Likewise.
24836         (decide_peel_simple): Likewise.
24837         (decide_unroll_stupid): Likewise.
24838         * lto-streamer-in.c (streamer_read_wi): Add.
24839         (input_cfg): Use wide-int interfaces.
24840         (lto_input_tree_1): Likewise.
24841         * lto-streamer-out.c (streamer_write_wi): Add.
24842         (hash_tree): Use wide-int interfaces.
24843         (output_cfg): Likewise.
24844         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
24845         (GTFILES): Add wide-int.h and signop.h.
24846         (TAGS): Look for .cc files too.
24847         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
24848         * optabs.c (expand_subword_shift): Likewise.
24849         (expand_doubleword_shift): Likewise.
24850         (expand_absneg_bit): Likewise.
24851         (expand_copysign_absneg): Likewise.
24852         (expand_copysign_bit): Likewise.
24853         * postreload.c (reload_cse_simplify_set): Likewise.
24854         * predict.c (predict_iv_comparison): Likewise.
24855         * pretty-print.h: Include wide-int-print.h.
24856         (pp_wide_int) New.
24857         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
24858         * print-tree.c: Include wide-int-print.h.
24859         (print_node_brief): Use wide-int interfaces.
24860         (print_node): Likewise.
24861         * read-rtl.c (validate_const_wide_int): New.
24862         (read_rtx_code): Add CONST_WIDE_INT case.
24863         * real.c: Include wide-int.h.
24864         (real_to_integer2): Delete.
24865         (real_to_integer): New function, returning a wide_int.
24866         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
24867         (ten_to_ptwo): Update call to real_from_integer.
24868         (real_digit): Likewise.
24869         * real.h: Include signop.h, wide-int.h and insn-modes.h.
24870         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
24871         (REAL_VALUE_TO_INT): Delete.
24872         (real_to_integer): Declare a wide-int form.
24873         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
24874         * recog.c (const_int_operand): Improve comment.
24875         (const_scalar_int_operand): New.
24876         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
24877         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
24878         (split_double): Likewise.
24879         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
24880         (rtx_size): Likewise.
24881         (rtx_alloc_stat_v): New.
24882         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
24883         (cwi_output_hex): New.
24884         (iterative_hash_rtx): Handle CONST_WIDE_INT.
24885         (cwi_check_failed_bounds): New.
24886         * rtl.def (CONST_WIDE_INT): New.
24887         * rtl.h: Include <utility> and wide-int.h.
24888         (struct hwivec_def): New.
24889         (CWI_GET_NUM_ELEM): New.
24890         (CWI_PUT_NUM_ELEM): New.
24891         (struct rtx_def): Add num_elem and hwiv.
24892         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
24893         (CASE_CONST_UNIQUE): Likewise.
24894         (CASE_CONST_ANY): Likewise.
24895         (CONST_SCALAR_INT_P): Likewise.
24896         (CONST_WIDE_INT_P): New.
24897         (CWI_ELT): New.
24898         (HWIVEC_CHECK): New.
24899         (cwi_check_failed_bounds): New.
24900         (CWI_ELT): New.
24901         (HWIVEC_CHECK): New.
24902         (CONST_WIDE_INT_VEC) New.
24903         (CONST_WIDE_INT_NUNITS) New.
24904         (CONST_WIDE_INT_ELT) New.
24905         (rtx_mode_t): New type.
24906         (wi::int_traits <rtx_mode_t>): New.
24907         (wi::shwi): New.
24908         (wi::min_value): New.
24909         (wi::max_value): New.
24910         (rtx_alloc_v) New.
24911         (const_wide_int_alloc): New.
24912         (immed_wide_int_const): New.
24913         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
24914         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
24915         * signop.h: New file.
24916         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
24917         (simplify_const_unary_operation): Use wide-int interfaces.
24918         (simplify_binary_operation_1): Likewise.
24919         (simplify_const_binary_operation): Likewise.
24920         (simplify_const_relational_operation): Likewise.
24921         (simplify_immed_subreg): Likewise.
24922         * stmt.c (expand_case): Likewise.
24923         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
24924         signop rather than a bool.
24925         * stor-layout.c (layout_type): Use wide-int interfaces.
24926         (initialize_sizetypes): Update calls to
24927         set_min_and_max_values_for_integral_type.
24928         (set_min_and_max_values_for_integral_type): Take a signop rather
24929         than a bool.  Use wide-int interfaces.
24930         (fixup_signed_type): Update accordingly.  Remove
24931         HOST_BITS_PER_DOUBLE_INT limit.
24932         (fixup_unsigned_type): Likewise.
24933         * system.h (STATIC_CONSTANT_P): New.
24934         (STATIC_ASSERT): New.
24935         * target.def (can_use_doloop_p): Take widest_ints rather than
24936         double_ints.
24937         * target.h: Include wide-int.h rather than double-int.h.
24938         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
24939         than double_ints.
24940         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
24941         rather than INT_CST_LT_UNSIGNED.
24942         (can_use_doloop_if_innermost): Take widest_ints rather than
24943         double_ints.
24944         * tree-affine.c: Include wide-int-print.h.
24945         (double_int_ext_for_comb): Delete.
24946         (wide_int_ext_for_comb): New.
24947         (aff_combination_zero): Use wide-int interfaces.
24948         (aff_combination_const): Take a widest_int instead of a double_int.
24949         (aff_combination_elt): Use wide-int interfaces.
24950         (aff_combination_scale): Take a widest_int instead of a double_int.
24951         (aff_combination_add_elt): Likewise.
24952         (aff_combination_add_cst): Likewise.
24953         (aff_combination_add): Use wide-int interfaces.
24954         (aff_combination_convert): Likewise.
24955         (tree_to_aff_combination): Likewise.
24956         (add_elt_to_tree): Take a widest_int instead of a double_int.
24957         (aff_combination_to_tree): Use wide-int interfaces.
24958         (aff_combination_remove_elt): Likewise.
24959         (aff_combination_add_product): Take a widest_int instead of
24960         a double_int.
24961         (aff_combination_mult): Use wide-int interfaces.
24962         (aff_combination_expand): Likewise.
24963         (double_int_constant_multiple_p): Delete.
24964         (wide_int_constant_multiple_p): New.
24965         (aff_combination_constant_multiple_p): Take a widest_int pointer
24966         instead of a double_int pointer.
24967         (print_aff): Use wide-int interfaces.
24968         (get_inner_reference_aff): Take a widest_int pointer
24969         instead of a double_int pointer.
24970         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
24971         * tree-affine.h: Include wide-int.h.
24972         (struct aff_comb_elt): Change type of coef to widest_int.
24973         (struct affine_tree_combination): Change type of offset to widest_int.
24974         (double_int_ext_for_comb): Delete.
24975         (wide_int_ext_for_comb): New.
24976         (aff_combination_const): Use widest_int instead of double_int.
24977         (aff_combination_scale): Likewise.
24978         (aff_combination_add_elt): Likewise.
24979         (aff_combination_constant_multiple_p): Likewise.
24980         (get_inner_reference_aff): Likewise.
24981         (aff_comb_cannot_overlap_p): Likewise.
24982         (aff_combination_zero_p): Use wide-int interfaces.
24983         * tree.c: Include tree.h.
24984         (init_ttree): Use make_int_cst.
24985         (tree_code_size): Removed code for INTEGER_CST case.
24986         (tree_size): Add INTEGER_CST case.
24987         (make_node_stat): Update comment.
24988         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
24989         (build_int_cst_type): Use wide-int interfaces.
24990         (double_int_to_tree): Likewise.
24991         (double_int_fits_to_tree_p): Delete.
24992         (force_fit_type_double): Delete.
24993         (force_fit_type): New.
24994         (int_cst_hash_hash): Use wide-int interfaces.
24995         (int_cst_hash_eq): Likewise.
24996         (build_int_cst_wide): Delete.
24997         (wide_int_to_tree): New.
24998         (cache_integer_cst): Use wide-int interfaces.
24999         (build_low_bits_mask): Likewise.
25000         (cst_and_fits_in_hwi): Likewise.
25001         (real_value_from_int_cst): Likewise.
25002         (make_int_cst_stat): New.
25003         (integer_zerop): Use wide_int interfaces.
25004         (integer_onep): Likewise.
25005         (integer_all_onesp): Likewise.
25006         (integer_pow2p): Likewise.
25007         (integer_nonzerop): Likewise.
25008         (tree_log2): Likewise.
25009         (tree_floor_log2): Likewise.
25010         (tree_ctz): Likewise.
25011         (int_size_in_bytes): Likewise.
25012         (mem_ref_offset): Return an offset_int rather than a double_int.
25013         (build_type_attribute_qual_variant): Use wide_int interfaces.
25014         (type_hash_eq): Likewise
25015         (tree_int_cst_equal): Likewise.
25016         (tree_int_cst_lt): Delete.
25017         (tree_int_cst_compare): Likewise.
25018         (tree_fits_shwi_p): Use wide_int interfaces.
25019         (tree_fits_uhwi_p): Likewise.
25020         (tree_int_cst_sign_bit): Likewise.
25021         (tree_int_cst_sgn): Likewise.
25022         (tree_int_cst_min_precision): Take a signop rather than a bool.
25023         (simple_cst_equal): Use wide_int interfaces.
25024         (compare_tree_int): Likewise.
25025         (iterative_hash_expr): Likewise.
25026         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
25027         INT_CST_LT.
25028         (get_type_static_bounds): Use wide_int interfaces.
25029         (tree_int_cst_elt_check_failed): New.
25030         (build_common_tree_nodes): Reordered to set prec before filling in
25031         value.
25032         (int_cst_value): Check cst_and_fits_in_hwi.
25033         (widest_int_cst_value): Use wide_int interfaces.
25034         (upper_bound_in_type): Likewise.
25035         (lower_bound_in_type): Likewise.
25036         (num_ending_zeros): Likewise.
25037         (drop_tree_overflow): Likewise.
25038         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
25039         (gen_conditions_for_pow_cst_base): Likewise.
25040         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
25041         (group_case_labels_stmt): Use wide-int interfaces.
25042         (verify_gimple_assign_binary): Likewise.
25043         (print_loop): Likewise.
25044         * tree-chrec.c (tree_fold_binomial): Likewise.
25045         * tree-core.h (struct tree_base): Add int_length.
25046         (struct tree_int_cst): Change rep of value.
25047         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
25048         (dr_may_alias_p): Likewise.
25049         (max_stmt_executions_tree): Likewise.
25050         * tree.def (INTEGER_CST): Update comment.
25051         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
25052         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
25053         * tree-dump.c: Include wide-int.h and wide-int-print.h.
25054         (dequeue_and_dump): Use wide-int interfaces.
25055         * tree.h: Include wide-int.h.
25056         (NULL_TREE): Moved to earlier loc in file.
25057         (TREE_INT_CST_ELT_CHECK): New.
25058         (tree_int_cst_elt_check_failed): New.
25059         (TYPE_SIGN): New.
25060         (TREE_INT_CST): Delete.
25061         (TREE_INT_CST_LOW): Use wide-int interfaces.
25062         (TREE_INT_CST_HIGH): Delete.
25063         (TREE_INT_CST_NUNITS): New.
25064         (TREE_INT_CST_EXT_NUNITS): Likewise.
25065         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
25066         (TREE_INT_CST_ELT): Likewise.
25067         (INT_CST_LT): Delete.
25068         (tree_int_cst_elt_check): New (two forms).
25069         (type_code_size): Update comment.
25070         (make_int_cst_stat, make_int_cst): New.
25071         (tree_to_double_int): Delete.
25072         (double_int_fits_to_tree_p): Delete.
25073         (force_fit_type_double): Delete.
25074         (build_int_cstu): Replace with out-of-line function.
25075         (build_int_cst_wide): Delete.
25076         (tree_int_cst_lt): Define inline.
25077         (tree_int_cst_le): New.
25078         (tree_int_cst_compare): Define inline.
25079         (tree_int_cst_min_precision): Take a signop rather than a bool.
25080         (wi::int_traits <const_tree>): New.
25081         (wi::int_traits <tree>): New.
25082         (wi::extended_tree): New.
25083         (wi::int_traits <wi::extended_tree>): New.
25084         (wi::to_widest): New.
25085         (wi::to_offset): New.
25086         (wi::fits_to_tree_p): New.
25087         (wi::min_value): New.
25088         (wi::max_value): New.
25089         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
25090         (copy_tree_body_r): Likewise.
25091         * tree-object-size.c (compute_object_offset): Likewise.
25092         (addr_object_size): Likewise.
25093         * tree-predcom.c: Include wide-int-print.h.
25094         (struct dref_d): Change type of offset to widest_int.
25095         (dump_dref): Call wide-int printer.
25096         (aff_combination_dr_offset): Use wide-int interfaces.
25097         (determine_offset): Take a widest_int pointer rather than a
25098         double_int pointer.
25099         (split_data_refs_to_components): Use wide-int interfaces.
25100         (suitable_component_p): Likewise.
25101         (order_drefs): Likewise.
25102         (add_ref_to_chain): Likewise.
25103         (valid_initializer_p): Likewise.
25104         (determine_roots_comp): Likewise.
25105         * tree-pretty-print.c: Include wide-int-print.h.
25106         (dump_generic_node): Use wide-int interfaces.
25107         * tree-sra.c (sra_ipa_modify_expr): Likewise.
25108         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
25109         (move_fixed_address_to_symbol): Likewise.
25110         (move_hint_to_base): Likewise.
25111         (move_pointer_to_base): Likewise.
25112         (move_variant_to_index): Likewise.
25113         (most_expensive_mult_to_index): Likewise.
25114         (addr_to_parts): Likewise.
25115         (copy_ref_info): Likewise.
25116         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25117         (indirect_refs_may_alias_p): Likewise.
25118         (stmt_kills_ref_p_1): Likewise.
25119         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
25120         * tree-ssa-ccp.c: Update comment at top of file.  Include
25121         wide-int-print.h.
25122         (struct prop_value_d): Change type of mask to widest_int.
25123         (extend_mask): New function.
25124         (dump_lattice_value): Use wide-int interfaces.
25125         (get_default_value): Likewise.
25126         (set_constant_value): Likewise.
25127         (set_value_varying): Likewise.
25128         (valid_lattice_transition): Likewise.
25129         (set_lattice_value): Likewise.
25130         (value_to_double_int): Delete.
25131         (value_to_wide_int): New.
25132         (get_value_from_alignment): Use wide-int interfaces.
25133         (get_value_for_expr): Likewise.
25134         (do_dbg_cnt): Likewise.
25135         (ccp_finalize): Likewise.
25136         (ccp_lattice_meet): Likewise.
25137         (bit_value_unop_1): Use widest_ints rather than double_ints.
25138         (bit_value_binop_1): Likewise.
25139         (bit_value_unop): Use wide-int interfaces.
25140         (bit_value_binop): Likewise.
25141         (bit_value_assume_aligned): Likewise.
25142         (evaluate_stmt): Likewise.
25143         (ccp_fold_stmt): Likewise.
25144         (visit_cond_stmt): Likewise.
25145         (ccp_visit_stmt): Likewise.
25146         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
25147         (constant_pointer_difference): Likewise.
25148         (associate_pointerplus): Likewise.
25149         (combine_conversions): Likewise.
25150         * tree-ssa-loop.h: Include wide-int.h.
25151         (struct tree_niter_desc): Change type of max to widest_int.
25152         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
25153         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
25154         (remove_redundant_iv_tests): Likewise.
25155         (canonicalize_loop_induction_variables): Likewise.
25156         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
25157         (constant_multiple_of): Take a widest_int pointer instead of
25158         a double_int pointer.
25159         (get_computation_aff): Use wide-int interfaces.
25160         (ptr_difference_cost): Likewise.
25161         (difference_cost): Likewise.
25162         (get_loop_invariant_expr_id): Likewise.
25163         (get_computation_cost_at): Likewise.
25164         (iv_elimination_compare_lt): Likewise.
25165         (may_eliminate_iv): Likewise.
25166         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
25167         instead of double_int.
25168         (max_loop_iterations): Likewise.
25169         (max_stmt_executions): Likewise.
25170         (estimated_stmt_executions): Likewise.
25171         * tree-ssa-loop-niter.c: Include wide-int-print.h.
25172         (split_to_var_and_offset): Use wide-int interfaces.
25173         (determine_value_range): Likewise.
25174         (bound_difference_of_offsetted_base): Likewise.
25175         (bounds_add): Take a widest_int instead of a double_int.
25176         (number_of_iterations_ne_max): Use wide-int interfaces.
25177         (number_of_iterations_ne): Likewise.
25178         (number_of_iterations_lt_to_ne): Likewise.
25179         (assert_loop_rolls_lt): Likewise.
25180         (number_of_iterations_lt): Likewise.
25181         (number_of_iterations_le): Likewise.
25182         (number_of_iterations_cond): Likewise.
25183         (number_of_iterations_exit): Likewise.
25184         (finite_loop_p): Likewise.
25185         (derive_constant_upper_bound_assign): Likewise.
25186         (derive_constant_upper_bound): Return a widest_int.
25187         (derive_constant_upper_bound_ops): Likewise.
25188         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
25189         (record_estimate): Take a widest_int rather than a double_int.
25190         (record_nonwrapping_iv): Use wide-int interfaces.
25191         (double_int_cmp): Delete.
25192         (wide_int_cmp): New.
25193         (bound_index): Take a widest_int rather than a double_int.
25194         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
25195         (maybe_lower_iteration_bound): Likewise.
25196         (estimate_numbers_of_iterations_loop): Likewise.
25197         (estimated_loop_iterations): Take a widest_int pointer than than
25198         a double_int pointer.
25199         (estimated_loop_iterations_int): Use wide-int interfaces.
25200         (max_loop_iterations): Take a widest_int pointer than than
25201         a double_int pointer.
25202         (max_loop_iterations_int): Use wide-int interfaces.
25203         (max_stmt_executions): Take a widest_int pointer than than
25204         a double_int pointer.
25205         (estimated_stmt_executions): Likewise.
25206         (n_of_executions_at_most): Use wide-int interfaces.
25207         (scev_probably_wraps_p): Likewise.
25208         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
25209         to real_to_integer.
25210         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
25211         interfaces.
25212         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
25213         double_ints.  Adjust for trailing_wide_ints <3> representation.
25214         (set_nonzero_bits): Likewise.
25215         (get_range_info): Return wide_ints rather than double_ints.
25216         Adjust for trailing_wide_ints <3> representation.
25217         (get_nonzero_bits): Likewise.
25218         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
25219         representation.
25220         * tree-ssanames.h (struct range_info_def): Replace min, max and
25221         nonzero_bits with a trailing_wide_ints <3>.
25222         (set_range_info): Use wide_int_refs rather than double_ints.
25223         (set_nonzero_bits): Likewise.
25224         (get_range_info): Return wide_ints rather than double_ints.
25225         (get_nonzero_bits): Likewise.
25226         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
25227         * tree-ssa-pre.c (phi_translate_1): Likewise.
25228         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
25229         (acceptable_pow_call): Likewise.
25230         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
25231         interfaces.
25232         (vn_reference_fold_indirect): Likewise.
25233         (vn_reference_maybe_forwprop_address): Likewise.
25234         (valueize_refs_1): Likewise.
25235         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
25236         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
25237         tree_int_cst_lt and tree_int_cst_le.
25238         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
25239         interfaces.
25240         (streamer_alloc_tree): Likewise.
25241         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
25242         (streamer_write_tree_header): Likewise.
25243         (streamer_write_integer_cst): Likewise.
25244         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
25245         (build_constructors): Likewise.
25246         (array_value_type): Likewise.
25247         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
25248         (vect_check_gather): Likewise.
25249         * tree-vect-generic.c (build_replicated_const): Likewise.
25250         (expand_vector_divmod): Likewise.
25251         * tree-vect-loop.c (vect_transform_loop): Likewise.
25252         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
25253         (vect_do_peeling_for_alignment): Likewise.
25254         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
25255         * tree-vrp.c: Include wide-int.h.
25256         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
25257         (extract_range_from_assert): Use wide-int interfaces.
25258         (vrp_int_const_binop): Likewise.
25259         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
25260         double_int pointers.
25261         (ranges_from_anti_range): Use wide-int interfaces.
25262         (quad_int_cmp): Delete.
25263         (quad_int_pair_sort): Likewise.
25264         (extract_range_from_binary_expr_1): Use wide-int interfaces.
25265         (extract_range_from_unary_expr_1): Likewise.
25266         (adjust_range_with_scev): Likewise.
25267         (masked_increment): Take and return wide_ints rather than double_ints.
25268         (register_edge_assert_for_2): Use wide-int interfaces.
25269         (check_array_ref): Likewise.
25270         (search_for_addr_array): Likewise.
25271         (maybe_set_nonzero_bits): Likewise.
25272         (union_ranges): Pass an integer of the correct type instead of
25273         using integer_one_node.
25274         (intersect_ranges): Likewise.
25275         (simplify_truth_ops_using_ranges): Likewise.
25276         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
25277         (range_fits_type_p): Likewise.
25278         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
25279         a bool.
25280         (simplify_conversion_using_ranges): Use wide-int interfaces.
25281         (simplify_float_conversion_using_ranges): Likewise.
25282         (vrp_finalize): Likewise.
25283         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
25284         (gimple_stringops_transform): Likewise.
25285         * varasm.c (decode_addr_const): Likewise.
25286         (const_hash_1): Likewise.
25287         (const_rtx_hash_1): Likewise
25288         (output_constant): Likewise.
25289         (array_size_for_constructor): Likewise.
25290         (output_constructor_regular_field): Likewise.
25291         (output_constructor_bitfield): Likewise.
25292         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
25293         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
25294         GENERATOR_FILEs.
25295         * gencheck.c: Define BITS_PER_UNIT.
25296         * wide-int.cc: New.
25297         * wide-int.h: New.
25298         * wide-int-print.cc: New.
25299         * wide-int-print.h: New.
25301 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25303         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
25305 2014-05-06  Richard Biener  <rguenther@suse.de>
25307         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
25308         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
25309         (TODO_verify_all): Adjust.
25310         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
25311         TODO_verify_stmts and TODO_verify_rtl_sharing.
25312         * bb-reorder.c: Likewise.
25313         * cfgexpand.c: Likewise.
25314         * cprop.c: Likewise.
25315         * cse.c: Likewise.
25316         * function.c: Likewise.
25317         * fwprop.c: Likewise.
25318         * gcse.c: Likewise.
25319         * gimple-ssa-isolate-paths.c: Likewise.
25320         * gimple-ssa-strength-reduction.c: Likewise.
25321         * ipa-split.c: Likewise.
25322         * loop-init.c: Likewise.
25323         * loop-unroll.c: Likewise.
25324         * lower-subreg.c: Likewise.
25325         * modulo-sched.c: Likewise.
25326         * postreload-gcse.c: Likewise.
25327         * predict.c: Likewise.
25328         * recog.c: Likewise.
25329         * sched-rgn.c: Likewise.
25330         * store-motion.c: Likewise.
25331         * tracer.c: Likewise.
25332         * trans-mem.c: Likewise.
25333         * tree-call-cdce.c: Likewise.
25334         * tree-cfg.c: Likewise.
25335         * tree-cfgcleanup.c: Likewise.
25336         * tree-complex.c: Likewise.
25337         * tree-eh.c: Likewise.
25338         * tree-emutls.c: Likewise.
25339         * tree-if-conv.c: Likewise.
25340         * tree-into-ssa.c: Likewise.
25341         * tree-loop-distribution.c: Likewise.
25342         * tree-object-size.c: Likewise.
25343         * tree-parloops.c: Likewise.
25344         * tree-pass.h: Likewise.
25345         * tree-sra.c: Likewise.
25346         * tree-ssa-ccp.c: Likewise.
25347         * tree-ssa-copy.c: Likewise.
25348         * tree-ssa-copyrename.c: Likewise.
25349         * tree-ssa-dce.c: Likewise.
25350         * tree-ssa-dom.c: Likewise.
25351         * tree-ssa-dse.c: Likewise.
25352         * tree-ssa-forwprop.c: Likewise.
25353         * tree-ssa-ifcombine.c: Likewise.
25354         * tree-ssa-loop-ch.c: Likewise.
25355         * tree-ssa-loop-ivcanon.c: Likewise.
25356         * tree-ssa-loop.c: Likewise.
25357         * tree-ssa-math-opts.c: Likewise.
25358         * tree-ssa-phiopt.c: Likewise.
25359         * tree-ssa-phiprop.c: Likewise.
25360         * tree-ssa-pre.c: Likewise.
25361         * tree-ssa-reassoc.c: Likewise.
25362         * tree-ssa-sink.c: Likewise.
25363         * tree-ssa-strlen.c: Likewise.
25364         * tree-ssa-tail-merge.c: Likewise.
25365         * tree-ssa-uncprop.c: Likewise.
25366         * tree-switch-conversion.c: Likewise.
25367         * tree-tailcall.c: Likewise.
25368         * tree-vect-generic.c: Likewise.
25369         * tree-vectorizer.c: Likewise.
25370         * tree-vrp.c: Likewise.
25371         * tsan.c: Likewise.
25372         * var-tracking.c: Likewise.
25373         * bt-load.c: Likewise.
25374         * cfgcleanup.c: Likewise.
25375         * combine-stack-adj.c: Likewise.
25376         * combine.c: Likewise.
25377         * compare-elim.c: Likewise.
25378         * config/epiphany/resolve-sw-modes.c: Likewise.
25379         * config/i386/i386.c: Likewise.
25380         * config/mips/mips.c: Likewise.
25381         * config/s390/s390.c: Likewise.
25382         * config/sh/sh_treg_combine.cc: Likewise.
25383         * config/sparc/sparc.c: Likewise.
25384         * dce.c: Likewise.
25385         * dse.c: Likewise.
25386         * final.c: Likewise.
25387         * ifcvt.c: Likewise.
25388         * mode-switching.c: Likewise.
25389         * passes.c: Likewise.
25390         * postreload.c: Likewise.
25391         * ree.c: Likewise.
25392         * reg-stack.c: Likewise.
25393         * regcprop.c: Likewise.
25394         * regrename.c: Likewise.
25395         * web.c: Likewise.
25397 2014-05-06  Richard Biener  <rguenther@suse.de>
25399         PR middle-end/61070
25400         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
25401         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
25403 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
25405         PR ipa/60965
25406         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
25408 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
25409             Tom de Vries  <tom@codesourcery.com>
25411         * target.def (call_fusage_contains_non_callee_clobbers): New
25412         DEFHOOKPOD.
25413         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
25414         Hooks to @menu.
25415         (@node Miscellaneous Register Hooks): New node.
25416         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
25417         * doc/tm.texi: Regenerate.
25419 2014-05-05  Marek Polacek  <polacek@redhat.com>
25421         PR driver/61065
25422         * opts.c (common_handle_option): Call error_at instead of warning_at.
25424 2014-05-05  Richard Biener  <rguenther@suse.de>
25426         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
25427         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
25428         under the TODO_verify_il umbrella.
25430 2014-05-05  Richard Biener  <rguenther@suse.de>
25432         * passes.c (execute_function_todo): Move TODO_verify_flow under
25433         the TODO_verify_ul umbrella.
25435 2014-05-05  Richard Biener  <rguenther@suse.de>
25437         PR middle-end/61010
25438         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
25439         X & CST away from a CST that is the mask of a mode.
25441 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25443         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
25444         int argument to enum machine_mode.
25445         (picochip_class_max_nregs): Ditto.
25446         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
25447         (picochip_class_max_nregs): Ditto.
25449 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25451         * target.def: Add new target hook.
25452         * doc/tm.texi: Regenerate.
25453         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
25454         * targhooks.c (default_keep_leaf_when_profiled): New function.
25456         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
25457         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
25459 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
25461         PR tree-optimization/60363
25462         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
25463         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
25464         (update_destination_phis): New parameter.
25465         (create_edge_and_update_destination_phis): Ditto.
25466         (ssa_fix_duplicate_block_edges): Pass new arguments.
25467         (thread_single_edge): Ditto.
25469 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
25471         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
25472         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
25473         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
25474         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
25475         Use RS6000_BTM_HARD_FLOAT.
25476         (BU_MISC_2): Likewise.
25477         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
25478         RS6000_BTM_HARD_FLOAT.
25479         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
25480         is explicitly used.
25481         (rs6000_invalid_builtin): Add hard floating builtin support.
25482         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
25483         hard float builtins.
25484         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
25486 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
25488         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
25489         Add missing function* argument.
25491 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
25493         * lra-constraints.c (valid_address_p): Move earlier in file.
25494         Add a constraint argument to the address_info version.
25495         (satisfies_memory_constraint_p): New function.
25496         (satisfies_address_constraint_p): Likewise.
25497         (process_alt_operands, curr_insn_transform): Use them.
25498         (process_address): Pass the constraint to valid_address_p when
25499         checking address operands.
25501 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
25503         * config/mips/mips.c (mips_isa_rev): New variable.
25504         (mips_set_architecture): Set it.
25505         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
25506         from mips_isa_rev.
25507         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
25508         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
25509         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
25510         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
25511         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
25512         conditions in terms of mips_isa_rev.
25513         (mips_isa_rev): Declare.
25515 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
25517         * config/sh/sh-mem.cc: Use tabs instead of spaces.
25518         (prob_unlikely, prob_likely): Make variables const.
25520 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
25522         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
25524 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
25526         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
25528 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
25530         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
25531         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
25532         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
25533         functions.
25534         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
25535         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
25536         sh_pass_in_reg_p.
25537         Replace usage of ROUND_REG with sh_round_reg.
25538         Use CEIL instead of ROUND_ADVANCE.
25540 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
25542         PR target/61026
25543         * config/sh/sh.c: Include stdlib headers before everything else.
25545 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
25547         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
25548         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
25549         (gimplify_adjust_omp_clauses): Simd region is never
25550         directly nested in combined parallel.  Instead, for linear
25551         with copyin/copyout, if in combined for simd loop, make decl
25552         firstprivate/lastprivate on OMP_FOR.
25553         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
25554         expand_omp_for_static_chunk): When setting endvar, also set
25555         fd->loop.v to the same value.
25557 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25559         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
25561 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
25563         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
25564         expression.
25566 2014-05-02  Marek Polacek  <polacek@redhat.com>
25568         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
25570 2014-05-02  Kito Cheng  <kito@0xlab.org>
25572         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
25573         to a C expression marco.
25574         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
25575         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
25576         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
25577         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
25578         HONOR_REG_ALLOC_ORDER.
25579         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
25581 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25583         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
25585 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25587         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
25589 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
25591         * tree-if-conv.c (is_cond_scalar_reduction): New function.
25592         (convert_scalar_cond_reduction): Likewise.
25593         (predicate_scalar_phi): Add recognition and transformation
25594         of simple conditioanl reduction to be vectorizable.
25596 2014-05-01  Marek Polacek  <polacek@redhat.com>
25598         PR c/43245
25599         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
25601 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
25603         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
25604         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
25605         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
25606         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
25607         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
25608         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
25609         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
25610         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
25612 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
25614         * config/arc/arc.opt (mlra): Move comment above option name
25615         to avoid mis-parsing as language options.
25617 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25619         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
25620         * config/sol2.h: ... here.
25621         * config/sol2-10.h: Remove.
25623         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
25624         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
25625         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
25626         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
25627         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
25628         * config/sol2.h: ... here.
25629         (SECTION_NAME_FORMAT): Don't redefine.
25630         (STARTFILE_ARCH32_SPEC): Rename to ...
25631         (STARTFILE_ARCH_SPEC): ... this.
25632         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
25633         * config/sparc/sol2.h: ... here.
25634         (SECTION_NAME_FORMAT): Don't undef.
25635         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
25636         (SUBTARGET_EXTRA_SPECS): Remove.
25637         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
25639         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
25640         (MD_STARTFILE_PREFIX): Remove.
25641         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
25642         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
25643         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
25644         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
25645         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
25646         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
25647         * config/i386/sol2.h: ... here.
25648         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
25649         * config/i386/sol2-bi.h: Remove.
25650         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
25651         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
25653         * config/i386/t-sol2-64: Rename to ...
25654         * config/i386/t-sol2: ... this.
25655         * config/sparc/t-sol2-64: Rename to ...
25656         * config/sparc/t-sol2: ... this.
25658         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
25659         sol2_tm_file_head, sol2_tm_file_tail.
25660         Include ${cpu_type}/sol2.h before sol2.h.
25661         Remove sol2-10.h.
25662         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
25663         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
25664         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
25665         Reflect i386/t-sol2-64 renaming.
25666         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
25667         Reflect sparc/t-sol2-64 renaming.
25669 2014-04-30  Richard Biener  <rguenther@suse.de>
25671         * passes.c (execute_function_todo): Move TODO_verify_stmts
25672         and TODO_verify_ssa under the TODO_verify_il umbrella.
25673         * tree-ssa.h (verify_ssa): Adjust prototype.
25674         * tree-ssa.c (verify_ssa): Add parameter to tell whether
25675         we should verify SSA operands.
25676         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
25677         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
25678         whether we should verify whether not throwing stmts have EH info.
25679         * graphite-scop-detection.c (create_sese_edges): Adjust.
25680         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
25681         * tree-eh.c (lower_try_finally_switch): Do not add the
25682         default case label twice.
25684 2014-04-30  Marek Polacek  <polacek@redhat.com>
25686         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
25687         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
25688         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
25689         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
25691 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
25693         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
25694         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
25695         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
25696         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
25697         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
25698         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
25699         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
25700         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
25702 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
25704         * tree-cfg.c (dump_function_to_file): Dump the return type of
25705         functions, in a line to itself before the function body, mimicking
25706         the layout of a C function.
25708 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
25710         PR tree-optimization/60971
25711         * tree-tailcall.c (process_assignment): Reject conversions which
25712         reduce precision.
25714 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
25716         * calls.c (initialize_argument_information): Always treat
25717         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
25718         (expand_call): Likewise.
25719         (emit_library_call_calue_1): Likewise.
25720         * expr.c (PUSH_ARGS_REVERSED): Do not define.
25721         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
25722         code accordingly.
25724 2014-04-29  Nick Clifton  <nickc@redhat.com>
25726         * config/msp430/msp430.md (umulsidi): Fix typo.
25727         (mulhisi3): Enable even inside interrupt handlers.
25728         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
25729         bigger return address pushed in large mode.
25731 2014-04-29  Nick Clifton  <nickc@redhat.com>
25733         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
25734         (arc_init_reg_tables): Use a machine_mode enum to iterate over
25735         available modes.
25736         * config/m32r/m32r.c (init_reg_tables): Likewise.
25737         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
25738         enum to hold the modes.
25740 2014-04-29  Richard Biener  <rguenther@suse.de>
25742         * dominance.c (free_dominance_info): Add overload with
25743         function parameter.
25744         (dom_info_state): Likewise.
25745         (dom_info_available_p): Likewise.
25746         * basic-block.h (free_dominance_info, dom_info_state,
25747         dom_info_available_p): Declare overloads.
25748         * passes.c (execute_function_todo): Verify that verifiers
25749         don't change dominator info state.  Drop dominator info
25750         for IPA pass invocations.
25751         * cgraph.c (release_function_body): Restore asserts that
25752         dominator information is released.
25754 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
25756         * doc/invoke.texi: Fix typo.
25757         * tree-vrp.c: Fix typos.
25758         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
25760 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25762         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
25764 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
25766         * config/aarch64/aarch64-builtins.c
25767         (aarch64_types_storestruct_lane_qualifiers): New.
25768         (TYPES_STORESTRUCT_LANE): Likewise.
25769         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
25770         (st3_lane): Likewise.
25771         (st4_lane): Likewise.
25772         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
25773         (vec_store_lanesci_lane<mode>): Likewise.
25774         (vec_store_lanesxi_lane<mode>): Likewise.
25775         (aarch64_st2_lane<VQ:mode>): Likewise.
25776         (aarch64_st3_lane<VQ:mode>): Likewise.
25777         (aarch64_st4_lane<VQ:mode>): Likewise.
25778         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
25779         * config/aarch64/arm_neon.h
25780         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
25781         use new macro arguments.
25782         (__ST3_LANE_FUNC): Likewise.
25783         (__ST4_LANE_FUNC): Likewise.
25784         * config/aarch64/iterators.md (V_TWO_ELEM): New.
25785         (V_THREE_ELEM): Likewise.
25786         (V_FOUR_ELEM): Likewise.
25788 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
25790         * doc/gimple.texi: Replace the description of the now-defunct
25791         union gimple_statement_d with a diagram showing the
25792         gimple_statement_base class hierarchy and its relationships to
25793         the GSS_ and GIMPLE_ enums.
25795 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
25797         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
25798         * config/aarch64/aarch64.c
25799         (aarch64_cannot_change_mode_class): Weaken conditions.
25800         (aarch64_modes_tieable_p): New.
25801         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
25803 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
25805         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25806         (loadsync_<mode>): Change mode.
25807         (load_quadpti, store_quadpti): New.
25808         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25809         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25811 2014-04-28  Martin Jambor  <mjambor@suse.cz>
25813         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
25814         same alias type as the original statement.
25815         (subreplacement_assignment_data): New type.
25816         (handle_unscalarized_data_in_subtree): New type of parameter,
25817         generate new memory accesses with same alias type as the original
25818         statement.
25819         (load_assign_lhs_subreplacements): Likewise.
25820         (sra_modify_constructor_assign): Generate new memory accesses with
25821         same alias type as the original statement.
25823 2014-04-28  Richard Biener  <rguenther@suse.de>
25825         * tree-pass.h (TODO_verify_il): Define.
25826         (TODO_verify_all): Complete properly.
25827         * passes.c (execute_function_todo): Move existing loop-closed
25828         SSA verification under TODO_verify_il.
25829         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
25830         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
25831         Fix tree sharing issue.
25833 2014-04-28  Richard Biener  <rguenther@suse.de>
25835         PR middle-end/60092
25836         * builtins.def (DEF_C11_BUILTIN): Add.
25837         (BUILT_IN_ALIGNED_ALLOC): Likewise.
25838         * coretypes.h (enum function_class): Add function_c11_misc.
25839         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
25840         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
25841         (call_may_clobber_ref_p_1): Likewise.
25842         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
25843         (mark_all_reaching_defs_necessary_1): Likewise.
25844         (propagate_necessity): Likewise.
25845         (eliminate_unnecessary_stmts): Likewise.
25846         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
25848 2014-04-28  Richard Biener  <rguenther@suse.de>
25850         * tree-vrp.c (vrp_var_may_overflow): Remove.
25851         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
25852         with overflow immediately bump to one before that value and
25853         let iteration figure out overflow status.
25855 2014-04-28  Richard Biener  <rguenther@suse.de>
25857         * configure.ac: Do valgrind header checks unconditionally.
25858         Add --enable-valgrind-annotations.
25859         * system.h: Guard valgrind header inclusion with
25860         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
25861         * alloc-pool.c (pool_alloc, pool_free): Use
25862         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
25863         to guard possibly dead code.
25864         * config.in: Regenerated.
25865         * configure: Likewise.
25867 2014-04-28  Jeff Law  <law@redhat.com>
25869         PR tree-optimization/60902
25870         * tree-ssa-threadedge.c
25871         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
25872         over real defs when invalidating outputs from statements that do not
25873         produce useful outputs for threading.
25875 2014-04-28  Richard Biener  <rguenther@suse.de>
25877         PR tree-optimization/60979
25878         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
25879         SCOPs that end in a block with a successor with abnormal
25880         predecessors.
25882 2014-04-28  Richard Biener  <rguenther@suse.de>
25884         * tree-pass.h (execute_pass_list): Adjust prototype.
25885         * passes.c (pass_manager::execute_early_local_passes): Adjust.
25886         (do_per_function): Change callback signature, push all actual
25887         work to the callbals.
25888         (do_per_function_toporder): Likewise.
25889         (execute_function_dump): Adjust.
25890         (execute_function_todo): Likewise.
25891         (clear_last_verified): Likewise.
25892         (verify_curr_properties): Likewise.
25893         (update_properties_after_pass): Likewise.
25894         (execute_pass_list_1): Split out from ...
25895         (execute_pass_list): ... here.  Adjust.
25896         (execute_ipa_pass_list): Likewise.
25897         * cgraphunit.c (cgraph_add_new_function): Adjust.
25898         (analyze_function): Likewise.
25899         (expand_function): Likewise.
25900         * cgraph.c (release_function_body): Free dominance info
25901         here instead of asserting it was magically freed elsewhere.
25903 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
25905         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
25906         * configure: Regenerate.
25907         * config/sparc/sparc.opt (muser-mode): New option.
25908         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
25909         for LEON3.
25910         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
25911         * doc/invoke.texi (SPARC options): Document -muser-mode.
25913 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
25915         * cselib.c (find_slot_memmode): Delete.
25916         (cselib_hasher): Change compare_type to a struct.
25917         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
25918         constants.
25919         (preserve_constants_and_equivs): Adjust for new compare_type.
25920         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
25921         (wrap_constant): Delete.
25922         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
25924 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
25926         * doc/install.texi (Building with profile feedback): Remove
25927         outdated sentence.
25929 2014-04-26  Tom de Vries  <tom@codesourcery.com>
25931         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
25932         array accesses.
25934 2014-04-25  Cary Coutant  <ccoutant@google.com>
25936         PR debug/60929
25937         * dwarf2out.c (should_move_die_to_comdat): A type definition
25938         can contain a subprogram definition, but don't move it to a
25939         comdat unit.
25940         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
25941         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
25942         from original DIE.
25943         (clone_tree_hash): Rename to...
25944         (clone_tree_partial): ...this; change callers.  Copy
25945         DW_TAG_subprogram DIEs as declarations.
25946         (copy_decls_walk): Don't copy children of a declaration into a
25947         type unit.
25949 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
25951         PR target/60969
25952         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
25953         alternative 12.
25955 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
25957         * config/arm/predicates.md (call_insn_operand): Add long_call check.
25958         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
25959         reg for long_call.
25960         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
25961         restriction.
25963 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25965         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
25967 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25969         PR tree-optimization/60930
25970         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
25971         creating a multiply candidate by folding two constant
25972         multiplicands when the result overflows.
25974 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
25976         PR tree-optimization/60960
25977         * tree-vect-generic.c (expand_vector_operation): Only call
25978         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
25980 2014-04-25  Tom de Vries  <tom@codesourcery.com>
25982         * expr.c (clobber_reg_mode): New function.
25983         * expr.h (clobber_reg): New function.
25985 2014-04-25  Tom de Vries  <tom@codesourcery.com>
25987         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
25988         clobbers.
25990 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
25991             Tom de Vries  <tom@codesourcery.com>
25993         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
25994         handle.
25995         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
25996         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
25997         new argument to find_all_hard_reg_sets call.
25999 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26001         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
26002         Use HOST_WIDE_INT_C for mask literal.
26003         (aarch_rev16_shleft_mask_imm_p): Likewise.
26005 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
26007         PR target/60941
26008         * config/sparc/sparc.md (ashlsi3_extend): Delete.
26010 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
26012         PR preprocessor/56540
26013         * config/i386/i386-c.c (ix86_target_macros): Define
26014         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
26016 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26018         * configure.ac (tga_func): Remove.
26019         (LIB_TLS_SPEC): Remove.
26020         * configure: Regenerate.
26021         * config.in: Regenerate.
26022         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
26024 2014-04-25  Richard Biener  <rguenther@suse.de>
26026         PR ipa/60912
26027         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
26028         call stmt use/clobber sets during stmt walk instead of
26029         walking the possibly incomplete set of caller edges.
26031 2014-04-25  Richard Biener  <rguenther@suse.de>
26033         PR ipa/60911
26034         * passes.c (apply_ipa_transforms): Inline into only caller ...
26035         (execute_one_pass): ... here.  Properly bring in function
26036         bodies for nodes we want to apply IPA transforms to.
26038 2014-04-24  Cong Hou  <congh@google.com>
26040         PR tree-optimization/60896
26041         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
26042         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
26043         (vect_mark_pattern_stmts): Set the def type of all statements in
26044         PATTERN_DEF_SEQ as vect_internal_def.
26046 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
26048         * doc/extend.texi (PowerPC Built-in Functions): Document new
26049         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
26050         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
26052         * config/rs6000/predicates.md (const_0_to_3_operand): New
26053         predicate to match 0..3 integer constants.
26055         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
26056         to support adding miscellaneous builtin functions.
26057         (BU_DFP_MISC_2): Likewise.
26058         (BU_P7_MISC_1): Likewise.
26059         (BU_P7_MISC_2): Likewise.
26060         (BU_P8V_MISC_3): Likewise.
26061         (BU_MISC_1): Likewise.
26062         (BU_MISC_2): Likewise.
26063         (DIVWE): Add extended divide builtin functions.
26064         (DIVWEO): Likewise.
26065         (DIVWEU): Likewise.
26066         (DIVWEUO): Likewise.
26067         (DIVDE): Likewise.
26068         (DIVDEO): Likewise.
26069         (DIVDEU): Likewise.
26070         (DIVDEUO): Likewise.
26071         (DXEX): Add decimal floating-point builtin functions.
26072         (DXEXQ): Likewise.
26073         (DDEDPD): Likewise.
26074         (DDEDPDQ): Likewise.
26075         (DENBCD): Likewise.
26076         (DENBCDQ): Likewise.
26077         (DIEX): Likewise.
26078         (DIEXQ): Likewise.
26079         (DSCLI): Likewise.
26080         (DSCLIQ): Likewise.
26081         (DSCRI): Likewise.
26082         (DSCRIQ): Likewise.
26083         (CDTBCD): Add new BCD builtin functions.
26084         (CBCDTD): Likewise.
26085         (ADDG6S): Likewise.
26086         (BCDADD): Likewise.
26087         (BCDADD_LT): Likewise.
26088         (BCDADD_EQ): Likewise.
26089         (BCDADD_GT): Likewise.
26090         (BCDADD_OV): Likewise.
26091         (BCDSUB): Likewise.
26092         (BCDSUB_LT): Likewise.
26093         (BCDSUB_EQ): Likewise.
26094         (BCDSUB_GT): Likewise.
26095         (BCDSUB_OV): Likewise.
26096         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
26097         (UNPACK_TD): Likewise.
26098         (PACK_TF): Likewise.
26099         (UNPACK_TF): Likewise.
26100         (UNPACK_TF_0): Likewise.
26101         (UNPACK_TF_1): Likewise.
26102         (PACK_V1TI): Likewise.
26103         (UNPACK_V1TI): Likewise.
26105         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
26106         support for decimal floating point builtin functions.
26107         (rs6000_expand_ternop_builtin): Add checks for the new builtin
26108         functions that take constant arguments.
26109         (rs6000_invalid_builtin): Add decimal floating point builtin support.
26110         (rs6000_init_builtins): Setup long double, _Decimal64, and
26111         _Decimal128 types for new builtin functions.
26112         (builtin_function_type): Set the unsigned flags appropriately for
26113         the new builtin functions.
26114         (rs6000_opt_masks): Add support for decimal floating point builtin
26115         functions.
26117         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
26118         floating point builtin functions.
26119         (RS6000_BTM_COMMON): Likewise.
26120         (RS6000_BTI_long_double): Likewise.
26121         (RS6000_BTI_dfloat64): Likewise.
26122         (RS6000_BTI_dfloat128): Likewise.
26123         (long_double_type_internal_node): Likewise.
26124         (dfloat64_type_internal_node): Likewise.
26125         (dfloat128_type_internal_node): Likewise.
26127         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
26128         2.07 bcd arithmetic instructions.
26129         (UNSPEC_BCDSUB): Likewise.
26130         (UNSPEC_BCD_OVERFLOW): Likewise.
26131         (UNSPEC_BCD_ADD_SUB): Likewise.
26132         (bcd_add_sub): Likewise.
26133         (BCD_TEST): Likewise.
26134         (bcd<bcd_add_sub>): Likewise.
26135         (bcd<bcd_add_sub>_test): Likewise.
26136         (bcd<bcd_add_sub>_test2): Likewise.
26137         (bcd<bcd_add_sub>_<code>): Likewise.
26138         (peephole2 for combined bcd ops): Likewise.
26140         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
26141         decimal floating point builtin functions.
26142         (UNSPEC_DENBCD): Likewise.
26143         (UNSPEC_DXEX): Likewise.
26144         (UNSPEC_DIEX): Likewise.
26145         (UNSPEC_DSCLI): Likewise.
26146         (UNSPEC_DSCRI): Likewise.
26147         (D64_D128): Likewise.
26148         (dfp_suffix): Likewise.
26149         (dfp_ddedpd_<mode>): Likewise.
26150         (dfp_denbcd_<mode>): Likewise.
26151         (dfp_dxex_<mode>): Likewise.
26152         (dfp_diex_<mode>): Likewise.
26153         (dfp_dscli_<mode>): Likewise.
26154         (dfp_dscri_<mode>): Likewise.
26156         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
26157         builtin functions.
26158         (UNSPEC_CDTBCD): Likewise.
26159         (UNSPEC_CBCDTD): Likewise.
26160         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
26161         (UNSPEC_DIVEO): Likewise.
26162         (UNSPEC_DIVEU): Likewise.
26163         (UNSPEC_DIVEUO): Likewise.
26164         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
26165         pack/unpack 128-bit types.
26166         (UNSPEC_PACK_128BIT): Likewise.
26167         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
26168         (udiv<mode>3): Use idiv_ldiv mode attribute.
26169         (div<mode>3): Likewise.
26170         (addg6s): Add new BCD builtin functions.
26171         (cdtbcd): Likewise.
26172         (cbcdtd): Likewise.
26173         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
26174         (div_extend): Likewise.
26175         (div<div_extend>_<mode>"): Likewise.
26176         (FP128_64): Add support for new builtin functions to pack/unpack
26177         128-bit types.
26178         (unpack<mode>): Likewise.
26179         (unpacktf_0): Likewise.
26180         (unpacktf_1): Likewise.
26181         (unpack<mode>_dm): Likewise.
26182         (unpack<mode>_nodm): Likewise.
26183         (pack<mode>): Likewise.
26184         (unpackv1ti): Likewise.
26185         (packv1ti): Likewise.
26187 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
26189         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
26190         is disabled.
26192 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
26194         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
26195         * gimplify.c (omp_is_private): Change last argument's type to int.
26196         Only diagnose lastprivate if the simd argument is 1, only diagnose
26197         linear if the simd argument is 2.
26198         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
26199         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
26200         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
26201         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
26202         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
26203         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
26204         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
26205         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
26206         * tree-nested.c (convert_nonlocal_omp_clauses,
26207         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
26209 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
26211         PR target/60822
26212         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
26213         operand 1.
26215 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
26217         * flag-types.h (enum ivar_visibility): Add.
26219 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
26221         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
26222         function * argument.
26224 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
26226         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
26228 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
26229             Tom de Vries  <tom@codesourcery.com>
26231         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
26232         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
26233         reg-note.
26234         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
26235         * emit-rtl.c (try_split): Same.
26237 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
26238             Tom de Vries  <tom@codesourcery.com>
26240         * common.opt (fuse-caller-save): New option.
26242 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
26244         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
26245         elements for big-endian.
26247 2014-04-24  Richard Biener  <rguenther@suse.de>
26249         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
26250         during TER and instead use the sepops interface for expanding
26251         non-GIMPLE_SINGLE_RHS.
26253 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26255         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
26256         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
26258 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26260         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
26261         assembler 64-bit option.
26262         * configure: Regenerate.
26264 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26266         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
26267         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
26268         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
26269         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
26270         (TARGET_CRYPTO): Take TARGET_SIMD into account.
26272 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26274         * config/aarch64/aarch64-builtins.c
26275         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
26276         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
26277         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
26278         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
26279         builtins.
26280         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
26281         (Vrevsuff): New mode attribute.
26283 2014-04-24  Terry Guo  <terry.guo@arm.com>
26285         * config/arm/arm.h (machine_function): Define variable
26286         after_arm_reorg here.
26287         * config/arm/arm.c (after_arm_reorg): Remove the definition.
26288         (arm_split_constant): Update the way to access variable
26289         after_arm_reorg.
26290         (arm_reorg): Ditto.
26291         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
26293 2014-04-23  Tom de Vries  <tom@codesourcery.com>
26295         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
26297 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
26299         * is-a.h: Update comments to reflect the following changes to the
26300         "pointerness" of the API, making the template parameter match the
26301         return type, allowing use of is-a.h with typedefs of pointers.
26302         (is_a_helper::cast): Return a T rather then a pointer to a T, so
26303         that the return type matches the parameter to the is_a_helper.
26304         (as_a): Likewise.
26305         (dyn_cast): Likewise.
26307         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
26308         pointer from the is-a.h API.
26310         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
26311         (is_a_helper <cgraph_node *>::test): ...this, matching change to
26312         is-a.h API.
26313         (is_a_helper <varpool_node>::test): Likewise, convert to...
26314         (is_a_helper <varpool_node *>::test): ...this.
26316         (varpool_first_variable): Update for removal of implicit pointer
26317         from the is-a.h API.
26318         (varpool_next_variable): Likewise.
26319         (varpool_first_static_initializer): Likewise.
26320         (varpool_next_static_initializer): Likewise.
26321         (varpool_first_defined_variable): Likewise.
26322         (varpool_next_defined_variable): Likewise.
26323         (cgraph_first_defined_function): Likewise.
26324         (cgraph_next_defined_function): Likewise.
26325         (cgraph_first_function): Likewise.
26326         (cgraph_next_function): Likewise.
26327         (cgraph_first_function_with_gimple_body): Likewise.
26328         (cgraph_next_function_with_gimple_body): Likewise.
26329         (cgraph_alias_target): Likewise.
26330         (varpool_alias_target): Likewise.
26331         (cgraph_function_or_thunk_node): Likewise.
26332         (varpool_variable_node): Likewise.
26333         (symtab_real_symbol_p): Likewise.
26334         * cgraphunit.c (referred_to_p): Likewise.
26335         (analyze_functions): Likewise.
26336         (handle_alias_pairs): Likewise.
26337         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
26338         * gimple-ssa.h (gimple_vuse_op): Likewise.
26339         (gimple_vdef_op): Likewise.
26340         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
26341         * gimple.c (gimple_build_asm_1): Likewise.
26342         (gimple_build_try): Likewise.
26343         (gimple_build_resx): Likewise.
26344         (gimple_build_eh_dispatch): Likewise.
26345         (gimple_build_omp_for): Likewise.
26346         (gimple_omp_for_set_clauses): Likewise.
26348         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
26349         (is_a_helper <gimple_statement_asm *>::test): ...this.
26350         (is_a_helper <gimple_statement_bind>::test): Convert to...
26351         (is_a_helper <gimple_statement_bind *>::test): ...this.
26352         (is_a_helper <gimple_statement_call>::test): Convert to...
26353         (is_a_helper <gimple_statement_call *>::test): ...this.
26354         (is_a_helper <gimple_statement_catch>::test): Convert to...
26355         (is_a_helper <gimple_statement_catch *>::test): ...this.
26356         (is_a_helper <gimple_statement_resx>::test): Convert to...
26357         (is_a_helper <gimple_statement_resx *>::test): ...this.
26358         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
26359         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
26360         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
26361         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
26362         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
26363         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
26364         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
26365         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
26366         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
26367         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
26368         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
26369         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
26370         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
26371         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
26372         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
26373         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
26374         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
26375         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
26376         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
26377         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
26378         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
26379         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
26380         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
26381         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
26382         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
26383         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
26384         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
26385         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
26386         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
26387         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
26388         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
26389         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
26390         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
26391         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
26392         (is_a_helper <gimple_statement_phi>::test): Convert to...
26393         (is_a_helper <gimple_statement_phi *>::test): ...this.
26394         (is_a_helper <gimple_statement_transaction>::test): Convert to...
26395         (is_a_helper <gimple_statement_transaction *>::test): ...this.
26396         (is_a_helper <gimple_statement_try>::test): Convert to...
26397         (is_a_helper <gimple_statement_try *>::test): ...this.
26398         (is_a_helper <gimple_statement_wce>::test): Convert to...
26399         (is_a_helper <gimple_statement_wce *>::test): ...this.
26400         (is_a_helper <const gimple_statement_asm>::test): Convert to...
26401         (is_a_helper <const gimple_statement_asm *>::test): ...this.
26402         (is_a_helper <const gimple_statement_bind>::test): Convert to...
26403         (is_a_helper <const gimple_statement_bind *>::test): ...this.
26404         (is_a_helper <const gimple_statement_call>::test): Convert to...
26405         (is_a_helper <const gimple_statement_call *>::test): ...this.
26406         (is_a_helper <const gimple_statement_catch>::test): Convert to...
26407         (is_a_helper <const gimple_statement_catch *>::test): ...this.
26408         (is_a_helper <const gimple_statement_resx>::test): Convert to...
26409         (is_a_helper <const gimple_statement_resx *>::test): ...this.
26410         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
26411         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
26412         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
26413         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
26414         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
26415         Convert to...
26416         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
26417         ...this.
26418         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
26419         Convert to...
26420         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
26421         ...this.
26422         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
26423         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
26424         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
26425         to...
26426         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
26427         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
26428         to...
26429         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
26430         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
26431         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
26432         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
26433         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
26434         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
26435         to...
26436         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
26437         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
26438         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
26439         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
26440         to...
26441         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
26442         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
26443         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
26444         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
26445         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
26446         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
26447         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
26448         (is_a_helper <const gimple_statement_phi>::test): Convert to...
26449         (is_a_helper <const gimple_statement_phi *>::test): ...this.
26450         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
26451         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
26452         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
26453         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
26454         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
26455         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
26456         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
26457         to...
26458         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
26459         ...this.
26460         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
26461         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
26463         (gimple_use_ops): Update for removal of implicit pointer from the
26464         is-a.h API.
26465         (gimple_set_use_ops): Likewise.
26466         (gimple_vuse): Likewise.
26467         (gimple_vdef): Likewise.
26468         (gimple_vuse_ptr): Likewise.
26469         (gimple_vdef_ptr): Likewise.
26470         (gimple_set_vuse): Likewise.
26471         (gimple_set_vdef): Likewise.
26472         (gimple_omp_return_set_lhs): Likewise.
26473         (gimple_omp_return_lhs): Likewise.
26474         (gimple_omp_return_lhs_ptr): Likewise.
26475         (gimple_call_fntype): Likewise.
26476         (gimple_call_set_fntype): Likewise.
26477         (gimple_call_set_internal_fn): Likewise.
26478         (gimple_call_use_set): Likewise.
26479         (gimple_call_clobber_set): Likewise.
26480         (gimple_bind_vars): Likewise.
26481         (gimple_bind_set_vars): Likewise.
26482         (gimple_bind_body_ptr): Likewise.
26483         (gimple_bind_set_body): Likewise.
26484         (gimple_bind_add_stmt): Likewise.
26485         (gimple_bind_block): Likewise.
26486         (gimple_bind_set_block): Likewise.
26487         (gimple_asm_ninputs): Likewise.
26488         (gimple_asm_noutputs): Likewise.
26489         (gimple_asm_nclobbers): Likewise.
26490         (gimple_asm_nlabels): Likewise.
26491         (gimple_asm_input_op): Likewise.
26492         (gimple_asm_input_op_ptr): Likewise.
26493         (gimple_asm_output_op): Likewise.
26494         (gimple_asm_output_op_ptr): Likewise.
26495         (gimple_asm_set_output_op): Likewise.
26496         (gimple_asm_clobber_op): Likewise.
26497         (gimple_asm_set_clobber_op): Likewise.
26498         (gimple_asm_label_op): Likewise.
26499         (gimple_asm_set_label_op): Likewise.
26500         (gimple_asm_string): Likewise.
26501         (gimple_catch_types): Likewise.
26502         (gimple_catch_types_ptr): Likewise.
26503         (gimple_catch_handler_ptr): Likewise.
26504         (gimple_catch_set_types): Likewise.
26505         (gimple_catch_set_handler): Likewise.
26506         (gimple_eh_filter_types): Likewise.
26507         (gimple_eh_filter_types_ptr): Likewise.
26508         (gimple_eh_filter_failure_ptr): Likewise.
26509         (gimple_eh_filter_set_types): Likewise.
26510         (gimple_eh_filter_set_failure): Likewise.
26511         (gimple_eh_must_not_throw_fndecl): Likewise.
26512         (gimple_eh_must_not_throw_set_fndecl): Likewise.
26513         (gimple_eh_else_n_body_ptr): Likewise.
26514         (gimple_eh_else_e_body_ptr): Likewise.
26515         (gimple_eh_else_set_n_body): Likewise.
26516         (gimple_eh_else_set_e_body): Likewise.
26517         (gimple_try_eval_ptr): Likewise.
26518         (gimple_try_cleanup_ptr): Likewise.
26519         (gimple_try_set_eval): Likewise.
26520         (gimple_try_set_cleanup): Likewise.
26521         (gimple_wce_cleanup_ptr): Likewise.
26522         (gimple_wce_set_cleanup): Likewise.
26523         (gimple_phi_capacity): Likewise.
26524         (gimple_phi_num_args): Likewise.
26525         (gimple_phi_result): Likewise.
26526         (gimple_phi_result_ptr): Likewise.
26527         (gimple_phi_set_result): Likewise.
26528         (gimple_phi_arg): Likewise.
26529         (gimple_phi_set_arg): Likewise.
26530         (gimple_resx_region): Likewise.
26531         (gimple_resx_set_region): Likewise.
26532         (gimple_eh_dispatch_region): Likewise.
26533         (gimple_eh_dispatch_set_region): Likewise.
26534         (gimple_omp_critical_name): Likewise.
26535         (gimple_omp_critical_name_ptr): Likewise.
26536         (gimple_omp_critical_set_name): Likewise.
26537         (gimple_omp_for_clauses): Likewise.
26538         (gimple_omp_for_clauses_ptr): Likewise.
26539         (gimple_omp_for_set_clauses): Likewise.
26540         (gimple_omp_for_collapse): Likewise.
26541         (gimple_omp_for_index): Likewise.
26542         (gimple_omp_for_index_ptr): Likewise.
26543         (gimple_omp_for_set_index): Likewise.
26544         (gimple_omp_for_initial): Likewise.
26545         (gimple_omp_for_initial_ptr): Likewise.
26546         (gimple_omp_for_set_initial): Likewise.
26547         (gimple_omp_for_final): Likewise.
26548         (gimple_omp_for_final_ptr): Likewise.
26549         (gimple_omp_for_set_final): Likewise.
26550         (gimple_omp_for_incr): Likewise.
26551         (gimple_omp_for_incr_ptr): Likewise.
26552         (gimple_omp_for_set_incr): Likewise.
26553         (gimple_omp_for_pre_body_ptr): Likewise.
26554         (gimple_omp_for_set_pre_body): Likewise.
26555         (gimple_omp_parallel_clauses): Likewise.
26556         (gimple_omp_parallel_clauses_ptr): Likewise.
26557         (gimple_omp_parallel_set_clauses): Likewise.
26558         (gimple_omp_parallel_child_fn): Likewise.
26559         (gimple_omp_parallel_child_fn_ptr): Likewise.
26560         (gimple_omp_parallel_set_child_fn): Likewise.
26561         (gimple_omp_parallel_data_arg): Likewise.
26562         (gimple_omp_parallel_data_arg_ptr): Likewise.
26563         (gimple_omp_parallel_set_data_arg): Likewise.
26564         (gimple_omp_task_clauses): Likewise.
26565         (gimple_omp_task_clauses_ptr): Likewise.
26566         (gimple_omp_task_set_clauses): Likewise.
26567         (gimple_omp_task_child_fn): Likewise.
26568         (gimple_omp_task_child_fn_ptr): Likewise.
26569         (gimple_omp_task_set_child_fn): Likewise.
26570         (gimple_omp_task_data_arg): Likewise.
26571         (gimple_omp_task_data_arg_ptr): Likewise.
26572         (gimple_omp_task_set_data_arg): Likewise.
26573         (gimple_omp_taskreg_clauses): Likewise.
26574         (gimple_omp_taskreg_clauses_ptr): Likewise.
26575         (gimple_omp_taskreg_set_clauses): Likewise.
26576         (gimple_omp_taskreg_child_fn): Likewise.
26577         (gimple_omp_taskreg_child_fn_ptr): Likewise.
26578         (gimple_omp_taskreg_set_child_fn): Likewise.
26579         (gimple_omp_taskreg_data_arg): Likewise.
26580         (gimple_omp_taskreg_data_arg_ptr): Likewise.
26581         (gimple_omp_taskreg_set_data_arg): Likewise.
26582         (gimple_omp_task_copy_fn): Likewise.
26583         (gimple_omp_task_copy_fn_ptr): Likewise.
26584         (gimple_omp_task_set_copy_fn): Likewise.
26585         (gimple_omp_task_arg_size): Likewise.
26586         (gimple_omp_task_arg_size_ptr): Likewise.
26587         (gimple_omp_task_set_arg_size): Likewise.
26588         (gimple_omp_task_arg_align): Likewise.
26589         (gimple_omp_task_arg_align_ptr): Likewise.
26590         (gimple_omp_task_set_arg_align): Likewise.
26591         (gimple_omp_single_clauses): Likewise.
26592         (gimple_omp_single_clauses_ptr): Likewise.
26593         (gimple_omp_single_set_clauses): Likewise.
26594         (gimple_omp_target_clauses): Likewise.
26595         (gimple_omp_target_clauses_ptr): Likewise.
26596         (gimple_omp_target_set_clauses): Likewise.
26597         (gimple_omp_target_child_fn): Likewise.
26598         (gimple_omp_target_child_fn_ptr): Likewise.
26599         (gimple_omp_target_set_child_fn): Likewise.
26600         (gimple_omp_target_data_arg): Likewise.
26601         (gimple_omp_target_data_arg_ptr): Likewise.
26602         (gimple_omp_target_set_data_arg): Likewise.
26603         (gimple_omp_teams_clauses): Likewise.
26604         (gimple_omp_teams_clauses_ptr): Likewise.
26605         (gimple_omp_teams_set_clauses): Likewise.
26606         (gimple_omp_sections_clauses): Likewise.
26607         (gimple_omp_sections_clauses_ptr): Likewise.
26608         (gimple_omp_sections_set_clauses): Likewise.
26609         (gimple_omp_sections_control): Likewise.
26610         (gimple_omp_sections_control_ptr): Likewise.
26611         (gimple_omp_sections_set_control): Likewise.
26612         (gimple_omp_for_set_cond): Likewise.
26613         (gimple_omp_for_cond): Likewise.
26614         (gimple_omp_atomic_store_set_val): Likewise.
26615         (gimple_omp_atomic_store_val): Likewise.
26616         (gimple_omp_atomic_store_val_ptr): Likewise.
26617         (gimple_omp_atomic_load_set_lhs): Likewise.
26618         (gimple_omp_atomic_load_lhs): Likewise.
26619         (gimple_omp_atomic_load_lhs_ptr): Likewise.
26620         (gimple_omp_atomic_load_set_rhs): Likewise.
26621         (gimple_omp_atomic_load_rhs): Likewise.
26622         (gimple_omp_atomic_load_rhs_ptr): Likewise.
26623         (gimple_omp_continue_control_def): Likewise.
26624         (gimple_omp_continue_control_def_ptr): Likewise.
26625         (gimple_omp_continue_set_control_def): Likewise.
26626         (gimple_omp_continue_control_use): Likewise.
26627         (gimple_omp_continue_control_use_ptr): Likewise.
26628         (gimple_omp_continue_set_control_use): Likewise.
26629         (gimple_transaction_body_ptr): Likewise.
26630         (gimple_transaction_label): Likewise.
26631         (gimple_transaction_label_ptr): Likewise.
26632         (gimple_transaction_set_body): Likewise.
26633         (gimple_transaction_set_label): Likewise.
26635         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
26636         * ipa-inline-analysis.c (inline_write_summary): Likewise.
26637         * ipa-ref.c (ipa_record_reference): Likewise.
26638         * ipa-reference.c (analyze_function): Likewise.
26639         (ipa_reference_write_optimization_summary): Likewise.
26640         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
26641         (address_taken_from_non_vtable_p): Likewise.
26642         (comdat_can_be_unshared_p_1): Likewise.
26643         * lto-cgraph.c (lto_output_ref): Likewise.
26644         (add_references): Likewise.
26645         (compute_ltrans_boundary): Likewise.
26646         (output_symtab): Likewise.
26647         (input_ref): Likewise.
26648         (input_cgraph_1): Likewise.
26649         (output_cgraph_opt_summary): Likewise.
26650         * lto-streamer-out.c (lto_output): Likewise.
26651         (output_symbol_p): Likewise.
26652         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
26653         (lsei_start_function_in_partition): Likewise.
26654         (lsei_next_variable_in_partition): Likewise.
26655         (lsei_start_variable_in_partition): Likewise.
26656         * symtab.c (insert_to_assembler_name_hash): Likewise.
26657         (unlink_from_assembler_name_hash): Likewise.
26658         (symtab_unregister_node): Likewise.
26659         (symtab_remove_node): Likewise.
26660         (dump_symtab_node): Likewise.
26661         (verify_symtab_base): Likewise.
26662         (verify_symtab_node): Likewise.
26663         (symtab_make_decl_local): Likewise.
26664         (symtab_alias_ultimate_target): Likewise.
26665         (symtab_resolve_alias): Likewise.
26666         (symtab_get_symbol_partitioning_class): Likewise.
26667         * tree-phinodes.c (allocate_phi_node): Likewise.
26668         (reserve_phi_args_for_new_edge): Likewise.
26669         (remove_phi_args): Likewise.
26670         * varpool.c (varpool_node_for_asm): Likewise.
26671         (varpool_remove_unreferenced_decls): Likewise.
26673 2014-04-23  Jeff Law  <law@redhat.com>
26675         PR tree-optimization/60902
26676         * tree-ssa-threadedge.c
26677         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
26678         invalidate outputs from statements that do not produce useful
26679         outputs for threading.
26681 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
26683         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
26684         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
26685         machine descriptions for Stack Smashing Protector.
26687 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
26689         * aarch64.md (<optab>_rol<mode>3): New pattern.
26690         (<optab>_rolsi3_uxtw): Likewise.
26691         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
26693 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
26695         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
26696         (arm_cortex_a12_tune): Likewise.
26698 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26700         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
26702 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26704         * config/arm/arm.md (arm_rev16si2): New pattern.
26705         (arm_rev16si2_alt): Likewise.
26706         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
26708 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26710         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
26711         (rev16<mode>2_alt): Likewise.
26712         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
26713         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
26714         (aarch_rev16_shleft_mask_imm_p): Likewise.
26715         (aarch_rev16_p_1): Likewise.
26716         (aarch_rev16_p): Likewise.
26717         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
26718         (aarch_rev16_shright_mask_imm_p): Likewise.
26719         (aarch_rev16_shleft_mask_imm_p): Likewise.
26721 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26723         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
26724         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
26725         rev cost.
26726         (cortex_a53_extra_costs): Likewise.
26727         (cortex_a57_extra_costs): Likewise.
26728         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
26729         (cortexa7_extra_costs): Likewise.
26730         (cortexa8_extra_costs): Likewise.
26731         (cortexa12_extra_costs): Likewise.
26732         (cortexa15_extra_costs): Likewise.
26733         (v7m_extra_costs): Likewise.
26734         (arm_new_rtx_costs): Handle BSWAP.
26736 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26738         * config/arm/arm.c (cortexa8_extra_costs): New table.
26739         (arm_cortex_a8_tune): New tuning struct.
26740         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
26742 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26744         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
26746 2014-04-23  Richard Biener  <rguenther@suse.de>
26748         * Makefile.in (OBJS): Remove loop-unswitch.o.
26749         * tree-pass.h (make_pass_rtl_unswitch): Remove.
26750         * passes.def (pass_rtl_unswitch): Likewise.
26751         * loop-init.c (gate_rtl_unswitch): Likewise.
26752         (rtl_unswitch): Likewise.
26753         (pass_data_rtl_unswitch): Likewise.
26754         (pass_rtl_unswitch): Likewise.
26755         (make_pass_rtl_unswitch): Likewise.
26756         * rtl.h (reversed_condition): Likewise.
26757         (compare_and_jump_seq): Likewise.
26758         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
26759         and make static.
26760         * loop-unroll.c (compare_and_jump_seq): Likewise.
26762 2014-04-23  Richard Biener  <rguenther@suse.de>
26764         PR tree-optimization/60903
26765         * tree-ssa-loop-im.c (analyze_memory_references): Remove
26766         commented code block.
26767         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
26768         loop flags to newly created BBs and edges.
26770 2014-04-23  Nick Clifton  <nickc@redhat.com>
26772         * config/msp430/msp430.c (msp430_handle_option): Move function
26773         to msp430-common.c
26774         (msp430_option_override): Simplify mcu and mcpu option handling.
26775         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
26776         support for -mhwmult command line option.
26777         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
26778         -mhwmult command line option.
26779         (msp430_hwmult_enabled): Delete.
26780         (msp43o_output_labelref): Add support for -mhwmult command line option.
26781         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
26782         (umulsidi3): Likewise.
26783         * config/msp430/msp430.opt (mmcu): Add Report attribute.
26784         (mcpu, mlarge, msmall): Likewise.
26785         (mhwmult): New option.
26786         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
26787         prototype.
26788         (msp430_is_f5_mcu): Remove prototype.
26789         (msp430_use_f5_series_hwmult): Add prototype.
26790         * config/msp430/msp430-opts.h: New file.
26791         * common/config/msp430: New directory.
26792         * common/config/msp430/msp430-common.c: New file.
26793         * config.gcc (msp430): Remove target_has_targetm_common.
26794         * doc/invoke.texi: Document -mhwmult command line option.
26796 2014-04-23  Nick Clifton  <nickc@redhat.com>
26798         * config/i386/cygwin.h (ENDFILE_SPEC): Include
26799         default-manifest.o if it can be found in the search path.
26800         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26802 2014-04-23  Terry Guo  <terry.guo@arm.com>
26804         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
26806 2014-04-23  Richard Biener  <rguenther@suse.de>
26808         PR middle-end/60895
26809         * tree-inline.c (declare_return_variable): Use mark_addressable.
26811 2014-04-23  Richard Biener  <rguenther@suse.de>
26813         PR middle-end/60891
26814         * loop-init.c (loop_optimizer_init): Make sure to apply
26815         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
26817 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
26819         PR sanitizer/60275
26820         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
26821         New options.
26822         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
26823         if flag_sanitize_undefined_trap_on_error.
26824         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
26825         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
26826         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
26827         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
26828         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
26829         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
26830         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
26831         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
26832         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
26833         * ubsan.c (ubsan_instrument_unreachable): Return
26834         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
26835         (ubsan_expand_null_ifn): Emit __builtin_trap ()
26836         if flag_sanitize_undefined_trap_on_error and
26837         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
26838         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
26839         instrument_bool_enum_load): Emit __builtin_trap () if
26840         flag_sanitize_undefined_trap_on_error and
26841         __builtin_handle_*_abort () if !flag_sanitize_recover.
26842         * doc/invoke.texi (-fsanitize-recover,
26843         -fsanitize-undefined-trap-on-error): Document.
26845 2014-04-22  Christian Bruel  <christian.bruel@st.com>
26847         * config/sh/sh.md (mov<mode>): Replace movQIHI.
26848          Force immediates to SImode.
26850 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
26852         * config/nios2/nios2.md (UNSPEC_ROUND): New.
26853         (lroundsfsi2): New.
26854         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
26855         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
26856         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
26857         (nios2_fpu_insn): Add entry for round.
26858         (N2FPU_NO_ERRNO_P): Define.
26859         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
26860         flag_errno_math.
26861         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
26863 2014-04-22  Richard Henderson  <rth@redhat.com>
26865         * config/aarch64/aarch64 (addti3, subti3): New expanders.
26866         (add<GPI>3_compare0): Remove leading * from name.
26867         (add<GPI>3_carryin): Likewise.
26868         (sub<GPI>3_compare0): Likewise.
26869         (sub<GPI>3_carryin): Likewise.
26870         (<su_optab>mulditi3): New expander.
26871         (multi3): New expander.
26872         (madd<GPI>): Remove leading * from name.
26874 2014-04-22  Martin Jambor  <mjambor@suse.cz>
26876         * cgraphclones.c (cgraph_function_versioning): Copy
26877         ipa_transforms_to_apply instead of asserting it is empty.
26879 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
26881         PR target/60868
26882         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
26883         on count_exp to get mode.
26885 2014-04-22  Andrew Pinski  <apinski@cavium.com>
26887         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
26888         Handle TLS for ILP32.
26889         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
26890         (tlsie_small_<mode>): this and handle PTR.
26891         (tlsie_small_sidi): New pattern.
26892         (tlsle_small): Change to an expand to handle ILP32.
26893         (tlsle_small_<mode>): New pattern.
26894         (tlsdesc_small): Rename to ...
26895         (tlsdesc_small_<mode>): this and handle PTR.
26897 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26899         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
26901 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
26903         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
26904         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
26905         (aarch64_types_signed_poly_qualifiers): Likewise.
26906         (aarch64_types_unsigned_signed_qualifiers): Likewise.
26907         (aarch64_types_poly_signed_qualifiers): Likewise.
26908         (TYPES_REINTERP_SS): Type macro added.
26909         (TYPES_REINTERP_SU): Likewise.
26910         (TYPES_REINTERP_SP): Likewise.
26911         (TYPES_REINTERP_US): Likewise.
26912         (TYPES_REINTERP_PS): Likewise.
26913         (aarch64_fold_builtin): New expression folding added.
26914         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
26915         Declarations removed.
26916         (REINTERP_SS): Declarations added.
26917         (REINTERP_US): Likewise.
26918         (REINTERP_PS): Likewise.
26919         (REINTERP_SU): Likewise.
26920         (REINTERP_SP): Likewise.
26921         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
26922         (vreinterpretq_p8_f64): Likewise.
26923         (vreinterpret_p16_f64): Likewise.
26924         (vreinterpretq_p16_f64): Likewise.
26925         (vreinterpret_f32_f64): Likewise.
26926         (vreinterpretq_f32_f64): Likewise.
26927         (vreinterpret_f64_f32): Likewise.
26928         (vreinterpret_f64_p8): Likewise.
26929         (vreinterpret_f64_p16): Likewise.
26930         (vreinterpret_f64_s8): Likewise.
26931         (vreinterpret_f64_s16): Likewise.
26932         (vreinterpret_f64_s32): Likewise.
26933         (vreinterpret_f64_s64): Likewise.
26934         (vreinterpret_f64_u8): Likewise.
26935         (vreinterpret_f64_u16): Likewise.
26936         (vreinterpret_f64_u32): Likewise.
26937         (vreinterpret_f64_u64): Likewise.
26938         (vreinterpretq_f64_f32): Likewise.
26939         (vreinterpretq_f64_p8): Likewise.
26940         (vreinterpretq_f64_p16): Likewise.
26941         (vreinterpretq_f64_s8): Likewise.
26942         (vreinterpretq_f64_s16): Likewise.
26943         (vreinterpretq_f64_s32): Likewise.
26944         (vreinterpretq_f64_s64): Likewise.
26945         (vreinterpretq_f64_u8): Likewise.
26946         (vreinterpretq_f64_u16): Likewise.
26947         (vreinterpretq_f64_u32): Likewise.
26948         (vreinterpretq_f64_u64): Likewise.
26949         (vreinterpret_s64_f64): Likewise.
26950         (vreinterpretq_s64_f64): Likewise.
26951         (vreinterpret_u64_f64): Likewise.
26952         (vreinterpretq_u64_f64): Likewise.
26953         (vreinterpret_s8_f64): Likewise.
26954         (vreinterpretq_s8_f64): Likewise.
26955         (vreinterpret_s16_f64): Likewise.
26956         (vreinterpretq_s16_f64): Likewise.
26957         (vreinterpret_s32_f64): Likewise.
26958         (vreinterpretq_s32_f64): Likewise.
26959         (vreinterpret_u8_f64): Likewise.
26960         (vreinterpretq_u8_f64): Likewise.
26961         (vreinterpret_u16_f64): Likewise.
26962         (vreinterpretq_u16_f64): Likewise.
26963         (vreinterpret_u32_f64): Likewise.
26964         (vreinterpretq_u32_f64): Likewise.
26966 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
26968         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
26969         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
26970         (vreinterpret_p8_s8): Likewise.
26971         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
26972         (vreinterpret_p8_s16): Likewise.
26973         (vreinterpret_p8_s32): Likewise.
26974         (vreinterpret_p8_s64): Likewise.
26975         (vreinterpret_p8_f32): Likewise.
26976         (vreinterpret_p8_u8): Likewise.
26977         (vreinterpret_p8_u16): Likewise.
26978         (vreinterpret_p8_u32): Likewise.
26979         (vreinterpret_p8_u64): Likewise.
26980         (vreinterpret_p8_p16): Likewise.
26981         (vreinterpretq_p8_s8): Likewise.
26982         (vreinterpretq_p8_s16): Likewise.
26983         (vreinterpretq_p8_s32): Likewise.
26984         (vreinterpretq_p8_s64): Likewise.
26985         (vreinterpretq_p8_f32): Likewise.
26986         (vreinterpretq_p8_u8): Likewise.
26987         (vreinterpretq_p8_u16): Likewise.
26988         (vreinterpretq_p8_u32): Likewise.
26989         (vreinterpretq_p8_u64): Likewise.
26990         (vreinterpretq_p8_p16): Likewise.
26991         (vreinterpret_p16_s8): Likewise.
26992         (vreinterpret_p16_s16): Likewise.
26993         (vreinterpret_p16_s32): Likewise.
26994         (vreinterpret_p16_s64): Likewise.
26995         (vreinterpret_p16_f32): Likewise.
26996         (vreinterpret_p16_u8): Likewise.
26997         (vreinterpret_p16_u16): Likewise.
26998         (vreinterpret_p16_u32): Likewise.
26999         (vreinterpret_p16_u64): Likewise.
27000         (vreinterpret_p16_p8): Likewise.
27001         (vreinterpretq_p16_s8): Likewise.
27002         (vreinterpretq_p16_s16): Likewise.
27003         (vreinterpretq_p16_s32): Likewise.
27004         (vreinterpretq_p16_s64): Likewise.
27005         (vreinterpretq_p16_f32): Likewise.
27006         (vreinterpretq_p16_u8): Likewise.
27007         (vreinterpretq_p16_u16): Likewise.
27008         (vreinterpretq_p16_u32): Likewise.
27009         (vreinterpretq_p16_u64): Likewise.
27010         (vreinterpretq_p16_p8): Likewise.
27011         (vreinterpret_f32_s8): Likewise.
27012         (vreinterpret_f32_s16): Likewise.
27013         (vreinterpret_f32_s32): Likewise.
27014         (vreinterpret_f32_s64): Likewise.
27015         (vreinterpret_f32_u8): Likewise.
27016         (vreinterpret_f32_u16): Likewise.
27017         (vreinterpret_f32_u32): Likewise.
27018         (vreinterpret_f32_u64): Likewise.
27019         (vreinterpret_f32_p8): Likewise.
27020         (vreinterpret_f32_p16): Likewise.
27021         (vreinterpretq_f32_s8): Likewise.
27022         (vreinterpretq_f32_s16): Likewise.
27023         (vreinterpretq_f32_s32): Likewise.
27024         (vreinterpretq_f32_s64): Likewise.
27025         (vreinterpretq_f32_u8): Likewise.
27026         (vreinterpretq_f32_u16): Likewise.
27027         (vreinterpretq_f32_u32): Likewise.
27028         (vreinterpretq_f32_u64): Likewise.
27029         (vreinterpretq_f32_p8): Likewise.
27030         (vreinterpretq_f32_p16): Likewise.
27031         (vreinterpret_s64_s8): Likewise.
27032         (vreinterpret_s64_s16): Likewise.
27033         (vreinterpret_s64_s32): Likewise.
27034         (vreinterpret_s64_f32): Likewise.
27035         (vreinterpret_s64_u8): Likewise.
27036         (vreinterpret_s64_u16): Likewise.
27037         (vreinterpret_s64_u32): Likewise.
27038         (vreinterpret_s64_u64): Likewise.
27039         (vreinterpret_s64_p8): Likewise.
27040         (vreinterpret_s64_p16): Likewise.
27041         (vreinterpretq_s64_s8): Likewise.
27042         (vreinterpretq_s64_s16): Likewise.
27043         (vreinterpretq_s64_s32): Likewise.
27044         (vreinterpretq_s64_f32): Likewise.
27045         (vreinterpretq_s64_u8): Likewise.
27046         (vreinterpretq_s64_u16): Likewise.
27047         (vreinterpretq_s64_u32): Likewise.
27048         (vreinterpretq_s64_u64): Likewise.
27049         (vreinterpretq_s64_p8): Likewise.
27050         (vreinterpretq_s64_p16): Likewise.
27051         (vreinterpret_u64_s8): Likewise.
27052         (vreinterpret_u64_s16): Likewise.
27053         (vreinterpret_u64_s32): Likewise.
27054         (vreinterpret_u64_s64): Likewise.
27055         (vreinterpret_u64_f32): Likewise.
27056         (vreinterpret_u64_u8): Likewise.
27057         (vreinterpret_u64_u16): Likewise.
27058         (vreinterpret_u64_u32): Likewise.
27059         (vreinterpret_u64_p8): Likewise.
27060         (vreinterpret_u64_p16): Likewise.
27061         (vreinterpretq_u64_s8): Likewise.
27062         (vreinterpretq_u64_s16): Likewise.
27063         (vreinterpretq_u64_s32): Likewise.
27064         (vreinterpretq_u64_s64): Likewise.
27065         (vreinterpretq_u64_f32): Likewise.
27066         (vreinterpretq_u64_u8): Likewise.
27067         (vreinterpretq_u64_u16): Likewise.
27068         (vreinterpretq_u64_u32): Likewise.
27069         (vreinterpretq_u64_p8): Likewise.
27070         (vreinterpretq_u64_p16): Likewise.
27071         (vreinterpret_s8_s16): Likewise.
27072         (vreinterpret_s8_s32): Likewise.
27073         (vreinterpret_s8_s64): Likewise.
27074         (vreinterpret_s8_f32): Likewise.
27075         (vreinterpret_s8_u8): Likewise.
27076         (vreinterpret_s8_u16): Likewise.
27077         (vreinterpret_s8_u32): Likewise.
27078         (vreinterpret_s8_u64): Likewise.
27079         (vreinterpret_s8_p8): Likewise.
27080         (vreinterpret_s8_p16): Likewise.
27081         (vreinterpretq_s8_s16): Likewise.
27082         (vreinterpretq_s8_s32): Likewise.
27083         (vreinterpretq_s8_s64): Likewise.
27084         (vreinterpretq_s8_f32): Likewise.
27085         (vreinterpretq_s8_u8): Likewise.
27086         (vreinterpretq_s8_u16): Likewise.
27087         (vreinterpretq_s8_u32): Likewise.
27088         (vreinterpretq_s8_u64): Likewise.
27089         (vreinterpretq_s8_p8): Likewise.
27090         (vreinterpretq_s8_p16): Likewise.
27091         (vreinterpret_s16_s8): Likewise.
27092         (vreinterpret_s16_s32): Likewise.
27093         (vreinterpret_s16_s64): Likewise.
27094         (vreinterpret_s16_f32): Likewise.
27095         (vreinterpret_s16_u8): Likewise.
27096         (vreinterpret_s16_u16): Likewise.
27097         (vreinterpret_s16_u32): Likewise.
27098         (vreinterpret_s16_u64): Likewise.
27099         (vreinterpret_s16_p8): Likewise.
27100         (vreinterpret_s16_p16): Likewise.
27101         (vreinterpretq_s16_s8): Likewise.
27102         (vreinterpretq_s16_s32): Likewise.
27103         (vreinterpretq_s16_s64): Likewise.
27104         (vreinterpretq_s16_f32): Likewise.
27105         (vreinterpretq_s16_u8): Likewise.
27106         (vreinterpretq_s16_u16): Likewise.
27107         (vreinterpretq_s16_u32): Likewise.
27108         (vreinterpretq_s16_u64): Likewise.
27109         (vreinterpretq_s16_p8): Likewise.
27110         (vreinterpretq_s16_p16): Likewise.
27111         (vreinterpret_s32_s8): Likewise.
27112         (vreinterpret_s32_s16): Likewise.
27113         (vreinterpret_s32_s64): Likewise.
27114         (vreinterpret_s32_f32): Likewise.
27115         (vreinterpret_s32_u8): Likewise.
27116         (vreinterpret_s32_u16): Likewise.
27117         (vreinterpret_s32_u32): Likewise.
27118         (vreinterpret_s32_u64): Likewise.
27119         (vreinterpret_s32_p8): Likewise.
27120         (vreinterpret_s32_p16): Likewise.
27121         (vreinterpretq_s32_s8): Likewise.
27122         (vreinterpretq_s32_s16): Likewise.
27123         (vreinterpretq_s32_s64): Likewise.
27124         (vreinterpretq_s32_f32): Likewise.
27125         (vreinterpretq_s32_u8): Likewise.
27126         (vreinterpretq_s32_u16): Likewise.
27127         (vreinterpretq_s32_u32): Likewise.
27128         (vreinterpretq_s32_u64): Likewise.
27129         (vreinterpretq_s32_p8): Likewise.
27130         (vreinterpretq_s32_p16): Likewise.
27131         (vreinterpret_u8_s8): Likewise.
27132         (vreinterpret_u8_s16): Likewise.
27133         (vreinterpret_u8_s32): Likewise.
27134         (vreinterpret_u8_s64): Likewise.
27135         (vreinterpret_u8_f32): Likewise.
27136         (vreinterpret_u8_u16): Likewise.
27137         (vreinterpret_u8_u32): Likewise.
27138         (vreinterpret_u8_u64): Likewise.
27139         (vreinterpret_u8_p8): Likewise.
27140         (vreinterpret_u8_p16): Likewise.
27141         (vreinterpretq_u8_s8): Likewise.
27142         (vreinterpretq_u8_s16): Likewise.
27143         (vreinterpretq_u8_s32): Likewise.
27144         (vreinterpretq_u8_s64): Likewise.
27145         (vreinterpretq_u8_f32): Likewise.
27146         (vreinterpretq_u8_u16): Likewise.
27147         (vreinterpretq_u8_u32): Likewise.
27148         (vreinterpretq_u8_u64): Likewise.
27149         (vreinterpretq_u8_p8): Likewise.
27150         (vreinterpretq_u8_p16): Likewise.
27151         (vreinterpret_u16_s8): Likewise.
27152         (vreinterpret_u16_s16): Likewise.
27153         (vreinterpret_u16_s32): Likewise.
27154         (vreinterpret_u16_s64): Likewise.
27155         (vreinterpret_u16_f32): Likewise.
27156         (vreinterpret_u16_u8): Likewise.
27157         (vreinterpret_u16_u32): Likewise.
27158         (vreinterpret_u16_u64): Likewise.
27159         (vreinterpret_u16_p8): Likewise.
27160         (vreinterpret_u16_p16): Likewise.
27161         (vreinterpretq_u16_s8): Likewise.
27162         (vreinterpretq_u16_s16): Likewise.
27163         (vreinterpretq_u16_s32): Likewise.
27164         (vreinterpretq_u16_s64): Likewise.
27165         (vreinterpretq_u16_f32): Likewise.
27166         (vreinterpretq_u16_u8): Likewise.
27167         (vreinterpretq_u16_u32): Likewise.
27168         (vreinterpretq_u16_u64): Likewise.
27169         (vreinterpretq_u16_p8): Likewise.
27170         (vreinterpretq_u16_p16): Likewise.
27171         (vreinterpret_u32_s8): Likewise.
27172         (vreinterpret_u32_s16): Likewise.
27173         (vreinterpret_u32_s32): Likewise.
27174         (vreinterpret_u32_s64): Likewise.
27175         (vreinterpret_u32_f32): Likewise.
27176         (vreinterpret_u32_u8): Likewise.
27177         (vreinterpret_u32_u16): Likewise.
27178         (vreinterpret_u32_u64): Likewise.
27179         (vreinterpret_u32_p8): Likewise.
27180         (vreinterpret_u32_p16): Likewise.
27181         (vreinterpretq_u32_s8): Likewise.
27182         (vreinterpretq_u32_s16): Likewise.
27183         (vreinterpretq_u32_s32): Likewise.
27184         (vreinterpretq_u32_s64): Likewise.
27185         (vreinterpretq_u32_f32): Likewise.
27186         (vreinterpretq_u32_u8): Likewise.
27187         (vreinterpretq_u32_u16): Likewise.
27188         (vreinterpretq_u32_u64): Likewise.
27189         (vreinterpretq_u32_p8): Likewise.
27190         (vreinterpretq_u32_p16): Likewise.
27192 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
27194         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
27195         Pattern extended.
27196         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
27197         (sqabs): Likewise.
27198         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
27199         (vqnegd_s64): Likewise.
27200         (vqabs_s64): Likewise.
27201         (vqabsd_s64): Likewise.
27203 2014-04-22  Richard Henderson  <rth@redhat.com>
27205         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
27206         computation to the top of the loop.
27208 2014-04-22  Renlin  <renlin.li@arm.com>
27209             Jiong Wang  <jiong.wang@arm.com>
27211         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
27212         * config/aarch64/aarch64.c (aarch64_layout_frame)
27213         (aarch64_initial_elimination_offset): Likewise.
27215 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27217         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
27218         Fix indentation.
27220 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
27222         * machmode.h (bitwise_mode_for_mode): Declare.
27223         * stor-layout.h (bitwise_type_for_mode): Likewise.
27224         * stor-layout.c (bitwise_mode_for_mode): New function.
27225         (bitwise_type_for_mode): Likewise.
27226         * builtins.c (fold_builtin_memory_op): Use it instead of
27227         int_mode_for_mode and build_nonstandard_integer_type.
27229 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27231         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
27232         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
27233         (*-*-solaris2*): Simplify.
27234         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
27235         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
27236         *-*-solaris2.9* handling.
27238         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
27239         as bug.
27240         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
27241         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
27242         handling, simplify.
27243         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
27244         * configure: Regenerate.
27246         * config/i386/sol2-9.h: Remove.
27248         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
27249         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
27250         Remove Solaris 9 references.
27252 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
27254         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
27255         (floatuns<GPI:mode><GPF:mode>2): Remove.
27256         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
27257         and floatuns conversions.
27258         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
27259         and floatuns conversions.
27260         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
27261         (w1,w2): New mode attributes for inequal width conversions.
27263 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
27265         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
27266         the output asm format.
27268 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
27270         * config/aarch64/aarch64-simd.md
27271         (aarch64_cm<optab>di): Always split.
27272         (*aarch64_cm<optab>di): New.
27273         (aarch64_cmtstdi): Always split.
27274         (*aarch64_cmtstdi): New.
27276 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
27278         PR tree-optimization/60823
27279         * omp-low.c (ipa_simd_modify_function_body): Go through
27280         all SSA_NAMEs and for those refering to vector arguments
27281         which are going to be replaced adjust SSA_NAME_VAR and,
27282         if it is a default definition, change it into a non-default
27283         definition assigned at the beginning of function from new_decl.
27284         (ipa_simd_modify_stmt_ops): Rewritten.
27285         * tree-dfa.c (set_ssa_default_def): When removing default def,
27286         check for NULL loc instead of NULL *loc.
27288 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27290         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
27291         restrictions on core registers for DImode values in Thumb2.
27293 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
27295         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
27296         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
27298 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
27300         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
27301         (*iordi_notzesidi_di): Likewise.
27302         (*iordi_notsesidi_di): Likewise.
27304 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
27306         * config/arm/arm-protos.h (tune_params): New struct members.
27307         * config/arm/arm.c: Initialise tune_params per processor.
27308         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
27309         for speed, based on new tune_params.
27311 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
27313         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
27314         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
27315         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
27316         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
27317         * config/aarch64/arm_neon.h (vrnd_f64): Added.
27318         (vrnda_f64): Likewise.
27319         (vrndi_f64): Likewise.
27320         (vrndm_f64): Likewise.
27321         (vrndn_f64): Likewise.
27322         (vrndp_f64): Likewise.
27323         (vrndx_f64): Likewise.
27325 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27327         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
27328         GET_MODE_SIZE argument is enum machine_mode.
27330 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
27332         PR target/60910
27333         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
27334         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
27336 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
27338         PR middle-end/60281
27339         * asan.c (asan_emit_stack_protection): Force the base to align to
27340         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
27341         appropriate bits if STRICT_ALIGNMENT.
27342         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
27343         when asan is on.
27344         (expand_used_vars): Leave a space in the stack frame for alignment
27345         if STRICT_ALIGNMENT.
27347 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
27349         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
27350         than a gimple.
27351         (gimple_store_p): Likewise.
27352         (gimple_assign_load_p): Likewise.
27353         (gimple_assign_cast_p): Likewise.
27354         (gimple_clobber_p): Likewise.
27356         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
27357         rather than a gimple.
27358         (gimple_assign_cast_p): Likewise.
27360 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
27362         PR target/60735
27363         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
27364         If mode is DDmode and TARGET_E500_DOUBLE allow move.
27366         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
27367         more debug information for E500 if -mdebug=reg.
27369 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
27371         PR target/60909
27372         * config/i386/i386.c (ix86_expand_builtin)
27373         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
27374         register for target RTX.
27375         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
27377 2014-04-18  Cong Hou  <congh@google.com>
27379         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
27380         the widen-mult pattern by handling two operands with different sizes,
27381         and operands whose size is smaller than half of the result type.
27383 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
27385         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
27386         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
27387         (do_estimate_edge_time): Compute it.
27388         * ipa-inline.c (want_inline_small_function_p): Bypass
27389         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
27391 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
27393         * ipa-inline.c (spec_rem): New static variable.
27394         (dump_overall_stats): New function.
27395         (dump_inline_stats): New function.
27397 2014-04-18  Richard Henderson  <rth@redhat.com>
27399         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
27400         to GET_MODE_SIZE, not a reg_class_t.
27402 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27404         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
27405         (vsx_xxmrglw_<mode>): Likewise.
27407 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
27409         PR target/60876
27410         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
27411         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
27412         (rs6000_init_hard_regno_mode_ok): Likewise.
27414 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
27416         * ipa-inline.c (inline_small_functions): Account only non-cold
27417         functions.
27418         * doc/invoke.texi (inline-unit-growth): Update documentation.
27420 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
27422         * config/rs6000/rs6000.md (addti3, subti3): New.
27424 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
27426         PR target/60863
27427         * config/i386/i386.c (ix86_expand_clear): Remove outdated
27428         comment.  Check optimize_insn_for_size_p instead of
27429         optimize_insn_for_speed_p.
27431 2014-04-17  Martin Jambor  <mjambor@suse.cz>
27433         * gimple-iterator.c (gsi_start_edge): New function.
27434         * gimple-iterator.h (gsi_start_edge): Declare.
27435         * tree-sra.c (single_non_eh_succ): New function.
27436         (disqualify_ops_if_throwing_stmt): Renamed to
27437         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
27438         having one non-EH successor BB.
27439         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
27440         generate loads into replacements.
27441         (sra_modify_assign): Likewise and and also use the simple path for
27442         such statements.
27443         (sra_modify_function_body): Commit statements on edges.
27445 2014-04-17  Richard Biener  <rguenther@suse.de>
27447         PR middle-end/60849
27448         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
27449         comparison results and add clarifying comment.
27451 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
27453         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
27454         (blank_mode): Initialize it.
27455         (emit_mode_size_inline, emit_mode_nunits_inline,
27456         emit_mode_inner_inline): New functions.
27457         (emit_insn_modes_h): Call them and surround their output with
27458         #if GCC_VERSION >= 4001 ... #endif.
27459         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
27460         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
27461         mode_* arrays if the argument is __builtin_constant_p.
27462         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
27463         is enum machine_mode.
27465 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
27467         * passes.c (opt_pass::execute): Adjust.
27468         (pass_manager::execute_pass_mode_switching): Likewise.
27469         (early_local_passes::execute): Likewise.
27470         (execute_one_pass): Pass cfun to the pass's execute method.
27471         * tree-pass.h (opt_pass::execute): Add function * argument.
27472         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
27473         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
27474         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
27475         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
27476         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
27477         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
27478         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
27479         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
27480         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
27481         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
27482         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
27483         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
27484         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
27485         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
27486         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
27487         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
27488         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
27489         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
27490         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
27491         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
27492         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
27493         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
27494         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
27495         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
27496         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
27497         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
27498         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
27499         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
27500         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
27501         Adjust.
27503 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
27505         * passes.c (opt_pass::gate): Take function * argument.
27506         (gate_all_early_local_passes): Merge into
27507         (early_local_passes::gate): this.
27508         (gate_all_early_optimizations): Merge into
27509         (all_early_optimizations::gate): this.
27510         (gate_all_optimizations): Mege into
27511         (all_optimizations::gate): this.
27512         (gate_all_optimizations_g): Merge into
27513         (all_optimizations_g::gate): this.
27514         (gate_rest_of_compilation): Mege into
27515         (rest_of_compilation::gate): this.
27516         (gate_postreload): Merge into
27517         (postreload::gate): this.
27518         (dump_one_pass): Pass cfun to the pass's gate method.
27519         (execute_ipa_summary_passes): Likewise.
27520         (execute_one_pass): Likewise.
27521         (ipa_write_summaries_2): Likewise.
27522         (ipa_write_optimization_summaries_1): Likewise.
27523         (ipa_read_summaries_1): Likewise.
27524         (ipa_read_optimization_summaries_1): Likewise.
27525         (execute_ipa_stmt_fixups): Likewise.
27526         * tree-pass.h (opt_pass::gate): Add function * argument.
27527         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
27528         combine-stack-adj.c, combine.c, compare-elim.c,
27529         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
27530         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
27531         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
27532         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
27533         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
27534         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
27535         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
27536         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
27537         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
27538         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
27539         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
27540         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
27541         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
27542         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
27543         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
27544         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
27545         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
27546         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
27547         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
27548         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
27549         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
27550         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
27551         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
27552         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
27553         var-tracking.c, vtable-verify.c, web.c: Adjust.
27555 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
27557         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
27558         * configure: Regenerate.
27560 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
27562         * passes.c (dump_one_pass): don't check pass->has_gate.
27563         (execute_ipa_summary_passes): Likewise.
27564         (execute_one_pass): Likewise.
27565         (ipa_write_summaries_2): Likewise.
27566         (ipa_write_optimization_summaries_1): Likewise.
27567         (ipa_read_optimization_summaries_1): Likewise.
27568         (execute_ipa_stmt_fixups): Likewise.
27569         * tree-pass.h (pass_data::has_gate): Remove.
27570         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
27571         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
27572         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
27573         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
27574         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
27575         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
27576         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
27577         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
27578         gimple-low.c, gimple-ssa-isolate-paths.c,
27579         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
27580         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
27581         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
27582         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
27583         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
27584         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
27585         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
27586         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
27587         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
27588         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
27589         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
27590         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
27591         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
27592         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
27593         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
27594         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
27595         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
27596         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
27597         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
27598         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
27599         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
27600         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
27601         Adjust.
27603 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
27605         * pass_manager.h (pass_manager::register_dump_files_1): Remove
27606         declaration.
27607         * passes.c (pass_manager::register_dump_files_1): Merge into
27608         (pass_manager::register_dump_files): this, and remove its handling of
27609         properties since the pass always has the properties anyway.
27610         (pass_manager::pass_manager): Adjust.
27612 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
27614         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
27615         * passes.c (pass_manager::register_dump_files_1): Remove dead code
27616         dealing with properties.
27617         (pass_manager::register_dump_files): Adjust.
27619 2014-03-20  Mark Wielaard  <mjw@redhat.com>
27621         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
27622         then represent the bound as normal constant value.
27624 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
27626         PR target/60847
27627         Forward port from 4.8 branch
27628         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
27630         * config/i386/bmiintrin.h (_blsi_u32): New.
27631         (_blsi_u64): Ditto.
27632         (_blsr_u32): Ditto.
27633         (_blsr_u64): Ditto.
27634         (_blsmsk_u32): Ditto.
27635         (_blsmsk_u64): Ditto.
27636         (_tzcnt_u32): Ditto.
27637         (_tzcnt_u64): Ditto.
27639 2014-04-17  Kito Cheng  <kito@0xlab.org>
27641         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
27643 2014-04-17  Richard Biener  <rguenther@suse.de>
27645         PR middle-end/60849
27646         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
27647         boolean results for comparisons.
27649 2014-04-17  Richard Biener  <rguenther@suse.de>
27651         PR tree-optimization/60836
27652         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
27653         initial PHI args to be gimple values.
27655 2014-04-17  Richard Biener  <rguenther@suse.de>
27657         PR tree-optimization/60841
27658         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
27659         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
27660         of stmts to SLP build.
27661         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
27662         (vect_analyze_slp): Likewise.
27663         (vect_analyze_slp_instance): Likewise.
27664         (vect_build_slp_tree): Limit overall SLP tree growth.
27665         * tree-vectorizer.h (vect_analyze_data_refs,
27666         vect_analyze_slp): Adjust prototypes.
27668 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
27670         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
27671         Silvermont.
27673 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
27675         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
27676         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
27677         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
27678         for TARGET_SLOW_PSHUFB
27680 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
27682         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
27683         * config/i386/i386.c (intel_cost): Ditto.
27685 2014-04-17  Joey Ye  <joey.ye@arm.com>
27687         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
27689 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
27691         * opts.c (common_handle_option): Disable -fipa-reference coorectly
27692         with -fuse-profile.
27694 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
27696         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
27697         (type_all_derivations_known_p): New predicate.
27698         (type_all_ctors_visible_p): New predicate.
27699         (type_possibly_instantiated_p): New predicate.
27700         (get_odr_type): Compute all_derivations_known.
27701         (dump_odr_type): Dump the flag.
27702         (maybe_record_type): Cleanup.
27703         (record_target_from_binfo): Add bases_to_consider array;
27704         record bases for types w/o instances and skip CXX destructor.
27705         (possible_polymorphic_call_targets_1): Add bases_to_consider
27706         and consider_construction parameters; check if type may have instance.
27707         (get_polymorphic_call_info): Set maybe_in_construction to true
27708         when we know nothing.
27709         (record_targets_from_bases): Skip CXX destructors; they are
27710         never called for types in construction.
27711         (possible_polymorphic_call_targets): Do not record target when
27712         type may not have instance.
27714 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
27716         PR ipa/60854
27717         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
27718         external aliases alive, too.
27720 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
27722         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
27723         definition.
27725 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
27727         * final.c (compute_alignments): Do not apply loop alignment to a block
27728         falling through to the exit.
27730 2014-04-16  Catherine Moore  <clm@codesourcery.com>
27732         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
27733         Adjust constraints for microMIPS store patterns.
27735 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
27737         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
27739 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
27741         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
27742         (append_use): Run at -O0.
27743         (append_vdef): Likewise.
27744         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
27745         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
27747 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
27749         PR tree-optimization/60844
27750         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
27751         (propagate_op_to_single_use, remove_visited_stmt_chain,
27752         linearize_expr, repropagate_negates, reassociate_bb): Use it
27753         instead of gsi_remove.
27755 2014-04-16  Martin Jambor  <mjambor@suse.cz>
27757         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
27758         ipa_transforms_to_apply.
27759         (cgraph_function_versioning): Assert that old_node has empty
27760         ipa_transforms_to_apply.
27761         * trans-mem.c (ipa_tm_create_version): Likewise.
27762         * tree-inline.c (tree_function_versioning): Do not duplicate
27763         ipa_transforms_to_apply.
27765 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27767         PR target/60817
27768         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
27769         x86_64-*-* cases.
27770         Pass necessary as flags on 64-bit Solaris/x86.
27771         Use lowercase relocs for x86_64-*-*.
27772         * configure: Regenerate.
27774 2014-04-15  Jan Hubicka  <jh@suse.cz>
27776         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
27777         (maybe_record_node, likely_target_p): Use it.
27779 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27781         PR target/60839
27782         Revert following patch
27784         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27786         PR target/60735
27787         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
27788         software floating point or no floating point registers, do not
27789         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
27790         in GPRs that occurs after we tested for GPRs that would never be
27791         true.
27793         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
27794         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
27795         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
27796         specifically allow DDmode, since that does not use the SPE SIMD
27797         instructions.
27799 2014-03-21  Mark Wielaard  <mjw@redhat.com>
27801         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
27802         as unsigned or int depending on type and value used.
27804 2014-04-15  Richard Biener  <rguenther@suse.de>
27806         PR rtl-optimization/56965
27807         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
27808         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
27809         ... here.
27810         * alias.c (true_dependence_1): Do not call
27811         nonoverlapping_component_refs_p.
27812         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
27813         nonoverlapping_component_refs_p.
27814         (indirect_refs_may_alias_p): Likewise.
27816 2014-04-15  Teresa Johnson  <tejohnson@google.com>
27818         * cfg.c (dump_bb_info): Fix flags check.
27819         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
27821 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27823         PR rtl-optimization/60663
27824         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
27825         avoid 0 cost.
27827 2014-04-15  Richard Biener  <rguenther@suse.de>
27829         * lto-streamer.h (LTO_major_version): Bump to 4.
27831 2014-04-15  Richard Biener  <rguenther@suse.de>
27833         * common.opt (lto_partition_model): New enum.
27834         (flto-partition=): Merge separate options with a single with argument,
27835         add -flto-partition=one support.
27836         * flag-types.h (enum lto_partition_model): Declare.
27837         * opts.c (finish_options): Remove duplicate -flto-partition=
27838         option check.
27839         * lto-wrapper.c (run_gcc): Adjust.
27841 2014-04-15  Richard Biener  <rguenther@suse.de>
27843         * alias.c (ncr_compar): New function.
27844         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
27846 2014-04-15  Richard Biener  <rguenther@suse.de>
27848         * alias.c (record_component_aliases): Do not walk BINFOs.
27850 2014-04-15  Richard Biener  <rguenther@suse.de>
27852         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27853         Add struct function argument and adjust.
27854         (find_func_aliases_for_call): Likewise.
27855         (find_func_aliases): Likewise.
27856         (find_func_clobbers): Likewise.
27857         (intra_create_variable_infos): Likewise.
27858         (compute_points_to_sets): Likewise.
27859         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
27861 2014-04-15  Richard Biener  <rguenther@suse.de>
27863         * tree.c (iterative_hash_expr): Use enum tree_code_class
27864         to store TREE_CODE_CLASS.
27865         (tree_block): Likewise.
27866         (tree_set_block): Likewise.
27867         * tree.h (fold_build_pointer_plus_loc): Use
27868         convert_to_ptrofftype_loc.
27870 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
27872         PR plugins/59335
27873         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
27874         added in 4.9.
27876 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
27878         * cfgloop.h (struct loop): Move force_vectorize down.
27879         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
27880         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
27881         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
27882         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
27883         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
27884         * tree-core.h (enum annot_expr_kind): Add new kind values.
27885         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
27886         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
27887         kinds.
27888         * tree.def (ANNOTATE_EXPR): Tweak comment.
27890 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
27892         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
27893         cxa_pure_virtual).
27895 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
27897         * tree.h (TYPE_IDENTIFIER): Declare.
27898         * tree.c (subrange_type_for_debug_p): Use it.
27899         * godump.c (go_format_type): Likewise.
27900         * dwarf2out.c (is_cxx_auto, modified_type_die,
27901         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
27902         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
27904 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
27906         PR lto/60820
27907         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
27909 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
27911         * config/i386/i386.c (examine_argument): Return bool.  Return true if
27912         parameter should be passed in memory.
27913         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
27914         (construct_container): Update calls to examine_argument.
27915         (function_arg_advance_64): Ditto.
27916         (return_in_memory_32): Merge with ix86_return_in_memory.
27917         (return_in_memory_64): Ditto.
27918         (return_in_memory_ms_64): Ditto.
27920 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
27922         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
27923         * coverage.c (coverage_compute_profile_id): Handle externally visible
27924         symbols.
27926 2014-04-14  Martin Jambor  <mjambor@suse.cz>
27928         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
27929         DECL_DISREGARD_INLINE_LIMITS functions.
27931 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
27933         PR target/60827
27934         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
27936 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
27938         PR target/60827
27939         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
27940         optimize_insn_for_speed_p instead of
27941         optimize_function_for_speed_p.
27943 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
27945         * doc/invoke.texi (free): Document AArch64.
27947 2014-04-14  Richard Biener  <rguenther@suse.de>
27949         PR tree-optimization/60042
27950         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
27951         (insert_into_preds_of_block): Do not prevent PHI insertion
27952         for REFERENCE exprs here ...
27953         (eliminate_dom_walker::before_dom_children): ... but prevent
27954         their use here under similar conditions when applied to the
27955         IL after PRE optimizations.
27957 2014-04-14  Richard Biener  <rguenther@suse.de>
27959         * passes.def: Move early points-to after early SRA.
27961 2014-04-14  Richard Biener  <rguenther@suse.de>
27963         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
27964         check for which sign-changes we allow when forwarding
27965         a converted value into a switch.
27967 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
27969         * stor-layout.c (place_field): Finalize non-constant offset for the
27970         field, if any.
27972 2014-04-14  Richard Biener  <rguenther@suse.de>
27974         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
27975         as argument.
27976         (expand_switch_using_bit_tests_p): Likewise.
27977         (process_switch): Compute and pass on speed_p based on the
27978         switch stmt.
27979         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
27980         optimize_bb_for_speed_p.
27982 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
27984         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
27985         * function.h (struct function): Rename has_force_vect_loops into
27986         has_force_vectorize_loops.
27987         * lto-streamer-in.c (input_cfg): Adjust for renaming.
27988         (input_struct_function_base): Likewise.
27989         * lto-streamer-out.c (output_cfg): Likewise.
27990         (output_struct_function_base): Likewise.
27991         * omp-low.c (expand_omp_simd): Likewise.
27992         * tree-cfg.c (move_sese_region_to_fn): Likewise.
27993         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
27994         (version_loop_for_if_conversion): Likewise.
27995         (tree_if_conversion): Likewise.
27996         (main_tree_if_conversion): Likewise.
27997         (gate_tree_if_conversion): Likewise.
27998         * tree-inline.c (copy_loops): Likewise.
27999         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
28000         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
28001         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
28002         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
28003         * tree-vectorizer.c (vectorize_loops): Likewise.
28004         * tree-vectorizer.h (unlimited_cost_model): Likewise.
28006 2014-04-14  Richard Biener  <rguenther@suse.de>
28008         PR lto/60720
28009         * lto-streamer-out.c (wrap_refs): New function.
28010         (lto_output): Wrap symbol references in global initializes in
28011         type-preserving MEM_REFs.
28013 2014-04-14  Christian Bruel  <christian.bruel@st.com>
28015         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
28017 2014-04-14  Christian Bruel  <christian.bruel@st.com>
28019         * config/sh/sh.md (setmemqi): New expand pattern.
28020         * config/sh/sh.h (CLEAR_RATIO): Define.
28021         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
28022         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
28024 2014-04-14  Richard Biener  <rguenther@suse.de>
28026         PR middle-end/55022
28027         * fold-const.c (negate_expr_p): Don't negate directional rounding
28028         division.
28029         (fold_negate_expr): Likewise.
28031 2014-04-14  Richard Biener  <rguenther@suse.de>
28033         PR tree-optimization/59817
28034         PR tree-optimization/60453
28035         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
28036         recursion to catch all CHRECs in the scalar evolution and restrict
28037         the predicate for the remains appropriately.
28039 2014-04-12  Catherine Moore  <clm@codesourcery.com>
28041         * config/mips/constraints.md: Add new register constraint "kb".
28042         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
28043         (*movhi_internal): Likewise.
28044         (*movqi_internal): Likewise.
28045         * config/mips/mips.h (M16_STORE_REGS): New register class.
28046         (REG_CLASS_NAMES): Add M16_STORE_REGS.
28047         (REG_CLASS_CONTENTS): Likewise.
28048         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
28050 2014-04-11  Tobias Burnus  <burnus@net-b.de>
28052         PR c/60194
28053         * doc/invoke.texi (-Wformat-signedness): Document it.
28054         (Wformat=2): Mention that this enables -Wformat-signedness.
28056 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28058         * common/config/epiphany/epiphany-common.c
28059         (epiphany_option_optimization_table): Enable section anchors by
28060         default at -O1 or higher.
28061         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
28062         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
28063         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
28064         carries no extra cost.
28065         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
28066         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
28067         * config/epiphany/predicates.md (memclob_operand): New predicate.
28068         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
28069         Use memclob_operand predicate and X constraint for operand 3.
28071 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28073         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
28074         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
28075         its operands.
28077 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28079         PR rtl-optimization/60651
28080         * mode-switching.c (optimize_mode_switching): Make sure to emit
28081         sets of a lower numbered entity before sets of a higher numbered
28082         entity to a mode of the same or lower priority.
28083         When creating a seginfo for a basic block that starts with a code
28084         label, move the insertion point past the code label.
28085         (new_seginfo): Document and enforce requirement that
28086         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
28087         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
28088         * doc/tm.texi: Regenerate.
28090 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28092         PR target/60811
28093         * config/arc/arc.c (arc_save_restore): Fix assert typo.
28095 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
28097         * BASE-VER: Set to 4.10.0.
28099 2014-04-11  Tobias Burnus  <burnus@net-b.de>
28101         PR other/59055
28102         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
28103         * doc/gcc.texi (Service): Update description in the @menu
28104         * doc/invoke.texi (Option Summary): Remove misplaced and
28105         duplicated @menu.
28107 2014-04-11  Steve Ellcey  <sellcey@mips.com>
28108             Jakub Jelinek  <jakub@redhat.com>
28110         PR middle-end/60556
28111         * expr.c (convert_move): Use emit_store_flag_force instead of
28112         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
28113         argument to it.
28115 2014-04-11  Richard Biener  <rguenther@suse.de>
28117         PR middle-end/60797
28118         * varasm.c (assemble_alias): Avoid endless error reporting
28119         recursion by setting TREE_ASM_WRITTEN.
28121 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28123         * config/s390/s390.md: Add a splitter for NOT rtx.
28125 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
28127         PR rtl-optimization/60663
28128         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
28130 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
28131             Jakub Jelinek  <jakub@redhat.com>
28133         PR lto/60567
28134         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
28135         flag from decl_node to node.
28137 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28139         PR debug/60655
28140         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
28141         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
28142         ameliorating the cases where it can be.
28144 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
28146         Revert
28147         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
28149         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
28150         (loadsync_<mode>): Change mode.
28151         (load_quadpti, store_quadpti): New.
28152         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
28153         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
28154         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
28156 2014-04-09  Cong Hou  <congh@google.com>
28158         PR testsuite/60773
28159         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
28160         documentation.
28162 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28164         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
28165         instead of vnor to exploit possible fusion opportunity in the
28166         future.
28167         (altivec_expand_vec_perm_const_le): Likewise.
28169 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
28171         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
28172         (loadsync_<mode>): Change mode.
28173         (load_quadpti, store_quadpti): New.
28174         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
28175         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
28177 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
28179         PR target/60763
28180         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
28181         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
28182         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
28184 2014-04-08  Richard Biener  <rguenther@suse.de>
28186         PR middle-end/60706
28187         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
28188         a 64bit widest int print double-int similar to on HWI64 hosts.
28190 2014-04-08  Richard Biener  <rguenther@suse.de>
28192         PR tree-optimization/60785
28193         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
28194         default defs properly.
28196 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
28198         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
28199         (Weffc++): Likewise.
28201 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
28203         * ipa-devirt.c (maybe_record_node): When node is not recorded,
28204         set completep to false rather than true.
28206 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
28208         PR target/60504
28209         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
28210         ARM_TARGET2_DWARF_FORMAT.
28212 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
28214         PR target/60609
28215         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
28216         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
28217         ADDR_DIFF_VEC.
28219 2014-04-07  Richard Biener  <rguenther@suse.de>
28221         PR tree-optimization/60766
28222         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
28223         (may_eliminate_iv): Convert cand_value_at result to desired type.
28225 2014-04-07  Jason Merrill  <jason@redhat.com>
28227         PR c++/60731
28228         * common.opt (-fno-gnu-unique): Add.
28229         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
28231 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28233         * haifa-sched.c: Fix outdated function reference and minor
28234         grammar errors in introductory comment.
28236 2014-04-07  Richard Biener  <rguenther@suse.de>
28238         PR middle-end/60750
28239         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
28240         for noreturn calls.
28241         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
28243 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
28245         PR debug/55794
28246         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
28247         size accounting for thunks.
28248         (pa_asm_output_mi_thunk): Use final_start_function() and
28249         final_end_function() to output function start and end directives.
28251 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
28253         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
28254         device specific ISA/ feature information. Remove short_sp and
28255         errata_skip ds.  Add avr_device_specific_features enum to have device
28256         specific info.
28257         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
28258         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
28259         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
28260         updated device specific info.
28261         * config/avr/avr-mcus.def: Merge device specific details to
28262         dev_attribute field.
28263         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
28264         errata_skip.
28265         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
28266         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
28267         assembler if RMW isa supported by current device.
28268         * config/avr/genmultilib.awk: Update as device info structure changed.
28269         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
28271 2014-04-04  Cong Hou  <congh@google.com>
28273         PR tree-optimization/60656
28274         * tree-vect-stmts.c (supportable_widening_operation):
28275         Fix a bug that elements in a vector with vect_used_by_reduction
28276         property are incorrectly reordered when the operation on it is not
28277         consistant with the one in reduction operation.
28279 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
28281         PR rtl-optimization/60155
28282         * gcse.c (record_set_data): New function.
28283         (single_set_gcse): New function.
28284         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
28285         (hoist_code): Likewise.
28286         (get_pressure_class_and_nregs): Likewise.
28288 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
28290         * explow.c (probe_stack_range): Emit a final optimization blockage.
28292 2014-04-04  Anthony Green  <green@moxielogic.com>
28294         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
28295         typos.
28297 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
28299         PR ipa/59626
28300         * lto-cgraph.c (input_overwrite_node): Check that partitioning
28301         flags are set only during streaming.
28302         * ipa.c (process_references, walk_polymorphic_call_targets,
28303         symtab_remove_unreachable_nodes): Drop bodies of always inline
28304         after early inlining.
28305         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
28307 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
28308         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28310         PR debug/60655
28311         * dwarf2out.c (const_ok_for_output_1): Reject expressions
28312         containing a NOT.
28314 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28316         PR bootstrap/60743
28317         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
28318         duration.
28319         (cortex_a53_fdivd): Likewise.
28321 2014-04-04  Martin Jambor  <mjambor@suse.cz>
28323         PR ipa/60640
28324         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
28325         Adjust all callers.
28326         * cgraph.c (clone_of_p): Also return true if thunks match.
28327         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
28328         cgraph_function_or_thunk_node and an obsolete comment.
28329         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
28330         file.
28331         (build_function_decl_skip_args): Likewise.
28332         (set_new_clone_decl_and_node_flags): New function.
28333         (duplicate_thunk_for_node): Likewise.
28334         (redirect_edge_duplicating_thunks): Likewise.
28335         (cgraph_clone_node): New parameter args_to_skip, pass it to
28336         redirect_edge_duplicating_thunks which is called instead of
28337         cgraph_redirect_edge_callee.
28338         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
28339         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
28341 2014-04-04  Jeff Law  <law@redhat.com>
28343         PR target/60657
28344         * config/arm/predicates.md (const_int_I_operand): New predicate.
28345         (const_int_M_operand): Similarly.
28346         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
28347         const_int_operand.
28348         (insv_t2, extv_reg, extzv_t2): Likewise.
28349         (load_multiple_with_writeback): Similarly for const_int_I_operand.
28350         (pop_multiple_with_writeback_and_return): Likewise.
28351         (vfp_pop_multiple_with_writeback): Likewise
28353 2014-04-04  Richard Biener  <rguenther@suse.de>
28355         PR ipa/60746
28356         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
28357         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
28358         non-GIMPLE_LABELs.
28359         * gimplify.h (gimple_add_tmp_var_fn): Declare.
28360         * gimplify.c (gimple_add_tmp_var_fn): New function.
28361         * gimple-expr.h (create_tmp_reg_fn): Declare.
28362         * gimple-expr.c (create_tmp_reg_fn): New function.
28363         * gimple-low.c (record_vars_into): Don't change cfun.
28364         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
28365         code generation without cfun.
28367 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
28369         PR bootstrap/60719
28370         * Makefile.in (install-driver): Fix shell scripting.
28372 2014-04-03  Cong Hou  <congh@google.com>
28374         PR tree-optimization/60505
28375         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
28376         threshold of number of iterations below which no vectorization
28377         will be done.
28378         * tree-vect-loop.c (new_loop_vec_info):
28379         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
28380         * tree-vect-loop.c (vect_analyze_loop_operations):
28381         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
28382         * tree-vect-loop.c (vect_transform_loop):
28383         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
28384         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
28385         of iterations of the loop and see if we should build the epilogue.
28387 2014-04-03  Richard Biener  <rguenther@suse.de>
28389         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
28390         (streamer_tree_cache_create): Adjust.
28391         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
28392         to allow optional nodes array.
28393         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
28394         (streamer_tree_cache_append): Likewise.
28395         (streamer_tree_cache_create): Create nodes array optionally
28396         as specified by parameter.
28397         * lto-streamer-out.c (create_output_block): Avoid maintaining
28398         the node array in the writer cache.
28399         (DFS_write_tree): Remove assertion.
28400         (produce_asm_for_decls): Free the out decl state hash table early.
28401         * lto-streamer-in.c (lto_data_in_create): Adjust for
28402         streamer_tree_cache_create prototype change.
28404 2014-04-03  Richard Biener  <rguenther@suse.de>
28406         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
28407         set TREE_CHAIN to NULL_TREE.
28409 2014-04-03  Richard Biener  <rguenther@suse.de>
28411         PR tree-optimization/60740
28412         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
28413         over all GIMPLE_COND operands.
28415 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
28417         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
28418         (Weffc++): Remove Scott's numbering, merge lists and reference
28419         Wnon-virtual-dtor.
28421 2014-04-03  Nick Clifton  <nickc@redhat.com>
28423         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
28424         properly.
28426 2014-04-03  Martin Jambor  <mjambor@suse.cz>
28428         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
28429         mention gcc_unreachable before failing.
28430         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
28431         removed symbols.
28433 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
28435         PR ipa/60659
28436         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
28437         inconsistent code and instead mark the context inconsistent.
28438         (possible_polymorphic_call_targets): For inconsistent contexts
28439         return empty complete list.
28441 2014-04-02  Anthony Green  <green@moxielogic.com>
28443         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
28444         (extendqisi2, extendhisi2): Define.
28445         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
28446         (WCHAR_TYPE): Change to unsigned int.
28448 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28450         PR tree-optimization/60733
28451         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
28452         insertion point for PHI candidates to be the end of the feeding
28453         block for the PHI argument.
28455 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
28457         PR rtl-optimization/60650
28458         * lra-constraints.c (process_alt_operands): Decrease reject for
28459         earlyclobber matching.
28461 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28463         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
28465 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28467         * config/spu/spu.c (pad_bb): Do not crash when the last
28468         insn is CODE_FOR_blockage.
28470 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28472         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
28473         lies outside the target mode.
28475 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28477         PR target/60735
28478         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
28479         software floating point or no floating point registers, do not
28480         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
28481         in GPRs that occurs after we tested for GPRs that would never be
28482         true.
28484         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
28485         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
28486         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
28487         specifically allow DDmode, since that does not use the SPE SIMD
28488         instructions.
28490 2014-04-02  Richard Biener  <rguenther@suse.de>
28492         PR middle-end/60729
28493         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
28494         MODE_INTs.  Properly use negv_optab.
28495         (expand_abs): Likewise.
28497 2014-04-02  Richard Biener  <rguenther@suse.de>
28499         PR bootstrap/60719
28500         * Makefile.in (install-driver): Guard extra installs with special
28501         names properly.
28503 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
28505         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28506         Document vec_vgbbd.
28508 2014-04-01  Richard Henderson  <rth@redhat.com>
28510         PR target/60704
28511         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
28512         alternative enabled before register allocation.
28514 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
28516         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
28517         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
28518         typo.
28519         (nios2_large_got_address): Remove unneeded 'sym' parameter.
28520         (nios2_got_address): Update nios2_large_got_address call site.
28521         (nios2_delegitimize_address): New function.
28522         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
28523         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
28524         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
28526 2014-04-01  Martin Husemann  <martin@duskware.de>
28528         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
28529         for -mabi=32.
28531 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
28533         PR rtl-optimization/60604
28534         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
28535         check from register_operand.
28536         (register_operand): Redefine in terms of general_operand.
28537         (nonmemory_operand): Use register_operand for the non-constant cases.
28539 2014-04-01  Richard Biener  <rguenther@suse.de>
28541         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
28543 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28545         * doc/invoke.texi (mapp-regs): Clarify.
28547 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
28549         * config/i386/avx512fintrin.h (__v32hi): Define type.
28550         (__v64qi): Likewise.
28551         (_mm512_set1_epi8): Define.
28552         (_mm512_set1_epi16): Define.
28553         (_mm512_set4_epi32): Define.
28554         (_mm512_set4_epi64): Define.
28555         (_mm512_set4_pd): Define.
28556         (_mm512_set4_ps): Define.
28557         (_mm512_setr4_epi64): Define.
28558         (_mm512_setr4_epi32): Define.
28559         (_mm512_setr4_pd): Define.
28560         (_mm512_setr4_ps): Define.
28561         (_mm512_setzero_epi32): Define.
28563 2014-03-31  Martin Jambor  <mjambor@suse.cz>
28565         PR middle-end/60647
28566         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
28567         callsite_arguments_match_p.  Updated all callers.  Also check types of
28568         corresponding formal parameters and actual arguments.
28569         (not_all_callers_have_enough_arguments_p) Renamed to
28570         some_callers_have_mismatched_arguments_p.
28572 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
28574         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
28576 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
28578         PR target/60034
28579         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
28580         section anchor.
28582 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
28584         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
28585         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
28586         Split out
28587         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
28588         Use FMAMODE_NOVF512 mode iterator.
28589         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
28590         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
28591         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
28592         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
28593         Split out
28594         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
28595         Use VF_128_256 mode iterator.
28596         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
28597         Ditto.
28599 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
28601         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
28602         static chain if needed.
28604 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
28606         PR target/60697
28607         * lra-constraints.c (index_part_to_reg): New.
28608         (process_address): Use it.
28610 2014-03-27  Jeff Law  <law@redhat.com>
28611             Jakub Jelinek  <jakub@redhat.com>
28613         PR target/60648
28614         * expr.c (do_tablejump): Use simplify_gen_binary rather than
28615         gen_rtx_{PLUS,MULT} to build up the address expression.
28617         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
28618         creating non-canonical RTL.
28620 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
28622         PR ipa/60243
28623         * ipa-inline.c (want_inline_small_function_p): Short circuit large
28624         functions; reorganize to make cheap checks first.
28625         (inline_small_functions): Do not estimate growth when dumping;
28626         it is expensive.
28627         * ipa-inline.h (inline_summary): Add min_size.
28628         (growth_likely_positive): New function.
28629         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
28630         (set_cond_stmt_execution_predicate): Cleanup.
28631         (estimate_edge_size_and_time): Compute min_size.
28632         (estimate_calls_size_and_time): Likewise.
28633         (estimate_node_size_and_time): Likewise.
28634         (inline_update_overall_summary): Update min_size.
28635         (do_estimate_edge_time): Likewise.
28636         (do_estimate_edge_size): Update.
28637         (do_estimate_edge_hints): Update.
28638         (growth_likely_positive): New function.
28640 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
28642         PR target/60693
28643         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
28644         also if addr has VOIDmode.
28646 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28648         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
28649         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
28650         Declare extern.
28651         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
28652         instructions as well as AdvancedSIMD loads.
28654 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28656         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
28657         Use crypto_aese type.
28658         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
28659         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
28660         crypto_aese, crypto_aesmc.  Move to types.md.
28661         * config/arm/types.md (crypto_aes): Split into crypto_aese,
28662         crypto_aesmc.
28663         * config/arm/iterators.md (crypto_type): Likewise.
28665 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
28667         * cgraph.c: Include expr.h and tree-dfa.h.
28668         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
28669         remove LHS.
28671 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
28673         PR target/60675
28674         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
28675         regs from checking multi-reg pseudos.
28677 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28679         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
28681 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28683         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
28684         if it would clobber the stack pointer, even temporarily.
28686 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
28688         * mode-switching.c: Make small adjustments to the top comment.
28690 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
28692         * config/rs6000/constraints.md (wD constraint): New constraint to
28693         match the constant integer to get the top DImode/DFmode out of a
28694         vector in a VSX register.
28696         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
28697         match the constant integer to get the top DImode/DFmode out of a
28698         vector in a VSX register.
28700         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
28701         for ISA 2.07.
28703         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28704         vbpermq builtins.
28706         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
28707         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
28709         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
28710         Optimize vec_extract of 64-bit values, where the value being
28711         extracted is in the top word, where we can use scalar
28712         instructions.  Add direct move and store support.  Combine the big
28713         endian/little endian vector select load support into a single insn.
28714         (vsx_extract_<mode>_internal1): Likewise.
28715         (vsx_extract_<mode>_internal2): Likewise.
28716         (vsx_extract_<mode>_load): Likewise.
28717         (vsx_extract_<mode>_store): Likewise.
28718         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
28719         combined into vsx_extract_<mode>_load.
28720         (vsx_extract_<mode>_one_le): Likewise.
28722         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
28723         define the top 64-bit vector element.
28725         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
28726         constraint.
28728         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28729         Document vec_vbpermq builtin.
28731         PR target/60672
28732         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
28733         enable use of xxsldwi and xxpermdi builtin functions.
28734         (vec_xxpermdi): Likewise.
28736         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28737         Document use of vec_xxsldwi and vec_xxpermdi builtins.
28739 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
28741         PR rtl-optimization/60650
28742         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
28743         first_p.  Use it.
28744         (find_spills_for): New.
28745         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
28746         Spill all pseudos on the second iteration.
28748 2014-03-27  Marek Polacek  <polacek@redhat.com>
28750         PR c/50347
28751         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
28752         types.
28754 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28756         * config/s390/s390.c (s390_can_use_return_insn): Check for
28757         call-saved FPRs on 31 bit.
28759 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
28761         PR middle-end/60682
28762         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
28763         if they need regimplification, just drop them instead of
28764         calling gimple_regimplify_operands on them.
28766 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28768         PR target/60580
28769         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
28770         (aarch64_frame_pointer_required): Adjust logic.
28771         (aarch64_can_eliminate): Adjust logic.
28772         (aarch64_override_options_after_change): Adjust logic.
28774 2014-03-27  Dehao Chen  <dehao@google.com>
28776         * ipa-inline.c (early_inliner): Update node's inline info.
28778 2014-03-26  Dehao Chen  <dehao@google.com>
28780         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
28781         compiler inserted conditional jumps for NAN float check.
28783 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
28785         * ubsan.h (ubsan_create_data): Change second argument's type
28786         to const location_t *.
28787         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
28788         _("<unknown>").
28789         (ubsan_create_data): Change second argument to const location_t *PLOC.
28790         Create Loc field whenever PLOC is non-NULL.
28791         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
28792         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
28793         callers.
28795         PR other/59545
28796         * real.c (real_to_integer2): Change type of low to UHWI.
28798 2014-03-26  Tobias Burnus  <burnus@net-b.de>
28800         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
28801         (CILK_SELF_SPECS): New define.
28802         (driver_self_specs): Use it.
28804 2014-03-26  Richard Biener  <rguenther@suse.de>
28806         * tree-pretty-print.c (percent_K_format): Implement special
28807         case for LTO and its stripped down BLOCK tree.
28809 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
28811         PR sanitizer/60636
28812         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
28814         * tree-vrp.c (simplify_internal_call_using_ranges): If only
28815         one range is range_int_cst_p, but not both, at least optimize
28816         addition/subtraction of 0 and multiplication by 0 or 1.
28817         * gimple-fold.c (gimple_fold_call): Fold
28818         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
28819         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
28820         INTEGER_CSTs, try to fold at least x * 0 and y - y.
28822 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
28824         PR rtl-optimization/60452
28825         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
28826         <case REG>: Return 1 for invalid offsets from the frame pointer.
28828 2014-03-26  Marek Polacek  <polacek@redhat.com>
28830         PR c/37428
28831         * doc/extend.texi (C Extensions): Mention variable-length arrays in
28832         a structure/union.
28834 2014-03-26  Marek Polacek  <polacek@redhat.com>
28836         PR c/39525
28837         * doc/extend.texi (Designated Inits): Describe what happens to omitted
28838         field members.
28840 2014-03-26  Marek Polacek  <polacek@redhat.com>
28842         PR other/59545
28843         * ira-color.c (update_conflict_hard_regno_costs): Perform the
28844         multiplication in unsigned type.
28846 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
28848         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
28850 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
28852         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
28854 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
28856         PR ipa/60315
28857         * cif-code.def (UNREACHABLE) New code.
28858         * ipa-inline.c (inline_small_functions): Skip edges to
28859         __builtlin_unreachable.
28860         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
28861         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
28862         predicate to __bulitin_unreachable.
28863         (set_cond_stmt_execution_predicate): Fix issue when
28864         invert_tree_comparison returns ERROR_MARK.
28865         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
28866         propagate to inline clones.
28867         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
28868         to unreachable.
28869         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
28870         * cgraphclones.c (cgraph_clone_node): If call destination is already
28871         ureachable, do not redirect it back.
28872         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
28873         unreachable.
28875 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
28877         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
28878         Do not modify inline clones.
28880 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
28882         * config/i386/i386.md (general_sext_operand): New mode attr.
28883         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
28884         don't generate (sign_extend (const_int)).
28885         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
28886         operands[2].  Use We constraint instead of <i> and
28887         <general_sext_operand> predicate instead of <general_operand>.
28888         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
28889         * config/i386/constraints.md (We): New constraint.
28890         * config/i386/predicates.md (x86_64_sext_operand,
28891         sext_operand): New predicates.
28893 2014-03-25  Martin Jambor  <mjambor@suse.cz>
28895         PR ipa/60600
28896         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
28897         inconsistent devirtualizations to __builtin_unreachable.
28899 2014-03-25  Marek Polacek  <polacek@redhat.com>
28901         PR c/35449
28902         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
28904 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
28906         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
28907         order of elements for big-endian.
28909 2014-03-25  Richard Biener  <rguenther@suse.de>
28911         PR middle-end/60635
28912         * gimplify-me.c (gimple_regimplify_operands): Update the
28913         re-gimplifed stmt.
28915 2014-03-25  Martin Jambor  <mjambor@suse.cz>
28917         PR ipa/59176
28918         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
28919         (lto_output_varpool_node): Likewise.
28920         (input_overwrite_node): Likewise.
28921         (input_varpool_node): Likewise.
28923 2014-03-25  Richard Biener  <rguenther@suse.de>
28925         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
28926         (run_gcc): Likewise.
28928 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
28930         * combine.c (simplify_compare_const): Add MODE argument.
28931         Handle mode_width 0 as very large mode_width.
28932         (try_combine, simplify_comparison): Adjust callers.
28934         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
28935         type to avoid signed integer overflow.
28936         * explow.c (plus_constant): Likewise.
28938 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28940         * doc/generic.texi: Correct typos.
28942 2014-03-24  Tobias Burnus  <burnus@net-b.de>
28944         * doc/invoke.texi (-flto): Expand section about
28945         using static libraries with LTO.
28947 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28949         PR rtl-optimization/60501
28950         * optabs.def (addptr3_optab): New optab.
28951         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
28952         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
28953         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
28955         * lra.c (emit_add3_insn): Use the addptr pattern if available.
28957         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
28959 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
28961         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
28962         _mm512_set1_pd.
28964         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
28965         (_mm256_undefined_ps): Define.
28966         (_mm256_undefined_pd): Define.
28967         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
28968         (_mm_undefined_pd): Define.
28969         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
28970         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
28971         (_mm512_undefined_ps): Define.
28972         (_mm512_undefined_pd): Define.
28973         Use _mm*_undefined_*.
28974         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
28976 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
28978         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
28979         (lshr_simd): DI mode added.
28980         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
28981         (aarch64_ushr_simddi): Likewise.
28982         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
28983         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
28984         (vshrd_n_u64): Likewise.
28986 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28988         * Makefile.in (s-macro_list): Depend on cc1.
28990 2014-03-23  Teresa Johnson  <tejohnson@google.com>
28992         * ipa-utils.c (ipa_print_order): Use specified dump file.
28994 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
28996         PR rtl-optimization/60601
28997         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
28999         * gcc.c (eval_spec_function): Initialize save_growing_value.
29001 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
29003         PR sanitizer/60613
29004         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
29005         code == MINUS_EXPR, never swap op0 with op1.
29007         * toplev.c (init_local_tick): Avoid signed integer multiplication
29008         overflow.
29009         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
29010         shift by first operand's bitsize.
29012 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
29014         PR target/60610
29015         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
29016         redefine to 1 or 0.
29017         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
29018         TARGET_ISA_64BIT_P(x).
29020 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29022         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
29023         pattern for vector nor instead of subtract from splat(-1).
29024         (altivec_expand_vec_perm_const_le): Likewise.
29026 2014-03-21  Richard Henderson  <rth@twiddle.net>
29028         PR target/60598
29029         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
29030         related insns after epilogue_completed.
29032 2014-03-21  Martin Jambor  <mjambor@suse.cz>
29034         PR ipa/59176
29035         * cgraph.h (symtab_node): New flag body_removed.
29036         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
29037         when removing bodies.
29038         * symtab.c (dump_symtab_base): Dump body_removed flag.
29039         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
29040         had their bodies removed.
29042 2014-03-21  Martin Jambor  <mjambor@suse.cz>
29044         PR ipa/60419
29045         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
29046         in the border.
29048 2014-03-21  Richard Biener  <rguenther@suse.de>
29050         PR tree-optimization/60577
29051         * tree-core.h (struct tree_base): Document nothrow_flag use
29052         in DECL_NONALIASED.
29053         * tree.h (DECL_NONALIASED): New.
29054         (may_be_aliased): Adjust.
29055         * coverage.c (build_var): Set DECL_NONALIASED.
29057 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
29059         * expr.c (expand_expr_real_1): Remove outdated comment.
29061 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
29063         PR middle-end/60597
29064         * ira.c (adjust_cleared_regs): Call copy_rtx on
29065         *reg_equiv[REGNO (loc)].src_p before passing it to
29066         simplify_replace_fn_rtx.
29068         PR target/60568
29069         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
29070         into CONST, put pic register as first operand of PLUS.  Use
29071         gen_const_mem for both 32-bit and 64-bit PIC got loads.
29073 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29075         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
29077 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
29079         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
29080         around for store forwarding issue in the FPU on the UT699.
29081         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
29082         loads and operations if -mfix-ut699 is specified.
29083         (divtf3_hq): Tweak attribute.
29084         (sqrttf2_hq): Likewise.
29086 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
29088         * calls.c (store_one_arg): Remove incorrect const qualification on the
29089         type of the temporary.
29090         * cfgexpand.c (expand_return): Likewise.
29091         * expr.c (expand_constructor): Likewise.
29092         (expand_expr_real_1): Likewise.
29094 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29096         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
29097         of parts.
29099 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
29101         PR target/60039
29102         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
29104 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
29106         * config/arm/aarch-common-protos.h
29107         (alu_cost_table): Fix spelling of "extend".
29108         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
29110 2014-03-19  Richard Biener  <rguenther@suse.de>
29112         PR middle-end/60553
29113         * tree-core.h (tree_type_common): Re-order pointer members
29114         to reduce recursion depth during GC walks.
29116 2014-03-19  Marek Polacek  <polacek@redhat.com>
29118         PR sanitizer/60569
29119         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
29120         before accessing it.
29122 2014-03-19  Richard Biener  <rguenther@suse.de>
29124         PR lto/59543
29125         * lto-streamer-in.c (input_function): In WPA stage do not drop
29126         debug stmts.
29128 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
29130         PR tree-optimization/60559
29131         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
29132         with build_zero_cst assignment.
29134 2014-03-18  Kai Tietz  <ktietz@redhat.com>
29136         PR rtl-optimization/56356
29137         * sdbout.c (sdbout_parms): Verify that parms'
29138         incoming argument is valid.
29139         (sdbout_reg_parms): Likewise.
29141 2014-03-18  Richard Henderson  <rth@redhat.com>
29143         PR target/60562
29144         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
29145         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
29146         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
29148 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
29150         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
29151         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
29152         Italicize plugin event names in description.  Explain that
29153         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
29154         Remind that no GCC functions should be called after PLUGIN_FINISH.
29155         Explain what pragmas with expansion are.
29157 2014-03-18  Martin Liska  <mliska@suse.cz>
29159         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
29160         gimple call statement is update.
29161         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
29162         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
29164 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
29166         PR sanitizer/60557
29167         * ubsan.c (ubsan_instrument_unreachable): Call
29168         initialize_sanitizer_builtins.
29169         (ubsan_pass): Likewise.
29171         PR sanitizer/60535
29172         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
29173         varpool_finalize_decl instead of rest_of_decl_compilation.
29175 2014-03-18  Richard Biener  <rguenther@suse.de>
29177         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
29178         by using bitmap_and_compl instead of bitmap_and_compl_into.
29179         (df_rd_transfer_function): Likewise.
29181 2014-03-18  Richard Biener  <rguenther@suse.de>
29183         * doc/lto.texi (fresolution): Fix typo.
29185 2014-03-18  Richard Biener  <rguenther@suse.de>
29187         * doc/invoke.texi (flto): Update for changes in 4.9.
29189 2014-03-18  Richard Biener  <rguenther@suse.de>
29191         * doc/loop.texi: Remove section on the removed lambda framework.
29192         Update loop docs with recent changes in preserving loop structure.
29194 2014-03-18  Richard Biener  <rguenther@suse.de>
29196         * doc/lto.texi (-fresolution): Document.
29198 2014-03-18  Richard Biener  <rguenther@suse.de>
29200         * doc/contrib.texi: Adjust my name.
29202 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
29204         PR ipa/58721
29205         * internal-fn.c: Include diagnostic-core.h.
29206         (expand_BUILTIN_EXPECT): New function.
29207         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
29208         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
29209         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
29210         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
29211         IFN_BUILTIN_EXPECT.
29212         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
29213         Revert 3 argument __builtin_expect code.
29214         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
29215         * gimple-fold.c (gimple_fold_call): Likewise.
29216         * tree.h (fold_builtin_expect): New prototype.
29217         * builtins.c (build_builtin_expect_predicate): Add predictor
29218         argument, if non-NULL, create 3 argument __builtin_expect.
29219         (fold_builtin_expect): No longer static.  Add ARG2 argument,
29220         pass it through to build_builtin_expect_predicate.
29221         (fold_builtin_2): Adjust caller.
29222         (fold_builtin_3): Handle BUILT_IN_EXPECT.
29223         * internal-fn.def (BUILTIN_EXPECT): New.
29225 2014-03-18  Tobias Burnus  <burnus@net-b.de>
29227         PR ipa/58721
29228         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
29229         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
29230         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
29232 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
29234         PR ipa/58721
29235         * predict.c (combine_predictions_for_bb): Fix up formatting.
29236         (expr_expected_value_1, expr_expected_value): Add predictor argument,
29237         fill what it points to if non-NULL.
29238         (tree_predict_by_opcode): Adjust caller, use the predictor.
29239         * predict.def (PRED_COMPARE_AND_SWAP): Add.
29241 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
29243         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
29244         proper constant for the store mode.
29246 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
29248         * symtab.c (change_decl_assembler_name): Fix transparent alias
29249         chain construction.
29251 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
29253         * config/aarch64/aarch64.c: Correct the comments about the
29254         aarch64 stack layout.
29256 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
29258         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
29259         check for GF_OMP_FOR_KIND_FOR.
29261 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
29263         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
29264         ymm and zmm register names.
29266 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
29268         PR target/60516
29269         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
29270         note creation for the 2010-08-31 changes.
29272 2014-03-17  Marek Polacek  <polacek@redhat.com>
29274         PR middle-end/60534
29275         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
29276         as -fno-tree-loop-vectorize.
29277         (expand_omp_simd): Likewise.
29279 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
29281         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
29282         (eligible_for_call_delay): New prototype.
29283         * config/sparc/sparc.c (tls_call_delay): Rename into...
29284         (eligible_for_call_delay): ...this.  Return false if the instruction
29285         cannot be put in the delay slot of a branch.
29286         (eligible_for_restore_insn): Simplify.
29287         (eligible_for_return_delay): Return false if the instruction cannot be
29288         put in the delay slot of a branch and simplify.
29289         (eligible_for_sibcall_delay): Return false if the instruction cannot be
29290         put in the delay slot of a branch.
29291         * config/sparc/sparc.md (fix_ut699): New attribute.
29292         (tls_call_delay): Delete.
29293         (in_call_delay): Reimplement.
29294         (eligible_for_sibcall_delay): Rename into...
29295         (in_sibcall_delay): ...this.
29296         (eligible_for_return_delay): Rename into...
29297         (in_return_delay): ...this.
29298         (in_branch_delay): Reimplement.
29299         (in_uncond_branch_delay): Delete.
29300         (in_annul_branch_delay): Delete.
29302 2014-03-14  Richard Henderson  <rth@redhat.com>
29304         PR target/60525
29305         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
29306         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
29307         (*floathi<X87MODEF>2_i387_with_temp): Remove.
29308         (floathi splitters): Remove.
29309         (float<SWI48x>xf2): New pattern.
29310         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
29311         code that tried to handle DImode for 32-bit, but which was excluded
29312         by the pattern's condition.  Drop allocation of stack temporary.
29313         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
29314         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
29315         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
29316         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
29317         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
29318         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
29319         (*float<SWI48><MODEF>2_sse_interunit): Remove.
29320         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
29321         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
29322         (*float<SWI48x><X87MODEF>2_i387): Remove.
29323         (all float _with_temp splitters): Remove.
29324         (*float<SWI48x><MODEF>2_i387): New pattern.
29325         (*float<SWI48><MODEF>2_sse): New pattern.
29326         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
29327         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
29329 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
29330             Marek Polacek  <polacek@redhat.com>
29332         PR middle-end/60484
29333         * common.opt (dump_base_name_prefixed): New Variable.
29334         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
29335         if x_dump_base_name_prefixed is already set, set it at the end.
29337 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
29339         PR rtl-optimization/60508
29340         * lra-constraints.c (get_reload_reg): Add new parameter
29341         in_subreg_p.
29342         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
29343         Pass the new parameter values.
29345 2014-03-14  Richard Biener  <rguenther@suse.de>
29347         * common.opt: Revert unintented changes from r205065.
29348         * opts.c: Likewise.
29350 2014-03-14  Richard Biener  <rguenther@suse.de>
29352         PR middle-end/60518
29353         * cfghooks.c (split_block): Properly adjust all loops the
29354         block was a latch of.
29356 2014-03-14  Martin Jambor  <mjambor@suse.cz>
29358         PR lto/60461
29359         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
29360         and simplify it.
29362 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
29364         PR target/59396
29365         * config/avr/avr.c (avr_set_current_function): Pass function name
29366         through default_strip_name_encoding before sanity checking instead
29367         of skipping the first char of the assembler name.
29369 2014-03-13  Richard Henderson  <rth@redhat.com>
29371         PR debug/60438
29372         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
29373         (ix86_force_to_memory, ix86_free_from_memory): Remove.
29374         * config/i386/i386-protos.h: Likewise.
29375         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
29376         in the expander instead of a splitter.
29377         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
29378         any possibility of requiring a memory.
29379         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
29380         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
29381         (fp branch splitters): Update for ix86_split_fp_branch.
29382         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
29383         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
29384         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
29385         (*fop_<MODEF>_2_i387): Remove f/r alternative.
29386         (*fop_<MODEF>_3_i387): Likewise.
29387         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
29388         (splitters for the fop_* register patterns): Remove.
29389         (fscalexf4_i387): Rename from *fscalexf4_i387.
29390         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
29392 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
29394         PR tree-optimization/59779
29395         * tree-dfa.c (get_ref_base_and_extent): Use double_int
29396         type for bitsize and maxsize instead of HOST_WIDE_INT.
29398 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
29400         PR rtl-optimization/57320
29401         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
29402         the CFG after thread_prologue_and_epilogue_insns.
29404 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
29406         PR rtl-optimization/57189
29407         * lra-constraints.c (process_alt_operands): Disfavor spilling
29408         vector pseudos.
29410 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
29412         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
29414 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
29416         PR tree-optimization/59025
29417         PR middle-end/60418
29418         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
29419         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
29421 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
29423         PR target/60486
29424         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
29425         calls of avr_out_plus_1.
29427 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
29429         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
29430         BB's single pred and update the father loop's latch info later.
29432 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
29434         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
29435         (VEC_M): Likewise.
29436         (VEC_N): Likewise.
29437         (VEC_R): Likewise.
29438         (VEC_base): Likewise.
29439         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
29440         registers, we need to swap double words in little endian mode.
29442         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
29443         to be a container mode for 128-bit integer operations added in ISA
29444         2.07.  Unlike TImode and PTImode, the preferred register set is
29445         the Altivec/VMX registers for the 128-bit operations.
29447         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
29448         declarations.
29449         (rs6000_split_128bit_ok_p): Likewise.
29451         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
29452         macros for creating ISA 2.07 normal and overloaded builtin
29453         functions with 3 arguments.
29454         (BU_P8V_OVERLOAD_3): Likewise.
29455         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
29456         for use as overloaded functions.
29457         (VPERM_1TI_UNS): Likewise.
29458         (VSEL_1TI): Likewise.
29459         (VSEL_1TI_UNS): Likewise.
29460         (ST_INTERNAL_1ti): Likewise.
29461         (LD_INTERNAL_1ti): Likewise.
29462         (XXSEL_1TI): Likewise.
29463         (XXSEL_1TI_UNS): Likewise.
29464         (VPERM_1TI): Likewise.
29465         (VPERM_1TI_UNS): Likewise.
29466         (XXPERMDI_1TI): Likewise.
29467         (SET_1TI): Likewise.
29468         (LXVD2X_V1TI): Likewise.
29469         (STXVD2X_V1TI): Likewise.
29470         (VEC_INIT_V1TI): Likewise.
29471         (VEC_SET_V1TI): Likewise.
29472         (VEC_EXT_V1TI): Likewise.
29473         (EQV_V1TI): Likewise.
29474         (NAND_V1TI): Likewise.
29475         (ORC_V1TI): Likewise.
29476         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
29477         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
29478         overloaded builtin.
29479         (VADDUQM): Likewise.
29480         (VSUBCUQ): Likewise.
29481         (VADDEUQM): Likewise.
29482         (VADDECUQ): Likewise.
29483         (VSUBEUQM): Likewise.
29484         (VSUBECUQ): Likewise.
29486         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
29487         __int128_t and __uint128_t types.
29488         (__uint128_type): Likewise.
29489         (altivec_categorize_keyword): Add support for vector __int128_t,
29490         vector __uint128_t, vector __int128, and vector unsigned __int128
29491         as a container type for TImode operations that need to be done in
29492         VSX/Altivec registers.
29493         (rs6000_macro_to_expand): Likewise.
29494         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
29495         to support 128-bit integer instructions vaddcuq, vadduqm,
29496         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
29497         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
29499         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
29500         for V1TImode, and set up preferences to use VSX/Altivec registers.
29501         Setup VSX reload handlers.
29502         (rs6000_debug_reg_global): Likewise.
29503         (rs6000_init_hard_regno_mode_ok): Likewise.
29504         (rs6000_preferred_simd_mode): Likewise.
29505         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
29506         (easy_altivec_constant): Likewise.
29507         (output_vec_const_move): Likewise.
29508         (rs6000_expand_vector_set): Convert V1TImode set and extract to
29509         simple move.
29510         (rs6000_expand_vector_extract): Likewise.
29511         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
29512         addressing.
29513         (rs6000_const_vec): Add support for V1TImode.
29514         (rs6000_emit_le_vsx_load): Swap double words when loading or
29515         storing TImode/V1TImode.
29516         (rs6000_emit_le_vsx_store): Likewise.
29517         (rs6000_emit_le_vsx_move): Likewise.
29518         (rs6000_emit_move): Add support for V1TImode.
29519         (altivec_expand_ld_builtin): Likewise.
29520         (altivec_expand_st_builtin): Likewise.
29521         (altivec_expand_vec_init_builtin): Likewise.
29522         (altivec_expand_builtin): Likewise.
29523         (rs6000_init_builtins): Add support for V1TImode type.  Add
29524         support for ISA 2.07 128-bit integer builtins.  Define type names
29525         for the VSX/Altivec vector types.
29526         (altivec_init_builtins): Add support for overloaded vector
29527         functions with V1TImode type.
29528         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
29529         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
29530         external function.
29531         (rs6000_split_128bit_ok_p): Likewise.
29532         (rs6000_handle_altivec_attribute): Create V1TImode from vector
29533         __int128_t and vector __uint128_t.
29535         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
29536         and mode attributes.
29537         (VSX_M): Likewise.
29538         (VSX_M2): Likewise.
29539         (VSm): Likewise.
29540         (VSs): Likewise.
29541         (VSr): Likewise.
29542         (VSv): Likewise.
29543         (VS_scalar): Likewise.
29544         (VS_double): Likewise.
29545         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
29547         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
29548         we support the ISA 2.07 128-bit integer arithmetic instructions.
29549         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
29550         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
29551         and TImode types for use with the builtin functions.
29552         (V1TI_type_node): Likewise.
29553         (unsigned_V1TI_type_node): Likewise.
29554         (intTI_type_internal_node): Likewise.
29555         (uintTI_type_internal_node): Likewise.
29557         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
29558         128-bit builtin functions.
29559         (UNSPEC_VADDEUQM): Likewise.
29560         (UNSPEC_VADDECUQ): Likewise.
29561         (UNSPEC_VSUBCUQ): Likewise.
29562         (UNSPEC_VSUBEUQM): Likewise.
29563         (UNSPEC_VSUBECUQ): Likewise.
29564         (VM): Add V1TImode to vector mode iterators.
29565         (VM2): Likewise.
29566         (VI_unit): Likewise.
29567         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
29568         (altivec_vaddcuq): Likewise.
29569         (altivec_vsubuqm): Likewise.
29570         (altivec_vsubcuq): Likewise.
29571         (altivec_vaddeuqm): Likewise.
29572         (altivec_vaddecuq): Likewise.
29573         (altivec_vsubeuqm): Likewise.
29574         (altivec_vsubecuq): Likewise.
29576         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
29577         mode iterators.
29578         (BOOL_128): Likewise.
29579         (BOOL_REGS_OUTPUT): Likewise.
29580         (BOOL_REGS_OP1): Likewise.
29581         (BOOL_REGS_OP2): Likewise.
29582         (BOOL_REGS_UNARY): Likewise.
29583         (BOOL_REGS_AND_CR0): Likewise.
29585         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
29586         128-bit integer builtin support.
29587         (vec_vadduqm): Likewise.
29588         (vec_vaddecuq): Likewise.
29589         (vec_vaddeuqm): Likewise.
29590         (vec_vsubecuq): Likewise.
29591         (vec_vsubeuqm): Likewise.
29592         (vec_vsubcuq): Likewise.
29593         (vec_vsubuqm): Likewise.
29595         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29596         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
29597         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
29598         128-bit integer add/subtract to ISA 2.07.
29600 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
29602         * config/arc/arc.c (arc_predicate_delay_insns):
29603         Fix third argument passed to conditionalize_nonjump.
29605 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
29607         * config/aarch64/aarch64-builtins.c
29608         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
29609         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
29610         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
29611         instead of __builtin_lfloor.
29612         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
29614 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
29616         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
29617         (tree_ssa_ifcombine_bb_1): New function.
29618         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
29619         is an empty forwarder block to then_bb or vice versa and then_bb
29620         and else_bb are effectively swapped.
29622 2014-03-12  Christian Bruel  <christian.bruel@st.com>
29624         PR target/60264
29625         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
29626         REG_CFA_DEF_CFA note.
29627         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
29628         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
29630 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29632         PR tree-optimization/60454
29633         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
29635 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29637         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
29638         Do not define target_cpu_default2 to generic.
29639         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
29640         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
29641         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
29643 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
29644             Marc Glisse  <marc.glisse@inria.fr>
29646         PR tree-optimization/60502
29647         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
29648         instead of build_low_bits_mask.
29650 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
29652         PR middle-end/60482
29653         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
29654         if there are multiple uses, but op doesn't live on E edge.
29655         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
29656         clobber stmts before __builtin_unreachable.
29658 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
29660         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
29661         hard_frame_pointer_rtx.
29662         * cse.c (cse_insn): Remove volatile check.
29663         * cselib.c (cselib_process_insn): Likewise.
29664         * dse.c (scan_insn): Likewise.
29666 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29668         * config/arc/arc.c (conditionalize_nonjump): New function,
29669         broken out of ...
29670         (arc_ifcvt): ... this.
29671         (arc_predicate_delay_insns): Use it.
29673 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29675         * config/arc/predicates.md (extend_operand): During/after reload,
29676         allow const_int_operand.
29677         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
29678         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
29679         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
29680         to "i".
29681         (umulsi3_highpart_i): Likewise.
29683 2014-03-11  Richard Biener  <rguenther@suse.de>
29685         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
29686         Add asserts to guard possible wrong-code bugs.
29688 2014-03-11  Richard Biener  <rguenther@suse.de>
29690         PR tree-optimization/60429
29691         PR tree-optimization/60485
29692         * tree-ssa-structalias.c (set_union_with_increment): Properly
29693         take into account all fields that overlap the shifted vars.
29694         (do_sd_constraint): Likewise.
29695         (do_ds_constraint): Likewise.
29696         (get_constraint_for_ptr_offset): Likewise.
29698 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
29700         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
29701         (nios2_compute_frame_layout):
29702         Add calculation of cfun->machine->fp_save_offset.
29703         (nios2_expand_prologue): Correct setting of frame pointer register
29704         in prologue.
29705         (nios2_expand_epilogue): Update recovery of stack pointer from
29706         frame pointer accordingly.
29707         (nios2_initial_elimination_offset): Update calculation of offset
29708         for eliminating to HARD_FRAME_POINTER_REGNUM.
29710 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
29712         PR ipa/60457
29713         * ipa.c (symtab_remove_unreachable_nodes): Don't call
29714         cgraph_get_create_node on VAR_DECLs.
29716 2014-03-10  Richard Biener  <rguenther@suse.de>
29718         PR middle-end/60474
29719         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
29721 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
29723         * config/vms/vms.opt (vms_float_format): New variable.
29725 2014-03-08  Tobias Burnus  <burnus@net-b.de>
29727         * doc/invoke.texi (-fcilkplus): Update implementation status.
29729 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
29730             Richard Biener  <rguenther@suse.de>
29732         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
29733         consistently accross all TUs.
29734         (run_gcc): Enable -fshort-double automatically at link at link-time
29735         and disallow override.
29737 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
29739         PR target/58271
29740         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
29741         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
29742         if they can't be used.
29744 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29746         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
29747         for Solaris 11/x86 ld.
29748         * configure: Regenerate.
29750 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29752         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
29753         (LIB_TLS_SPEC): Save as ld_tls_libs.
29754         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
29755         (HAVE_AS_IX86_TLSLDM): New test.
29756         * configure, config.in: Regenerate.
29757         * config/i386/i386.c (legitimize_tls_address): Fall back to
29758         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
29759         cannot support TLS_MODEL_LOCAL_DYNAMIC.
29760         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
29761         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
29763 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
29765         * common.opt (fira-loop-pressure): Mark as optimization.
29767 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
29769         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
29770         an OpenMP mappable type.
29772 2014-03-06  Matthias Klose  <doko@ubuntu.com>
29774         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
29775         MULTILIB_OSDIRNAMES is not defined.
29777 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
29778             Meador Inge  <meadori@codesourcery.com>
29780         PR target/58595
29781         * config/arm/arm.c (arm_tls_symbol_p): Remove.
29782         (arm_legitimize_address): Call legitimize_tls_address for any
29783         arm_tls_referenced_p expression, handle constant addend.  Call it
29784         before testing for !TARGET_ARM.
29785         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
29787 2014-03-06  Richard Biener  <rguenther@suse.de>
29789         PR middle-end/60445
29790         PR lto/60424
29791         PR lto/60427
29792         Revert
29793         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
29795         * tree-streamer.c (record_common_node): Assert we don't record
29796         nodes with type double.
29797         (preload_common_node): Skip type double, complex double and double
29798         pointer since it is now frontend dependent due to fshort-double option.
29800 2014-03-06  Richard Biener  <rguenther@suse.de>
29802         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
29803         or -fno-lto is specified and the linker has full plugin support.
29804         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
29805         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
29806         * lto-wrapper.c (merge_and_complain): Merge compile-time
29807         optimization levels.
29808         (run_gcc): And pass it through to the link options.
29810 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
29812         PR debug/60381
29813         Revert:
29814         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
29815         PR debug/59992
29816         * cselib.c (remove_useless_values): Skip to avoid quadratic
29817         behavior if the condition moved from...
29818         (cselib_process_insn): ... here holds.
29820 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
29822         PR plugins/59335
29823         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
29824         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
29826         PR plugins/59335
29827         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
29828         (TM_H): Add x86-tune.def.
29830 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29832         * config/aarch64/aarch64.c (generic_tunings):
29833         Use cortexa57_extra_costs.
29835 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
29837         PR lto/60404
29838         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
29839         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
29840         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
29841         cost for in_lto_p.
29843 2014-03-04  Heiher  <r@hev.cc>
29845         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
29846         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
29848 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
29850         * config/i386/predicates.md (const2356_operand): Change to ...
29851         (const2367_operand): ... this.
29852         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
29853         const2367_operand.
29854         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29855         (*avx512pf_scatterpf<mode>sf): Ditto.
29856         (avx512pf_scatterpf<mode>df): Ditto.
29857         (*avx512pf_scatterpf<mode>df_mask): Ditto.
29858         (*avx512pf_scatterpf<mode>df): Ditto.
29859         * config/i386/i386.c (ix86_expand_builtin): Update
29860         incorrect hint operand error message.
29862 2014-03-04  Richard Biener  <rguenther@suse.de>
29864         * lto-section-in.c (lto_get_section_data): Fix const cast.
29866 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
29868         * tree-streamer.c (record_common_node): Assert we don't record
29869         nodes with type double.
29870         (preload_common_node): Skip type double, complex double and double
29871         pointer since it is now frontend dependent due to fshort-double option.
29873 2014-03-04  Richard Biener  <rguenther@suse.de>
29875         PR lto/60405
29876         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
29877         (lto_input_toplevel_asms): Likewise.
29878         * lto-section-in.c (lto_get_section_data): Instead do it here
29879         for every section.
29881 2014-03-04  Richard Biener  <rguenther@suse.de>
29883         PR tree-optimization/60382
29884         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
29885         dead PHIs a reduction.
29887 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
29889         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
29890         hint value.
29891         (_mm_prefetch): Move out of GCC target("sse") pragma.
29892         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
29893         GCC target("prfchw") pragma.
29894         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
29895         for locality <= 2.
29896         * config/i386/i386.c (ix86_option_override_internal): Enable
29897         -mprfchw with -mprefetchwt1.
29899 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
29901         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
29902         Mark as varying.
29904 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
29906         * opts.h (CL_PCH_IGNORE): Define.
29907         * targhooks.c (option_affects_pch_p):
29908         Return false for options that have CL_PCH_IGNORE set.
29909         * opt-functions.awk: Process PchIgnore.
29910         * doc/options.texi: Document PchIgnore.
29912         * config/arc/arc.opt (misize): Add PchIgnore property.
29914 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29916         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
29917         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
29918         constraint on constants to permit them being loaded into
29919         GENERAL_REGS or BASE_REGS.
29921 2014-03-03  Nick Clifton  <nickc@redhat.com>
29923         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
29924         anti-cacnonical alternatives.
29925         (negandhi3_real): New pattern.
29926         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
29928 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29930         * config/avr/avr-mcus.def: Remove atxmega16x1.
29931         * config/avr/avr-tables.opt: Regenerate.
29932         * config/avr/t-multilib: Regenerate.
29933         * doc/avr-mmcu.texi: Regenerate.
29935 2014-03-03  Tobias Grosser  <tobias@grosser.es>
29936             Mircea Namolaru  <mircea.namolaru@inria.fr>
29938         PR tree-optimization/58028
29939         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
29940         scalar dimensions.
29942 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29944         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
29945         not handled by recognizers.
29947 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
29949         PR middle-end/60175
29950         * function.c (expand_function_end): Don't emit
29951         clobber_return_register sequence if clobber_after is a BARRIER.
29952         * cfgexpand.c (construct_exit_block): Append instructions before
29953         return_label to prev_bb.
29955 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29957         * config/rs6000/constraints.md: Document reserved use of "wc".
29959 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
29961         PR ipa/60150
29962         * ipa.c (function_and_variable_visibility): When dissolving comdat
29963         group, also set all symbols to local.
29965 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
29967         PR ipa/60306
29969         Revert:
29970         2013-12-14  Jan Hubicka  <jh@suse.cz>
29971         PR middle-end/58477
29972         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
29974 2014-03-02  Jon Beniston  <jon@beniston.com>
29976         PR bootstrap/48230
29977         PR bootstrap/50927
29978         PR bootstrap/52466
29979         PR target/46898
29980         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
29981           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
29982         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
29983         (simple_return, *simple_return): New patterns
29984         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
29985         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
29987 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
29989         * dwarf2out.c (gen_subprogram_die): Tidy.
29991 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
29993         PR target/60071
29994         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
29995         (*mov_t_msb_neg_negc): ... this new insn.
29997 2014-02-28  Jason Merrill  <jason@redhat.com>
29999         PR c++/58678
30000         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
30001         function.
30003 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
30005         PR c++/60314
30006         * dwarf2out.c (decltype_auto_die): New static.
30007         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
30008         (gen_type_die_with_usage): Handle 'decltype(auto)'.
30009         (is_cxx_auto): Likewise.
30011 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
30013         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
30014         we are not using general regs only.
30016 2014-02-28  Richard Biener  <rguenther@suse.de>
30018         PR target/60280
30019         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
30020         previous fix and only allow to remove trivial pre-headers
30021         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
30022         (remove_forwarder_block): Properly update the latch of a loop.
30024 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
30026         PR debug/59992
30027         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
30028         (cselib_preserved_hash_table): New.
30029         (preserve_constants_and_equivs): Move preserved vals to it.
30030         (cselib_find_slot): Look it up first.
30031         (cselib_init): Initialize it.
30032         (cselib_finish): Release it.
30033         (dump_cselib_table): Dump it.
30035 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
30037         PR debug/59992
30038         * cselib.c (remove_useless_values): Skip to avoid quadratic
30039         behavior if the condition moved from...
30040         (cselib_process_insn): ... here holds.
30042 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
30044         PR debug/57232
30045         * var-tracking.c (vt_initialize): Apply the same condition to
30046         preserve the CFA base value.
30048 2014-02-28  Joey Ye  <joey.ye@arm.com>
30050         PR target/PR60169
30051         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
30052         if reload in progress or completed.
30054 2014-02-28  Tobias Burnus  <burnus@net-b.de>
30056         PR middle-end/60147
30057         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
30058         NAMELIST_DECL.
30060 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
30062         * doc/tm.texi.in (Condition Code Status): Update documention for
30063         relative locations of cc0-setter and cc0-user.
30065 2014-02-27  Jeff Law  <law@redhat.com>
30067         PR rtl-optimization/52714
30068         * combine.c (try_combine): When splitting an unrecognized PARALLEL
30069         into two independent simple sets, if I3 is a jump, ensure the
30070         pattern we place into I3 is a (set (pc) ...).
30072 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
30073             Jeff Law  <law@redhat.com>
30075         PR rtl-optimization/49847
30076         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
30077         are in different blocks.
30078         * doc/tm.texi (Condition Code Status): Update documention for
30079         relative locations of cc0-setter and cc0-user.
30081 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
30083         PR target/59222
30084         * lra.c (lra_emit_add): Check SUBREG too.
30086 2014-02-27  Andreas Schwab  <schwab@suse.de>
30088         * config/m68k/m68k.c (m68k_option_override): Disable
30089         -flive-range-shrinkage for classic m68k.
30090         (m68k_override_options_after_change): Likewise.
30092 2014-02-27  Marek Polacek  <polacek@redhat.com>
30094         PR middle-end/59223
30095         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
30096         -Wmaybe-uninitialized.
30098 2014-02-27  Alan Modra  <amodra@gmail.com>
30100         PR target/57936
30101         * reload1.c (emit_input_reload_insns): When reload_override_in,
30102         set old to rl->in_reg when rl->in_reg is a subreg.
30104 2014-02-26  Richard Biener  <rguenther@suse.de>
30106         PR bootstrap/60343
30107         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
30109 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
30111         * common/config/i386/predicates.md (const1256_operand): Remove.
30112         (const2356_operand): New.
30113         (const_1_to_2_operand): Remove.
30114         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
30115         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30116         (*avx512pf_gatherpf<mode>sf): Ditto.
30117         (avx512pf_gatherpf<mode>df): Ditto.
30118         (*avx512pf_gatherpf<mode>df_mask): Ditto.
30119         (*avx512pf_gatherpf<mode>df): Ditto.
30120         (avx512pf_scatterpf<mode>sf): Ditto.
30121         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30122         (*avx512pf_scatterpf<mode>sf): Ditto.
30123         (avx512pf_scatterpf<mode>df): Ditto.
30124         (*avx512pf_scatterpf<mode>df_mask): Ditto.
30125         (*avx512pf_scatterpf<mode>df): Ditto.
30126         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
30128 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
30130         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
30131         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
30132         (_mm512_mask_testn_epi64_mask): Move to ...
30133         * config/i386/avx512cdintrin.h: Here.
30134         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
30135         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
30136         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
30137         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
30138         TARGET_AVX512F from TARGET_AVX512CD.
30140 2014-02-26  Richard Biener  <rguenther@suse.de>
30142         PR ipa/60327
30143         * ipa.c (walk_polymorphic_call_targets): Properly guard
30144         call to inline_update_overall_summary.
30146 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
30148         PR target/60280
30149         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
30150         and latches only if requested.  Fix latch if it is removed.
30151         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
30152         LOOPS_HAVE_PREHEADERS.
30154 2014-02-25  Andrew Pinski  <apinski@cavium.com>
30156         * builtins.c (expand_builtin_thread_pointer): Create a new target
30157         when the target is NULL.
30159 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
30161         PR rtl-optimization/60317
30162         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
30163         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
30164         * lra-assigns.c: Include params.h.
30165         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
30166         other reload pseudos considerations.
30168 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30170         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
30171         to use canonical form for nor<mode>3.
30173 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30175         PR target/55426
30176         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
30177         conversions.
30179 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
30181         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
30182         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
30183         (ix86_handle_option): Handle OPT_mprefetchwt1.
30184         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
30185         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
30186         PREFETCHWT1 CPUID.
30187         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
30188         OPTION_MASK_ISA_PREFETCHWT1.
30189         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
30190         (PTA_PREFETCHWT1): New.
30191         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
30192         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
30193         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
30194         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
30195         (*prefetch_avx512pf_<mode>_: Change into ...
30196         (*prefetch_prefetchwt1_<mode>: This.
30197         * config/i386/i386.opt (mprefetchwt1): New.
30198         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
30199         (_mm_prefetch): Handle intent to write.
30200         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
30202 2014-02-25  Richard Biener  <rguenther@suse.de>
30204         PR middle-end/60291
30205         * emit-rtl.c (mem_attrs_htab): Remove.
30206         (mem_attrs_htab_hash): Likewise.
30207         (mem_attrs_htab_eq): Likewise.
30208         (set_mem_attrs): Always allocate new mem-attrs when something changed.
30209         (init_emit_once): Do not allocate mem_attrs_htab.
30211 2014-02-25  Richard Biener  <rguenther@suse.de>
30213         PR lto/60319
30214         * lto-opts.c (lto_write_options): Output non-explicit conservative
30215         -fwrapv, -fno-trapv and -fno-strict-overflow.
30216         * lto-wrapper.c (merge_and_complain): Handle merging those options.
30217         (run_gcc): And pass them through.
30219 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
30221         * sel-sched.c (calculate_new_fences): New parameter ptime.
30222         Calculate it as a maximum over all fence cycles.
30223         (sel_sched_region_2): Adjust the call to calculate_new_fences.
30224         Print the final schedule timing when sched_verbose.
30226 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
30228         PR rtl-optimization/60292
30229         * sel-sched.c (fill_vec_av_set): Do not reset target availability
30230         bit fot the fence instruction.
30232 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
30234         * calls.h: Fix typo in comment.
30236 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
30238         * config/pa/pa.c (pa_output_move_double): Don't valididate when
30239         adjusting offsetable addresses.
30241 2014-02-24  Guozhi Wei  <carrot@google.com>
30243         * sparseset.h (sparseset_pop): Fix the wrong index.
30245 2014-02-24  Walter Lee  <walt@tilera.com>
30247         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
30248         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
30249         triplet.
30250         * common/config/tilegx/tilegx-common.c
30251         (TARGET_DEFAULT_TARGET_FLAGS): Define.
30252         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
30253         (LINK_SPEC): Ditto.
30254         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
30255         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
30256         (tilegx_gimplify_va_arg_expr): Handle big endian.
30257         (tilegx_expand_unaligned_load): Ditto.
30258         (tilegx_expand_unaligned_store): Ditto.
30259         (TARGET_RETURN_IN_MSB): New.
30260         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
30261         (TARGET_ENDIAN_DEFAULT): New.
30262         (TARGET_BIG_ENDIAN): Handle big endian.
30263         (BYTES_BIG_ENDIAN): Ditto.
30264         (WORDS_BIG_ENDIAN): Ditto.
30265         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
30266         (ENDIAN_SPEC): New.
30267         (EXTRA_SPECS): New.
30268         * config/tilegx/tilegx.md (extv): Handle big endian.
30269         (extzv): Ditto.
30270         (insn_st<n>): Ditto.
30271         (insn_st<n>_add<bitsuffix>): Ditto.
30272         (insn_stnt<n>): Ditto.
30273         (insn_stnt<n>_add<bitsuffix>):Ditto.
30274         (vec_interleave_highv8qi): Handle big endian.
30275         (vec_interleave_highv8qi_be): New.
30276         (vec_interleave_highv8qi_le): New.
30277         (insn_v1int_h): Handle big endian.
30278         (vec_interleave_lowv8qi): Handle big endian.
30279         (vec_interleave_lowv8qi_be): New.
30280         (vec_interleave_lowv8qi_le): New.
30281         (insn_v1int_l): Handle big endian.
30282         (vec_interleave_highv4hi): Handle big endian.
30283         (vec_interleave_highv4hi_be): New.
30284         (vec_interleave_highv4hi_le): New.
30285         (insn_v2int_h): Handle big endian.
30286         (vec_interleave_lowv4hi): Handle big endian.
30287         (vec_interleave_lowv4hi_be): New.
30288         (vec_interleave_lowv4hi_le): New.
30289         (insn_v2int_l): Handle big endian.
30290         (vec_interleave_highv2si): Handle big endian.
30291         (vec_interleave_highv2si_be): New.
30292         (vec_interleave_highv2si_le): New.
30293         (insn_v4int_h): Handle big endian.
30294         (vec_interleave_lowv2si): Handle big endian.
30295         (vec_interleave_lowv2si_be): New.
30296         (vec_interleave_lowv2si_le): New.
30297         (insn_v4int_l): Handle big endian.
30298         * config/tilegx/tilegx.opt (mbig-endian): New option.
30299         (mlittle-endian): New option.
30300         * doc/install.texi: Document tilegxbe-linux.
30301         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
30303 2014-02-24  Martin Jambor  <mjambor@suse.cz>
30305         PR ipa/60266
30306         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
30307         there are no parameter descriptors.
30309 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
30311         PR rtl-optimization/60268
30312         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
30313         initialization to ...
30314         (sched_rgn_init): ... here.
30315         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
30317 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
30319         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
30320         names.
30322 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
30324         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
30325         definition.
30327 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
30329         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
30330         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
30332 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
30334         * config/microblaze/predicates.md: Add cmp_op predicate.
30335         * config/microblaze/microblaze.md: Add branch_compare instruction
30336         which uses cmp_op predicate and emits cmp insn before branch.
30337         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
30338         to microblaze_expand_conditional_branch and consolidate logic.
30339         (microblaze_expand_conditional_branch): emit branch_compare
30340         insn instead of handling cmp op separate from branch insn.
30342 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30344         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
30345         to permit subregs.
30347 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30349         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
30350         define_insn with define_expand and new define_insn
30351         *altivec_lve<VI_char>x_internal.
30352         (altivec_stve<VI_char>x): Replace define_insn with define_expand
30353         and new define_insn *altivec_stve<VI_char>x_internal.
30354         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
30355         prototype.
30356         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
30357         lve*x built-ins.
30358         (altivec_expand_stvex_be): New function.
30360 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
30362         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
30363         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
30364         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
30365         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
30367 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
30369         PR target/60298
30370         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
30371         instead of emit_move_insn.
30373 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30375         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
30376         vspltw with vsldoi.
30377         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
30378         gen_altivec_vsumsws.
30380 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30382         * config/rs6000/altivec.md (altivec_lvxl): Rename as
30383         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
30384         (altivec_lvxl_<mode>): New define_expand incorporating
30385         -maltivec=be semantics where needed.
30386         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
30387         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
30388         semantics where needed.
30389         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
30390         (altivec_stvx_<mode>): New define_expand incorporating
30391         -maltivec=be semantics where needed.
30392         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
30393         VM2 iterator instead of V4SI.
30394         (altivec_stvxl_<mode>): New define_expand incorporating
30395         -maltivec=be semantics where needed.
30396         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
30397         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
30398         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
30399         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
30400         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
30401         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
30402         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
30403         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
30404         ALTIVEC_BUILTIN_STVXL.
30405         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
30406         (altivec_expand_stvx_be): Likewise.
30407         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
30408         (altivec_expand_lvx_be): Likewise.
30409         (altivec_expand_stvx_be): Likewise.
30410         (altivec_expand_builtin): Add cases for
30411         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
30412         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
30413         (altivec_init_builtins): Add definitions for
30414         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
30415         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
30417 2014-02-21  Catherine Moore  <clm@codesourcery.com>
30419         * doc/invoke.texi (mvirt, mno-virt): Document.
30420         * config/mips/mips.opt (mvirt): New option.
30421         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
30423 2014-02-21  Richard Biener  <rguenther@suse.de>
30425         PR tree-optimization/60276
30426         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
30427         (STMT_VINFO_MIN_NEG_DIST): New macro.
30428         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
30429         STMT_VINFO_MIN_NEG_DIST.
30430         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
30431         made for negative dependence distances still hold.
30433 2014-02-21  Richard Biener  <rguenther@suse.de>
30435         PR middle-end/60291
30436         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
30437         DECL_INITIAL for globals not in the current function context.
30439 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
30441         PR tree-optimization/56490
30442         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
30443         * tree-ssa-uninit.c: Include params.h.
30444         (compute_control_dep_chain): Add num_calls argument, return false
30445         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
30446         num_calls to recursive call.
30447         (find_predicates): Change dep_chain into normal array,
30448         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
30449         variable and adjust compute_control_dep_chain caller.
30450         (find_def_preds): Likewise.
30452 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
30454         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
30455         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
30457 2014-02-21  Nick Clifton  <nickc@redhat.com>
30459         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
30460         (pushhi1): Likewise.
30461         (popqi1): Add mode to pre_dec.
30462         (pophi1): Likewise.
30464 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
30466         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
30467         mode for mask of V8SFmode permutation.
30469 2014-02-20  Richard Henderson  <rth@redhat.com>
30471         PR c++/60272
30472         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
30473         a new pseudo for OLDVAL.
30475 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
30477         PR target/57896
30478         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
30479         gen_reg_rtx if d->testing_p.
30480         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
30481         if d->testing_p and we will certainly return true.
30482         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
30483         if d->testing_p.
30485 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
30487         * emit-rtl.c (gen_reg_rtx): Assert that
30488         crtl->emit.regno_pointer_align_length is non-zero.
30490 2014-02-20  Richard Henderson  <rth@redhat.com>
30492         PR c++/60272
30493         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
30494         on failure the store back into EXPECT.
30496 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
30497             Sandra Loosemore  <sandra@codesourcery.com>
30499         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
30500         * config/nios2/nios2.c (nios2_function_profiler): Add
30501         -fPIC (flag_pic == 2) support.
30502         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
30503         (nios2_large_offset_p): New function.
30504         (nios2_unspec_reloc_p): Move up position, update to use
30505         nios2_large_offset_p.
30506         (nios2_unspec_address): Remove function.
30507         (nios2_unspec_offset): New function.
30508         (nios2_large_got_address): New function.
30509         (nios2_got_address): Add large offset support.
30510         (nios2_legitimize_tls_address): Update usage of removed and new
30511         functions.
30512         (nios2_symbol_binds_local_p): New function.
30513         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
30514         (nios2_legitimize_address): Update to use nios2_large_offset_p.
30515         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
30516         (nios2_print_operand): Merge H/L processing, add hiadj/lo
30517         processing for (const (unspec ...)).
30518         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
30520 2014-02-20  Richard Biener  <rguenther@suse.de>
30522         * tree-cfg.c (replace_uses_by): Mark altered BBs before
30523         doing the substitution.
30524         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
30526 2014-02-20  Martin Jambor  <mjambor@suse.cz>
30528         PR ipa/55260
30529         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
30530         info when checking whether lattices are bottom.
30532 2014-02-20  Richard Biener  <rguenther@suse.de>
30534         PR middle-end/60221
30535         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
30536         regions at -O0.
30538 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
30540         PR ipa/58555
30541         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
30542         parameter specifying the scaling.
30543         (inline_call): Update.
30544         (want_inline_recursively): Guard division by zero.
30545         (recursive_inlining): Update.
30546         * ipa-inline.h (clone_inlined_nodes): Update.
30548 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
30550         PR target/60204
30551         * config/i386/i386.c (classify_argument): Pass structures of size
30552         64 bytes or less in register.
30554 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
30555             Kirill Yukhin  <kirill.yukhin@intel.com>
30557         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
30558         (_mm_rcp28_round_ss): Ditto.
30559         (_mm_rsqrt28_round_sd): Ditto.
30560         (_mm_rsqrt28_round_ss): Ditto.
30561         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
30562         (_mm_rcp14_round_ss): Ditto.
30563         (_mm_rsqrt14_round_sd): Ditto.
30564         (_mm_rsqrt14_round_ss): Ditto.
30565         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
30566         the first input operand, get rid of match_dup.
30567         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
30568         attribute to sse.
30569         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30570         Ditto.
30571         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
30572         operand as the first input operand, set type attribute.
30573         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30574         Set type attribute.
30575         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
30576         operand as the first input operand, set type attribute.
30578 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30580         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
30581         bit of zero.
30583 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
30585         PR target/60207
30586         * config/i386/i386.c (construct_container): Remove TFmode check
30587         for X86_64_INTEGER_CLASS.
30589 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
30591         PR target/59794
30592         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
30593         only when -Wpsabi is enabled.
30595 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
30597          PR target/59799
30598         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
30599         passing arrays in registers are the same as for structs, so remove the
30600         special case for them.
30602 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
30604         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
30605         destination type, extract only the valid bits if the source type is not
30606         integral and has a different mode.
30608 2014-02-19  Richard Biener  <rguenther@suse.de>
30610         PR ipa/60243
30611         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
30612         for all calls.
30614 2014-02-19  Richard Biener  <rguenther@suse.de>
30616         PR ipa/60243
30617         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
30618         (ipa_modify_call_arguments): Emit an argument load explicitely and
30619         preserve virtual SSA form there and for the replacement call.
30620         Do not update SSA form nor free dominance info.
30622 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
30624         * ipa.c (function_and_variable_visibility): Also clear WEAK
30625         flag when disolving COMDAT_GROUP.
30627 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
30629         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
30630         * ipa-prop.c (ipa_set_jf_known_type): Return early when
30631         not devirtualizing.
30632         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
30633         do more sanity checks.
30634         (detect_type_change): Return true when giving up early.
30635         (compute_complex_assign_jump_func): Fix type parameter of
30636         ipa_set_ancestor_jf.
30637         (compute_complex_ancestor_jump_func): Likewise.
30638         (update_jump_functions_after_inlining): Fix updating of
30639         ancestor function.
30640         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
30642 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
30644         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
30645         inline clones when edge disappears.
30647 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
30649         PR target/60203
30650         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
30651         Split 64-bit moves into 2 patterns.  Do not allow the use of
30652         direct move for TDmode in little endian, since the decimal value
30653         has little endian bytes within a word, but the 64-bit pieces are
30654         ordered in a big endian fashion, and normal subreg's of TDmode are
30655         not allowed.
30656         (mov<mode>_64bit_dm): Likewise.
30657         (movtd_64bit_nodm): Likewise.
30659 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
30661         PR tree-optimization/60174
30662         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
30663         statement of an SSA_NAME that occurs in an abnormal PHI node.
30665 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
30667         PR sanitizer/60142
30668         * final.c (SEEN_BB): Remove.
30669         (SEEN_NOTE, SEEN_EMITTED): Renumber.
30670         (final_scan_insn): Don't force_source_line on second
30671         NOTE_INSN_BASIC_BLOCK.
30673 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
30675         PR target/60205
30676         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
30677         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
30678         (type_natural_mode): Warn ABI change when %zmm register is not
30679         available for AVX512F vector value passing.
30681 2014-02-18  Kai Tietz  <ktietz@redhat.com>
30683         PR target/60193
30684         * config/i386/i386.c (ix86_expand_prologue): Use value in
30685         rax register as displacement when restoring %r10 or %rax.
30686         Fix wrong offset when restoring both registers.
30688 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
30690         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
30691         assertion with conditional return.
30693 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
30694             Uros Bizjak  <ubizjak@gmail.com>
30696         PR driver/60233
30697         * config/i386/driver-i386.c (host_detect_local_cpu): If
30698         YMM state is not saved by the OS, also clear has_f16c.  Move
30699         CPUID 0x80000001 handling before YMM state saving checking.
30701 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
30703         PR rtl-optimization/58960
30704         * haifa-sched.c (alloc_global_sched_pressure_data): New,
30705         factored out from ...
30706         (sched_init): ... here.
30707         (free_global_sched_pressure_data): New, factored out from ...
30708         (sched_finish): ... here.
30709         * sched-int.h (free_global_sched_pressure_data): Declare.
30710         * sched-rgn.c (nr_regions_initial): New static global.
30711         (haifa_find_rgns): Initialize it.
30712         (schedule_region): Disable sched-pressure for the newly
30713         generated regions.
30715 2014-02-17  Richard Biener  <rguenther@suse.de>
30717         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
30718         release SSA defs of pattern stmts.
30720 2014-02-17  Richard Biener  <rguenther@suse.de>
30722         * tree-inline.c (expand_call_inline): Release the virtual
30723         operand defined by the call we are about to inline.
30725 2014-02-17  Richard Biener  <rguenther@suse.de>
30727         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
30729 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
30730             Ilya Tocar  <ilya.tocar@intel.com>
30732         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
30733         arguments order in builtin.
30734         (_mm512_permutexvar_epi64): Ditto.
30735         (_mm512_mask_permutexvar_epi64): Ditto
30736         (_mm512_maskz_permutexvar_epi32): Ditto
30737         (_mm512_permutexvar_epi32): Ditto
30738         (_mm512_mask_permutexvar_epi32): Ditto
30740 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30742         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
30743         (p8_vmrgow): Likewise.
30745 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30747         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
30748         endian targets.
30750 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
30752         PR target/60203
30753         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
30754         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
30755         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
30756         using direct move instructions on ISA 2.07.  Also adjust
30757         instruction length for 64-bit.
30758         (mov<mode>_64bit, TFmode/TDmode): Likewise.
30759         (mov<mode>_32bit, TFmode/TDmode): Likewise.
30761 2014-02-15  Alan Modra  <amodra@gmail.com>
30763         PR target/58675
30764         PR target/57935
30765         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
30766         find_replacement on parts of insn rtl that might be reloaded.
30768 2014-02-15  Richard Biener  <rguenther@suse.de>
30770         PR tree-optimization/60183
30771         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
30772         (tree_ssa_phiprop): Calculate and free post-dominators.
30774 2014-02-14  Jeff Law  <law@redhat.com>
30776         PR rtl-optimization/60131
30777         * ree.c (get_extended_src_reg): New function.
30778         (combine_reaching_defs): Use it rather than assuming location of REG.
30779         (find_and_remove_re): Verify first operand of extension is
30780         a REG before adding the insns to the copy list.
30782 2014-02-14  Roland McGrath  <mcgrathr@google.com>
30784         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
30785         * configure: Regenerated.
30786         * config.in: Regenerated.
30787         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
30788         instead of ASM_SHORT.
30790 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
30791             Richard Earnshaw  <rearnsha@arm.com>
30793         PR rtl-optimization/59535
30794         * lra-constraints.c (process_alt_operands): Encourage alternative
30795         when unassigned pseudo class is superset of the alternative class.
30796         (inherit_reload_reg): Don't inherit when optimizing for code size.
30797         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
30798         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
30799         modes not less than 4 for Thumb1.
30801 2014-02-14  Kyle McMartin  <kyle@redhat.com>
30803         PR pch/60010
30804         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
30806 2014-02-14  Richard Biener  <rguenther@suse.de>
30808         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
30809         (get_frame_arg): Drop the assert with langhook types_compatible_p.
30810         Do not strip INDIRECT_REFs.
30812 2014-02-14  Richard Biener  <rguenther@suse.de>
30814         PR lto/60179
30815         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
30816         DECL_FUNCTION_SPECIFIC_TARGET.
30817         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
30818         * tree-streamer-out.c (pack_ts_target_option): Remove.
30819         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
30820         (write_ts_function_decl_tree_pointers): Do not stream
30821         DECL_FUNCTION_SPECIFIC_TARGET.
30822         * tree-streamer-in.c (unpack_ts_target_option): Remove.
30823         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
30824         (lto_input_ts_function_decl_tree_pointers): Do not stream
30825         DECL_FUNCTION_SPECIFIC_TARGET.
30827 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
30829         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
30830         (get_initial_def_for_induction, vectorizable_induction): Ignore
30831         debug stmts when looking for exit_phi.
30832         (vectorizable_live_operation): Fix up condition.
30834 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
30836         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
30837         nreverse() because it changes the content of original tree list.
30839 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
30841         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
30842         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
30844 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
30846         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
30847         GNU coding standards.
30849 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
30851         PR debug/60152
30852         * dwarf2out.c (gen_subprogram_die): Don't call
30853         add_calling_convention_attribute if subr_die is old_die.
30855 2014-02-13  Sharad Singhai  <singhai@google.com>
30857         * doc/optinfo.texi: Fix order of nodes.
30859 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
30861         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
30862         operands[2], not operands[3].
30864 2014-02-13  Richard Biener  <rguenther@suse.de>
30866         PR bootstrap/59878
30867         * doc/install.texi (ISL): Update recommended version to 0.12.2,
30868         mention the possibility of an in-tree build.
30869         (CLooG): Update recommended version to 0.18.1, mention the
30870         possibility of an in-tree build and clarify that the ISL
30871         bundled with CLooG does not work.
30873 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
30875         PR target/43546
30876         * expr.c (compress_float_constant): If x is a hard register,
30877         extend into a pseudo and then move to x.
30879 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30881         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
30882         caused by bad second argument to warning_at() with -mhotpatch and
30883         nested functions (e.g. with gfortran).
30885 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
30887         * opts.c (option_name): Remove "enabled by default" rider.
30889 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
30891         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
30893 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
30894             Uros Bizjak  <ubizjak@gmail.com>
30896         PR target/60151
30897         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
30898         * configure: Regenerated.
30900 2014-02-12  Richard Biener  <rguenther@suse.de>
30902         * vec.c (vec_prefix::calculate_allocation): Move as
30903         inline variant to vec.h.
30904         (vec_prefix::calculate_allocation_1): New out-of-line version.
30905         * vec.h (vec_prefix::calculate_allocation_1): Declare.
30906         (vec_prefix::m_has_auto_buf): Rename to ...
30907         (vec_prefix::m_using_auto_storage): ... this.
30908         (vec_prefix::calculate_allocation): Inline the easy cases
30909         and dispatch to calculate_allocation_1 which doesn't need the
30910         prefix address.
30911         (va_heap::reserve): Use gcc_checking_assert.
30912         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
30913         m_using_auto_storage.
30914         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
30915         member and adjust.
30916         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
30917         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
30918         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
30920 2014-02-12  Richard Biener  <rguenther@suse.de>
30922         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
30923         when we found a dependence.
30925 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
30927         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
30928         common code...
30929         (maybe_fold_stmt): ... into this new function.
30930         * omp-low.c (lower_omp): Update comment.
30932         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
30933         last use.
30935         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
30936         dereference.
30938 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
30940         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
30941         identifiers in comments.
30942         (cortexa53_extra_costs): Likewise.
30943         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
30944         (cortexa7_extra_costs): Likewise.
30945         (cortexa12_extra_costs): Likewise.
30946         (cortexa15_extra_costs): Likewise.
30947         (v7m_extra_costs): Likewise.
30949 2014-02-12  Richard Biener  <rguenther@suse.de>
30951         PR middle-end/60092
30952         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
30953         of posix_memalign being successful.
30954         (lower_stmt): Restrict lowering of posix_memalign to when
30955         -ftree-bit-ccp is enabled.
30957 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30959         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
30960         arg_loc.
30961         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
30963 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
30965         PR rtl-optimization/60116
30966         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
30967         other_insn once the combination has been validated.
30969 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
30971         PR lto/59468
30972         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
30973         and wrapper.
30974         * ipa-devirt.c: Include demangle.h
30975         (odr_violation_reported): New static variable.
30976         (add_type_duplicate): Update odr_violations.
30977         (maybe_record_node): Add completep parameter; update it.
30978         (record_target_from_binfo): Add COMPLETEP parameter;
30979         update it as needed.
30980         (possible_polymorphic_call_targets_1): Likewise.
30981         (struct polymorphic_call_target_d): Add nonconstruction_targets;
30982         rename FINAL to COMPLETE.
30983         (record_targets_from_bases): Sanity check we found the binfo;
30984         fix COMPLETEP updating.
30985         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
30986         parameter, fix computing of COMPLETEP.
30987         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
30988         at LTO time do demangling.
30989         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
30990         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
30991         parameter.
30992         (gimple_get_virt_method_for_binfo): Likewise.
30993         * gimple-fold.h (gimple_get_virt_method_for_binfo,
30994         gimple_get_virt_method_for_vtable): Update prototypes.
30996 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
30998         PR target/49008
30999         * genautomata.c (add_presence_absence): Fix typo with
31000         {final_}presence_list.
31002 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
31004         PR target/60137
31005         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
31006         for VSX/Altivec vectors that land in GPR registers.
31008 2014-02-11  Richard Henderson  <rth@redhat.com>
31009             Jakub Jelinek  <jakub@redhat.com>
31011         PR debug/59776
31012         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
31013         around drhs if type conversion to lacc->type is not useless.
31015 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31017         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
31018         tuning struct.
31019         (cortex-a57.cortex-a53): Likewise.
31020         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
31022 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31024         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
31025         arm_restrict_it.
31027 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
31029         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
31030         add_options_for_arm_vfp3.
31032 2014-02-11  Jeff Law  <law@redhat.com>
31034         PR middle-end/54041
31035         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
31036         object with an undesirable mode.
31038 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31040         PR libgomp/60107
31041         * config/i386/sol2-9.h: New file.
31042         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
31043         *-*-solaris2.9*): Use it.
31045 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
31047         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
31048         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
31050 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
31052         * config/microblaze/microblaze.c: Extend mcpu version format
31054 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
31056         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
31058 2014-02-10  Richard Henderson  <rth@redhat.com>
31060         PR target/59927
31061         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
31062         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
31063         ms-abi vs -mno-accumulate-outgoing-args.
31064         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
31065         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
31066         respect to ms-abi.
31068 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31070         PR middle-end/60080
31071         * cfgexpand.c (expand_asm_operands): Attach source location to
31072         ASM_INPUT rtx objects.
31073         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
31075 2014-02-10  Nick Clifton  <nickc@redhat.com>
31077         * config/mn10300/mn10300.c (popcount): New function.
31078         (mn10300_expand_prologue): Include saved registers in stack usage
31079         count.
31081 2014-02-10  Jeff Law  <law@redhat.com>
31083         PR middle-end/52306
31084         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
31085         when changing the SET_DEST of a prior insn to avoid an input reload.
31087 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31089         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
31090         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
31091         -mcall-openbsd, or -mcall-linux.
31092         (CC1_ENDIAN_BIG_SPEC): Remove.
31093         (CC1_ENDIAN_LITTLE_SPEC): Remove.
31094         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
31095         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
31096         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
31097         and %cc1_endian_default.
31098         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
31100 2014-02-10  Richard Biener  <rguenther@suse.de>
31102         PR tree-optimization/60115
31103         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
31104         MEM_REF handling.  Properly verify that the accesses are not
31105         out of the objects bound.
31107 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31109         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
31110         coretex to cortex.
31112 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
31114         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
31115         proper constants and fix formatting.
31116         (possible_polymorphic_call_targets): Fix formatting.
31118 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
31119             Ilya Tocar  <ilya.tocar@intel.com>
31121         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
31122         (_mm512_loadu_epi32): Renamed into...
31123         (_mm512_loadu_si512): This.
31124         (_mm512_storeu_epi32): Renamed into...
31125         (_mm512_storeu_si512): This.
31126         (_mm512_maskz_ceil_ps): Removed.
31127         (_mm512_maskz_ceil_pd): Ditto.
31128         (_mm512_maskz_floor_ps): Ditto.
31129         (_mm512_maskz_floor_pd): Ditto.
31130         (_mm512_floor_round_ps): Ditto.
31131         (_mm512_floor_round_pd): Ditto.
31132         (_mm512_ceil_round_ps): Ditto.
31133         (_mm512_ceil_round_pd): Ditto.
31134         (_mm512_mask_floor_round_ps): Ditto.
31135         (_mm512_mask_floor_round_pd): Ditto.
31136         (_mm512_mask_ceil_round_ps): Ditto.
31137         (_mm512_mask_ceil_round_pd): Ditto.
31138         (_mm512_maskz_floor_round_ps): Ditto.
31139         (_mm512_maskz_floor_round_pd): Ditto.
31140         (_mm512_maskz_ceil_round_ps): Ditto.
31141         (_mm512_maskz_ceil_round_pd): Ditto.
31142         (_mm512_expand_pd): Ditto.
31143         (_mm512_expand_ps): Ditto.
31144         * config/i386/i386.c (ix86_builtins): Remove
31145         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
31146         (bdesc_args): Ditto.
31147         * config/i386/predicates.md (const1256_operand): New.
31148         (const_1_to_2_operand): Ditto.
31149         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31150         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31151         (*avx512pf_gatherpf<mode>sf): Ditto.
31152         (avx512pf_gatherpf<mode>df): Ditto.
31153         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31154         (*avx512pf_gatherpf<mode>df): Ditto.
31155         (avx512pf_scatterpf<mode>sf): Ditto.
31156         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31157         (*avx512pf_scatterpf<mode>sf): Ditto.
31158         (avx512pf_scatterpf<mode>df): Ditto.
31159         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31160         (*avx512pf_scatterpf<mode>df): Ditto.
31161         (avx512f_expand<mode>): Removed.
31162         (<shift_insn><mode>3<mask_name>): Change predicate type.
31164 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
31166         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
31167         not at the end of datarefs vector use ordered_remove to avoid
31168         reordering datarefs vector.
31170         PR c/59984
31171         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
31172         mark local addressable non-static vars as GOVD_PRIVATE
31173         instead of GOVD_LOCAL.
31174         * omp-low.c (lower_omp_for): Move gimple_bind_vars
31175         and BLOCK_VARS of gimple_bind_block to new_stmt rather
31176         than copying them.
31178         PR middle-end/60092
31179         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
31180         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
31181         assume_aligned or alloc_align attributes.
31182         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
31183         arguments.  Handle also assume_aligned and alloc_align attributes.
31184         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
31185         calls to functions with assume_aligned or alloc_align attributes.
31186         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
31188 2014-02-08  Terry Guo  <terry.guo@arm.com>
31190         * doc/invoke.texi: Document ARM -march=armv7e-m.
31192 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
31194         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
31195         flag on __cilkrts_rethrow builtin.
31197         PR ipa/60026
31198         * ipa-cp.c (determine_versionability): Fail at -O0
31199         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
31200         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
31202         Revert:
31203         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
31205         PR ipa/60026
31206         * tree-inline.c (copy_forbidden): Fail for
31207         __attribute__((optimize (0))) functions.
31209 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
31211         * varpool.c: Include pointer-set.h.
31212         (varpool_remove_unreferenced_decls): Variables in other partitions
31213         will not be output; be however careful to not lose information
31214         about partitioning.
31216 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
31218         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
31219         lookup in the vtable constructor.
31221 2014-02-07  Jeff Law  <law@redhat.com>
31223         PR target/40977
31224         * config/m68k/m68k.md (ashldi_extsi): Turn into a
31225         define_insn_and_split.
31227         * ipa-inline.c (inline_small_functions): Fix typos.
31229 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
31231         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
31232         (s390_can_use_return_insn): Declare.
31233         * config/s390/s390.h (EPILOGUE_USES): Define.
31234         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
31235         instructions.
31236         (s390_chunkify_start): Handle return JUMP_LABELs.
31237         (s390_early_mach): Emit a main_pool instruction on the entry edge.
31238         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
31239         (s390_can_use_return_insn): New functions.
31240         (s390_fix_long_loop_prediction): Handle conditional returns.
31241         (TARGET_SET_UP_BY_PROLOGUE): Define.
31242         * config/s390/s390.md (ANY_RETURN): New code iterator.
31243         (*creturn, *csimple_return, return, simple_return): New patterns.
31245 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
31247         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
31248         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
31249         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
31250         REG_CFA_RESTORE list when deciding not to restore a register.
31252 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
31254         * config/s390/s390.c: Include tree-pass.h and context.h.
31255         (s390_early_mach): New function, split out from...
31256         (s390_emit_prologue): ...here.
31257         (pass_data_s390_early_mach): New pass structure.
31258         (pass_s390_early_mach): New class.
31259         (s390_option_override): Create and register early_mach pass.
31260         Move to end of file.
31262 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
31264         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
31265         to match for the exit block.
31267 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31269         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
31270         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
31271         Reject misaligned operands.
31273 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31275         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
31277 2014-02-07  Richard Biener  <rguenther@suse.de>
31279         PR middle-end/60092
31280         * gimple-low.c (lower_builtin_posix_memalign): New function.
31281         (lower_stmt): Call it to lower posix_memalign in a way
31282         to make alignment info accessible.
31284 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
31286         PR c++/60082
31287         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
31288         __builtin_setjmp_receiver.
31290 2014-02-07  Richard Biener  <rguenther@suse.de>
31292         PR middle-end/60092
31293         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
31294         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
31295         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
31296         Handle BUILT_IN_POSIX_MEMALIGN.
31297         (find_func_clobbers): Likewise.
31298         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
31299         (call_may_clobber_ref_p_1): Likewise.
31301 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
31303         PR ipa/59918
31304         * ipa-devirt.c (record_target_from_binfo): Remove overactive
31305         sanity check.
31307 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
31309         PR ipa/59469
31310         * lto-cgraph.c (lto_output_node): Use
31311         symtab_get_symbol_partitioning_class.
31312         (lto_output_varpool_node): likewise.
31313         (symtab_get_symbol_partitioning_class): Move here from
31314         lto/lto-partition.c
31315         * cgraph.h (symbol_partitioning_class): Likewise.
31316         (symtab_get_symbol_partitioning_class): Declare.
31318 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
31320         * ggc.h (ggc_internal_cleared_alloc): New macro.
31321         * vec.h (vec_safe_copy): Handle memory stats.
31322         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
31323         * target-globals.c (save_target_globals): Likewise.
31325 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
31327         PR target/60077
31328         * expr.c (emit_move_resolve_push): Export; be bit more selective
31329         on when to clear alias set.
31330         * expr.h (emit_move_resolve_push): Declare.
31331         * function.h (struct function): Add tail_call_marked.
31332         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
31333         * config/i386/i386-protos.h (ix86_expand_push): Remove.
31334         * config/i386/i386.md (TImode move expander): De not call
31335         ix86_expand_push.
31336         (FP push expanders): Preserve memory attributes.
31337         * config/i386/sse.md (push<mode>1): Remove.
31338         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
31339         (ix86_expand_push): Remove.
31340         * config/i386/mmx.md (push<mode>1): Remove.
31342 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
31344         PR rtl-optimization/60030
31345         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
31346         lopart with paradoxical subreg before shifting it up by hprec.
31348 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31350         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
31351         Remove extra newline at end of file.
31352         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
31353         (arm_issue_rate): Handle cortexa57.
31354         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
31355         (cortex-a57.cortex-a53): Likewise.
31357 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
31359         PR target/59575
31360         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
31361         don't record in REG_FRAME_RELATED_EXPR registers not set in that
31362         bitmask.
31363         (arm_expand_prologue): Adjust all callers.
31364         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
31365         info, registers also at the lowest numbered registers side.  Use
31366         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
31367         XEXP.
31369         PR debug/59992
31370         * var-tracking.c (adjust_mems): Before adding a SET to
31371         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
31373 2014-02-06  Alan Modra  <amodra@gmail.com>
31375         PR target/60032
31376         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
31377         change SDmode to DDmode when lra_in_progress.
31379 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
31381         PR middle-end/59150
31382         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
31383         free_data_ref on the dr first, and before goto again also set dr
31384         to the next dr.  For simd_lane_access, free old datarefs[i] before
31385         overwriting it.  For get_vectype_for_scalar_type failure, don't
31386         free_data_ref if simd_lane_access.
31388         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
31390         PR target/60062
31391         * tree.h (opts_for_fn): New inline function.
31392         (opt_for_fn): Define.
31393         * config/i386/i386.c (ix86_function_regparm): Use
31394         opt_for_fn (decl, optimize) instead of optimize.
31396 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31398         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
31399         for SYMBOL_REF in large memory model.
31401 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31403         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
31404         and crypto support.
31405         (cortex-a57): Likewise.
31406         (cortex-a57.cortex-a53): Likewise.
31408 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
31409             Kugan Vivekanandarajah  <kuganv@linaro.org>
31411         * config/arm/arm.c (arm_vector_alignment_reachable): Check
31412         unaligned_access.
31413         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
31415 2014-02-06  Richard Biener  <rguenther@suse.de>
31417         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
31418         set_loop_copy and initialize_original_copy_tables.
31420 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
31422         * config/aarch64/aarch64-simd.md
31423         (aarch64_ashr_simddi): Change QI to SI.
31425 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
31426             Jakub Jelinek  <jakub@redhat.com>
31428         PR middle-end/60013
31429         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
31430         of the dataflow.
31432 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31434         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
31435         CODE_FOR_altivec_vpku[hw]um to
31436         CODE_FOR_altivec_vpku[hw]um_direct.
31437         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
31438         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
31439         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
31440         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
31442 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31444         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
31445         generation for -maltivec=be.
31446         (altivec_vsumsws): Simplify redundant test.
31448 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31450         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
31451         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
31452         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
31453         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
31454         gen_altivec_vpkuwum.
31455         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
31456         BYTES_BIG_ENDIAN.
31457         (altivec_vpks<VI_char>ss): Likewise.
31458         (altivec_vpks<VI_char>us): Likewise.
31459         (altivec_vpku<VI_char>us): Likewise.
31460         (altivec_vpku<VI_char>um): Likewise.
31461         (altivec_vpku<VI_char>um_direct): New (copy of
31462         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
31463         internal use).
31464         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
31465         target is little endian and -maltivec=be is not specified.
31466         (*altivec_vupkhs<VU_char>_direct): New (copy of
31467         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
31468         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
31469         target is little endian and -maltivec=be is not specified.
31470         (*altivec_vupkls<VU_char>_direct): New (copy of
31471         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
31472         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
31473         little endian and -maltivec=be is not specified.
31474         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
31475         little endian and -maltivec=be is not specified.
31477 2014-02-05  Richard Henderson  <rth@redhat.com>
31479         PR debug/52727
31480         * combine-stack-adj.c: Revert r206943.
31481         * sched-int.h (struct deps_desc): Add last_args_size.
31482         * sched-deps.c (init_deps): Initialize it.
31483         (sched_analyze_insn): Add OUTPUT dependencies between insns that
31484         contain REG_ARGS_SIZE notes.
31486 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
31488         * lto-cgraph.c (asm_nodes_output): Make global.
31489         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
31490         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
31491         (driver_handle_option): Handle OPT_fwpa.
31493 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
31495         PR ipa/59947
31496         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
31497         a comment typo and formatting issue.  If odr_hash hasn't been
31498         created, return vNULL and set *completep to false.
31500         PR middle-end/57499
31501         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
31502         bb with no successors.
31504 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
31506         PR target/59718
31507         * doc/invoke.texi (-march): Clarify documentation for ARM.
31508         (-mtune): Likewise.
31509         (-mcpu): Likewise.
31511 2014-02-05  Richard Biener  <rguenther@suse.de>
31513         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
31514         when not vectorizing because of too many alias checks.
31515         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31516         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
31518 2014-02-05  Nick Clifton  <nickc@redhat.com>
31520         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
31521         accept extended registers in any mode when compiling for the MN10300.
31523 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
31525         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
31526         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
31527         sanitization attributes.
31528         (can_inline_edge_p): Likewise.
31529         (sanitize_attrs_match_for_inline_p): New function.
31531 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
31533         * ipa-prop.c (detect_type_change): Shor circuit testing of
31534         type changes on THIS pointer.
31536 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
31538         PR target/59777
31539         * config/pa/pa.c (legitimize_tls_address): Return original address
31540         if not passed a SYMBOL_REF rtx.
31541         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
31542         addresses.
31543         (pa_emit_move_sequence): Simplify TLS source operands.
31544         (pa_legitimate_constant_p): Reject all TLS constants.
31545         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
31546         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
31548 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
31550         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
31551         groups when we know they are controlled by LTO.
31552         * varasm.c (default_binds_local_p_1): If object is in other partition,
31553         it will be resolved locally.
31555 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31557         * config/host-linux.c (linux_gt_pch_use_address): Don't
31558         use SSIZE_MAX because it is not always defined.
31560 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
31562         PR bootstrap/59913
31563         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
31564         threshold for pseudo splitting.
31565         (update_ebb_live_info): Process call argument hard registers and
31566         hard registers from insn definition too.
31567         (max_small_class_regs_num): New constant.
31568         (inherit_in_ebb): Update live hard regs through EBBs.  Update
31569         reloads_num only for small register classes.  Don't split for
31570         outputs of jumps.
31572 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
31574         PR ipa/60058
31575         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
31576         is non-null.
31578 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
31580         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
31581         visibility is safe.
31583 2014-02-04  Marek Polacek  <polacek@redhat.com>
31585         * gdbinit.in (pel): Define.
31587 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31589         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
31590         behavior.
31592 2014-02-04  Richard Biener  <rguenther@suse.de>
31594         PR lto/59723
31595         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
31596         in function context local.
31597         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
31598         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
31599         similar to LTO_imported_decl_ref.
31601 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
31603         PR tree-optimization/60002
31604         * cgraphclones.c (build_function_decl_skip_args): Clear
31605         DECL_LANG_SPECIFIC.
31607         PR tree-optimization/60023
31608         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
31609         false to gsi_replace.
31610         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
31611         has been in some EH region and vec_stmt could throw, add
31612         vec_stmt into the same EH region.
31613         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
31614         has no lhs, ignore it.
31615         * internal-fn.c (expand_MASK_LOAD): Likewise.
31617         PR ipa/60026
31618         * tree-inline.c (copy_forbidden): Fail for
31619         __attribute__((optimize (0))) functions.
31621         PR other/58712
31622         * omp-low.c (simd_clone_struct_copy): If from->inbranch
31623         is set, copy one less argument.
31624         (expand_simd_clones): Don't subtract clone_info->inbranch
31625         from simd_clone_struct_alloc argument.
31627         PR rtl-optimization/57915
31628         * recog.c (simplify_while_replacing): If all unary/binary/relational
31629         operation arguments are constant, attempt to simplify those.
31631         PR middle-end/59261
31632         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
31633         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
31635 2014-02-04  Richard Biener  <rguenther@suse.de>
31637         PR tree-optimization/60012
31638         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
31639         TBAA disambiguation to all DDRs.
31641 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31643         PR target/59788
31644         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
31645         (LINK_SPEC): Use it for -shared, -shared-libgcc.
31647 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31649         PR ipa/59882
31650         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
31652 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31654         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
31655         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
31657 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31659         PR ipa/59831
31660         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
31661         to figure out targets of polymorphic calls with known decl.
31662         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31663         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
31664         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
31665         (get_polymorphic_call_info): ... here.
31666         (get_polymorphic_call_info_from_invariant): New function.
31668 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31670         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
31671         lookup via vtable pointer; check for type consistency
31672         and turn inconsitent facts into UNREACHABLE.
31673         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31674         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
31675         type inconsistent querries; return UNREACHABLE instead.
31677 2014-02-03  Richard Henderson  <rth@twiddle.net>
31679         PR tree-opt/59924
31680         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
31681         already processed this node.
31682         (normalize_one_pred_1): Pass along mark_set.
31683         (normalize_one_pred): Create and destroy a pointer_set_t.
31684         (normalize_one_pred_chain): Likewise.
31686 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
31688         PR gcov-profile/58602
31689         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
31691 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31693         PR ipa/59831
31694         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
31695         -fno-devirtualize; try to devirtualize by the knowledge of
31696         virtual table pointer given by aggregate propagation.
31697         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31698         (ipa_print_node_jump_functions): Dump also offset that
31699         is relevant for polymorphic calls.
31700         (determine_known_aggregate_parts): Add arg_type parameter; use it
31701         instead of determining the type from pointer type.
31702         (ipa_compute_jump_functions_for_edge): Update call of
31703         determine_known_aggregate_parts.
31704         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
31705         (gimple_get_virt_method_for_binfo): ... here; simplify using
31706         vtable_pointer_value_to_vtable.
31707         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
31708         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
31709         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
31710         (vtable_pointer_value_to_vtable): Break out from ...; handle also
31711         POINTER_PLUS_EXPR.
31712         (vtable_pointer_value_to_binfo): ... here.
31713         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
31715 2014-02-03  Teresa Johnson  <tejohnson@google.com>
31717         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
31718         redef of outer loop index variable.
31720 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
31722         PR c++/53017
31723         PR c++/59211
31724         * doc/extend.texi (Function Attributes): Typo.
31726 2014-02-03  Cong Hou  <congh@google.com>
31728         PR tree-optimization/60000
31729         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
31730         if the vectorized statement is a store.  A store statement can only
31731         appear at the end of pattern statements.
31733 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
31735         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
31736         (ix86_option_override_internal): Default long double to 64-bit for
31737         32-bit Bionic and to 128-bit for 64-bit Bionic.
31739         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
31740         TARGET_LONG_DOUBLE_128 is true.
31741         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
31743         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
31744         (mlong-double-64): Negate -mlong-double-128.
31745         (mlong-double-128): New option.
31747         * config/i386/i386-c.c (ix86_target_macros): Define
31748         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
31750         * doc/invoke.texi: Document -mlong-double-128.
31752 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
31754         PR rtl-optimization/60024
31755         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
31757 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
31759         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
31761 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
31763         PR rtl-optimization/57662
31764         * sel-sched.c (code_motion_path_driver): Do not mark already not
31765         existing blocks in the visiting bitmap.
31767 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
31769         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
31770         on the insn being emitted.
31772 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
31773             Will Deacon  <will.deacon@arm.com>
31775         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
31777 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31779         * config/arm/arm-tables.opt: Regenerate.
31781 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31783         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
31784         for vector types other than V16QImode.
31785         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
31786         define_expand, and call altivec_expand_vec_perm_le when producing
31787         code with little endian element order.
31788         (*altivec_vperm_<mode>_internal): New insn having previous
31789         behavior of altivec_vperm_<mode>.
31790         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
31791         altivec_expand_vec_perm_le when producing code with little endian
31792         element order.
31793         (*altivec_vperm_<mode>_uns_internal): New insn having previous
31794         behavior of altivec_vperm_<mode>_uns.
31796 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31798         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
31799         (altivec_vsumsws): Add handling for -maltivec=be with a little
31800         endian target.
31801         (altivec_vsumsws_direct): New.
31802         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
31803         gen_altivec_vsumsws.
31805 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
31807         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
31808         vtable_pointer_value_to_binfo): New functions.
31809         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
31810         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
31812 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
31814         * config/nios2/nios2.md (load_got_register): Initialize GOT
31815         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
31816         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
31818 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
31820         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
31821         preserverd by passthrough, do not propagate the type.
31823 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
31825         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
31826         (mips_atomic_assign_expand_fenv): New function.
31827         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
31829 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
31831         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
31832         (__builtin_mips_set_fcsr): Likewise.
31833         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
31834         MIPS_USI_FTYPE_VOID.
31835         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
31836         (mips16_expand_set_fcsr): Likewise.
31837         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
31838         (mips16_set_fcsr_stub): Likewise.
31839         (mips16_get_fcsr_one_only_stub): New class.
31840         (mips16_set_fcsr_one_only_stub): Likewise.
31841         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
31842         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
31843         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
31844         (hard_float): New availability predicate.
31845         (mips_builtins): Add get_fcsr and set_fcsr.
31846         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
31847         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
31848         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
31849         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
31850         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
31851         patterns.
31853 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
31855         * config/mips/mips.c (mips_one_only_stub): New class.
31856         (mips_need_mips16_rdhwr_p): Replace with...
31857         (mips16_rdhwr_stub): ...this new variable.
31858         (mips16_stub_call_address): New function.
31859         (mips16_rdhwr_one_only_stub): New class.
31860         (mips_expand_thread_pointer): Use mips16_stub_call_address.
31861         (mips_output_mips16_rdhwr): Delete.
31862         (mips_finish_stub): New function.
31863         (mips_code_end): Use it to handle rdhwr stubs.
31865 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
31867         PR target/60017
31868         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
31869         when calculating size of integer atomic types.
31871 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
31873         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
31875 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
31877         PR tree-optimization/60003
31878         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
31879         * profile.c (branch_prob): Use gimple_call_builtin_p
31880         to check for BUILT_IN_SETJMP_RECEIVER.
31881         * tree-inline.c (copy_bb): Call notice_special_calls.
31883 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
31885         PR bootstrap/59985
31886         * lra-constraints.c (process_alt_operands): Update reload_sum only
31887         on the first pass.
31889 2014-01-31  Richard Henderson  <rth@redhat.com>
31891         PR middle-end/60004
31892         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
31893         until after else_eh is processed.
31895 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
31897         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
31898         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
31899         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
31900         in smmintrin.h, remove them.
31901         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
31902         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
31903         * config/i386/i386.md (ROUND_SAE): Fix value.
31904         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
31905         (const48_operand): New.
31906         * config/i386/subst.md (round), (round_expand): Use
31907         const_4_or_8_to_11_operand.
31908         (round_saeonly), (round_saeonly_expand): Use const48_operand.
31910 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
31912         * config/i386/constraints.md (Yk): Swap meaning with k.
31913         * config/i386/i386.md (movhi_internal): Change Yk to k.
31914         (movqi_internal): Ditto.
31915         (*k<logic><mode>): Ditto.
31916         (*andhi_1): Ditto.
31917         (*andqi_1): Ditto.
31918         (kandn<mode>): Ditto.
31919         (*<code>hi_1): Ditto.
31920         (*<code>qi_1): Ditto.
31921         (kxnor<mode>): Ditto.
31922         (kortestzhi): Ditto.
31923         (kortestchi): Ditto.
31924         (kunpckhi): Ditto.
31925         (*one_cmplhi2_1): Ditto.
31926         (*one_cmplqi2_1): Ditto.
31927         * config/i386/sse.md (): Change k to Yk.
31928         (avx512f_load<mode>_mask): Ditto.
31929         (avx512f_blendm<mode>): Ditto.
31930         (avx512f_store<mode>_mask): Ditto.
31931         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
31932         (avx512f_storedqu<mode>_mask): Ditto.
31933         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
31934         Ditto.
31935         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
31936         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
31937         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
31938         (avx512f_maskcmp<mode>3): Ditto.
31939         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
31940         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
31941         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
31942         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
31943         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
31944         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
31945         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
31946         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
31947         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
31948         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
31949         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
31950         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
31951         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
31952         (vec_extract_lo_<mode>_maskm): Ditto.
31953         (vec_extract_hi_<mode>_maskm): Ditto.
31954         (avx512f_vternlog<mode>_mask): Ditto.
31955         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
31956         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
31957         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
31958         (avx512f_<code>v8div16qi2_mask): Ditto.
31959         (avx512f_<code>v8div16qi2_mask_store): Ditto.
31960         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
31961         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
31962         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
31963         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
31964         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31965         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31966         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31967         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31968         (avx512cd_maskb_vec_dupv8di): Ditto.
31969         (avx512cd_maskw_vec_dupv16si): Ditto.
31970         (avx512f_vpermi2var<mode>3_maskz): Ditto.
31971         (avx512f_vpermi2var<mode>3_mask): Ditto.
31972         (avx512f_vpermi2var<mode>3_mask): Ditto.
31973         (avx512f_vpermt2var<mode>3_maskz): Ditto.
31974         (*avx512f_gathersi<mode>): Ditto.
31975         (*avx512f_gathersi<mode>_2): Ditto.
31976         (*avx512f_gatherdi<mode>): Ditto.
31977         (*avx512f_gatherdi<mode>_2): Ditto.
31978         (*avx512f_scattersi<mode>): Ditto.
31979         (*avx512f_scatterdi<mode>): Ditto.
31980         (avx512f_compress<mode>_mask): Ditto.
31981         (avx512f_compressstore<mode>_mask): Ditto.
31982         (avx512f_expand<mode>_mask): Ditto.
31983         * config/i386/subst.md (mask): Change k to Yk.
31984         (mask_scalar_merge): Ditto.
31985         (sd): Ditto.
31987 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
31989         * doc/extend.texi (Vector Extensions): Document ?: in C++.
31991 2014-01-31  Richard Biener  <rguenther@suse.de>
31993         PR middle-end/59990
31994         * builtins.c (fold_builtin_memory_op): Make sure to not
31995         use a floating-point mode or a boolean or enumeral type for
31996         the copy operation.
31998 2014-01-30  DJ Delorie  <dj@redhat.com>
32000         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
32001         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
32002         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
32003         whenever main() has an epilogue.
32005 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32007         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
32008         unused variable "field".
32009         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
32010         (vsx_mergeh_<mode>): Likewise.
32011         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
32012         (altivec_vmrghh): Likewise.
32013         (altivec_vmrghw): Likewise.
32014         (altivec_vmrglb): Likewise.
32015         (altivec_vmrglh): Likewise.
32016         (altivec_vmrglw): Likewise.
32017         (altivec_vspltb): Add missing uses.
32018         (altivec_vsplth): Likewise.
32019         (altivec_vspltw): Likewise.
32020         (altivec_vspltsf): Likewise.
32022 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
32024         PR target/59923
32025         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
32026         frame related instructions.
32028 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
32030         PR rtl-optimization/59959
32031         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
32032         any reload of register whose subreg is invalid.
32034 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
32036         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
32037         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
32038         Add missing return type - void.
32040 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32042         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
32043         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
32044         remove element index adjustment for endian (now handled in vsx.md
32045         and altivec.md).
32046         (altivec_expand_vec_perm_const): Use
32047         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
32048         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
32049         (vsx_xxspltw_<mode>): Adjust element index for little endian.
32050         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
32051         define_expand and a new define_insn *altivec_vspltb_internal;
32052         adjust for -maltivec=be on a little endian target.
32053         (altivec_vspltb_direct): New.
32054         (altivec_vsplth): Divide into a define_expand and a new
32055         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
32056         little endian target.
32057         (altivec_vsplth_direct): New.
32058         (altivec_vspltw): Divide into a define_expand and a new
32059         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
32060         little endian target.
32061         (altivec_vspltw_direct): New.
32062         (altivec_vspltsf): Divide into a define_expand and a new
32063         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
32064         a little endian target.
32066 2014-01-30  Richard Biener  <rguenther@suse.de>
32068         PR tree-optimization/59993
32069         * tree-ssa-forwprop.c (associate_pointerplus): Check we
32070         can propagate form the earlier stmt and avoid the transform
32071         when the intermediate result is needed.
32073 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
32075         * README.Portability: Fix typo.
32077 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
32079         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
32080         comparison_operator with ordered_comparison_operator.
32082 2014-01-30  Nick Clifton  <nickc@redhat.com>
32084         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
32085         Rename to mn10300_store_multiple_regs.
32086         * config/mn10300/mn10300.c: Likewise.
32087         * config/mn10300/mn10300.md (store_movm): Fix typo: call
32088         store_multiple_regs.
32089         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
32090         Call mn10300_store_multiple_regs.
32092 2014-01-30  Nick Clifton  <nickc@redhat.com>
32093             DJ Delorie  <dj@redhat.com>
32095         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
32096         %fp 2 to keep registers after it properly word-aligned.
32097         (rl78_alloc_physical_registers_umul): Handle the case where both
32098         input operands are the same.
32100 2014-01-30  Richard Biener  <rguenther@suse.de>
32102         PR tree-optimization/59903
32103         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
32104         check properly.
32106 2014-01-30  Jason Merrill  <jason@redhat.com>
32108         PR c++/59633
32109         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
32111         PR c++/59645
32112         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
32114 2014-01-30  Richard Biener  <rguenther@suse.de>
32116         PR tree-optimization/59951
32117         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
32119 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
32121         PR target/59784
32122         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
32123         SFmode to DFmode case.
32125 2014-01-29  DJ Delorie  <dj@redhat.com>
32127         * config/msp430/msp430.opt (-minrt): New.
32128         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
32129         if -minrt given.
32130         (ENDFILE_SPEC): Likewise.
32132 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
32134         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
32135         (estimate_function_body_sizes): Use it.
32137 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
32139         PR c++/58561
32140         * dwarf2out.c (is_cxx_auto): New.
32141         (is_base_type): Use it.
32142         (gen_type_die_with_usage): Likewise.
32144 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32146         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
32147         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
32148         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
32149         -maltivec=be with LE targets.
32150         (vsx_mergeh_<mode>): Likewise.
32151         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
32152         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
32153         (altivec_vmrghb): Replace with define_expand and new
32154         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
32155         (altivec_vmrghb_direct): New define_insn.
32156         (altivec_vmrghh): Replace with define_expand and new
32157         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
32158         (altivec_vmrghh_direct): New define_insn.
32159         (altivec_vmrghw): Replace with define_expand and new
32160         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
32161         (altivec_vmrghw_direct): New define_insn.
32162         (*altivec_vmrghsf): Adjust for endianness.
32163         (altivec_vmrglb): Replace with define_expand and new
32164         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
32165         (altivec_vmrglb_direct): New define_insn.
32166         (altivec_vmrglh): Replace with define_expand and new
32167         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
32168         (altivec_vmrglh_direct): New define_insn.
32169         (altivec_vmrglw): Replace with define_expand and new
32170         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
32171         (altivec_vmrglw_direct): New define_insn.
32172         (*altivec_vmrglsf): Adjust for endianness.
32173         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
32174         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
32175         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
32176         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
32177         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
32178         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
32179         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
32180         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
32182 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32184         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
32185         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
32186         whitespace.
32188 2014-01-29  Richard Biener  <rguenther@suse.de>
32190         PR tree-optimization/58742
32191         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
32192         associate_pointerplus_align.
32193         (associate_pointerplus_diff): New function.
32194         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
32195         and associate_pointerplus_diff.
32197 2014-01-29  Richard Biener  <rguenther@suse.de>
32199         * lto-streamer.h (LTO_major_version): Bump to 3.
32200         (LTO_minor_version): Reset to 0.
32202 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
32204         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
32205         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
32206         (arm_file_start): Generate correct asm header for armv7ve.
32207         * config/arm/bpabi.h: Add multilib support for armv7ve.
32208         * config/arm/driver-arm.c: Change the architectures of cortex-a7
32209         and cortex-a15 to armv7ve.
32210         * config/arm/t-aprofile: Add multilib support for armv7ve.
32211         * doc/invoke.texi: Document -march=armv7ve.
32213 2014-01-29  Richard Biener  <rguenther@suse.de>
32215         PR tree-optimization/58742
32216         * tree-ssa-forwprop.c (associate_plusminus): Return true
32217         if we changed sth, defer EH cleanup to ...
32218         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
32219         (simplify_mult): New function.
32221 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
32223         PR middle-end/59917
32224         PR tree-optimization/59920
32225         * tree.c (build_common_builtin_nodes): Remove
32226         __builtin_setjmp_dispatcher initialization.
32227         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
32228         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
32229         instead of gsi_after_labels + manually skipping debug stmts.
32230         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
32231         ignore bbs with IFN_ABNORMAL_DISPATCHER.
32232         * tree-inline.c (copy_edges_for_bb): Remove
32233         can_make_abnormal_goto argument, instead add abnormal_goto_dest
32234         argument.  Ignore computed_goto_p stmts.  Don't call
32235         make_abnormal_goto_edges.  If a call might need abnormal edges
32236         for non-local gotos, see if it already has an edge to
32237         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
32238         with true argument, don't do anything then, otherwise add
32239         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
32240         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
32241         caller.
32242         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
32243         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
32244         (lower_stmt): Don't set data->calls_builtin_setjmp.
32245         (lower_builtin_setjmp): Adjust comment.
32246         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
32247         * tree-cfg.c (found_computed_goto): Remove.
32248         (factor_computed_gotos): Remove.
32249         (make_goto_expr_edges): Return bool, true for computed gotos.
32250         Don't call make_abnormal_goto_edges.
32251         (build_gimple_cfg): Don't set found_computed_goto, don't call
32252         factor_computed_gotos.
32253         (computed_goto_p): No longer static.
32254         (make_blocks): Don't set found_computed_goto.
32255         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
32256         (make_edges): If make_goto_expr_edges returns true, push bb
32257         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
32258         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
32259         vector.  Record mapping between bbs and OpenMP regions if there
32260         are any, adjust make_gimple_omp_edges caller.  Call
32261         handle_abnormal_edges.
32262         (make_abnormal_goto_edges): Remove.
32263         * tree-cfg.h (make_abnormal_goto_edges): Remove.
32264         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
32265         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
32266         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
32267         * internal-fn.def (ABNORMAL_DISPATCHER): New.
32268         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
32269         filling *region also set *region_idx to (*region)->entry->index.
32271         PR other/58712
32272         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
32273         For REGs set ORIGINAL_REGNO.
32275 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
32277         * doc/md.texi: Mention that a target shouldn't implement
32278         vec_widen_(s|u)mul_even/odd pair if it is less efficient
32279         than hi/lo pair.
32281 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
32283         PR tree-optimization/59594
32284         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
32285         a copy of the datarefs vector rather than the vector itself.
32287 2014-01-28  Jason Merrill  <jason@redhat.com>
32289         PR c++/53756
32290         * dwarf2out.c (auto_die): New static.
32291         (gen_type_die_with_usage): Handle C++1y 'auto'.
32292         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
32293         on definition.
32295 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
32297         PR target/59672
32298         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
32299         (SPEC_X32): Likewise.
32300         (SPEC_64): Likewise.
32301         * config/i386/i386.c (ix86_option_override_internal): Turn off
32302         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
32303         for TARGET_16BIT.
32304         (x86_file_start): Output .code16gcc for TARGET_16BIT.
32305         * config/i386/i386.h (TARGET_16BIT): New macro.
32306         (TARGET_16BIT_P): Likewise.
32307         * config/i386/i386.opt: Add m16.
32308         * doc/invoke.texi: Document -m16.
32310 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
32312         PR preprocessor/59935
32313         * input.c (location_get_source_line): Bail out on when line number
32314         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
32316 2014-01-28  Richard Biener  <rguenther@suse.de>
32318         PR tree-optimization/58742
32319         * tree-ssa-forwprop.c (associate_plusminus): Handle
32320         pointer subtraction of the form (T)(P + A) - (T)P.
32322 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32324         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
32325         at const_int_cost.
32327 2014-01-28  Richard Biener  <rguenther@suse.de>
32329         Revert
32330         2014-01-28  Richard Biener  <rguenther@suse.de>
32332         PR rtl-optimization/45364
32333         PR rtl-optimization/59890
32334         * var-tracking.c (local_get_addr_clear_given_value): Handle
32335         already cleared slot.
32336         (val_reset): Handle not allocated local_get_addr_cache.
32337         (vt_find_locations): Use post-order on the inverted CFG.
32339 2014-01-28  Richard Biener  <rguenther@suse.de>
32341         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
32343 2014-01-28  Richard Biener  <rguenther@suse.de>
32345         PR rtl-optimization/45364
32346         PR rtl-optimization/59890
32347         * var-tracking.c (local_get_addr_clear_given_value): Handle
32348         already cleared slot.
32349         (val_reset): Handle not allocated local_get_addr_cache.
32350         (vt_find_locations): Use post-order on the inverted CFG.
32352 2014-01-28  Alan Modra  <amodra@gmail.com>
32354         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
32355         * configure.ac <recursive call for build != host>: Define
32356         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
32357         and LD_FOR_BUILD too.
32358         * configure: Regenerate.
32360 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
32362         * config/i386/i386.c (get_builtin_code_for_version): Separate
32363         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
32364         Broadwell from Haswell.
32366 2014-01-27  Steve Ellcey  <sellcey@mips.com>
32368         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
32369         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
32370         * config/mips/mips.c (mips_option_override): Change setting
32371         of TARGET_DSP.
32372         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
32373         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
32374         Change from Mask to Var.
32376 2014-01-27  Jeff Law  <law@redhat.com>
32378         * ipa-inline.c (inline_small_functions): Fix typo.
32380 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
32382         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
32383         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
32384         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
32385         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
32386         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
32387         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
32388         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
32389         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
32390         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
32391         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
32392         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
32393         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
32394         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
32395         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
32396         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
32397         (_mm512_storeu_epi64): Ditto.
32398         (_mm512_cmpge_epi32_mask): Ditto.
32399         (_mm512_cmpge_epu32_mask): Ditto.
32400         (_mm512_cmpge_epi64_mask): Ditto.
32401         (_mm512_cmpge_epu64_mask): Ditto.
32402         (_mm512_cmple_epi32_mask): Ditto.
32403         (_mm512_cmple_epu32_mask): Ditto.
32404         (_mm512_cmple_epi64_mask): Ditto.
32405         (_mm512_cmple_epu64_mask): Ditto.
32406         (_mm512_cmplt_epi32_mask): Ditto.
32407         (_mm512_cmplt_epu32_mask): Ditto.
32408         (_mm512_cmplt_epi64_mask): Ditto.
32409         (_mm512_cmplt_epu64_mask): Ditto.
32410         (_mm512_cmpneq_epi32_mask): Ditto.
32411         (_mm512_cmpneq_epu32_mask): Ditto.
32412         (_mm512_cmpneq_epi64_mask): Ditto.
32413         (_mm512_cmpneq_epu64_mask): Ditto.
32414         (_mm512_expand_pd): Ditto.
32415         (_mm512_expand_ps): Ditto.
32416         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
32417         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
32418         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
32419         * config/i386/i386.c (ix86_builtins): Add
32420         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
32421         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
32422         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
32423         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
32424         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
32425         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
32426         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
32427         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
32428         IX86_BUILTIN_PMOVUSQW512_MEM.
32429         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
32430         __builtin_ia32_pmovsqd512mem_mask,
32431         __builtin_ia32_pmovqd512mem_mask,
32432         __builtin_ia32_pmovusqw512mem_mask,
32433         __builtin_ia32_pmovsqw512mem_mask,
32434         __builtin_ia32_pmovqw512mem_mask,
32435         __builtin_ia32_pmovusdw512mem_mask,
32436         __builtin_ia32_pmovsdw512mem_mask,
32437         __builtin_ia32_pmovdw512mem_mask,
32438         __builtin_ia32_pmovqb512mem_mask,
32439         __builtin_ia32_pmovusqb512mem_mask,
32440         __builtin_ia32_pmovsqb512mem_mask,
32441         __builtin_ia32_pmovusdb512mem_mask,
32442         __builtin_ia32_pmovsdb512mem_mask,
32443         __builtin_ia32_pmovdb512mem_mask.
32444         (bdesc_args): Add __builtin_ia32_expanddf512,
32445         __builtin_ia32_expandsf512.
32446         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
32447         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
32448         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
32449         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
32450         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
32451         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
32452         (avx512f_<code>v8div16qi2_mask_store): This.
32453         (avx512f_expand<mode>): New.
32455 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
32457         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
32458         New.
32459         (_mm512_mask_prefetch_i64gather_pd): Ditto.
32460         (_mm512_prefetch_i32scatter_pd): Ditto.
32461         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
32462         (_mm512_prefetch_i64scatter_pd): Ditto.
32463         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
32464         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
32465         (_mm512_mask_prefetch_i64gather_ps): Ditto.
32466         (_mm512_prefetch_i32scatter_ps): Ditto.
32467         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
32468         (_mm512_prefetch_i64scatter_ps): Ditto.
32469         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
32470         * config/i386/i386-builtin-types.def: Define
32471         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
32472         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
32473         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
32474         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
32475         IX86_BUILTIN_SCATTERPFQPD.
32476         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
32477         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
32478         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
32479         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
32480         __builtin_ia32_scatterpfqps.
32481         (ix86_expand_builtin): Expand new built-ins.
32482         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
32483         fix memory access data type.
32484         (*avx512pf_gatherpf<mode>_mask): Ditto.
32485         (*avx512pf_gatherpf<mode>): Ditto.
32486         (avx512pf_scatterpf<mode>): Ditto.
32487         (*avx512pf_scatterpf<mode>_mask): Ditto.
32488         (*avx512pf_scatterpf<mode>): Ditto.
32489         (GATHER_SCATTER_SF_MEM_MODE): New.
32490         (avx512pf_gatherpf<mode>df): Ditto.
32491         (*avx512pf_gatherpf<mode>df_mask): Ditto.
32492         (*avx512pf_scatterpf<mode>df): Ditto.
32494 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
32496         PR bootstrap/59934
32497         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
32498         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
32499         reached.
32501 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
32503         * common/config/arm/arm-common.c
32504         (arm_rewrite_mcpu): Handle multiple names.
32505         * config/arm/arm.h
32506         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
32508 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
32510         * gimple-builder.h (create_gimple_tmp): Delete.
32512 2014-01-27  Christian Bruel  <christian.bruel@st.com>
32514         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
32515         words comparisons.
32517 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
32519         * config/pa/pa.md (call): Generate indirect long calls to non-local
32520         functions when outputing 32-bit code.
32521         (call_value): Likewise except for special call to buggy powf function.
32523         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
32524         portable runtime and PIC indirect calls.
32525         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
32526         and PIC call sequences.  Use ldo instead of blr to set return register
32527         in PIC call sequence.
32529 2014-01-25  Walter Lee  <walt@tilera.com>
32531         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
32532         avoid clobbering a live register.
32534 2014-01-25  Walter Lee  <walt@tilera.com>
32536         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
32537         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
32538         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
32539         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
32541 2014-01-25  Walter Lee  <walt@tilera.com>
32543         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
32544         arguments on even registers.
32545         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
32546         STACK_BOUNDARY.
32547         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
32548         (BIGGEST_ALIGNMENT): Ditto.
32549         (BIGGEST_FIELD_ALIGNMENT): Ditto.
32551 2014-01-25  Walter Lee  <walt@tilera.com>
32553         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
32554         insns before bundling.
32555         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
32557 2014-01-25  Walter Lee  <walt@tilera.com>
32559         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
32560         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
32561         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
32563 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
32565         * config/mips/constraints.md (kl): Delete.
32566         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
32567         define expands, using...
32568         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
32569         instructions for MIPS16.
32570         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
32571         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
32573 2014-01-25  Walter Lee  <walt@tilera.com>
32575         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
32576         (clzdi2): Ditto.
32577         (ffsdi2): Ditto.
32579 2014-01-25  Walter Lee  <walt@tilera.com>
32581         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
32582         (TARGET_EXPAND_TO_RTL_HOOK): Define.
32584 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
32586         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
32587         Handle XOR.
32589 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
32591         * print-rtl.c (in_call_function_usage): New var.
32592         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
32593         EXPR_LIST mode as mode and not as reg note name.
32595         PR middle-end/59561
32596         * cfgloopmanip.c (copy_loop_info): If
32597         loop->warned_aggressive_loop_optimizations, make sure
32598         the flag is set in target loop too.
32600 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
32602         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
32603         flag_cilkplus.
32604         * builtins.def: Likewise.
32605         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
32606         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
32607         * ira.c (ira_setup_eliminable_regset): Likewise.
32608         * omp-low.c (gate_expand_omp): Likewise.
32609         (execute_lower_omp): Likewise.
32610         (diagnose_sb_0): Likewise.
32611         (gate_diagnose_omp_blocks): Likewise.
32612         (simd_clone_clauses_extract): Likewise.
32613         (gate): Likewise.
32615 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32617         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
32618         correction for little endian...
32619         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
32620         here.
32622 2014-01-24  Jeff Law  <law@redhat.com>
32624         PR tree-optimization/59919
32625         * tree-vrp.c (find_assert_locations_1): Do not register asserts
32626         for non-returning calls.
32628 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
32630         * common/config/aarch64/aarch64-common.c
32631         (aarch64_rewrite_mcpu): Handle multiple names.
32632         * config/aarch64/aarch64.h
32633         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
32635 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
32637         * input.c (add_file_to_cache_tab): Handle the case where fopen
32638         returns NULL.
32640 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
32642         PR target/59929
32643         * config/i386/i386.md (pushsf splitter): Get stack adjustment
32644         from push operand if code of push isn't PRE_DEC.
32646 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
32648         PR target/59909
32649         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
32650         -mquad-memory-atomic.  Update -mquad-memory documentation to say
32651         it is only used for non-atomic loads/stores.
32653         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
32654         -mquad-memory or -mquad-memory-atomic switches.
32656         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
32657         -mquad-memory-atomic to ISA 2.07 support.
32659         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
32660         to separate support of normal quad word memory operations (ldq, stq)
32661         from the atomic quad word memory operations.
32663         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
32664         support to separate non-atomic quad word operations from atomic
32665         quad word operations.  Disable non-atomic quad word operations in
32666         little endian mode so that we don't have to swap words after the
32667         load and before the store.
32668         (quad_load_store_p): Add comment about atomic quad word support.
32669         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
32670         options printed with -mdebug=reg.
32672         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
32673         -mquad-memory-atomic as the test for whether we have quad word
32674         atomic instructions.
32675         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
32676         or -mp8-vector are used, allow byte/half-word atomic operations.
32678         * config/rs6000/sync.md (load_lockedti): Insure that the address
32679         is a proper indexed or indirect address for the lqarx instruction.
32680         On little endian systems, swap the hi/lo registers after the lqarx
32681         instruction.
32682         (load_lockedpti): Use indexed_or_indirect_operand predicate to
32683         insure the address is valid for the lqarx instruction.
32684         (store_conditionalti): Insure that the address is a proper indexed
32685         or indirect address for the stqcrx. instruction.  On little endian
32686         systems, swap the hi/lo registers before doing the stqcrx.
32687         instruction.
32688         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
32689         insure the address is valid for the stqcrx. instruction.
32691         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
32692         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
32693         type of quad memory support is available.
32695 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
32697         PR regression/59915
32698         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
32699         there is a danger of looping.
32701 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
32703         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
32704         force flag_ira_loop_pressure if set via command line.
32706 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
32708         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
32709         (ashr_simd): New builtin handling DI mode.
32710         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
32711         (aarch64_sshr_simddi): New match pattern.
32712         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
32713         (vshrd_n_s64): Likewise.
32714         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
32716 2014-01-23  Nick Clifton  <nickc@redhat.com>
32718         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
32719         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
32720         favour of mcu specific scripts.
32721         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
32722         430x multilibs.
32724 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
32725             Alex Velenko  <Alex.Velenko@arm.com>
32727         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
32728         (vaddv_s16): Likewise.
32729         (vaddv_s32): Likewise.
32730         (vaddv_u8): Likewise.
32731         (vaddv_u16): Likewise.
32732         (vaddv_u32): Likewise.
32733         (vaddvq_s8): Likewise.
32734         (vaddvq_s16): Likewise.
32735         (vaddvq_s32): Likewise.
32736         (vaddvq_s64): Likewise.
32737         (vaddvq_u8): Likewise.
32738         (vaddvq_u16): Likewise.
32739         (vaddvq_u32): Likewise.
32740         (vaddvq_u64): Likewise.
32741         (vaddv_f32): Likewise.
32742         (vaddvq_f32): Likewise.
32743         (vaddvq_f64): Likewise.
32744         (vmaxv_f32): Likewise.
32745         (vmaxv_s8): Likewise.
32746         (vmaxv_s16): Likewise.
32747         (vmaxv_s32): Likewise.
32748         (vmaxv_u8): Likewise.
32749         (vmaxv_u16): Likewise.
32750         (vmaxv_u32): Likewise.
32751         (vmaxvq_f32): Likewise.
32752         (vmaxvq_f64): Likewise.
32753         (vmaxvq_s8): Likewise.
32754         (vmaxvq_s16): Likewise.
32755         (vmaxvq_s32): Likewise.
32756         (vmaxvq_u8): Likewise.
32757         (vmaxvq_u16): Likewise.
32758         (vmaxvq_u32): Likewise.
32759         (vmaxnmv_f32): Likewise.
32760         (vmaxnmvq_f32): Likewise.
32761         (vmaxnmvq_f64): Likewise.
32762         (vminv_f32): Likewise.
32763         (vminv_s8): Likewise.
32764         (vminv_s16): Likewise.
32765         (vminv_s32): Likewise.
32766         (vminv_u8): Likewise.
32767         (vminv_u16): Likewise.
32768         (vminv_u32): Likewise.
32769         (vminvq_f32): Likewise.
32770         (vminvq_f64): Likewise.
32771         (vminvq_s8): Likewise.
32772         (vminvq_s16): Likewise.
32773         (vminvq_s32): Likewise.
32774         (vminvq_u8): Likewise.
32775         (vminvq_u16): Likewise.
32776         (vminvq_u32): Likewise.
32777         (vminnmv_f32): Likewise.
32778         (vminnmvq_f32): Likewise.
32779         (vminnmvq_f64): Likewise.
32781 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
32783         * config/aarch64/aarch64-simd.md
32784         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
32785         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
32786         (*aarch64_mul3_elt<mode>): Likewise.
32787         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
32788         (*aarch64_mul3_elt_to_64v2df): Likewise.
32789         (*aarch64_mla_elt<mode>): Likewise.
32790         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
32791         (*aarch64_mls_elt<mode>): Likewise.
32792         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
32793         (*aarch64_fma4_elt<mode>): Likewise.
32794         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
32795         (*aarch64_fma4_elt_to_64v2df): Likewise.
32796         (*aarch64_fnma4_elt<mode>): Likewise.
32797         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
32798         (*aarch64_fnma4_elt_to_64v2df): Likewise.
32799         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
32800         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
32801         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
32802         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
32803         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
32804         (aarch64_sqdmull_lane<mode>_internal): Likewise.
32805         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
32807 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
32809         * config/aarch64/aarch64-simd.md
32810         (aarch64_be_checked_get_lane<mode>): New define_expand.
32811         * config/aarch64/aarch64-simd-builtins.def
32812         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
32813         New builtin definition.
32814         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
32815         Use new safe be builtin.
32817 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
32819         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
32820         New define_insn.
32821         (aarch64_be_st1<mode>): Likewise.
32822         (aarch_ld1<VALL:mode>): Define_expand modified.
32823         (aarch_st1<VALL:mode>): Likewise.
32824         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
32825         (UNSPEC_ST1): Likewise.
32827 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
32829         * config/microblaze/microblaze.md: Add trap insn and attribute
32831 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
32833         PR preprocessor/58580
32834         * input.h (location_get_source_line): Take an additional line_size
32835         parameter.
32836         (void diagnostics_file_cache_fini): Declare new function.
32837         * input.c (struct fcache): New type.
32838         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
32839         New static constants.
32840         (diagnostic_file_cache_init, total_lines_num)
32841         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
32842         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
32843         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
32844         (get_next_line, read_next_line, goto_next_line, read_line_num):
32845         New static function definitions.
32846         (diagnostic_file_cache_fini): New function.
32847         (location_get_source_line): Take an additional output line_len
32848         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
32849         read_line_num.
32850         * diagnostic.c (diagnostic_finish): Call
32851         diagnostic_file_cache_fini.
32852         (adjust_line): Take an additional input parameter for the length
32853         of the line, rather than calculating it with strlen.
32854         (diagnostic_show_locus): Adjust the use of
32855         location_get_source_line and adjust_line with respect to their new
32856         signature.  While displaying a line now, do not stop at the first
32857         null byte.  Rather, display the zero byte as a space and keep
32858         going until we reach the size of the line.
32859         * Makefile.in: Add vec.o to OBJS-libcommon
32861 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
32862             Ilya Tocar  <ilya.tocar@intel.com>
32864         * config/i386/avx512fintrin.h (_mm512_kmov): New.
32865         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
32866         (__builtin_ia32_kmov16): Ditto.
32867         * config/i386/i386.md (UNSPEC_KMOV): New.
32868         (kmovw): Ditto.
32870 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
32872         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
32873         (_mm512_storeu_si512): Ditto.
32875 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
32877         PR target/52125
32878         * rtl.h (get_referenced_operands): Declare.
32879         * recog.c (get_referenced_operands): New function.
32880         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
32881         operands have been referenced when recording LO_SUM references.
32883 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
32885         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
32887 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
32889         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
32890         Enable for generic and recent AMD targets.
32892 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
32894         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
32895         ARG_SIZE note when adjustment was eliminated.
32897 2014-01-22  Jeff Law  <law@redhat.com>
32899         PR tree-optimization/59597
32900         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
32901         in file.  Accept new argument REGISTERING and use it to modify
32902         dump output appropriately.
32903         (register_jump_thread): Corresponding changes.
32904         (mark_threaded_blocks): Reinstate code to cancel unprofitable
32905         thread paths involving joiner blocks.  Add code to dump cancelled
32906         jump threading paths.
32908 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
32910         PR rtl-optimization/59477
32911         * lra-constraints.c (inherit_in_ebb): Process call for living hard
32912         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
32914 2014-01-22  Tom Tromey  <tromey@redhat.com>
32916         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
32917         PARAMS.
32918         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
32920 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
32922         PR rtl-optimization/59896
32923         * lra-constraints.c (process_alt_operands): Check unused note for
32924         matched operands of insn with no output reloads.
32926 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
32928         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
32929         (mips_move_from_gpr_cost): Likewise.
32931 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
32933         PR rtl-optimization/59858
32934         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
32935         ira_class_hard_regs_num.
32936         (process_alt_operands): Increase reject for dying matched operand.
32938 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
32940         PR target/59003
32941         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
32942         smaller than size, perform several stores or loads and stores
32943         at dst + count - size to store or copy all of size bytes, rather
32944         than just last modesize bytes.
32946 2014-01-20  DJ Delorie  <dj@redhat.com>
32948         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
32949         that CLOBBERs are REGs before propogating their values.
32951 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
32953         PR middle-end/59789
32954         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
32955         (cgraph_inline_failed_type): New function.
32956         * cgraph.h (DEFCIFCODE): Add type.
32957         (cgraph_inline_failed_type_t): New enum.
32958         (cgraph_inline_failed_type): New prototype.
32959         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
32960         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
32961         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
32962         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
32963         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
32964         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
32965         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
32966         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
32967         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
32968         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
32969         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
32970         OPTIMIZATION_MISMATCH.
32971         * tree-inline.c (expand_call_inline): Emit errors during
32972         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
32974 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
32976         PR target/59685
32977         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
32978         mode attribute in insn output.
32980 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
32982         * output.h (output_constant): Delete.
32983         * varasm.c (output_constant): Make private.
32985 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
32987         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
32989 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
32991         PR middle-end/59860
32992         * tree.h (fold_builtin_strcat): New prototype.
32993         * builtins.c (fold_builtin_strcat): No longer static.  Add len
32994         argument, if non-NULL, don't call c_strlen.  Optimize
32995         directly into __builtin_memcpy instead of __builtin_strcpy.
32996         (fold_builtin_2): Adjust fold_builtin_strcat caller.
32997         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
32999 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
33001         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
33002         for SImode_address_operand operands, having only a REG argument.
33004 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33006         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
33007         loader name using mbig-endian.
33008         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
33010 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
33012         * doc/invoke.texi (-march): Clarify documentation for AArch64.
33013         (-mtune): Likewise.
33014         (-mcpu): Likewise.
33016 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
33018         * config/aarch64/aarch64-protos.h
33019         (aarch64_cannot_change_mode_class_ptr): Declare.
33020         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
33021         aarch64_cannot_change_mode_class_ptr): New.
33022         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
33023         backend hook aarch64_cannot_change_mode_class.
33025 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
33027         * common/config/aarch64/aarch64-common.c
33028         (aarch64_handle_option): Don't handle any option order logic here.
33029         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
33030         selected_cpu, warn on architecture version mismatch.
33031         (aarch64_override_options): Fix parsing order for option strings.
33033 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
33034             Iain Sandoe  <iain@codesourcery.com>
33036         PR bootstrap/59496
33037         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
33038         warning.  Amend comment to reflect current functionality.
33040 2014-01-20  Richard Biener  <rguenther@suse.de>
33042         PR middle-end/59860
33043         * builtins.c (fold_builtin_strcat): Remove case better handled
33044         by tree-ssa-strlen.c.
33046 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
33048         * config/aarch64/aarch64.opt
33049         (mcpu, march, mtune): Make case-insensitive.
33051 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
33053         PR target/59880
33054         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
33055         if operands[1] is a REG or ZERO_EXTEND of a REG.
33057 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
33059         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
33061 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
33063         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
33064         long non-pic millicode calls.
33066 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
33068         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
33070 2014-01-19  Kito Cheng  <kito@0xlab.org>
33072         * builtins.c (expand_movstr): Check movstr expand done or fail.
33074 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
33075             H.J. Lu  <hongjiu.lu@intel.com>
33077         PR target/59379
33078         * config/i386/i386.md (*lea<mode>): Zero-extend return register
33079         to DImode for zero-extended addresses.
33081 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
33083         PR rtl-optimization/57763
33084         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
33085         on the new indirect jump_insn and increment LABEL_NUSES (label).
33087 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
33089         PR bootstrap/59580
33090         PR bootstrap/59583
33091         * config.gcc (x86_archs): New variable.
33092         (x86_64_archs): Likewise.
33093         (x86_cpus): Likewise.
33094         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
33095         --with-arch/--with-cpu= options.
33096         Support --with-arch=/--with-cpu={nehalem,westmere,
33097         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
33099 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
33101         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
33102         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
33104 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
33106         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
33108 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
33110         PR target/58944
33111         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
33112         clear cpp_get_options (parse_in)->warn_unused_macros for
33113         ix86_target_macros_internal with cpp_define.
33115 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
33117         * jump.c (delete_related_insns): Keep (use (insn))s.
33118         * reorg.c (redundant_insn): Check for barriers too.
33120 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
33122         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
33124 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
33126         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
33127         call to $$dyncall when TARGET_LONG_CALLS is true.
33129 2014-01-17  Jeff Law  <law@redhat.com>
33131         * ree.c (combine_set_extension): Temporarily disable test for
33132         changing number of hard registers.
33134 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
33136         PR middle-end/58125
33137         * ipa-inline-analysis.c (inline_free_summary):
33138         Do not free summary of aliases.
33140 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
33142         PR middle-end/59706
33143         * gimplify.c (gimplify_expr): Use create_tmp_var
33144         instead of create_tmp_var_raw.  If cond doesn't have
33145         integral type, don't add the IFN_ANNOTATE builtin at all.
33147 2014-01-17  Martin Jambor  <mjambor@suse.cz>
33149         PR ipa/59736
33150         * ipa-cp.c (prev_edge_clone): New variable.
33151         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
33152         Also resize prev_edge_clone vector.
33153         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
33154         (ipcp_edge_removal_hook): New function.
33155         (ipcp_driver): Register ipcp_edge_removal_hook.
33157 2014-01-17  Andrew Pinski  <apinski@cavium.com>
33158             Steve Ellcey  <sellcey@mips.com>
33160         PR target/59462
33161         * config/mips/mips.c (mips_print_operand): Check operand mode instead
33162         of operator mode.
33164 2014-01-17  Jeff Law  <law@redhat.com>
33166         PR middle-end/57904
33167         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
33168         so that pass_ccp runs first.
33170 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
33172         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
33173         (ix86_adjust_cost): Use !TARGET_XXX.
33174         (do_reorder_for_imul): Likewise.
33175         (swap_top_of_ready_list): Likewise.
33176         (ix86_sched_reorder): Likewise.
33178 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
33180         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
33181         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
33182         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
33183         (intel_memset): New.  Duplicate slm_memset.
33184         (intel_cost): New.  Duplicate slm_cost.
33185         (m_INTEL): New macro.
33186         (processor_target_table): Add "intel".
33187         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
33188         with PROCESSOR_INTEL for "intel".
33189         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
33190         PROCESSOR_SILVERMONT.
33191         (ix86_issue_rate): Likewise.
33192         (ix86_adjust_cost): Likewise.
33193         (ia32_multipass_dfa_lookahead): Likewise.
33194         (swap_top_of_ready_list): Likewise.
33195         (ix86_sched_reorder): Likewise.
33196         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
33197         instead of TARGET_OPT_AGU.
33198         * config/i386/i386.h (TARGET_INTEL): New.
33199         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
33200         (processor_type): Add PROCESSOR_INTEL.
33201         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
33202         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
33204 2014-01-17  Marek Polacek  <polacek@redhat.com>
33206         PR c/58346
33207         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
33208         size is zero.
33210 2014-01-17  Richard Biener  <rguenther@suse.de>
33212         PR tree-optimization/46590
33213         * opts.c (default_options_table): Add entries for
33214         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
33215         all enabled at -O1 but not for -Og.
33216         * common.opt (fbranch-count-reg): Remove Init(1).
33217         (fmove-loop-invariants): Likewise.
33218         (ftree-pta): Likewise.
33220 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
33222         * config/i386/i386.c (ix86_data_alignment): For compatibility with
33223         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
33224         decls to at least the GCC 4.8 used alignments.
33226         PR fortran/59440
33227         * tree-nested.c (convert_nonlocal_reference_stmt,
33228         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
33229         of GIMPLE_BIND stmts, adjust associated decls.
33231 2014-01-17  Richard Biener  <rguenther@suse.de>
33233         PR tree-optimization/46590
33234         * vec.h (vec<>::bseach): New member function implementing
33235         binary search according to C89 bsearch.
33236         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
33237         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
33238         bitmap pointer again.  Make accesses_in_loop a flat array.
33239         (mem_ref_obstack): New global.
33240         (outermost_indep_loop): Adjust for mem_ref->stored changes.
33241         (mark_ref_stored): Likewise.
33242         (ref_indep_loop_p_2): Likewise.
33243         (set_ref_stored_in_loop): New helper function.
33244         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
33245         (memref_free): Adjust.
33246         (record_mem_ref_loc): Simplify.
33247         (gather_mem_refs_stmt): Adjust.
33248         (sort_locs_in_loop_postorder_cmp): New function.
33249         (analyze_memory_references): Sort accesses_in_loop after
33250         loop postorder number.
33251         (find_ref_loc_in_loop_cmp): New function.
33252         (for_all_locs_in_loop): Find relevant cluster of locs in
33253         accesses_in_loop and iterate without recursion.
33254         (execute_sm): Avoid uninit warning.
33255         (struct ref_always_accessed): Simplify.
33256         (ref_always_accessed::operator ()): Likewise.
33257         (ref_always_accessed_p): Likewise.
33258         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
33259         loop postorder numbers here.
33260         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
33261         numbers.
33263 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
33265         PR c++/57945
33266         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
33267         on decls for which assemble_alias has been called.
33269 2014-01-17  Nick Clifton  <nickc@redhat.com>
33271         * config/msp430/msp430.opt: (mcpu): New option.
33272         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
33273         (msp430_option_override): Parse target_cpu.  If the MCU name
33274         matches a generic string, clear target_mcu.
33275         (msp430_attr): Allow numeric interrupt values up to 63.
33276         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
33277         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
33278         option.
33279         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
33280         Add mcpu matches.
33281         * config/msp430/msp430.md (popm): Use %J rather than %I.
33282         (addsi3): Use msp430_nonimmediate_operand for operand 2.
33283         (addhi_cy_i): Use immediate_operand for operand 2.
33284         * doc/invoke.texi: Document -mcpu option.
33286 2014-01-17  Richard Biener  <rguenther@suse.de>
33288         PR rtl-optimization/38518
33289         * df.h (df_analyze_loop): Declare.
33290         * df-core.c: Include cfgloop.h.
33291         (df_analyze_1): Split out main part of df_analyze.
33292         (df_analyze): Adjust.
33293         (loop_inverted_post_order_compute): New function.
33294         (loop_post_order_compute): Likewise.
33295         (df_analyze_loop): New function avoiding whole-function
33296         postorder computes.
33297         * loop-invariant.c (find_defs): Use df_analyze_loop.
33298         (find_invariants): Adjust.
33299         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
33301 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
33303         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
33304         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
33306 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
33308         * ipa-ref.c (ipa_remove_stmt_references): Fix references
33309         traversal when removing references.
33311 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
33313         PR ipa/59775
33314         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
33316 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
33318         PR middle-end/56791
33319         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
33320         pushing a reload for an autoinc when we had previously reloaded an
33321         inner part of the address.
33323 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
33325         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
33326         field.
33327         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
33328         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
33329         when not giving up or versioning for alias only because of
33330         loop->safelen.
33331         (vect_analyze_data_ref_dependences): Set to true.
33332         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
33333         is a GIMPLE_PHI.
33334         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
33335         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
33336         to the condition.
33338         PR middle-end/58344
33339         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
33341         PR target/59839
33342         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
33343         operand 0 predicate for gathers, use a new pseudo as subtarget.
33345 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
33347         PR middle-end/59609
33348         * lra-constraints.c (process_alt_operands): Add printing debug info.
33349         Check absence of input/output reloads for matched operands too.
33351 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
33353         PR rtl-optimization/59835
33354         * ira.c (ira_init_register_move_cost): Increase cost for
33355         impossible modes.
33357 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
33359         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
33361 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
33363         PR target/59780
33364         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
33365         non-register objects.  Use gen_(high/low)part more consistently.
33366         Fix assertions.
33368 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
33370         PR target/59844
33371         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
33372         endian support, remove tests for WORDS_BIG_ENDIAN.
33373         (p8_mfvsrd_3_<mode>): Likewise.
33374         (reload_gpr_from_vsx<mode>): Likewise.
33375         (reload_gpr_from_vsxsf): Likewise.
33376         (p8_mfvsrd_4_disf): Likewise.
33378 2014-01-16  Richard Biener  <rguenther@suse.de>
33380         PR rtl-optimization/46590
33381         * lcm.c (compute_antinout_edge): Use postorder iteration.
33382         (compute_laterin): Use inverted postorder iteration.
33384 2014-01-16  Nick Clifton  <nickc@redhat.com>
33386         PR middle-end/28865
33387         * varasm.c (output_constant): Return the number of bytes actually
33388         emitted.
33389         (output_constructor_array_range): Update the field size with the
33390         number of bytes emitted by output_constant.
33391         (output_constructor_regular_field): Likewise.  Also do not
33392         complain if the total number of bytes emitted is now greater
33393         than the expected fieldpos.
33394         * output.h (output_constant): Update prototype and descriptive comment.
33396 2014-01-16  Marek Polacek  <polacek@redhat.com>
33398         PR middle-end/59827
33399         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
33400         it is error_mark_node.
33402 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
33404         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
33405         VALID_AVX256_REG_OR_OI_MODE.
33407 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
33409         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
33410         current procedure should be profiled.
33412 2014-01-15  Andrew Pinski  <apinski@cavium.com>
33414         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
33415         of moving from/to the STACK_REG register class.
33417 2014-01-15  Richard Henderson  <rth@redhat.com>
33419         PR debug/54694
33420         * reginfo.c (global_regs_decl): Globalize.
33421         * rtl.h (global_regs_decl): Declare.
33422         * ira.c (do_reload): Diagnose frame_pointer_needed and it
33423         reserved via global_regs.
33425 2014-01-15  Teresa Johnson  <tejohnson@google.com>
33427         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
33429 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
33431         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
33432         and vmulosh rather than call gen_vec_widen_smult_*.
33433         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
33434         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
33435         (vec_widen_smult_even_v16qi): Likewise.
33436         (vec_widen_umult_even_v8hi): Likewise.
33437         (vec_widen_smult_even_v8hi): Likewise.
33438         (vec_widen_umult_odd_v16qi): Likewise.
33439         (vec_widen_smult_odd_v16qi): Likewise.
33440         (vec_widen_umult_odd_v8hi): Likewise.
33441         (vec_widen_smult_odd_v8hi): Likewise.
33442         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
33443         vmuloub rather than call gen_vec_widen_umult_*.
33444         (vec_widen_umult_lo_v16qi): Likewise.
33445         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
33446         vmulosb rather than call gen_vec_widen_smult_*.
33447         (vec_widen_smult_lo_v16qi): Likewise.
33448         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
33449         rather than call gen_vec_widen_umult_*.
33450         (vec_widen_umult_lo_v8hi): Likewise.
33451         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
33452         rather than call gen_vec_widen_smult_*.
33453         (vec_widen_smult_lo_v8hi): Likewise.
33455 2014-01-15  Jeff Law  <law@redhat.com>
33457         PR tree-optimization/59747
33458         * ree.c (find_and_remove_re): Properly handle case where a second
33459         eliminated extension requires widening a copy created for elimination
33460         of a prior extension.
33461         (combine_set_extension): Ensure that the number of hard regs needed
33462         for a destination register does not change when we widen it.
33464 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33466         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
33467         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
33468         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
33469         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
33470         (avr-*-rtems*): Likewise.
33471         (bfin*-rtems*): Likewise.
33472         (moxie-*-rtems*): Likewise.
33473         (h8300-*-rtems*): Likewise.
33474         (i[34567]86-*-rtems*): Likewise.
33475         (lm32-*-rtems*): Likewise.
33476         (m32r-*-rtems*): Likewise.
33477         (m68k-*-rtems*): Likewise.
33478         (microblaze*-*-rtems*): Likewise.
33479         (mips*-*-rtems*): Likewise.
33480         (powerpc-*-rtems*): Likewise.
33481         (sh-*-rtems*): Likewise.
33482         (sparc-*-rtems*): Likewise.
33483         (sparc64-*-rtems*): Likewise.
33484         (v850-*-rtems*): Likewise.
33485         (m32c-*-rtems*): Likewise.
33487 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
33489         PR rtl-optimization/59511
33490         * ira.c (ira_init_register_move_cost): Use memory costs for some
33491         cases of register move cost calculations.
33492         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
33493         instead of BB frequency.
33494         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
33495         * lra-assigns.c (find_hard_regno_for): Ditto.
33497 2014-01-15  Richard Biener  <rguenther@suse.de>
33499         PR tree-optimization/59822
33500         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
33501         (vectorizable_load): Use it to hoist defs of uses of invariant
33502         loads out of the loop.
33504 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
33505             Kugan Vivekanandarajah  <kuganv@linaro.org>
33507         PR target/59695
33508         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
33509         truncation.
33511 2014-01-15  Richard Biener  <rguenther@suse.de>
33513         PR rtl-optimization/59802
33514         * lcm.c (compute_available): Use inverted postorder to seed
33515         the initial worklist.
33517 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33519         PR target/59803
33520         * config/s390/s390.c (s390_preferred_reload_class): Don't return
33521         ADDR_REGS for invalid symrefs in non-PIC code.
33523 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
33525         PR other/58712
33526         * builtins.c (determine_block_size): Initialize *probable_max_size
33527         even if len_rtx is CONST_INT.
33529 2014-01-14  Andrew Pinski  <apinski@cavium.com>
33531         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
33532         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
33533         (cortexa53_tunings): Likewise.
33534         (aarch64_sched_issue_rate): New function.
33535         (TARGET_SCHED_ISSUE_RATE): Define.
33537 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
33539         * ira-costs.c (find_costs_and_classes): Add missed
33540         ira_init_register_move_cost_if_necessary.
33542 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
33544         PR target/59787
33545         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
33547 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
33549         PR target/59794
33550         * config/i386/i386.c (type_natural_mode): Add a bool parameter
33551         to indicate if type is used for function return value.  Warn ABI
33552         change if the vector mode isn't available for function return value.
33553         (ix86_function_arg_advance): Pass false to type_natural_mode.
33554         (ix86_function_arg): Likewise.
33555         (ix86_gimplify_va_arg): Likewise.
33556         (function_arg_32): Don't warn ABI change.
33557         (ix86_function_value): Pass true to type_natural_mode.
33558         (ix86_return_in_memory): Likewise.
33559         (ix86_struct_value_rtx): Removed.
33560         (TARGET_STRUCT_VALUE_RTX): Likewise.
33562 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33564         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
33565         converting a conditional jump into a conditional return.
33567 2014-01-14  Richard Biener  <rguenther@suse.de>
33569         PR tree-optimization/58921
33570         PR tree-optimization/59006
33571         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
33572         hoisting invariant stmts.
33573         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
33574         invariant loads on the preheader edge if possible.
33576 2014-01-14  Joey Ye  <joey.ye@arm.com>
33578         * doc/plugin.texi (Building GCC plugins): Update to C++.
33580 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
33582         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
33583         (_mm_rcp28_round_ss): Ditto.
33584         (_mm_rsqrt28_round_sd): Ditto.
33585         (_mm_rsqrt28_round_ss): Ditto.
33586         (_mm_rcp28_sd): Ditto.
33587         (_mm_rcp28_ss): Ditto.
33588         (_mm_rsqrt28_sd): Ditto.
33589         (_mm_rsqrt28_ss): Ditto.
33590         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
33591         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
33592         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
33593         (IX86_BUILTIN_RCP28SD): Ditto.
33594         (IX86_BUILTIN_RCP28SS): Ditto.
33595         (IX86_BUILTIN_RSQRT28SD): Ditto.
33596         (IX86_BUILTIN_RSQRT28SS): Ditto.
33597         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
33598         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
33599         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
33600         (ix86_expand_special_args_builtin): Expand new FTYPE.
33601         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
33602         (srcp14<mode>): Make insn unary.
33603         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
33604         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
33605         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
33606         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
33607         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
33608         Fix rounding: make it SAE only.
33609         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
33610         Ditto.
33611         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
33612         Ditto.
33613         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
33614         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
33615         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
33616         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
33617         (round_saeonly_mask_scalar_operand4): Ditto.
33618         (round_saeonly_mask_scalar_op3): Ditto.
33619         (round_saeonly_mask_scalar_op4): Ditto.
33621 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33623         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
33624         Implement -maltivec=be for vec_insert and vec_extract.
33626 2014-01-10  DJ Delorie  <dj@redhat.com>
33628         * config/msp430/msp430.md (call_internal): Don't allow memory
33629         references with SP as the base register.
33630         (call_value_internal): Likewise.
33631         * config/msp430/constraints.md (Yc): New.  For memory references
33632         that don't use SP as a base register.
33634         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
33635         "an integer without a # prefix"
33636         * config/msp430/msp430.md (epilogue_helper): Use it.
33638 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
33640         PR target/59617
33641         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
33642         AVX512F gather builtins.
33643         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
33644         on gather decls with INTEGER_TYPE masktype.
33645         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
33646         directly into the builtin rather than hoisting it before loop.
33648         PR tree-optimization/59387
33649         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
33650         (scev_const_prop): If folded_casts and type has undefined overflow,
33651         use force_gimple_operand instead of force_gimple_operand_gsi and
33652         for each added stmt if it is assign with
33653         arith_code_with_undefined_signed_overflow, call
33654         rewrite_to_defined_overflow.
33655         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
33656         gimple-fold.h instead.
33657         (arith_code_with_undefined_signed_overflow,
33658         rewrite_to_defined_overflow): Moved to ...
33659         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
33660         rewrite_to_defined_overflow): ... here.  No longer static.
33661         Include gimplify-me.h.
33662         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
33663         rewrite_to_defined_overflow): New prototypes.
33665 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33667         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
33669 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
33671         * builtins.c (get_object_alignment_2): Minor tweak.
33672         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
33674 2014-01-13  Christian Bruel  <christian.bruel@st.com>
33676         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
33677         optimized non constant lengths.
33679 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
33681         PR libgomp/59194
33682         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
33683         load as __atomic_load_N if possible.
33685 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
33687         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
33688         target parameter.
33689         (rs6000_expand_builtin): Adjust call.
33691 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
33693         PR target/58115
33694         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
33695         * config/rs6000/rs6000.c: Include target-globals.h.
33696         (rs6000_set_current_function): Instead of doing target_reinit
33697         unconditionally, use save_target_globals_default_opts and
33698         restore_target_globals.
33700         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
33701         FPSCR.
33702         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
33703         (rs6000_expand_builtin): Handle mffs and mtfsf.
33704         (rs6000_init_builtins): Define mffs and mtfsf.
33705         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
33706         (rs6000_mffs): New pattern.
33707         (rs6000_mtfsf): New pattern.
33709 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
33711         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
33712         Start narrowing with START.  Apply candidate-use pair
33713         and check overall cost in narrowing.
33714         (iv_ca_prune): Pass new argument.
33716 2014-01-10  Jeff Law  <law@redhat.com>
33718         PR middle-end/59743
33719         * ree.c (combine_reaching_defs): Ensure the defining statement
33720         occurs before the extension when optimizing extensions with
33721         different source and destination hard registers.
33723 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
33725         PR ipa/58585
33726         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
33727         vtables into the type inheritance graph.
33729 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
33731         PR rtl-optimization/59754
33732         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
33733         modes in the REGNO != REGNO case.
33735 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33737         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
33739 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
33741         PR tree-optimization/59745
33742         * tree-predcom.c (tree_predictive_commoning_loop): Call
33743         free_affine_expand_cache if giving up because components is NULL.
33745         * target-globals.c (save_target_globals): Allocate < 4KB structs using
33746         GC in payload of target_globals struct instead of allocating them on
33747         the heap and the larger structs separately using GC.
33748         * target-globals.h (struct target_globals): Make regs, hard_regs,
33749         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
33750         of GTY((skip)) and change type to void *.
33751         (reset_target_globals): Cast loads from those fields to corresponding
33752         types.
33754 2014-01-10  Steve Ellcey  <sellcey@mips.com>
33756         PR plugins/59335
33757         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
33758         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
33759         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
33761 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
33763         PR target/59744
33764         * aarch64-modes.def (CC_Zmode): New flags mode.
33765         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
33766         represents an equality.
33767         (aarch64_get_condition_code): Handle CC_Zmode.
33768         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
33770 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33772         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
33773         extraction in good case.
33775 2014-01-10  Richard Biener  <rguenther@suse.de>
33777         PR tree-optimization/59374
33778         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
33779         checking after SLP discovery.  Mark stmts not participating
33780         in any SLP instance properly.
33782 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33784         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
33785         when handling a SET rtx.
33787 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33789         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
33790         (cortex-a57): Likewise.
33791         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
33793 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33795         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
33796         non-iwmmxt builtins.
33798 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
33800         PR ipa/58252
33801         PR ipa/59226
33802         * ipa-devirt.c record_target_from_binfo): Take as argument
33803         stack of binfos and lookup matching one for virtual inheritance.
33804         (possible_polymorphic_call_targets_1): Update.
33806 2014-01-10  Huacai Chen  <chenhc@lemote.com>
33808         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
33809         kernel strings for Loongson-2E/2F/3A.
33811 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
33813         PR middle-end/59670
33814         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
33815         is_gimple_call before calling gimple_call_internal_p.
33817 2014-01-09  Steve Ellcey  <sellcey@mips.com>
33819         * Makefile.in (TREE_FLOW_H): Remove.
33820         (TREE_SSA_H): Add file names from tree-flow.h.
33821         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
33822         * tree.h: Remove tree-flow.h reference.
33823         * hash-table.h: Remove tree-flow.h reference.
33824         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
33825         reference with tree-ssa-loop.h.
33827 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33829         * doc/invoke.texi: Add -maltivec={be,le} options, and document
33830         default element-order behavior for -maltivec.
33831         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
33832         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
33833         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
33834         when targeting big endian, at least for now.
33835         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
33837 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
33839         PR middle-end/47735
33840         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
33841         var satisfies use_register_for_decl, just take into account type
33842         alignment, rather than decl alignment.
33844         PR tree-optimization/59622
33845         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
33846         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
33847         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
33848         Don't devirtualize for inplace at all.  For targets.length () == 1,
33849         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
33851 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
33853         * config/i386/i386.md (cpu): Remove the unused btver1.
33855 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
33857         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
33859 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
33861         PR target/58115
33862         * tree-core.h (struct target_globals): New forward declaration.
33863         (struct tree_target_option): Add globals field.
33864         * tree.h (TREE_TARGET_GLOBALS): Define.
33865         (prepare_target_option_nodes_for_pch): New prototype.
33866         * target-globals.h (struct target_globals): Define even if
33867         !SWITCHABLE_TARGET.
33868         * tree.c (prepare_target_option_node_for_pch,
33869         prepare_target_option_nodes_for_pch): New functions.
33870         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
33871         * config/i386/i386.c: Include target-globals.h.
33872         (ix86_set_current_function): Instead of doing target_reinit
33873         unconditionally, use save_target_globals_default_opts and
33874         restore_target_globals.
33876 2014-01-09  Richard Biener  <rguenther@suse.de>
33878         PR tree-optimization/59715
33879         * tree-cfg.h (split_critical_edges): Declare.
33880         * tree-cfg.c (split_critical_edges): Export.
33881         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
33883 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
33885         * cfgexpand.c (expand_stack_vars): Optionally disable
33886         asan stack protection.
33887         (expand_used_vars): Likewise.
33888         (partition_stack_vars): Likewise.
33889         * asan.c (asan_emit_stack_protection): Optionally disable
33890         after return stack usage.
33891         (instrument_derefs): Optionally disable memory access instrumentation.
33892         (instrument_builtin_call): Likewise.
33893         (instrument_strlen_call): Likewise.
33894         (asan_protect_global): Optionally disable global variables protection.
33895         * doc/invoke.texi: Added doc for new options.
33896         * params.def: Added new options.
33897         * params.h: Likewise.
33899 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
33901         PR rtl-optimization/59724
33902         * ifcvt.c (cond_exec_process_if_block): Don't call
33903         flow_find_head_matching_sequence with 0 longest_match.
33904         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
33905         non-active insns if !stop_after.
33906         (try_head_merge_bb): Revert 2014-01-07 changes.
33908 2014-01-08  Jeff Law  <law@redhat.com>
33910         * ree.c (get_sub_rtx): New function, extracted from...
33911         (merge_def_and_ext): Here.
33912         (combine_reaching_defs): Use get_sub_rtx.
33914 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
33916         * cgraph.h (varpool_variable_node): Do not choke on null node.
33918 2014-01-08  Catherine Moore  <clm@codesourcery.com>
33920         * config/mips/mips.md (simple_return): Attempt to use JRC
33921         for microMIPS.
33922         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
33924 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
33926         PR rtl-optimization/59137
33927         * reorg.c (steal_delay_list_from_target): Call update_block for
33928         elided insns.
33929         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
33931 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33933         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
33934         two duplicate entries.
33936 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
33938         Revert:
33939         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
33941         * config/mips/mips.c (mips_truncated_op_cost): New function.
33942         (mips_rtx_costs): Adjust test for BADDU.
33943         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
33945         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
33947         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
33948         (*baddu_si): ...this new pattern.
33950 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
33952         PR ipa/59722
33953         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
33955 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33957         PR middle-end/57748
33958         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
33959         inner_reference_p.
33960         (expand_expr, expand_normal): Adjust.
33961         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
33962         inner_reference_p. Use inner_reference_p to expand inner references.
33963         (store_expr): Adjust.
33964         * cfgexpand.c (expand_call_stmt): Adjust.
33966 2014-01-08  Rong Xu  <xur@google.com>
33968         * gcov-io.c (gcov_var): Move from gcov-io.h.
33969         (gcov_position): Ditto.
33970         (gcov_is_error): Ditto.
33971         (gcov_rewrite): Ditto.
33972         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
33973         only part to libgcc/libgcov.h.
33975 2014-01-08  Marek Polacek  <polacek@redhat.com>
33977         PR middle-end/59669
33978         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
33980 2014-01-08  Marek Polacek  <polacek@redhat.com>
33982         PR sanitizer/59667
33983         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
33985 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
33987         PR rtl-optimization/59649
33988         * stor-layout.c (get_mode_bounds): For BImode return
33989         0 and STORE_FLAG_VALUE.
33991 2014-01-08  Richard Biener  <rguenther@suse.de>
33993         PR middle-end/59630
33994         * gimple.h (is_gimple_builtin_call): Remove.
33995         (gimple_builtin_call_types_compatible_p): New.
33996         (gimple_call_builtin_p): New overload.
33997         * gimple.c (is_gimple_builtin_call): Remove.
33998         (validate_call): Rename to ...
33999         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
34000         check return types.
34001         (validate_type): New static function.
34002         (gimple_call_builtin_p): New overload and adjust.
34003         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
34004         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
34005         (gimple_fold_stmt_to_constant_1): Likewise.
34006         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
34008 2014-01-08  Richard Biener  <rguenther@suse.de>
34010         PR middle-end/59471
34011         * gimplify.c (gimplify_expr): Gimplify register-register type
34012         VIEW_CONVERT_EXPRs to separate stmts.
34014 2014-01-07  Jeff Law  <law@redhat.com>
34016         PR middle-end/53623
34017         * ree.c (combine_set_extension): Handle case where source
34018         and destination registers in an extension insn are different.
34019         (combine_reaching_defs): Allow source and destination registers
34020         in extension to be different under limited circumstances.
34021         (add_removable_extension): Remove restriction that the
34022         source and destination registers in the extension are the same.
34023         (find_and_remove_re): Emit a copy from the extension's
34024         destination to its source after the defining insn if
34025         the source and destination registers are different.
34027         PR middle-end/59285
34028         * ifcvt.c (merge_if_block): If we are merging a block with more than
34029         one successor with a block with no successors, remove any BARRIER
34030         after the second block.
34032 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
34034         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
34036 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
34038         PR target/59652
34039         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
34040         for 14-bit register offsets when INT14_OK_STRICT is false.
34042 2014-01-07  Roland Stigge  <stigge@antcom.de>
34043             Michael Meissner  <meissner@linux.vnet.ibm.com>
34045         PR 57386/target
34046         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
34047         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
34049 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
34051         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
34052         -mcpu.
34054 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
34056         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
34057         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
34058         rtx is const0_rtx or not.
34060 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
34062         PR target/58115
34063         * target-globals.c (save_target_globals): Remove this_fn_optab
34064         handling.
34065         * toplev.c: Include optabs.h.
34066         (target_reinit): Temporarily restore the global options if another
34067         set of options are in force.
34069 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
34071         PR rtl-optimization/58668
34072         * cfgcleanup.c (flow_find_cross_jump): Don't count
34073         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
34074         to determine what is counted.
34075         (flow_find_head_matching_sequence): Use active_insn_p to determine
34076         what is counted.
34077         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
34078         counting change.
34079         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
34080         determine what is counted.
34082         PR tree-optimization/59643
34083         * tree-predcom.c (split_data_refs_to_components): If one dr is
34084         read and one write, determine_offset fails and the write isn't
34085         in the bad component, just put the read into the bad component.
34087 2014-01-07  Mike Stump  <mikestump@comcast.net>
34088             Jakub Jelinek  <jakub@redhat.com>
34090         PR pch/59436
34091         * tree-core.h (struct tree_optimization_option): Change optabs
34092         type from unsigned char * to void *.
34093         * optabs.c (init_tree_optimization_optabs): Adjust
34094         TREE_OPTIMIZATION_OPTABS initialization.
34096 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
34098         PR target/59644
34099         * config/i386/i386.h (struct machine_function): Add
34100         no_drap_save_restore field.
34101         * config/i386/i386.c (ix86_save_reg): Use
34102         !cfun->machine->no_drap_save_restore instead of
34103         crtl->stack_realign_needed.
34104         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
34105         this function clears frame_pointer_needed.  Set
34106         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
34107         and DRAP reg is needed.
34109 2014-01-06  Marek Polacek  <polacek@redhat.com>
34111         PR c/57773
34112         * doc/implement-c.texi: Mention that other integer types are
34113         permitted as bit-field types in strictly conforming mode.
34115 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
34117         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
34118         is newly allocated.
34120 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
34122         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
34124 2014-01-06  Martin Jambor  <mjambor@suse.cz>
34126         PR ipa/59008
34127         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
34128         to int.
34129         * ipa-prop.c (ipa_print_node_params): Fix indentation.
34131 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
34133         PR debug/59350
34134         PR debug/59510
34135         * var-tracking.c (add_stores): Preserve the value of the source even if
34136         we don't record the store.
34138 2014-01-06  Terry Guo  <terry.guo@arm.com>
34140         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
34142 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
34144         PR bootstrap/59541
34145         * config/darwin.c (darwin_function_section): Adjust return values to
34146         correspond to optimisation changes made in r206070.
34148 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
34150         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
34151         from prefetch_block tune setting.
34152         (nocona_cost): Correct size of prefetch block to 64.
34154 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
34156         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
34157         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
34158         used to save the static chain register in the computation of the offset
34159         from which the FP registers need to be restored.
34161 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
34163         PR tree-optimization/59519
34164         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
34165         ICE if get_current_def (current_new_name) is already non-NULL, as long
34166         as it is a phi result of some other phi in *new_exit_bb that has
34167         the same argument.
34169         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
34170         or vmovdqu* for misaligned_operand.
34171         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
34172         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
34173         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
34174         aligned_mem for AVX512F masked aligned load and store builtins and for
34175         non-temporal moves.
34177 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
34179         PR tree-optimization/59651
34180         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
34181         Address range for negative step should be added by TYPE_SIZE_UNIT.
34183 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
34185         * config/m68k/m68k.c (handle_move_double): Handle pushes with
34186         overlapping registers also for registers other than the stack pointer.
34188 2014-01-03  Marek Polacek  <polacek@redhat.com>
34190         PR other/59661
34191         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
34192         __builtin_FILE.
34194 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
34196         PR target/59625
34197         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
34198         asm goto as jump.
34200         * config/i386/i386.md (MODE_SIZE): New mode attribute.
34201         (push splitter): Use <P:MODE_SIZE> instead of
34202         GET_MODE_SIZE (<P:MODE>mode).
34203         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
34204         (mov -1, reg peephole2): Likewise.
34205         * config/i386/sse.md (*mov<mode>_internal,
34206         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
34207         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
34208         *<code><mode>3, *andnot<mode>3<mask_name>,
34209         <mask_codefor><code><mode>3<mask_name>): Likewise.
34210         * config/i386/subst.md (mask_mode512bit_condition,
34211         sd_mask_mode512bit_condition): Likewise.
34213 2014-01-02  Xinliang David Li  <davidxl@google.com>
34215         PR tree-optimization/59303
34216         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
34217         (dump_predicates): Better output format.
34218         (pred_equal_p): New function.
34219         (is_neq_relop_p): Ditto.
34220         (is_neq_zero_form_p): Ditto.
34221         (pred_expr_equal_p): Ditto.
34222         (pred_neg_p): Ditto.
34223         (simplify_pred): Ditto.
34224         (simplify_preds_2): Ditto.
34225         (simplify_preds_3): Ditto.
34226         (simplify_preds_4): Ditto.
34227         (simplify_preds): Ditto.
34228         (push_pred): Ditto.
34229         (push_to_worklist): Ditto.
34230         (get_pred_info_from_cmp): Ditto.
34231         (is_degenerated_phi): Ditto.
34232         (normalize_one_pred_1): Ditto.
34233         (normalize_one_pred): Ditto.
34234         (normalize_one_pred_chain): Ditto.
34235         (normalize_preds): Ditto.
34236         (normalize_cond_1): Remove function.
34237         (normalize_cond): Ditto.
34238         (is_gcond_subset_of): Ditto.
34239         (is_subset_of_any): Ditto.
34240         (is_or_set_subset_of): Ditto.
34241         (is_and_set_subset_of): Ditto.
34242         (is_norm_cond_subset_of): Ditto.
34243         (pred_chain_length_cmp): Ditto.
34244         (convert_control_dep_chain_into_preds): Type change.
34245         (find_predicates): Ditto.
34246         (find_def_preds): Ditto.
34247         (destroy_predicates_vecs): Ditto.
34248         (find_matching_predicates_in_rest_chains): Ditto.
34249         (use_pred_not_overlap_with_undef_path_pred): Ditto.
34250         (is_pred_expr_subset): Ditto.
34251         (is_pred_chain_subset_of): Ditto.
34252         (is_included_in): Ditto.
34253         (is_superset_of): Ditto.
34255 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34257         Update copyright years.
34259 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34261         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
34262         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
34263         config/arc/arc.md, config/arc/arc.opt,
34264         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
34265         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
34266         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
34267         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
34268         config/linux-protos.h, config/linux.c, config/winnt-c.c,
34269         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
34270         vtable-verify.c, vtable-verify.h: Use the standard form for the
34271         copyright notice.
34273 2014-01-02  Tobias Burnus  <burnus@net-b.de>
34275         * gcc.c (process_command): Update copyright notice dates.
34276         * gcov-dump.c: Ditto.
34277         * gcov.c: Ditto.
34278         * doc/cpp.texi: Bump @copying's copyright year.
34279         * doc/cppinternals.texi: Ditto.
34280         * doc/gcc.texi: Ditto.
34281         * doc/gccint.texi: Ditto.
34282         * doc/gcov.texi: Ditto.
34283         * doc/install.texi: Ditto.
34284         * doc/invoke.texi: Ditto.
34286 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
34288         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
34290 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
34292         * config/i386/sse.md (*mov<mode>_internal): Guard
34293         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
34295         PR rtl-optimization/59647
34296         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
34297         new_rtx into UNSIGNED_FLOAT rtxes.
34299 Copyright (C) 2014 Free Software Foundation, Inc.
34301 Copying and distribution of this file, with or without modification,
34302 are permitted in any medium without royalty provided the copyright
34303 notice and this notice are preserved.