* tree-core.h: Fix comment to not assume pointers are multiples of
[official-gcc.git] / gcc / ChangeLog
bloba936c01681194b645c10bc17fceac99e8c00a902
1 2014-10-16  DJ Delorie  <dj@redhat.com>
3         * tree-core.h: Fix comment to not assume pointers are multiples of
4         bytes.
6 2014-10-15  Tom Tromey  <tromey@redhat.com>
8         * timevar.h (class auto_timevar): New class.
10 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
12         PR go/59432
13         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
14         Remove the second alternative.
15         (regprefix): Remove mode attribute.
16         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
17         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
19         Revert:
20         2013-11-05  Ian Lance Taylor  <iant@google.com>
22         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
23         If possible, add .cfi directives to record change to bx.
24         * config/i386/i386.c (ix86_emit_cfi): New function.
25         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
27 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
29         PR lto/62026
30         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
31         to duplicate.
32         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
33         at WPA time.
35 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
37         PR rtl-optimization/63448
38         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
39         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
40         (LRA_MAX_INHERITANCE_PASSES): Use it.
41         (lra_constraint_iter_after_spill): Remove.
42         (lra_assignment_iter): New.
43         (lra_assignment_iter_after_spill): New.
44         * lra-assigns.c (lra_assignment_iter): New.
45         (lra_assignment_iter_after_spill): New.
46         (former_reload_pseudo_spill_p): New.
47         (spill_for): Set up former_reload_pseudo_spill_p.
48         (setup_live_pseudos_and_spill_after_risky): Ditto.
49         (assign_by_spills): Ditto.
50         (lra_assign): Increment lra_assignment_iter.  Print the iteration
51         number.  Reset former_reload_pseudo_spill_p.  Check
52         lra_assignment_iter_after_spill.
53         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
54         lra_assignment_iter and lra_assignment_iter_after_spill.
55         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
56         (lra_constraints): Remove code with
57         lra_assignment_iter_after_spill.
59 2014-10-15  Teresa Johnson  <tejohnson@google.com>
61         PR bootstrap/63432
62         * tree-ssa-threadupdate.c (recompute_probabilities): Better
63         overflow checking.
65 2014-10-15  Renlin Li <renlin.li@arm.com>
67         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
68         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
69         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
70         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
72 2014-10-15  Richard Biener  <rguenther@suse.de>
74         * gimple-fold.c (gimple_fold_call): Properly keep virtual
75         SSA form up-to-date when devirtualizing a call to
76         __builtin_unreachable and avoid fixing up EH info here.
78 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
79             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
80             Anna Tikhonova  <anna.tikhonova@intel.com>
81             Ilya Tocar  <ilya.tocar@intel.com>
82             Andrey Turetskiy  <andrey.turetskiy@intel.com>
83             Ilya Verbin  <ilya.verbin@intel.com>
84             Kirill Yukhin  <kirill.yukhin@intel.com>
85             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
87         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
88         to support AVX-512BW.
89         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
90         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
91         (define_insn "*<plusminus_insn><mode>3"): Ditto.
92         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
93         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
94         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
95         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
96         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
97         (define_insn "*andnot<mode>3"): Ditto.
98         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
99         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
100         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
101         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
102         (define_insn "*abs<mode>2"): Remove masking support.
103         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
104         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
105         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
107 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
108             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
109             Anna Tikhonova  <anna.tikhonova@intel.com>
110             Ilya Tocar  <ilya.tocar@intel.com>
111             Andrey Turetskiy  <andrey.turetskiy@intel.com>
112             Ilya Verbin  <ilya.verbin@intel.com>
113             Kirill Yukhin  <kirill.yukhin@intel.com>
114             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
116         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
117         * config/i386/sse.md
118         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
119         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
120         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
121         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
122         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
123         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
124         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
126 2014-10-15  Renlin Li <renlin.li@arm.com>
128         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
130 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
132         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
133         MINUS_EXPR in unsigned type to avoid undefined behavior.
135 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
137         * stor-layout.c (self_referential_size): Do not promote arguments.
139 2014-10-15  Marek Polacek  <polacek@redhat.com>
141         * doc/invoke.texi: Update to reflect that GNU11 is the default
142         mode for C.
143         * c-common.h (c_language_kind): Update comment.
145 2014-10-15  Richard Biener  <rguenther@suse.de>
147         * hash-table.c: Include bconfig.h if building for the host.
148         * hash-table.h: Do not include ggc.h on the host but just declare
149         a few ggc allocation templates.
151 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
152             Jeff Law  <law@redhat.com>
154         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
155         multiple hard registers, use smaller mode derived from MODE.
157 2014-10-15  Andreas Schwab  <schwab@suse.de>
159         * explow.c (convert_memory_address_addr_space_1): Mark in_const
160         as ATTRIBUTE_UNUSED.
162 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
164         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
165         (decide_unrolling): ... this one.
166         (peel_loops_completely): Remove.
167         (decide_peel_simple): Remove.
168         (decide_peel_once_rolling): Remove.
169         (decide_peel_completely): Remove.
170         (peel_loop_simple): Remove.
171         (peel_loop_completely): Remove.
172         (unroll_and_peel_loops): Rename to ...
173         (unroll_loops): ... this one; handle only unrolling.
174         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
175         LPT_PEEL_SIMPLE.
176         (UAP_PEEL): Remove.
177         (unroll_and_peel_loops): Remove.
178         (unroll_loops): New.
179         * passes.def: Replace
180         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
181         * loop-init.c (gate_rtl_unroll_and_peel_loops,
182         rtl_unroll_and_peel_loops): Rename to ...
183         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
184         (pass_rtl_unroll_and_peel_loops): Rename to ...
185         (pass_rtl_unroll_loops): ... this one.
186         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
187         (make_pass_rtl_unroll_loops): New.
188         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
189         (canonicalize_loop_induction_variables): Update.
191 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
193         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
194         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
195         !TARGET_HARD_FLOAT_POSTINC.
196         (*lsip, *ssip): new instructions.
198 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
200         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
201         remove.
203 2014-10-14  Andrew Pinski  <apinski@cavium.com>
205         * explow.c (convert_memory_address_addr_space): Rename to ...
206         (convert_memory_address_addr_space_1): This.  Add in_const argument.
207         Inside a CONST RTL, permute the conversion and addition of constant
208         for zero and sign extended pointers.
209         (convert_memory_address_addr_space): New function.
211 2014-10-14  Andrew Pinski  <apinski@cavium.com>
213         Revert:
214         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
216         PR middle-end/49721
217         * explow.c (convert_memory_address_addr_space): Also permute the
218         conversion and addition of constant for zero-extend.
220 2014-10-14  DJ Delorie  <dj@redhat.com>
222         * config/msp430/msp430-modes.def (PSI): Add.
224         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
225         (msp430_hard_regno_nregs_with_padding): New.
226         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
227         (msp430_hard_regno_nregs_has_padding): New.
228         (msp430_hard_regno_nregs_with_padding): New.
229         (msp430_unwind_word_mode): Use PSImode instead of SImode.
230         (msp430_addr_space_legitimate_address_p): New.
231         (msp430_asm_integer): New.
232         (msp430_init_dwarf_reg_sizes_extra): New.
233         (msp430_print_operand): Use X suffix for PSImode even in small model.
234         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
235         (PTR_SIZE): ...but 4 bytes for EH.
236         (SIZE_TYPE): Use __int20.
237         (PTRDIFF_TYPE): Likewise.
238         (INCOMING_FRAME_SP_OFFSET): Adjust.
239         * config/msp430/msp430.md (movqi_topbyte): New.
240         (movpsi): Use fixed suffixes.
241         (movsipsi2): Enable for 430X, not large model.
242         (extendhipsi2): Likewise.
243         (zero_extendhisi2): Likewise.
244         (zero_extendhisipsi2): Likewise.
245         (extend_and_shift1_hipsi2): Likewise.
246         (extendpsisi2): Likewise.
247         (*bitbranch<mode>4_z): Fix suffix logic.
249 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
251         PR ada/62019
252         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
253         do not choke on null node.
254         <VAR_DECL>: Likewise.
256 2014-10-14  DJ Delorie  <dj@redhat.com>
258         * machmode.h (int_n_data_t): New.
259         (int_n_enabled_p): New.
260         (int_n_data): New.
261         * tree.c (int_n_enabled_p): New.
262         (int_n_trees): New.
263         (make_or_reuse_type): Check for all __intN types, not just
264         __int128.
265         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
266         entries.
267         * tree.h (int128_integer_type_node): Remove.
268         (int128_unsigned_type_node): Remove.
269         (int_n_trees_t): New.
270         (int_n_enabled_p): New.
271         (int_n_trees): New.
272         * toplev.c (standard_type_bitsize): New.
273         (do_compile): Check which __intN types are enabled for the current
274         run.
275         * builtin-types.def (BT_INT128): Remove.
276         (BT_UINT128): Remove.
277         * machmode.def: Add macro to create __int128 for all targets.
278         * stor-layout.c (mode_for_size): Support __intN types.
279         (smallest_mode_for_size): Likewise.
280         (initialize_sizetypes): Support __intN types.
281         * genmodes.c (struct mode_data): Add int_n field.
282         (blank_mode): Likewise.
283         (INT_N): New.
284         (make_int_n): New.
285         (emit_insn_modes_h): Count __intN entries and define
286         NUM_INT_N_ENTS.
287         (emit_mode_int_n): New.
288         (emit_insn_modes_c): Call it.
289         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
290         types, not just __int128.
291         * tree-core.h (integer_type_kind): Remove __int128-specific
292         entries, reserve spots for __intN entries.
294         * config/msp430/msp430-modes.def (PSI): Add.
296 2014-10-14  Kito Cheng  <kito@0xlab.org>
298         * ira.c: Fix typo in comment.
299         * ira.h: Ditto.
300         * ira-build.c: Ditto.
301         * ira-color.c: Ditto.
302         * ira-emit.c: Ditto.
303         * ira-int.h: Ditto.
304         * ira-lives.c: Ditto.
306 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
308         PR rtl-optimization/63475
309         * alias.c (true_dependence_1): Always use get_addr to extract
310         true address operands from x_addr and mem_addr.  Use extracted
311         address operands to check for references with alignment ANDs.
312         Use extracted address operands with find_base_term and
313         base_alias_check. For noncanonicalized operands call canon_rtx with
314         extracted address operand.
315         (write_dependence_1): Ditto.
316         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
318 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
320         PR target/63534
321         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
322         __morestack local.
324 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
325             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
326             Anna Tikhonova  <anna.tikhonova@intel.com>
327             Ilya Tocar  <ilya.tocar@intel.com>
328             Andrey Turetskiy  <andrey.turetskiy@intel.com>
329             Ilya Verbin  <ilya.verbin@intel.com>
330             Kirill Yukhin  <kirill.yukhin@intel.com>
331             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
333         * config/i386/i386.c
334         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
335         (ix86_expand_int_vcond): Ditto.
337 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
338             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
339             Anna Tikhonova  <anna.tikhonova@intel.com>
340             Ilya Tocar  <ilya.tocar@intel.com>
341             Andrey Turetskiy  <andrey.turetskiy@intel.com>
342             Ilya Verbin  <ilya.verbin@intel.com>
343             Kirill Yukhin  <kirill.yukhin@intel.com>
344             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
346         * config/i386/i386.c
347         (emit_reduc_half): Handle V64QI and V32HI mode.
348         * config/i386/sse.md
349         (define_mode_iterator VI_AVX512BW): New.
350         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
352 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
353             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
354             Anna Tikhonova  <anna.tikhonova@intel.com>
355             Ilya Tocar  <ilya.tocar@intel.com>
356             Andrey Turetskiy  <andrey.turetskiy@intel.com>
357             Ilya Verbin  <ilya.verbin@intel.com>
358             Kirill Yukhin  <kirill.yukhin@intel.com>
359             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
361         * config/i386/sse.md
362         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
364 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
365             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
366             Anna Tikhonova  <anna.tikhonova@intel.com>
367             Ilya Tocar  <ilya.tocar@intel.com>
368             Andrey Turetskiy  <andrey.turetskiy@intel.com>
369             Ilya Verbin  <ilya.verbin@intel.com>
370             Kirill Yukhin  <kirill.yukhin@intel.com>
371             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
373         * config/i386/i386.c
374         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
375         * config/i386/sse.md
376         (define_mode_iterator VI): Add V64QI and V32HI modes.
378 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
379             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
380             Anna Tikhonova  <anna.tikhonova@intel.com>
381             Ilya Tocar  <ilya.tocar@intel.com>
382             Andrey Turetskiy  <andrey.turetskiy@intel.com>
383             Ilya Verbin  <ilya.verbin@intel.com>
384             Kirill Yukhin  <kirill.yukhin@intel.com>
385             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
387         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
389 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
390             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
391             Anna Tikhonova  <anna.tikhonova@intel.com>
392             Ilya Tocar  <ilya.tocar@intel.com>
393             Andrey Turetskiy  <andrey.turetskiy@intel.com>
394             Ilya Verbin  <ilya.verbin@intel.com>
395             Kirill Yukhin  <kirill.yukhin@intel.com>
396             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
398         * config/i386/sse.md
399         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
400         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
402 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
403             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
404             Anna Tikhonova  <anna.tikhonova@intel.com>
405             Ilya Tocar  <ilya.tocar@intel.com>
406             Andrey Turetskiy  <andrey.turetskiy@intel.com>
407             Ilya Verbin  <ilya.verbin@intel.com>
408             Kirill Yukhin  <kirill.yukhin@intel.com>
409             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
411         * config/i386/sse.md
412         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
413         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
415 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
416             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
417             Anna Tikhonova  <anna.tikhonova@intel.com>
418             Ilya Tocar  <ilya.tocar@intel.com>
419             Andrey Turetskiy  <andrey.turetskiy@intel.com>
420             Ilya Verbin  <ilya.verbin@intel.com>
421             Kirill Yukhin  <kirill.yukhin@intel.com>
422             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
424         * config/i386/sse.md
425         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
426         (define_mode_iterator VI2_AVX2): Add V32HI mode.
427         (define_expand "mul<mode>3<mask_name>"): Add masking.
428         (define_insn "*mul<mode>3<mask_name>"): Ditto.
429         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
430         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
431         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
432         (define_mode_attr SDOT_PMADD_SUF): Ditto.
433         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
434         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
435         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
436         (define_insn "avx2_packusdw"): Delete.
437         (define_insn "sse4_1_packusdw"): Ditto.
438         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
440 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
441             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
442             Anna Tikhonova  <anna.tikhonova@intel.com>
443             Ilya Tocar  <ilya.tocar@intel.com>
444             Andrey Turetskiy  <andrey.turetskiy@intel.com>
445             Ilya Verbin  <ilya.verbin@intel.com>
446             Kirill Yukhin  <kirill.yukhin@intel.com>
447             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
449         * config/i386/sse.md
450         (define_insn "vec_dup<mode>"): Update constraints.
452 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
453             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
454             Anna Tikhonova  <anna.tikhonova@intel.com>
455             Ilya Tocar  <ilya.tocar@intel.com>
456             Andrey Turetskiy  <andrey.turetskiy@intel.com>
457             Ilya Verbin  <ilya.verbin@intel.com>
458             Kirill Yukhin  <kirill.yukhin@intel.com>
459             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
461         * config/i386/sse.md
462         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
463         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
464         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
466 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
467             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
468             Anna Tikhonova  <anna.tikhonova@intel.com>
469             Ilya Tocar  <ilya.tocar@intel.com>
470             Andrey Turetskiy  <andrey.turetskiy@intel.com>
471             Ilya Verbin  <ilya.verbin@intel.com>
472             Kirill Yukhin  <kirill.yukhin@intel.com>
473             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
475         * config/i386/sse.md
476         (define_expand "mul<mode>3<mask_name>"): Add masking.
478 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
479             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
480             Anna Tikhonova  <anna.tikhonova@intel.com>
481             Ilya Tocar  <ilya.tocar@intel.com>
482             Andrey Turetskiy  <andrey.turetskiy@intel.com>
483             Ilya Verbin  <ilya.verbin@intel.com>
484             Kirill Yukhin  <kirill.yukhin@intel.com>
485             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
487         * config/i386/sse.md
488         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
489         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
491 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
492             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
493             Anna Tikhonova  <anna.tikhonova@intel.com>
494             Ilya Tocar  <ilya.tocar@intel.com>
495             Andrey Turetskiy  <andrey.turetskiy@intel.com>
496             Ilya Verbin  <ilya.verbin@intel.com>
497             Kirill Yukhin  <kirill.yukhin@intel.com>
498             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
500         * config/i386/sse.md
501         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
502         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
503         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
504         Ditto.
506 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
507             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
508             Anna Tikhonova  <anna.tikhonova@intel.com>
509             Ilya Tocar  <ilya.tocar@intel.com>
510             Andrey Turetskiy  <andrey.turetskiy@intel.com>
511             Ilya Verbin  <ilya.verbin@intel.com>
512             Kirill Yukhin  <kirill.yukhin@intel.com>
513             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
515         * config/i386/sse.md
516         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
517         use VF_128_256 mode iterator and update assembler emit code.
518         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
519         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
520         Add masking, use VF_128_256 mode iterator.
521         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
522         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
523         Add masking, use VF_128_256 mode iterator and update assembler emit
524         code.
525         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
526         (define_mode_attr avx512flogicsuff): Delete.
527         (define_insn "avx512f_<logic><mode>"): Ditto.
528         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
529         MODE_TI.
530         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
532 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
533             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
534             Anna Tikhonova  <anna.tikhonova@intel.com>
535             Ilya Tocar  <ilya.tocar@intel.com>
536             Andrey Turetskiy  <andrey.turetskiy@intel.com>
537             Ilya Verbin  <ilya.verbin@intel.com>
538             Kirill Yukhin  <kirill.yukhin@intel.com>
539             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
541         * config/i386/sse.md
542         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
543         (define_expand "vashr<mode>3<mask_name>"): Add masking,
544         use VI12_128 mode iterator.
545         (define_expand "ashrv2di3<mask_name>"): New.
547 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
548             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
549             Anna Tikhonova  <anna.tikhonova@intel.com>
550             Ilya Tocar  <ilya.tocar@intel.com>
551             Andrey Turetskiy  <andrey.turetskiy@intel.com>
552             Ilya Verbin  <ilya.verbin@intel.com>
553             Kirill Yukhin  <kirill.yukhin@intel.com>
554             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
556         * config/i386/i386.c
557         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
558         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
559         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
560         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
561         CODE_FOR_avx512vl_ucmpv4si3_mask.
562         * config/i386/sse.md
563         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
564         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
565         (define_insn
566         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
567         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
568         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
569         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
570         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
571         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
573 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
574             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
575             Anna Tikhonova  <anna.tikhonova@intel.com>
576             Ilya Tocar  <ilya.tocar@intel.com>
577             Andrey Turetskiy  <andrey.turetskiy@intel.com>
578             Ilya Verbin  <ilya.verbin@intel.com>
579             Kirill Yukhin  <kirill.yukhin@intel.com>
580             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
582         * config/i386/sse.md
583         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
584         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
585         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
586         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
587         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
588         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
589         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
590         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
591         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
593 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
594             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
595             Anna Tikhonova  <anna.tikhonova@intel.com>
596             Ilya Tocar  <ilya.tocar@intel.com>
597             Andrey Turetskiy  <andrey.turetskiy@intel.com>
598             Ilya Verbin  <ilya.verbin@intel.com>
599             Kirill Yukhin  <kirill.yukhin@intel.com>
600             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
602         * config/i386/sse.md
603         (define_insn "avx512f_blendm<mode>"): Delete.
604         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
605         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
606         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
607         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
608         (define_insn
609         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
610         Remove.
611         (define_insn
612         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
613         New.
614         (define_insn
615         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
616         Ditto.
617         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
618         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
619         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
620         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
621         Delete.
622         (define_insn
623         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
624         New.
625         (define_insn
626         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
627         Ditto.
628         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
629         Delete.
630         (define_insn
631         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
632         New.
633         (define_insn
634         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
635         Ditto.
637 2014-10-14  Richard Biener  <rguenther@suse.de>
639         PR tree-optimization/63512
640         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
641         modified.
643 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
645         PR target/63260
646         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
647         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
648         of FPSCR.
649         (negsf2_i): Rename to *negsf2_i.
650         (abssf2_i): Rename to *abssf2_i.
651         (negdf2_i): Rename to *negdf2_i.
652         (absdf2_i): Rename to *absdf2_i.
654 2014-10-14  Felix Yang  <felix.yang@huawei.com>
655             Jeff Law  <law@redhat.com>
657         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
658         "replace" into boolean bitfields; turn member "loop_depth" into a short
659         integer; add new member "no_equiv" and "reserved".
660         (no_equiv): Set no_equiv of struct equivalence if register is marked
661         as having no known equivalence.
662         (update_equiv_regs): Check all definitions for a multiple-set
663         register to make sure that the RHS have the same value.
665 2014-10-13  Richard Henderson  <rth@redhat.com>
667         * combine-stack-adj.c (no_unhandled_cfa): New.
668         (maybe_merge_cfa_adjust): New.
669         (combine_stack_adjustments_for_block): Use them.
671 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
673         * Makefile.in (TAGS): Tag ../include files.
675 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
677         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
678         to rs6000_dbx_register_number.
679         (DWARF_FRAME_REGNUM): Redefine as identity map.
680         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
681         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
682         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
683         argument to handle .debug_frame and .eh_frame directly.  Always
684         translate SPE high register numbers.  Add special treatment for CR,
685         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
687         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
688         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
689         (RS6000_USE_DWARF_NUMBERING): Define.
690         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
691         (RS6000_USE_DWARF_NUMBERING): Define.
692         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
693         (RS6000_USE_DWARF_NUMBERING): Define.
694         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
695         (RS6000_USE_DWARF_NUMBERING): Define.
696         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
697         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
699 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
701         * config/i386/i386.c (ix86_address_cost): Lower cost for
702         when address contains GOT register.
704 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
705             Vladimir Makarov  <vmakarov@redhat.com>
707         PR target/8340
708         PR middle-end/47602
709         PR rtl-optimization/55458
710         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
711         (ix86_init_pic_reg): New.
712         (ix86_select_alt_pic_regnum): Add check on pseudo register.
713         (ix86_save_reg): Likewise.
714         (ix86_expand_prologue): Remove PIC register initialization
715         now performed in ix86_init_pic_reg.
716         (ix86_output_function_epilogue): Add check on pseudo register.
717         (set_pic_reg_ever_alive): New.
718         (legitimize_pic_address): Replace df_set_regs_ever_live with new
719         set_pic_reg_ever_alive.
720         (legitimize_tls_address): Likewise.
721         (ix86_pic_register_p): New check.
722         (ix86_delegitimize_address): Add check on pseudo register.
723         (ix86_expand_call): Insert move from pseudo PIC register to ABI
724         defined REAL_PIC_OFFSET_TABLE_REGNUM.
725         (TARGET_INIT_PIC_REG): New.
726         (TARGET_USE_PSEUDO_PIC_REG): New.
727         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
728         if pic_offset_table_rtx exists.
729         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
730         Document.
731         * doc/tm.texi: Regenerate.
732         * function.c (assign_parms): Generate pseudo register for PIC.
733         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
734         register.
735         * ira-color.c (color_pass): Add check on pseudo register.
736         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
737         register.
738         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
739         register.
740         (ira): Add target specific PIC register initialization.
741         (do_reload): Keep PIC pseudo register.
742         * lra-assigns.c (spill_for): Add checks on pseudo register.
743         * lra-constraints.c (contains_symbol_ref_p): New.
744         (lra_constraints): Enable lra risky transformations when PIC is pseudo
745         register.
746         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
747         * target.def (use_pseudo_pic_reg): New.
748         (init_pic_reg): New.
750 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
752         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
753         Remove m_SILVERMONT and m_INTEL from the tune.
755 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
757         PR libfortran/63471
758         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
759         when _HPUX_SOURCE is defined.
761 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
763         PR tree-optimization/62127
764         * tree.c (remap_type_1): When remapping array, remap
765         also its type.
767 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
769         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
770         longer impact parallelization.
772 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
774         PR bootstrap/63496
775         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
777 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
779         * asan.c (instrument_derefs): BIT_FIELD_REF added.
781 2014-10-13  Richard Biener  <rguenther@suse.de>
783         PR tree-optimization/63419
784         * gimple-fold.h (gimple_convert): New function.
785         * gimple-fold.c (gimple_convert): Likewise.
786         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
787         to split out required conversions early.
789 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
791         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
792         Add the parts of an insn in reverse order, with the pattern at
793         the top of the queue.  Detect when we're iterating over a SEQUENCE
794         pattern and in that case just consider patterns of subinstructions.
796 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
798         PR target/59401
799         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
800         of rtx.
801         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
802         insn walking.
803         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
804         address.  Use def chains to handle GBR clobbering call insns.
806 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
808         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
809         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
810         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
811         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
812         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
813         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
814         * doc/gty.texi (for_user): Document new option.
815         * gengtype.c (create_user_defined_type): Don't try to get a struct for
816         char.
817         (walk_type): Don't error out on for_user option.
818         (write_func_for_structure): Emit user marking routines if requested by
819         for_user option.
820         (write_local_func_for_structure): Likewise.
821         (main): Mark types with for_user option as used.
822         * ggc.h (gt_pch_nx): Add overload for unsigned int.
823         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
824         * hash-table.h (ggc_hasher): New struct.
825         (hash_table::create_ggc): New function.
826         (gt_pch_nx): New overload for hash_table.
828 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
830         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
831         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
832         * config/sh/sh.c: Likewise.
833         * config/sh/sh-mem.cc: Likewise.
834         * config/sh/sh.md: Likewise.
835         * config/sh/predicates.md: Likewise.
836         * config/sh/sync.md: Likewise.
838 2014-10-11  Martin Liska  <mliska@suse.cz>
840         PR middle-end/63376
841         * cgraphunit.c (symbol_table::process_new_functions): Missing call
842         for call_cgraph_insertion_hooks added.
844 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
846         PR c/63495
847         * stor-layout.c (min_align_of_type): Don't decrease alignment
848         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
849         TYPE_USER_ALIGN is set.
851 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
853         PR rtl-optimization/63483
854         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
855         references when alignment ANDs are involved.
856         (write_dependence_p): Ditto.
857         (may_alias_p): Ditto.
859 2014-10-10  Marek Polacek  <polacek@redhat.com>
861         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
862         * doc/invoke.texi: Document -fsanitize=object-size.
863         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
864         or it into SANITIZE_UNDEFINED.
865         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
866         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
867         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
868         * opts.c (common_handle_option): Handle -fsanitize=object-size.
869         * ubsan.c: Include tree-object-size.h.
870         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi. 
871         (ubsan_expand_bounds_ifn): Use false instead of 0.
872         (ubsan_expand_objsize_ifn): New function.
873         (instrument_object_size): New function.
874         (pass_ubsan::execute): Add object size instrumentation.
875         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
877 2014-10-10  Richard Henderson  <rth@redhat.com>
879         PR target/63404
880         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
881         Restrict the set of expressions we're willing to move.
883 2014-10-10  Jeff Law  <law@redhat.com>
885         * ira.c (struct equivalence): Promote INIT_INSNs field to
886         an rtx_insn_list.  Add comments.
887         (no_equiv): Promote LIST to an rtx_insn_list.  Update
888         testing for and creating the special marker.  Use methods
889         to extract the insn and next pointers.  Promote INSN to an
890         rtx_insn.
891         (update_equiv_regs): Update test for special marker in the
892         INIT_INSNs list.
894 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
896         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
897         * configure: Regenerate.
898         * config/aarch64/aarch64.c (aarch64_override_options): Handle
899         TARGET_FIX_ERR_A53_835769_DEFAULT.
900         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
901         value to 2.
902         * doc/install.texi (aarch64*-*-*): Document 
903         new --enable-fix-cortex-a53-835769 option.
905 2014-10-10  Kyrylo Tkachov<kyrylo.tkachov@arm.com>
906             Ramana Radhakrishnan<ramana.radhakrishnan@arm.com>
908         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
909         (ADJUST_INSN_LENGTH): Define.
910         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
911         * config/aarch64/aarch64.c (is_mem_p): New function.
912         (is_memory_op): Likewise.
913         (aarch64_prev_real_insn): Likewise.
914         (is_madd_op): Likewise.
915         (dep_between_memop_and_curr): Likewise.
916         (aarch64_madd_needs_nop): Likewise.
917         (aarch64_final_prescan_insn): Likewise.
918         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
919         and -mno-fix-cortex-a53-835769 options.
921 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
923         PR tree-optimization/63464
924         * tree-switch-conversion.c (struct case_bit_test): Remove
925         hi and lo fields, add wide_int mask field.
926         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
927         hi/lo fields into wide_int mask operations, optimize by pretending
928         minval to be 0 if maxval is small enough.
929         (process_switch): Adjust caller.
931 2014-10-10  Richard Biener  <rguenther@suse.de>
933         PR tree-optimization/63379
934         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
935         a neutral operand for min/max when it is not a reduction chain.
937 2014-10-10  Richard Biener  <rguenther@suse.de>
939         PR tree-optimization/63476
940         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
941         (BB_LIVE_VOP_ON_EXIT): New define.
942         (create_expression_by_pieces): Assign VUSEs to stmts.
943         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
944         (pass_pre::execute): Assert virtual SSA form is up-to-date
945         after insertion.
947 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
949         * lra-assigns.c (assign_by_spills): Error out on spill failure.
951 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
953         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
954         assertion.
956 2014-10-09  Richard Biener  <rguenther@suse.de>
958         PR tree-optimization/63380
959         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
960         may trap.
962 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
964         * config/avr/avr.opt (mmcu=): Change to have a string value.
965         (mn-flash=, mskip-bug, march=, mrmw): New options.
966         (HeaderInclude): New.
967         (mmcu=): Remove Var / Init clauses.
968         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
969         -specs option.
970         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
971         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
972         (SYMBOL_FLAG_IO_LOW): Define.
973         (avr_device_to_as, avr_device_to_ld): Don't declare.
974         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
975         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
976         (EXTRA_SPEC_FUNCTIONS): Don't define.
977         (ASM_SPEC): Translate -arch= option to -mmcu= option.
978         (LINK_SPEC): Translate -arch= option to -m= option.
979         Don't use device_to_ld / device_to_data_start.
980         (STARTFILE_SPEC): Now empty.
981         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
982         * config/avr/gen-avr-mmcu-specs.c: New file.
983         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
984         (s-device-specs): Likewise.
985         (GCC_PASSES): Add s-device-specs.
986         (install-driver): Depend on install-device-specs.
987         (install-device-specs): New rule.
988         * config/avr/avr.c (avr_option_override): Look up mcu arch by
989         avr_arch_index and provide fallback initialization for avr_n_flash.
990         (varasm.h): #include.
991         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
992         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
993         (avr_attribute_table): Add "io", "address" and "io_low".
994         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
995         Add special handling for symbols with "io" and/or "address" attributes.
996         (avr_asm_asm_output_aligned_bss): New function.
997         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
998         as appropriate.  Handle io_low attribute.
999         (avr_out_sbxx_branch): Handle symbolic io addresses.
1000         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
1001         avr_n_flash instead of avr_current_device->n_flash.
1002         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
1003         (avr_emit_movmemhi): Likewise.
1004         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
1005         Use TARGET_RMW instead of avr_current_device->dev_attributes.
1006         Don't define avr_current_device->macro (that's the specfile's job).
1007         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
1008         * config/avr/avr.c (avr_2word_insn_p): Likewise.
1009         * config/avr/avr.md (*cpse.ne): Likewise.
1010         (mov<mode>): Use avr_eval_addr_attrib.
1011         (cbi): Change constraint for low_io_address_operand operand to "i".
1012         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
1013         * config/avr/predicates.md (io_address_operand):
1014         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
1015         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
1016         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
1017         Update prototype.
1018         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
1019         * config/avr/genmultilib.awk: Use -march=.
1020         Remove Multilib matches processing.
1021         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
1022         * config/avr/avr-arch.h: Add double include guard.
1023         (avr_mcu_t) <library_name>: Update comment.
1024         * config/avr/driver-avr.c (avr_device_to_as): Delete.
1025         (avr_device_to_ld, avr_device_to_data_start): Likewise.
1026         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
1027         (avr_device_to_sp8): Likewise.
1028         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
1030         * doc/extend.texi (io, address): Document new AVR variable attributes.
1031         (io_low): Likewise.
1033 2014-10-09  Marek Polacek  <polacek@redhat.com>
1035         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
1037 2014-10-08  Richard Biener  <rguenther@suse.de>
1039         PR tree-optimization/61969
1040         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
1041         variables.
1043 2014-10-09  Richard Biener  <rguenther@suse.de>
1045         PR tree-optimization/63445
1046         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
1047         overflow for non-equality compares.
1049 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
1051         PR rtl-optimization/57003
1052         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1053         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
1054         killing regs_invalidated_by_call.
1056 2014-10-08  Teresa Johnson  <tejohnson@google.com>
1058         PR bootstrap/63432.
1059         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
1060         (ssa_fix_duplicate_block_edges): Invoke it.
1061         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
1063 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
1065         PR target/52941
1066         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1067         atomic_fetch_<fetchop_name>si_hard,
1068         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
1069         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
1070         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
1071         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
1073 2014-10-08  Rong Xu  <xur@google.com>
1075         * gcov-tool.c (profile_overlap): New driver function
1076         to compute profile overlap. 
1077         (print_overlap_usage_message): New.
1078         (overlap_usage): New.
1079         (do_overlap): New.
1080         (print_usage): Add calls to overlap function.
1081         (main): Ditto.
1082         * doc/gcov-tool.texi: Add documentation.
1084 2014-10-08  Steve Ellcey  <sellcey@mips.com>
1086         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
1087         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
1089 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
1091         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
1092         pattern matching of MEM_REF.
1093         (check_stmt_for_type_change): Update.
1095 2014-10-08  Steve Ellcey  <sellcey@mips.com>
1097         * config/mips/linux64.h: Remove.
1098         * config/mips/gnu-user64.h: Remove.
1099         * gcc.config (mips*-*-*): Remove references to linux64.h and
1100         gnu-user64.h
1101         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
1102         with modified version from gnu-user64.h.
1103         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
1104         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
1105         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
1106         linux64.h.
1107         (GNU_USER_LINK_EMULATION64): Ditto.
1108         (GNU_USER_LINK_EMULATIONN32): Ditto.
1109         (GLIBC_DYNAMIC_LINKER32): Ditto.
1110         (GLIBC_DYNAMIC_LINKER64): Ditto.
1111         (GLIBC_DYNAMIC_LINKERN32): Ditto.
1112         (UCLIBC_DYNAMIC_LINKER32): Ditto.
1113         (UCLIBC_DYNAMIC_LINKER64): Ditto.
1114         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
1115         (BIONIC_DYNAMIC_LINKERN32): Ditto.
1116         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
1117         (GLIBC_DYNAMIC_LINKER): Delete.
1118         (UCLIBC_DYNAMIC_LINKER): Delete.
1120 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1121             Richard Biener  <rguenther@suse.de>
1123         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
1124         Get address space from operand 0 (BASE).
1126 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
1128         PR target/61387
1129         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
1131 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
1133         * dwarf2out.c: Remove current_function_has_inlines.
1134         (gen_subprogram_die): Same.
1135         (gen_inlined_subroutine_die): Same.
1137 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
1139         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
1140         type.
1141         (_addcarry_u64): Ditto.
1142         (_addcarryx_u64): Ditto.
1144 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
1146         * cgraph.h (cgraph_node::get_fun): Declare.
1147         * cgraph.c (cgraph_node::get_fun): New method.
1148         * ipa-inline.c (can_inline_edge_p): Use it.
1150 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
1152         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
1153         and -ftrapping-math.
1154         * lto-wrapper.c (merge_and_complain): Likewise.
1155         (run_gcc): Likewise.
1157 2014-10-06  Rong Xu  <xur@google.com>
1159         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
1160         * tree-profile.c: (params.h): New include.
1161         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
1162         and __gcov_indirect_call_topn_counters for
1163         indirect_call_topn_profile.
1164         (gimple_init_edge_profiler): New decls for
1165         __gcov_indirect_call_topn_profiler.
1166         (gimple_gen_ic_profiler): Generate the correct profiler call.
1167         (gimple_gen_ic_func_profiler): Fix format.
1168         * value-prof.c (params.h): New include.
1169         (dump_histogram_value): Hanlde indirect_call_topn counters.
1170         (stream_in_histogram_value): Ditto.
1171         (gimple_indirect_call_to_profile): Use indirect_call_topn
1172         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
1173         (gimple_find_values_to_profile): Hanlde indirect_call_topn
1174         counters.
1175         * value-prof.h (enum hist_type): Histrogram type for
1176         indirect_call_topn counters.
1177         * profile.c (instrument_values): Instrument
1178         indirect_call_topn counters.
1180 2014-10-06  Rong Xu  <xur@google.com>
1182         * Makefile.in: Fix dependence.
1183         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
1184         indirect call topn profiler.
1185         * gcov-io.h: Ditto.
1187 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1189         * calls.c (expand_call): Do not use the target as the return slot if
1190         it is not sufficiently aligned.
1192 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1194         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
1195         discussion of permutes and why we don't handle them.
1197 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1199         * config/sparc/predicates.md (int_register_operand): Delete.
1201 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1203         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
1205 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
1207         * ubsan.h (ubsan_get_source_location): New prototype.
1208         * ubsan.c (ubsan_source_location_type): New variable.
1209         Function renamed to ...
1210         (ubsan_get_source_location_type): ... this.  Cache
1211         return value in ubsan_source_location_type variable.
1212         (ubsan_source_location, ubsan_create_data): Use
1213         ubsan_get_source_location_type instead of
1214         ubsan_source_location_type.
1215         * asan.c (asan_protect_global): Don't protect globals
1216         with ubsan_get_source_location_type () type.
1217         (asan_add_global): Provide global decl location info
1218         if possible.
1220 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
1222         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
1223         sanity check.
1225 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
1227         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
1228         on size.
1229         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
1230         into vptr pointer.
1231         (ipa_polymorphic_call_context::dump): Fix formating.
1232         (walk_ssa_copies): Add logic avoiding loops; update uses.
1233         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
1235 2014-10-02  Mark Wielaard  <mjw@redhat.com>
1237         PR debug/63239
1238         * dwarf2out.c (gen_subprogram_die): When a member function is
1239         explicitly deleted then add a DW_AT_GNU_deleted attribute.
1240         * langhooks.h (struct lang_hooks_for_decls): Add
1241         function_decl_deleted_p langhook.
1242         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
1243         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
1245 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
1247         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
1248         NULL pointer checks.
1249         (ipa_polymorphic_call_context::get_dynamic_type): Return true
1250         if type doesn't change.
1251         * cgraph.h (cgraph_indirect_call_info): New flag.
1252         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
1253         (cgraph_node::dump): Dump it.
1254         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
1255         of context.get_dynamic_type.
1256         (ipa_make_edge_direct_to_target): Do not speculate
1257         edge that is already speuclative.
1258         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
1259         speculate to __builtin_unreachable
1260         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
1261         vptr_changed.
1262         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
1264 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
1266         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
1267         get_dynamic_type; drop TODO.
1268         * ipa-polymorphic-call.c
1269         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
1270         for otr_type to be unknown.
1272 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
1274         * common/config/score/score-common.c: Remove.
1275         * config.gcc: Remove support for score-*.
1276         * config/score/constraints.md: Remove.
1277         * config/score/elf.h: Remove.
1278         * config/score/predicates.md: Remove.
1279         * config/score/score-conv.h: Remove.
1280         * config/score/score-generic.md: Remove.
1281         * config/score/score-modes.def: Remove.
1282         * config/score/score-protos.h: Remove.
1283         * config/score/score.c: Remove.
1284         * config/score/score.h: Remove.
1285         * config/score/score.md: Remove.
1286         * config/score/score.opt: Remove.
1287         * doc/md.texi: Don't document score-*.
1289 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
1291         PR pch/63429
1292         * genconditions.c: Directly include ggc.h before rtl.h.
1294 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
1296         * ipa-polymorphic-call.c
1297         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
1298         code determining speculative type.
1299         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
1301 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1303         * altivec.md (altivec_lvsl): New define_expand.
1304         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
1305         (altivec_lvsr): New define_expand.
1306         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
1307         * rs6000.c (rs6000_expand_builtin): Change to use
1308         altivec_lvs[lr]_direct; remove commented-out code.
1310 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1312         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1313         Issue a warning message when vec_lvsl or vec_lvsr is used with a
1314         little endian target.
1316 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1318         * tree-pretty-print.c (dump_location): Make it extern. Dump also
1319         the column.
1320         * tree-pretty-print.h (dump_location): Declare.
1321         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
1322         (pp_gimple_stmt_1): Likewise.
1323         (dump_implicit_edges): Likewise.
1324         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
1325         LOCATION_LINE.
1328 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
1330         * gcc.c (driver::global_initializations): Remove "const" so
1331         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
1332         and decoded_options_count.
1334 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1336         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
1337         macro.
1338         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
1339         TARGET_E500_DOUBLE case here.
1341 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
1343         PR c++/54427
1344         PR c++/57198
1345         PR c++/58845
1346         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
1348 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
1350         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
1351         * lto-cgraph.c (lto_output_edge, input_edge): Stream
1352         in_polymorphic_cdtor
1353         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
1354         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
1355         * cgraphclones.c (cgraph_edge::clone): Likewise.
1356         * ipa-prop.c (update_jump_functions_after_inlining,
1357         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
1358         to possible_dynamic_type_change.
1359         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
1360         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
1361         IN_POLY_CDOTR argument.
1363         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
1364         for BASE and OUTER_TYPE being NULL.
1365         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
1366         in_poly_cdtor parameter.
1368 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
1370         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
1371         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
1372         TARGET_AVX512F.
1373         (expand_vec_perm_1): Likewise.
1375 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
1376             Uros Bizjak  <ubizjak@gmail.com>
1378         PR tree-optimization/61403
1379         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
1380         error in comment.  Also optimize 256-bit vectors for AVX2
1381         or AVX (floating vectors only), provided the first permutation
1382         can be performed in one insn.
1384 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
1386         * gcc.c (class driver): New class.
1387         (main): Reimplement in terms of driver::main, moving most of the
1388         locals to be locals within individual methods of class driver.
1389         The remaining locals "explicit_link_files", "decoded_options" and
1390         "decoded_options_count" are used by multiple driver:: methods, and
1391         so become member data.  Doing so isolates the argc/argv reads and
1392         writes.  Replace "goto out" with a special exit code from
1393         new method driver::prepare_infiles.  Split out the old
1394         implementation of main into the following...
1395         (driver::main): New function, corresponding to the old "main"
1396         implementation.
1397         (driver::set_progname): New function, taken from the old
1398         "main" implementation.
1399         (driver::expand_at_files): Likewise.
1400         (driver::decode_argv): Likewise.
1401         (driver::global_initializations): Likewise.
1402         (driver::build_multilib_strings): Likewise.
1403         (driver::set_up_specs): Likewise.
1404         (driver::putenv_COLLECT_GCC): Likewise.
1405         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
1406         (driver::handle_unrecognized_options): Likewise.
1407         (driver::maybe_print_and_exit): Likewise.
1408         (driver::prepare_infiles): Likewise.
1409         (driver::do_spec_on_infiles): Likewise.
1410         (driver::maybe_run_linker): Likewise.
1411         (driver::final_actions): Likewise.
1412         (driver::get_exit_code): Likewise.
1414 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
1416         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
1417         don't emit empty ctors.
1419 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
1421         * convert.c (convert_to_integer): Do not introduce useless conversions
1422         between integral types.
1424 2014-10-03  David Sherwood  <david.sherwood@arm.com>
1426         * ira-int.h (ira_allocno): Mark hard_regno as signed.
1428 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
1430         * lra-constraints.c (inherit_in_ebb): Handle calls with
1431         multiple return values.
1432         * caller-save.c (save_call_clobbered_regs): Likewise.
1434 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
1436         * tree-vect-data-refs.c (vect_permute_load_chain,
1437         vect_shift_permute_load_chain): Fix a typo in temporary var names,
1438         suffle3 to shuffle3.
1440         PR libgomp/61200
1441         * omp-low.c (taskreg_contexts): New variable.
1442         (scan_omp_parallel): Push newly created context into taskreg_contexts
1443         vector and move record layout code to finish_taskreg_scan.
1444         (scan_omp_task): Likewise.
1445         (finish_taskreg_scan): New function.
1446         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
1447         vector elements and release it.
1449         PR target/62128
1450         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
1451         of palignr arguments can't be used due to min 0 or max - min
1452         too high, try also op0, op1 order of palignr arguments.
1454 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
1456         * cgraph.h (ipa_polymorphic_call_context):
1457         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
1458         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
1459         * ipa-polymorphic-call.c
1460         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
1461         past end of dynamic types.
1462         (ipa_polymorphic_call_context::stream_out,
1463         speculative_outer_type): Stream dynamic flag.
1464         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
1465         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
1466         Clear DYNAMIC.
1467         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
1468         set it.
1469         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
1470         * ipa-prop.c (update_jump_functions_after_inlining,
1471         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
1473 2014-10-02  Teresa Johnson  <tejohnson@google.com>
1475         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
1476         up when synthesizing counts to avoid rounding errors.
1478 2014-10-02  Teresa Johnson  <tejohnson@google.com>
1480         PR middle-end/63422
1481         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
1482         asserts to handle incoming insanities.
1484 2014-10-02  Martin Jambor  <mjambor@suse.cz>
1486         PR tree-optimization/63375
1487         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
1488         references.
1490 2014-10-02  Olivier Hainque  <hainque@adacore.com>
1492         * Makefile.in (CROSS): Define, to @CROSS.
1494 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
1496         PR target/62128
1497         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
1498         if it expands to a single insn only.
1499         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
1500         fail unless in_order is true.  Add forward declaration.
1501         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
1502         is useful for one_operand_p.
1503         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
1505 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
1507         * cgraphclones.c (build_function_type_skip_args): Do not make new
1508         type variant of old.
1510 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
1512         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
1513         when speculation is added.
1514         (ipa_edge_args): Add polymorphic_call_contexts.
1515         (ipa_get_ith_polymorhic_call_context): New accesor.
1516         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
1517         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
1518         (ipa_compute_jump_functions_for_edge): Compute contexts.
1519         (update_jump_functions_after_inlining): Update contexts.
1520         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
1521         update dumping; add speculative edge creation.
1522         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
1523         context updating.
1524         (update_indirect_edges_after_inlining): Pass down context.
1525         (ipa_edge_duplication_hook): Duplicate contexts.
1526         (ipa_write_node_info): Stream out contexts.
1527         (ipa_read_node_info): Stream in contexts.
1528         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
1529         types.
1530         (try_speculative_devirtualization): New function.
1531         * ipa-utils.h (try_speculative_devirtualization): Declare.
1533 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
1535         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
1536         dumping during WPA.
1538 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
1540         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
1541         type variants.
1543 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
1545         * ipa-polymorphic-call.c
1546         (ipa_polymorphic_call_context::restrict_to_inner_class):
1547         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
1548         use speculation_consistent_p to do so; Add CONSDER_BASES
1549         and CONSIDER_PLACEMENT_NEW parameters.
1550         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
1551         short circuit obvious cases.
1552         (ipa_polymorphic_call_context::dump): Improve formatting.
1553         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
1554         combine_speculation_with to record speculations; Do not ICE when
1555         object is located in pointer type decl; do not ICE for methods
1556         of UNION_TYPE; do not record nonpolymorphic types.
1557         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
1558         (ipa_polymorphic_call_context::combine_speculation_with): New method.
1559         (ipa_polymorphic_call_context::combine_with): New method.
1560         (ipa_polymorphic_call_context::make_speculative): Move here; use
1561         combine speculation.
1562         * cgraph.h (ipa_polymorphic_call_context): Update
1563         restrict_to_inner_class prototype; add offset_by, make_speculative,
1564         combine_with, useless_p, combine_speculation_with and
1565         speculation_consistent_p methods.
1566         (ipa_polymorphic_call_context::offset_by): New method.
1567         (ipa_polymorphic_call_context::useless_p): New method.
1569 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1571         PR rtl-optimization/62151
1572         * combine.c (can_combine_p): Allow the destination register of INSN
1573         to be clobbered in I3.
1574         (subst): Do not substitute into clobbers of registers.
1576 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
1578         PR debug/63342
1579         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
1580         offset, TARGET_MEM_REF and SSA_NAME.
1582         * config/i386/i386.c (expand_vec_perm_palignr): Handle
1583         256-bit vectors for TARGET_AVX2.
1585         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
1586         dfirst permutation.
1588         PR target/63428
1589         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
1590         argument to avx2_permv2ti.
1592 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1594         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
1596 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
1598         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
1599         (fmod<mode>3): Ditto.
1600         (fpremxf4_i387): Ditto.
1601         (reminderxf3): Ditto.
1602         (reminder<mode>3): Ditto.
1603         (fprem1xf4_i387): Ditto.
1605 2014-09-30  Teresa Johnson  <tejohnson@google.com>
1607         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
1608         duplicate_blocks bitmap.
1609         (remove_ctrl_stmt_and_useless_edges): Ditto.
1610         (create_block_for_threading): Ditto.
1611         (compute_path_counts): New function.
1612         (update_profile): Ditto.
1613         (recompute_probabilities): Ditto.
1614         (update_joiner_offpath_counts): Ditto.
1615         (freqs_to_counts_path): Ditto.
1616         (clear_counts_path): Ditto.
1617         (ssa_fix_duplicate_block_edges): Update profile info.
1618         (ssa_create_duplicates): Pass new parameter.
1619         (ssa_redirect_edges): Remove old profile update.
1620         (thread_block_1): New duplicate_blocks bitmap,
1621         remove old profile update.
1622         (thread_single_edge): Pass new parameter.
1624 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
1626         PR middle-end/62120
1627         * varasm.c (decode_reg_name_and_count): Check availability for
1628         registers from ADDITIONAL_REGISTER_NAMES.
1630 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
1632         PR plugins/63410
1633         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
1634         (PLUGIN_HEADERS): Add pass-instances.def.
1636 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
1638         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
1639         iterator.
1640         * config/aarch64/aarch64-simd.md
1641         (aarch64_sqdmull_laneq<mode>): Expand iterator.
1642         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
1643         (vqdmulls_lane_s32): Fix return type.
1644         (vqdmulls_laneq_s32): New.
1646 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
1648         PR inline-asm/63282
1649         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
1650         or invert_jump_1 if jump isn't any_condjump_p.
1652 2014-09-30  Terry Guo  <terry.guo@arm.com>
1654         * config/arm/arm-cores.def (cortex-m7): New core name.
1655         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
1656         (fpv5-d16): Ditto.
1657         * config/arm/arm-tables.opt: Regenerated.
1658         * config/arm/arm-tune.md: Regenerated.
1659         * config/arm/arm.h (TARGET_VFP5): New macro.
1660         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
1661         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
1662         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
1663         * doc/invoke.texi: Document new cpu and fpu names.
1665 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
1667         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
1668         before sinking insn.
1670 2014-09-30  David Sherwood  <david.sherwood@arm.com>
1672         * ira-int.h (ira_allocno): Add "wmode" field.
1673         * ira-build.c (create_insn_allocnos): Add new "parent" function
1674         parameter.
1675         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
1676         that cannot be accessed in wmode.
1678 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
1680         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
1681         integer overflow.
1683 2014-09-29  Andi Kleen  <ak@linux.intel.com>
1685         * opts.c (print_filtered_help): Print --param min/max/default
1686         with -Q.
1688 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1690         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
1692 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
1694         * tree-vrp.c (get_single_symbol): New function.
1695         (build_symbolic_expr): Likewise.
1696         (symbolic_range_based_on_p): New predicate.
1697         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
1698         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
1699         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
1700         operand is symbolic and based on the other operand.
1702 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
1704         * config/microblaze/microblaze.md (call_internal1): Use VOID
1705         instead of SI to fix "((void (*)(void)) 0)()" issue
1707 2014-09-29  Nick Clifton  <nickc@redhat.com>
1709         * config/msp430/msp430.c (msp430_expand_prologue): Return a
1710         CLOBBER rtx for naked functions.
1711         (msp430_expand_epilogue): Likewise.
1712         (msp430_use_f5_series_hwmult): Cache result.
1713         (use_32bit_hwmult): Cache result.
1714         (msp430_no_hwmult): New function.
1715         (msp430_output_labelref): Use it.
1717 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
1719         PR middle-end/63247
1720         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
1721         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
1722         use the alignment of avar rather than ovar.
1724 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
1726         * config/pa/pa.c (pa_output_function_epilogue): Only update
1727         last_address when a nonnote insn is found.
1729 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
1731         PR ipa/60665
1732         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
1734 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
1736         PR ipa/62121
1737         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
1738         fix pasto in checking array size.
1740 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
1742         PR middle-end/35545
1743         * passes.def (pass_tracer): Move before last dominator pass.
1745 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
1747         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
1748         users.
1749         (run_attempt): Handle errors of "pex_run" invocation.
1751 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
1753         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
1754         (CC1_SPEC): Define.
1755         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
1756         (TARGET_ASAN_SHADOW_OFFSET): Define.
1758 2014-09-26  Martin Liska  <mliska@suse.cz>
1760         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
1761         introduced.
1762         * cgraph.h: Likewise.
1763         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
1764         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
1765         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
1766         * tree-ssa-alias.h: Likewise.
1768 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
1769             Max Ostapenko  <m.ostapenko@partner.samsung.com>
1771         * common.opt: New option.
1772         * doc/invoke.texi: Describe new option.
1773         * gcc.c (execute): Don't free first string early, but at the end
1774         of the function.  Call retry_ice if compiler exited with
1775         ICE_EXIT_CODE.
1776         (main): Factor out common code.
1777         (print_configuration): New function.
1778         (files_equal_p): Likewise.
1779         (check_repro): Likewise.
1780         (run_attempt): Likewise.
1781         (do_report_bug): Likewise.
1782         (append_text): Likewise.
1783         (try_generate_repro): Likewise
1785 2014-09-25  Andi Kleen  <ak@linux.intel.com>
1787         * config/i386/i386.c (x86_print_call_or_nop): New function.
1788         (x86_function_profiler): Support -mnop-mcount and
1789         -mrecord-mcount.
1790         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
1791         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
1793 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
1795         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
1796         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
1797         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
1798         Remove.
1800 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
1802         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
1803         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
1804         types_odr_comparable): Declare.
1805         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
1806         * ipa-polymorphic-call.c: New file.
1807         (contains_polymorphic_type_p, possible_placement_new,
1808         ipa_polymorphic_call_context::restrict_to_inner_class,
1809         contains_type_p, decl_maybe_in_construction_p,
1810         ipa_polymorphic_call_context::stream_out,
1811         ipa_polymorphic_call_context::debug,
1812         ipa_polymorphic_call_context::stream_in,
1813         ipa_polymorphic_call_context::set_by_decl,
1814         ipa_polymorphic_call_context::set_by_invariant,
1815         walk_ssa_copies,
1816         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1817         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
1818         extr_type_from_vtbl_ptr_store, record_known_type
1819         check_stmt_for_type_change,
1820         ipa_polymorphic_call_context::get_dynamic_type): Move here from
1821         ipa-devirt.c
1822         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
1823         and streamer-hooks.h
1824         (contains_polymorphic_type_p, possible_placement_new,
1825         ipa_polymorphic_call_context::restrict_to_inner_class,
1826         contains_type_p, decl_maybe_in_construction_p,
1827         ipa_polymorphic_call_context::stream_out,
1828         ipa_polymorphic_call_context::debug,
1829         ipa_polymorphic_call_context::stream_in,
1830         ipa_polymorphic_call_context::set_by_decl,
1831         ipa_polymorphic_call_context::set_by_invariant,
1832         walk_ssa_copies,
1833         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
1834         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
1835         extr_type_from_vtbl_ptr_store, record_known_type
1836         check_stmt_for_type_change,
1837         ipa_polymorphic_call_context::get_dynamic_type): Move to
1838         ipa-polymorphic-call.c
1839         (type_all_derivations_known_p, types_odr_comparable,
1840         types_must_be_same_for_odr): Export.
1841         (type_known_to_have_no_deriavations_p): New function.
1842         * Makefile.in: Add ipa-polymorphic-call.c
1844 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
1846         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
1847         for better storage.
1848         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
1849         (possible_polymorphic_call_targets): Instead of computing both
1850         speculative and non-speculative answers, do just one at a time.
1851         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
1852         (dump_targets): Break out from ...
1853         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
1854         and non-speculative lists.
1855         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
1856         * ipa-utils.h (possible_polymorphic_call_targets): Update.
1858 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
1860         PR rtl-optimization/63348
1861         * emit-rtl.c (try_split): Do not emit extra barrier.
1863 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
1865         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
1866         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
1867         new predicates.
1868         (aarch64_<sur>shll2_n<mode>): Likewise.
1869         (aarch64_<sur>shr_n<mode>): Likewise.
1870         (aarch64_<sur>sra_n<mode>: Likewise.
1871         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
1872         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
1873         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
1874         * config/aarch64/iterators.md (ve_mode): New.
1875         (offsetlr): Remap to infix text for use in new predicates.
1876         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
1877         (aarch64_simd_shift_imm_hi): Likewise.
1878         (aarch64_simd_shift_imm_si): Likewise.
1879         (aarch64_simd_shift_imm_di): Likewise.
1880         (aarch64_simd_shift_imm_offset_qi): Likewise.
1881         (aarch64_simd_shift_imm_offset_hi): Likewise.
1882         (aarch64_simd_shift_imm_offset_si): Likewise.
1883         (aarch64_simd_shift_imm_offset_di): Likewise.
1884         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
1885         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
1886         (aarch64_simd_shift_imm_bitsize_si): Likewise.
1887         (aarch64_simd_shift_imm_bitsize_di): Likewise.
1889 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
1891         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
1892         new created BB as the intersection of live-in from "old_dest" and
1893         live-out from "bb".
1895 2014-09-25  Felix Yang  <felix.yang@huawei.com>
1897         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
1898         * genautomata.c (merge_states): Ditto.
1900 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
1902         PR target/62218
1903         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
1904         in instruction sequence.
1906 2014-09-25  Nick Clifton  <nickc@redhat.com>
1908         PR target/62218
1909         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
1910         in instruction sequence.
1912 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1914         PR target/63335
1915         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
1916         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
1918 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1919             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1920             Anna Tikhonova  <anna.tikhonova@intel.com>
1921             Ilya Tocar  <ilya.tocar@intel.com>
1922             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1923             Ilya Verbin  <ilya.verbin@intel.com>
1924             Kirill Yukhin  <kirill.yukhin@intel.com>
1925             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1927         * config/i386/sse.md
1928         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
1929         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
1930         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
1931         (define_expand "<avx512>_perm<mode>_mask"): ... this.
1932         Use VI8F_256_512 mode iterator.
1933         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
1934         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
1936 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1937             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1938             Anna Tikhonova  <anna.tikhonova@intel.com>
1939             Ilya Tocar  <ilya.tocar@intel.com>
1940             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1941             Ilya Verbin  <ilya.verbin@intel.com>
1942             Kirill Yukhin  <kirill.yukhin@intel.com>
1943             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1945         * config/i386/sse.md
1946         (define_insn "avx_movshdup256<mask_name>"): Add masking.
1947         (define_insn "sse3_movshdup<mask_name>"): Ditto.
1948         (define_insn "avx_movsldup256<mask_name>"): Ditto.
1949         (define_insn "sse3_movsldup<mask_name>"): Ditto.
1950         (define_insn "vec_dupv2df<mask_name>"): Ditto.
1951         (define_insn "*vec_concatv2df"): Add EVEX version.
1953 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1954             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1955             Anna Tikhonova  <anna.tikhonova@intel.com>
1956             Ilya Tocar  <ilya.tocar@intel.com>
1957             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1958             Ilya Verbin  <ilya.verbin@intel.com>
1959             Kirill Yukhin  <kirill.yukhin@intel.com>
1960             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1962         * config/i386/sse.md
1963         (define_insn "vec_set<mode>_0"): Add EVEX version.
1965 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1966             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1967             Anna Tikhonova  <anna.tikhonova@intel.com>
1968             Ilya Tocar  <ilya.tocar@intel.com>
1969             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1970             Ilya Verbin  <ilya.verbin@intel.com>
1971             Kirill Yukhin  <kirill.yukhin@intel.com>
1972             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1974         * config/i386/sse.md
1975         (define_insn
1976         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
1977         New.
1978         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
1979         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
1980         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
1981         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
1982         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
1983         (define_expand "sse2_cvtpd2ps_mask): New.
1984         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
1985         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
1987 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1988             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1989             Anna Tikhonova  <anna.tikhonova@intel.com>
1990             Ilya Tocar  <ilya.tocar@intel.com>
1991             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1992             Ilya Verbin  <ilya.verbin@intel.com>
1993             Kirill Yukhin  <kirill.yukhin@intel.com>
1994             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1996         * config/i386/i386.c
1997         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
1998         (ufix_notruncv8dfv8si2_mask_round): ... this.
1999         * config/i386/sse.md
2000         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
2001         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
2002         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
2003         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
2004         (define_expand "sse2_cvtpd2dq"): Delete.
2005         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
2006         make 2nd operand const0 vector.
2007         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
2008         Delete.
2009         (define_mode_attr pd2udqsuff): New.
2010         (define_insn
2011         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
2012         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
2013         (define_insn "*avx_cvttpd2dq256_2"): Delete.
2014         (define_expand "sse2_cvttpd2dq"): Ditto.
2015         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
2016         make 2nd operand const0 vector.
2018 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
2020         PR tree-optimization/63341
2021         * tree-vectorizer.h (vect_create_data_ref_ptr,
2022         vect_create_addr_base_for_vector_ref): Add another tree argument
2023         defaulting to NULL_TREE.
2024         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
2025         argument, pass it down to vect_create_addr_base_for_vector_ref.
2026         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
2027         add that to base_offset too if non-NULL.
2028         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
2029         for dr_explicit_realign_optimized set it to vector byte size
2030         - 1 instead of setting offset, pass byte_offset down to
2031         vect_create_data_ref_ptr.
2033 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
2035         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
2036         forgotten debug output; canonicalize querries more wtih LTO.
2038 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
2040         * cgraph.h (class ipa_polymorphic_call_context): Move here from
2041         ipa-utils.h; add stream_int and stream_out methods.
2042         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
2043         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
2044         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
2045         add CONTEXT.
2046         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2047         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2048         ipa_polymorphic_call_context::clear_speculation,
2049         ipa_polymorphic_call_context::clear_outer_type): Move here from
2050         ipa-utils.h
2051         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
2052         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2053         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2054         ipa_polymorphic_call_context::clear_speculation,
2055         ipa_polymorphic_call_context::clear_outer_type): Likewise.
2056         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
2057         streamer-hooks.h
2058         (ipa_polymorphic_call_context::stream_out): New method.
2059         (ipa_polymorphic_call_context::stream_in): New method.
2060         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
2061         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
2062         OUTER_TYPE.
2063         (ipa_analyze_call_uses): Simplify.
2064         (update_indirect_edges_after_inlining): Do not care about outer_type.
2065         (ipa_write_indirect_edge_info): Update.
2066         (ipa_write_indirect_edge_info): Likewise.
2067         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
2068         (dump_edge_flags): Break out from ...
2069         (cgraph_node::dump): ... here; dump indirect edges.
2071 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
2073         * ipa-utils.h (polymorphic_call_context): Add
2074         metdhos dump, debug and clear_outer_type.
2075         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
2076         (ipa_polymorphic_call_context::clear_outer_type): New method.
2077         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
2078         * ipa-devirt.c (types_odr_comparable): New function.
2079         (types_must_be_same_for_odr): New function.
2080         (odr_subtypes_equivalent_p): Simplify.
2081         (possible_placement_new): Break out from ...
2082         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
2083         be more cuatious about returning false in cases the context may be
2084         valid in derived type or via placement new.
2085         (contains_type_p): Clear maybe_derived_type
2086         (ipa_polymorphic_call_context::dump): New method.
2087         (ipa_polymorphic_call_context::debug): New method.
2088         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
2089         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
2090         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
2091         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
2092         to suceed on all valid cases; remove confused sanity check.
2093         (dump_possible_polymorphic_call_targets): Simplify.
2095 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
2097         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
2098         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
2099         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
2100         varpool.c: Rename all instances of DECL_ABSTRACT to
2101         DECL_ABSTRACT_P.
2103 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2105         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
2106         special handling for stores whose SET_SRC is an UNSPEC (such as
2107         UNSPEC_STVE).
2109 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
2111         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
2112         !REG_P (src) to release more instruction sink opportunities.
2114 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
2116         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
2117         move costs for 128-bit types.
2119 2014-09-24  Martin Jambor  <mjambor@suse.cz>
2121         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
2122         when duplicating a PASS_THROUGH jump function when creating a
2123         speculative edge.
2125 2014-09-24  Marek Polacek  <polacek@redhat.com>
2127         PR c/61405
2128         PR c/53874
2129         * asan.c (maybe_instrument_call): Add default case.
2130         * ipa-pure-const.c (special_builtin_state): Likewise.
2131         * predict.c (expr_expected_value_1): Likewise.
2132         * lto-streamer-out.c (write_symbol): Initialize variable.
2134 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2136         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
2137         the lane.
2138         (vmuld_laneq_f64): Likewise.
2139         (vmuls_lane_f32): Likewise.
2140         (vmuls_laneq_f32): Likewise.
2142 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
2144         PR bootstrap/63235
2145         * varpool.c (varpool_node::add): Pass decl attributes
2146         to lookup_attribute.
2148 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
2150         PR sanitizer/63316
2151         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
2153 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2155         PR tree-optimization/63266
2156         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
2157         marker for unknown byte value.
2158         (MARKER_MASK): New macro.
2159         (MARKER_BYTE_UNKNOWN): New macro.
2160         (HEAD_MARKER): New macro.
2161         (do_shift_rotate): Mark bytes with unknown values due to sign
2162         extension when doing an arithmetic right shift. Replace hardcoded
2163         mask for marker by new MARKER_MASK macro.
2164         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
2165         numbers accordingly.
2167 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2168             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2169             Anna Tikhonova  <anna.tikhonova@intel.com>
2170             Ilya Tocar  <ilya.tocar@intel.com>
2171             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2172             Ilya Verbin  <ilya.verbin@intel.com>
2173             Kirill Yukhin  <kirill.yukhin@intel.com>
2174             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2176         * config/i386/sse.md
2177         (define_insn
2178         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
2179         Add masking.
2180         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
2181         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
2183 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2184             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2185             Anna Tikhonova  <anna.tikhonova@intel.com>
2186             Ilya Tocar  <ilya.tocar@intel.com>
2187             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2188             Ilya Verbin  <ilya.verbin@intel.com>
2189             Kirill Yukhin  <kirill.yukhin@intel.com>
2190             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2192         * config/i386/sse.md
2193         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
2194         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
2195         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
2196         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
2197         (define_expand "avx512vl_pshuflw_mask"): New.
2198         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
2199         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
2200         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
2201         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
2202         (define_expand "avx512vl_pshufhw_mask"): New.
2203         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
2205 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2206             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2207             Anna Tikhonova  <anna.tikhonova@intel.com>
2208             Ilya Tocar  <ilya.tocar@intel.com>
2209             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2210             Ilya Verbin  <ilya.verbin@intel.com>
2211             Kirill Yukhin  <kirill.yukhin@intel.com>
2212             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2214         * config/i386/i386.c
2215         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
2216         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
2217         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
2218         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
2219         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
2220         * config/i386/sse.md
2221         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
2222         (define_insn
2223         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
2224         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
2225         (define_insn
2226         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
2227         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
2228         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
2229         (define_expand "avx512vl_pshufd_mask"): New.
2230         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
2232 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2233             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2234             Anna Tikhonova  <anna.tikhonova@intel.com>
2235             Ilya Tocar  <ilya.tocar@intel.com>
2236             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2237             Ilya Verbin  <ilya.verbin@intel.com>
2238             Kirill Yukhin  <kirill.yukhin@intel.com>
2239             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2241         * config/i386/i386.c
2242         (CODE_FOR_avx2_extracti128): Rename to ...
2243         (CODE_FOR_avx_vextractf128v4di): this.
2244         (CODE_FOR_avx2_inserti128): Rename to ...
2245         (CODE_FOR_avx_vinsertf128v4di): this.
2246         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
2247         CODE_FOR_avx_vextractf128v4di.
2248         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
2249         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
2250         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
2251         CODE_FOR_avx512vl_vinsertv8si.
2252         * config/i386/sse.md
2253         (define_expand
2254         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
2255         AVX512_VEC mode iterator.
2256         (define_insn
2257         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
2258         Ditto.
2259         (define_expand
2260         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
2261         AVX512_VEC_2 mode iterator.
2262         (define_insn "vec_set_lo_<mode><mask_name>"): New.
2263         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2264         (define_expand "avx512vl_vinsert<mode>"): Ditto.
2265         (define_insn "avx2_vec_set_lo_v4di"): Delete.
2266         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
2267         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
2268         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2269         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
2270         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2271         (define_expand "avx2_extracti128"): Delete.
2272         (define_expand "avx2_inserti128"): Ditto.
2274 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2275             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2276             Anna Tikhonova  <anna.tikhonova@intel.com>
2277             Ilya Tocar  <ilya.tocar@intel.com>
2278             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2279             Ilya Verbin  <ilya.verbin@intel.com>
2280             Kirill Yukhin  <kirill.yukhin@intel.com>
2281             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2283         * config/i386/sse.md
2284         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
2285         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
2286         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
2287         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
2288         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
2289         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
2290         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
2291         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
2292         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
2293         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
2294         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
2295         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
2296         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
2298 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
2300         PR rtl-optimization/63210
2301         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
2302         HARD_REGNO is not available for CONFLICT_A.
2304 2014-09-23  Andi Kleen  <ak@linux.intel.com>
2306         * cgraph.h (symtab_node): Add no_reorder attribute.
2307         (symbol_table::output_asm_statements): Remove.
2308         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
2309         (cgraph_node::create_version_clone): Dito.
2310         (symbol_table::output_asm_statements): Remove.
2311         * trans-mem.c (ipa_tm_create_version_alias): Dito.
2312         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
2313         (output_in_order): Add no_reorder flag. Only handle no_reorder
2314         nodes when set.
2315         (symbol_table::compile): Add separate pass for no_reorder nodes.
2316         (process_common_attributes): Set no_reorder flag in symtab node.
2317         Add node argument.
2318         (process_function_and_variable_attributes): Pass symtab nodes to
2319         process_common_attributes.
2320         * doc/extend.texi (no_reorder): Document no_reorder attribute.
2321         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
2322         (lto_output_varpool_node): Dito.
2323         (input_overwrite_node): Dito.
2324         (input_varpool_node): Dito.
2325         * varpool.c (varpool_node::add): Set no_reorder attribute.
2326         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
2327         (symbol_table::output_variables): Dito.
2328         * symtab.c (symtab_node::dump_base): Print no_reorder.
2330 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
2332         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
2333         be INVALID_REGNUM.
2335 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
2337         * configure: Regenerate.
2339 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
2341         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
2342         when result_mode == shift_mode.
2344 2014-09-23  Kostya Serebryany  <kcc@google.com>
2346         Update to match the changed asan API.
2347         * asan.c (asan_global_struct): Update the __asan_global definition
2348         to match the new API.
2349         (asan_add_global): Ditto.
2350         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
2351         to __asan_init_v4.
2353 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2355         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
2356         refine the constraints used on 32/64-bit floating point moves.
2357         (f32_av): Likewise.
2358         (f64_vsx): Likewise.
2359         (f64_dm): Likewise.
2360         (f64_av): Likewise.
2361         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
2362         (BOOL_REGS_OP1): Likewise.
2363         (BOOL_REGS_OP2): Likewise.
2364         (BOOL_REGS_UNARY): Likewise.
2365         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
2366         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
2367         for moves involving VSX registers.  Do not use constraints that
2368         target VSX registers for decimal types.
2369         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
2370         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
2372 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
2374         * tree.h (int_bit_position): Turn into inline function;
2375         implement using wide int.
2376         * tree.c (int_bit_position): Remove.
2378 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
2380         PR bootstrap/63280
2381         * target-globals.c (target_globals::~target_globals): Fix location
2382         of ira_int destruction.
2384 2014-09-23  Renlin Li  <renlin.li@arm.com>
2386         * config/aarch64/aarch64.md (return): New.
2387         (simple_return): Likewise.
2388         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
2389         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
2391 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
2393         * common/config/aarch64/aarch64-common.c:
2394         (default_options aarch_option_optimization_table):
2395         Default to -fsched-pressure.
2397 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
2399         * cfgcleanup.c (try_optimize_cfg): Do not remove label
2400         with LABEL_PRESERVE_P flag set.
2402 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2403             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2404             Anna Tikhonova  <anna.tikhonova@intel.com>
2405             Ilya Tocar  <ilya.tocar@intel.com>
2406             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2407             Ilya Verbin  <ilya.verbin@intel.com>
2408             Kirill Yukhin  <kirill.yukhin@intel.com>
2409             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2411         * config/i386/sse.md
2412         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
2413         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
2414         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
2415         (define_insn "sse2_shufpd_v2df_mask"): New.
2417 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2418             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2419             Anna Tikhonova  <anna.tikhonova@intel.com>
2420             Ilya Tocar  <ilya.tocar@intel.com>
2421             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2422             Ilya Verbin  <ilya.verbin@intel.com>
2423             Kirill Yukhin  <kirill.yukhin@intel.com>
2424             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2426         * config/i386/sse.md
2427         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
2428         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
2429         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
2430         (define_insn "sse_shufps_v4sf_mask"): New.
2432 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2433             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2434             Anna Tikhonova  <anna.tikhonova@intel.com>
2435             Ilya Tocar  <ilya.tocar@intel.com>
2436             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2437             Ilya Verbin  <ilya.verbin@intel.com>
2438             Kirill Yukhin  <kirill.yukhin@intel.com>
2439             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2441         * config/i386/sse.md
2442         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
2443         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
2444         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
2445         (define_insn "unpcklps128_mask"): New.
2447 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2448             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2449             Anna Tikhonova  <anna.tikhonova@intel.com>
2450             Ilya Tocar  <ilya.tocar@intel.com>
2451             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2452             Ilya Verbin  <ilya.verbin@intel.com>
2453             Kirill Yukhin  <kirill.yukhin@intel.com>
2454             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2456         * config/i386/sse.md
2457         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
2458         (define_insn "avx512vl_unpckhpd128_mask"): New.
2459         (define_expand "avx_movddup256<mask_name>"): Add masking.
2460         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
2461         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
2462         (define_insn "avx512vl_unpcklpd128_mask"): New.
2464 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
2466         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2467         * doc/tm.texi: Regenerate.
2468         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
2469         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2470         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
2471         Remove.
2472         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2473         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2474         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2475         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2476         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
2477         Remove.
2478         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2479         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2480         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2481         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2482         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2483         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2484         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2485         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2486         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2487         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
2488         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
2489         Remove.
2491 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
2493         * tree-ssa-ccp.c (prop_value_d): Rename to ...
2494         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
2495         * ipa-prop.c (struct type_change_info): Rename to ...
2496         (prop_type_change_info): ... this; update uses.
2497         * ggc-page.c (globals): Rename to ...
2498         (static struct ggc_globals): ... this; update uses.
2499         * tree-ssa-loop-im.c (mem_ref): Rename to ...
2500         (im_mem_ref): ... this; update uses.
2501         * ggc-common.c (loc_descriptor): Rename to ...
2502         (ggc_loc_descriptor): ... this; update uses.
2503         * lra-eliminations.c (elim_table): Rename to ...
2504         (lra_elim_table): ... this; update uses.
2505         * bitmap.c (output_info): Rename to ...
2506         (bitmap_output_info): ... this; update uses.
2507         * gcse.c (expr): Rename to ...
2508         (gcse_expr) ... this; update uses.
2509         (occr): Rename to ...
2510         (gcse_occr): .. this; update uses.
2511         * tree-ssa-copy.c (prop_value_d): Rename to ...
2512         (prop_value_t): ... this.
2513         * predict.c (block_info_def): Rename to ...
2514         (block_info): ... this; update uses.
2515         (edge_info_def): Rename to ...
2516         (edge_info): ... this; update uses.
2517         * profile.c (bb_info): Rename to ...
2518         (bb_profile_info): ... this; update uses.
2519         * alloc-pool.c (output_info): Rename to ...
2520         (pool_output_info): ... this; update uses.
2521         * ipa-cp.c (topo_info): Rename to ..
2522         (ipa_topo_info): ... this; update uses.
2523         * tree-nrv.c (nrv_data): Rename to ...
2524         (nrv_data_t): ... this; update uses.
2525         * ipa-split.c (bb_info): Rename to ...
2526         (split_bb_info): ... this one.
2527         * profile.h (edge_info): Rename to ...
2528         (edge_profile_info): ... this one; update uses.
2529         * dse.c (bb_info): Rename to ...
2530         (dse_bb_info): ... this one; update uses.
2531         * cprop.c (occr): Rename to ...
2532         (cprop_occr): ... this one; update uses.
2533         (expr): Rename to ...
2534         (cprop_expr): ... this one; update uses.
2536 2014-09-22  Jason Merrill  <jason@redhat.com>
2538         * Makefile.in (check-parallel-%): Add @.
2540 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
2542         * config/aarch64/geniterators.sh: New.
2543         * config/aarch64/iterators.md (VDQF_DF): New.
2544         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
2545         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
2547 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
2549         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
2550         -lnosys when -msim absent.
2552 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
2554         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
2556 2014-09-22  Richard Biener  <rguenther@suse.de>
2558         * gimplify.c (gimplify_init_constructor): Do not leave
2559         non-GIMPLE vector constructors around.
2560         * tree-cfg.c (verify_gimple_assign_single): Verify that
2561         CONSTRUCTORs have gimple elements.
2563 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
2565         PR debug/63328
2566         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
2567         insert a debug source bind stmt setting DEBUG_EXPR_DECL
2568         instead of a normal gimple assignment stmt.
2570 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
2572         * config/bfin/bfin.md: Fix use of constraints in define_split.
2574 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
2576         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
2577         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
2579 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
2581         * hard-reg-set.h: Include hash-table.h.
2582         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
2583         field.
2584         * target-globals.c (target_globals::~target_globals): Call
2585         hard_regs->finalize.
2586         * rtl.h (subreg_shape): New structure.
2587         (shape_of_subreg): New function.
2588         (simplifiable_subregs): Declare.
2589         * reginfo.c (simplifiable_subreg): New structure.
2590         (simplifiable_subregs_hasher): Likewise.
2591         (simplifiable_subregs): New function.
2592         (invalid_mode_changes): Delete.
2593         (alid_mode_changes, valid_mode_changes_obstack): New variables.
2594         (record_subregs_of_mode): Remove subregs_of_mode parameter.
2595         Record valid mode changes in valid_mode_changes.
2596         (find_subregs_of_mode): Remove subregs_of_mode parameter.
2597         Update calls to record_subregs_of_mode.
2598         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
2599         handling.  Initialize new variables.  Update call to
2600         find_subregs_of_mode.
2601         (invalid_mode_change_p): Check new variables instead of
2602         invalid_mode_changes.
2603         (finish_subregs_of_mode): Finalize new variables instead of
2604         invalid_mode_changes.
2605         (target_hard_regs::finalize): New function.
2606         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
2607         even when CLASS_CANNOT_CHANGE_MODE is undefined.
2609 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
2611         * combine.c (subst): Use simplify_subreg_regno rather than
2612         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
2614 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
2616         * rtl.h (subreg_info): Expand commentary
2617         * rtlanal.c (subreg_get_info): Likewise.
2619 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
2621         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
2622         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
2623         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
2625 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
2627         * config/arm/arm.c: #include "tm-constrs.h"
2628         (thumb1_size_rtx_costs): Adjust rtx costs.
2630 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
2632         * configure.ac (target_header_dir): Move block defining
2633         this to before the block setting inhibit_libc.
2634         (inhibit_libc): When considering $with_headers, just
2635         check it it's explicitly "no".  If not, also check if
2636         $target_header_dir/stdio.h is present.  If not, set
2637         inhibit_libc=true.
2638         * configure: Regenerate.
2640 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
2642         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
2644 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2646         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
2647         insn for divides by integer powers of two.
2648         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
2649         (mod<mode>3): Fix formatting.
2650         (three anonymous define_insn and two define_split): Delete.
2652 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2654         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
2655         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
2656         (floatdisf2_internal2): Ditto.
2657         (ashrdi3_no_power): Ditto.  Fix formatting.
2659 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2661         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
2662         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
2663         Tidy.
2665 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2667         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
2668         constant, use addsi3 directly.
2669         (three anonymous define_insn, two define_split): Delete.
2670         (sub<mode>3): Move.  Do not allow constant second operand.
2671         Generate different insn for constant first operand.
2672         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
2673         (subf<mode>3_imm): New.
2674         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
2675         (*plus_ltu<mode>): Only handle registers.
2676         (*plus_ltu<mode>_1): New.  Handle integer third operand.
2677         (*plus_gtu<mode>): Only handle registers.
2678         (*plus_gtu<mode>_1): New.  Handle integer third operand.
2680 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2682         * config/rs6000/rs6000.md (iorxor): New code_iterator.
2683         (iorxor): New code_attr.
2684         (IORXOR): New code_attr.
2685         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
2686         (ior<mode>3, xor<mode>3): Delete.
2687         (<iorxor><mode>3): New.
2688         (splitter for "big" integer ior, xor): New.
2689         (*bool<mode>3): Move.  Also handle AND.
2690         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
2691         (splitter for "big" integer ior, xor): Delete.
2693 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2695         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
2696         (two anonymous define_insn and two define_split): Delete.
2697         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
2699 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2701         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
2702         (two anonymous define_insn and two define_split): Delete.
2703         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
2705 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2707         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
2709 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2711         * config/rs6000/predicates.md (ca_operand): Allow subregs.
2712         (input_operand): Do not allow ca_operand.
2713         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
2714         carry bit, allow SImode and Pmode.
2715         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
2717 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
2719         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
2720         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
2721         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
2722         (*call_rex64_ms_sysv): Remove.
2723         (*call_value_rex64_ms_sysv): Ditto.
2724         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
2726 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
2728         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
2729         operand 3 to "CnL".
2731 2014-09-20  Andreas Schwab  <schwab@suse.de>
2733         * config/ia64/ia64.md: Remove constraints from define_split
2734         patterns.
2736 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2738         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
2739         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
2740         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
2741         (get_dynamic_type): Remove.
2742         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
2743         (clear_speculation): Bring to ipa-deivrt.h
2744         (get_class_context): Rename to ...
2745         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
2746         (contains_type_p): Update.
2747         (get_dynamic_type): Rename to ...
2748         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
2749         (possible_polymorphic_call_targets): UPdate.
2750         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
2751         * ipa-prop.c (ipa_analyze_call_uses): Update.
2753 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2755         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
2756         privatize dynamic TLS variables.
2758 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2760         * diagnostic.c (warning_n): New function.
2761         * diagnostic-core.h (warning_n): Declare.
2762         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
2763         output dynamic counts when available.
2765 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2767         PR tree-optimization/63255
2768         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
2769         issue in setting body_removed flag.
2771 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2773         PR c++/61825
2774         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
2775         that visibility change is possible
2776         (handle_weakref_attribute): Likewise.
2777         * cgraph.h (symtab_node): Add method get_create and
2778         field refuse_visibility_changes.
2779         (symtab_node::get_create): New method.
2780         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
2781         * varasm.c (mark_weak): Verify that visibility change is
2782         possible.
2784 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
2786         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
2787         for base_reg_operand to be common between LO_SUM and PLUS.
2788         (fusion_gpr_mem_combo): New predicate to match a fused address
2789         that combines the addis and memory offset address.
2791         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
2792         calling signature.
2793         (emit_fusion_gpr_load): Likewise.
2795         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
2796         signature to pass each argument separately, rather than
2797         using an operands array.  Rewrite the insns found by peephole2 to
2798         be a single insn, rather than hoping the insns will still be
2799         together when the peephole pass is done.  Drop being called via a
2800         normal peephole.
2801         (emit_fusion_gpr_load): Change calling signature to be called from
2802         the fusion_gpr_load_<mode> insns with a combined memory address
2803         instead of the peephole pass passing the addis and offset
2804         separately.
2806         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
2807         fusion.
2808         (power8 fusion peephole): Drop support for doing power8 via a
2809         normal peephole that was created by the peephole2 pass.
2810         (power8 fusion peephole2): Create a new insn with the fused
2811         address, so that the fused operation is kept together after
2812         register allocation is done.
2813         (fusion_gpr_load_<mode>): Likewise.
2815 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
2817         PR lto/63286
2818         * tree.c (need_assembler_name_p): Do not mangle variadic types.
2820 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
2822         * recog.c (scratch_operand): Do not simply allow all hard registers:
2823         only allow those that are allocatable.
2825 2014-09-19  Felix Yang  <felix.yang@huawei.com>
2827         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
2828         comments and fix spacing to conform to coding style.
2830 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2832         * genrecog.c (validate_pattern): Allow empty constraints in
2833         a match_scratch.
2835 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
2837         * dwarf2out.c (decl_ultimate_origin): Update comment.
2838         * tree.c (block_ultimate_origin): Same.
2840 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2842         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
2843         Update GCC version name to GCC 5.
2844         (rs6000_function_arg_boundary): Likewise.
2845         (rs6000_function_arg): Likewise.
2847 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2849         * config/sh/sh.md: Fix use of constraints in define_split.
2851 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
2853         PR ipa/61998
2854         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
2856 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2858         * doc/md.texi (Modifiers): Consistently use "read/write"
2859         nomenclature rather than "input/output".
2860         * genrecog.c (constraints_supported_in_insn_p): New.
2861         (validate_pattern): If needed, also check constraints on
2862         MATCH_SCRATCH operands.
2863         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
2864         operands with no '=' or '+' modifier.
2866 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
2868         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
2869         scratch register as written.
2871 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2873         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
2874         assignment.
2876 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2878         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
2879         expanders.
2881 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2883         PR target/62662
2884         * config/s390/s390.c (s390_emit_epilogue): When doing the return
2885         address load optimization force s390_optimize_prologue to leave it
2886         that way.  Only do the optimization if we already decided to push
2887         r14 into a stack slot.
2889 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
2891         * asan.c (build_check_stmt): Alignment arg was added.
2892         (asan_expand_check_ifn): Optimization for alignment >= 8.
2894 2014-09-19  Olivier Hainque  <hainque@adacore.com>
2896         * config/i386/vxworksae.h: Remove obsolete definitions.
2897         (STACK_CHECK_PROTECT): Define.
2898         * config/i386/vx-common.h: Remove.  Merge contents within
2899         config/i386/vxworks.h.
2900         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
2901         i386/vx-common.h.
2903 2014-09-19  Olivier Hainque  <hainque@adacore.com>
2905         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
2906         * config/rs6000/t-vxworksmils: New file.
2907         * config/rs6000/vxworksmils.h: New file.
2909 2014-09-19  Olivier Hainque  <hainque@adacore.com>
2911         * varasm.c (default_section_type_flags): Flag .persistent.bss
2912         sections as SECTION_BSS.
2914 2014-09-19  Nick Clifton  <nickc@redhat.com>
2916         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
2917         pop'ed registers so that DCE does not eliminate them.
2919 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
2921         PR lto/63298
2922         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
2924 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
2926         * system.h (LIBGCC2_TF_CEXT): Poison.
2927         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
2928         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
2929         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
2930         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
2931         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
2932         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
2933         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
2934         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
2935         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
2937 2014-09-19  Kito Cheng  <kito@0xlab.org>
2939         * except.h: Fix header guard.
2940         * addresses.h: Add missing header guard.
2941         * cfghooks.h: Likewise.
2942         * collect-utils.h: Likewise.
2943         * collect2-aix.h: Likewise.
2944         * conditions.h: Likewise.
2945         * cselib.h: Likewise.
2946         * dwarf2asm.h: Likewise.
2947         * graphds.h: Likewise.
2948         * graphite-scop-detection.h: Likewise.
2949         * gsyms.h: Likewise.
2950         * hw-doloop.h: Likewise.
2951         * incpath.h: Likewise.
2952         * ipa-inline.h: Likewise.
2953         * ipa-ref.h: Likewise.
2954         * ira-int.h: Likewise.
2955         * ira.h: Likewise.
2956         * lra-int.h: Likewise.
2957         * lra.h: Likewise.
2958         * lto-section-names.h: Likewise.
2959         * read-md.h: Likewise.
2960         * reload.h: Likewise.
2961         * rtl-error.h: Likewise.
2962         * sdbout.h: Likewise.
2963         * targhooks.h: Likewise.
2964         * tree-affine.h: Likewise.
2965         * xcoff.h: Likewise.
2966         * xcoffout.h: Likewise.
2968 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
2970         PR debug/63285
2971         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
2972         if advance != 0.
2974 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
2976         PR target/61360
2977         * lra.c (lra): Call recog_init.
2979 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
2981         PR c++/62017
2982         * asan.c (transform_statements): Don't instrument clobber statements.
2984 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2986         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
2987         to neon_load1_1reg<q>.
2989 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
2991         PR debug/63284
2992         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
2993         if there are only debug stmts after the noreturn call, instead
2994         remove the debug stmts.
2996 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
2998         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
2999         (odr_types_equivalent_p): Use pair hash.
3000         (odr_subtypes_equivalent_p): Likewise, do structural compare
3001         on ODR types that may be mismatched.
3002         (warn_odr): Support warning when only one field is given.
3003         (odr_types_equivalent_p): Strenghten comparsions made;
3004         support VOIDtype.
3005         (add_type_duplicate): Update VISITED hash set.
3007 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3009         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
3010         Enable selection of 'posix' or no thread model.
3012 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
3014         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
3015         when architecture is older than ARMv7.
3017 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
3019         PR target/61853
3020         * config/pa/pa.c (pa_function_value): Directly handle aggregates
3021         that fit exactly in a word or double word.
3023 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
3025         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
3026         zmm/k regs support.
3028 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3029             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3030             Anna Tikhonova  <anna.tikhonova@intel.com>
3031             Ilya Tocar  <ilya.tocar@intel.com>
3032             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3033             Ilya Verbin  <ilya.verbin@intel.com>
3034             Kirill Yukhin  <kirill.yukhin@intel.com>
3035             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3037         * config/i386/i386.c
3038         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
3039         * config/i386/sse.md
3040         (define_mode_iterator VI48F_256): New.
3041         (define_mode_attr extract_type): Ditto.
3042         (define_mode_attr extract_suf): Ditto.
3043         (define_mode_iterator AVX512_VEC): Ditto.
3044         (define_expand
3045         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
3046         AVX512_VEC.
3047         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
3048         (define_insn
3049         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
3050         Ditto.
3051         (define_mode_attr extract_type_2): Ditto.
3052         (define_mode_attr extract_suf_2): Ditto.
3053         (define_mode_iterator AVX512_VEC_2): Ditto.
3054         (define_expand
3055         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
3056         AVX512_VEC_2 mode iterator.
3057         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
3058         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
3059         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
3060         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
3061         (define_split for V16FI mode): Ditto.
3062         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
3063         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
3064         (define_split for VI8F_256 mode): Ditto.
3065         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
3066         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
3067         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
3068         (define_split for VI4F_256 mode): Ditto.
3069         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
3070         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
3071         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
3072         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
3073         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
3074         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
3075         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
3076         Update `type' attribute, remove explicit `memory' attribute calculation.
3078 2014-09-16  Kito Cheng  <kito@0xlab.org>
3080         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
3081         ira_spilled_reg_stack_slots_num if using lra.
3082         (do_reload): Remove release ira_spilled_reg_stack_slots part.
3083         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
3084         make sure not using lra.
3085         (ira_reuse_stack_slot): Likewise.
3086         (ira_mark_new_stack_slot): Likewise.
3088 2014-09-15  Andi Kleen  <ak@linux.intel.com>
3090         * function.c (allocate_struct_function): Force
3091         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
3092         profiling is disabled.
3094 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
3096         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
3097         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
3098         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
3099         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
3100         macro with statically checked member functions.
3101         * rtl.h (rtx_insn::deleted): New method.
3102         (rtx_insn::set_deleted): Likewise.
3103         (rtx_insn::set_undeleted): Likewise.
3104         (INSN_DELETED_P): Remove.
3106 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
3108         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
3109         result of emit_jump_insn_before to a new variable.
3110         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
3111         (mark_jump_label_1): Likewise.
3112         (mark_jump_label_asm): Likewise.
3113         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
3114         * rtl.h (mark_jump_label): Adjust.
3116 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
3118         * Makefile.in (dg_target_exps): Remove.
3119         (check_gcc_parallelize): Change to just an upper bound number.
3120         (check-%-subtargets): Always print the non-parallelized goals.
3121         (check_p_vars, check_p_comma, check_p_subwork): Remove.
3122         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
3123         check_p_numbers3, check_p_numbers4, check_p_numbers5,
3124         check_p_numbers6): New variables.
3125         (check_p_numbers): Set to sequence from 1 to 9999.
3126         (check_p_subdirs): Set to sequence from 1 to minimum of
3127         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
3128         or 128.
3129         (check-%, check-parallel-%): Rewritten so that for parallelized
3130         testing each job runs all the *.exp files, with
3131         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
3133 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
3135         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
3136         rtx to rtx_insn *.
3137         (arc_sets_cc_p): Likewise.
3138         * config/arc/arc.c (arc_print_operand): Use methods of
3139         "final_sequence" for clarity, and to enable strengthening of
3140         locals "jump" and "delay" from rtx to rtx_insn *.
3141         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
3142         rtx_insn *; use method of rtx_sequence for typesafety.
3143         (arc_get_insn_variants): Use insn method of rtx_sequence for
3144         typesafety.
3145         (arc_pad_return): Likewise.
3146         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
3147         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
3148         dyn_cast to rtx_sequence *, using insn method for typesafety.
3149         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
3150         rtx_sequence * and use insn method when invoking get_attr_length.
3151         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
3152         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
3153         rtx_sequence *, introducing a local "seq", using its insn method
3154         from typesafety and clarity.
3155         (add_sched_insns_for_speculation): Strengthen local "next" from
3156         rtx to rtx_insn *.
3157         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
3158         (predicate_insn): Likewise.
3159         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
3160         second param.
3161         * config/cris/cris.c (cris_notice_update_cc): Likewise.
3162         * config/epiphany/epiphany-protos.h
3163         (extern void epiphany_insert_mode_switch_use): Likewise for param
3164         "insn".
3165         (get_attr_sched_use_fpu): Likewise for param.
3166         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
3167         Likewise for param "insn".
3168         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
3169         param "insn" of "target_insert_mode_switch_use" callback.
3170         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
3171         (frv_issues_to_branch_unit_p): Likewise.
3172         (frv_pack_insn_p): Likewise.
3173         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
3174         const rtx * (i.e. mutable rtx_def * const *) to
3175         rtx_insn * const *.
3176         * config/i386/i386-protos.h (standard_sse_constant_opcode):
3177         Strengthen first param from rtx to rtx_insn *.
3178         (output_fix_trunc): Likewise.
3179         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
3180         (output_fix_trunc): Likewise.
3181         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
3182         local "insn".
3183         (min_insn_size): Likewise for param "insn".
3184         (get_mem_group): Likewise.
3185         (is_cmp): Likewise.
3186         (get_insn_path): Likewise.
3187         (get_insn_group): Likewise.
3188         (count_num_restricted): Likewise.
3189         (fits_dispatch_window): Likewise.
3190         (add_insn_window): Likewise.
3191         (add_to_dispatch_window): Likewise.
3192         (debug_insn_dispatch_info_file): Likewise.
3193         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
3194         first param.
3195         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
3196         "cmp" and local "prev".
3197         (m32c_output_compare): Likewise for param "insn".
3198         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
3199         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
3200         (define_predicate "large_insn_p"): Likewise.
3201         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
3202         param from rtx to rtx_insn *.
3203         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
3204         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
3205         (m68k_sched_attr_size): Likewise.
3206         (sched_get_opxy_mem_type): Likewise for param "insn".
3207         (m68k_sched_attr_op_mem): Likewise.
3208         (sched_mem_operand_p): Likewise.
3209         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
3210         * config/mep/mep.c (mep_multi_slot): Likewise.
3211         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
3212         first param.
3213         (mips_sync_loop_insns): Likewise.
3214         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
3215         method of "final_sequence" for typesafety.
3216         (mips_process_sync_loop): Strengthen param "insn" from rtx to
3217         rtx_insn *.
3218         (mips_output_sync_loop): Likewise.
3219         (mips_sync_loop_insns): Likewise.
3220         (mips_74k_agen_init): Likewise.
3221         (mips_sched_init): Use NULL rather than NULL_RTX when working with
3222         insns.
3223         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
3224         Strengthen param "insn" from rtx to rtx_insn *.
3225         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
3226         local "insn".
3227         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
3228         param.
3229         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
3230         "insn".  Use method of rtx_sequence for typesafety.
3231         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
3232         rtx_insn *.
3233         (branch_needs_nop_p): Likewise.
3234         (use_skip_p): Likewise.
3235         (pa_insn_refs_are_delayed): Likewise.
3236         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
3237         for locals "insn", "ninsn".
3238         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
3239         "insn".
3240         (is_cracked_insn): Likewise.
3241         (is_branch_slot_insn): Likewise.
3242         (is_nonpipeline_insn): Likewise.
3243         (insn_terminates_group_p): Likewise.
3244         (insn_must_be_first_in_group): Likewise.
3245         (insn_must_be_last_in_group): Likewise.
3246         (force_new_group): Likewise for param "next_insn".
3247         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
3248         "insn".
3249         (s390_sched_score): Likewise.
3250         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
3251         (rtx sfunc_uses_reg): Likewise for sole param.
3252         * config/sh/sh.c (sh_print_operand): Use insn method of
3253         final_sequence for typesafety.
3254         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
3255         Use insn method of final_sequence for typesafety.
3256         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
3257         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
3258         for param.
3259         (eligible_for_return_delay): Likewise.
3260         (eligible_for_sibcall_delay): Likewise.
3261         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
3262         (eligible_for_return_delay): Likewise.
3263         (eligible_for_sibcall_delay): Likewise.
3264         * config/stormy16/stormy16-protos.h
3265         (xstormy16_output_cbranch_hi): Likewise for final param.
3266         (xstormy16_output_cbranch_si): Likewise.
3267         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
3268         (xstormy16_output_cbranch_si): Likewise.
3269         * config/v850/v850-protos.h (notice_update_cc): Likewise.
3270         * config/v850/v850.c (notice_update_cc): Likewise.
3272         * final.c (get_attr_length_1): Strengthen param "insn" and param
3273         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
3274         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
3275         (get_attr_min_length): Likewise.
3276         (shorten_branches): Likewise for signature of locals "length_fun"
3277         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
3278         from a checked cast and use its methods for clarity and to enable
3279         strengthening local "inner_insn" from rtx to rtx_insn *.
3280         * genattr.c (gen_attr): When writing out the prototypes of the
3281         various generated "get_attr_" functions, strengthen the params of
3282         the non-const functions from rtx to rtx_insn *.
3283         Similarly, strengthen the params of insn_default_length,
3284         insn_min_length, insn_variable_length_p, insn_current_length.
3285         (main): Similarly, strengthen the param of num_delay_slots,
3286         internal_dfa_insn_code, insn_default_latency, bypass_p,
3287         insn_latency, min_issue_delay, print_reservation,
3288         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
3289         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
3290         to hook_int_rtx_insn_unreachable.
3291         * genattrtab.c (write_attr_get): When writing out the generated
3292         "get_attr_" functions, strengthen the param "insn" from rtx to
3293         rtx_insn *, eliminating a checked cast.
3294         (make_automaton_attrs): When writing out prototypes of
3295         "internal_dfa_insn_code_", "insn_default_latency_" functions
3296         and the "internal_dfa_insn_code" and "insn_default_latency"
3297         callbacks, strengthen their params from rtx to rtx_insn *
3298         * genautomata.c (output_internal_insn_code_evaluation): When
3299         writing out code, add a checked cast from rtx to rtx_insn * when
3300         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
3301         (output_dfa_insn_code_func): Strengthen param of generated
3302         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
3303         (output_trans_func): Likewise for generated function
3304         "state_transition".
3305         (output_internal_insn_latency_func): When writing out generated
3306         function "internal_insn_latency", rename params from "insn" and
3307         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
3308         locals "insn" and "insn2" as rtx_insn * with checked casts once
3309         we've proven that we're not dealing with const0_rtx.
3310         (output_insn_latency_func):  Strengthen param of generated
3311         function "insn_latency" from rtx to rtx_insn *.
3312         (output_print_reservation_func): Likewise for generated function
3313         "print_reservation".
3314         (output_insn_has_dfa_reservation_p): Likewise for generated
3315         function "insn_has_dfa_reservation_p".
3316         * hooks.c (hook_int_rtx_unreachable): Rename to...
3317         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
3318         from rtx to rtx_insn *.
3319         * hooks.h (hook_int_rtx_unreachable): Likewise.
3320         (extern int hook_int_rtx_insn_unreachable): Likewise.
3321         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
3322         (get_attr_min_length): Likewise.
3323         * recog.c (get_enabled_alternatives): Likewise.
3324         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
3325         * reorg.c (find_end_label): Introduce local rtx "pat" and
3326         strengthen local "insn" from rtx to rtx_insn *.
3327         (redundant_insn): Use insn method of "seq" rather than element for
3328         typesafety; strengthen local "control" from rtx to rtx_insn *.
3329         * resource.c (mark_referenced_resources): Add checked cast to
3330         rtx_insn * within INSN/JUMP_INSN case.
3331         (mark_set_resources): Likewise.
3332         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
3333         rtx to rtx_insn *.
3335 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
3337         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
3338         param "label" from rtx to rtx_insn *.
3339         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
3340         and local "op".
3341         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
3342         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
3343         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
3344         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
3345         * final.c (default_label_align_after_barrier_max_skip): Strengthen
3346         param from rtx to rtx_insn *.
3347         (default_loop_align_max_skip): Likewise.
3348         (default_label_align_max_skip): Likewise.
3349         (default_jump_align_max_skip): Likewise.
3350         * target.def (label_align_after_barrier_max_skip): Likewise.
3351         (loop_align_max_skip): Likewise.
3352         (label_align_max_skip): Likewise.
3353         (jump_align_max_skip): Likewise.
3354         * targhooks.h (default_label_align_after_barrier_max_skip):
3355         Likewise.
3356         (default_loop_align_max_skip): Likewise.
3357         (default_label_align_max_skip): Likewise.
3358         (default_jump_align_max_skip): Likewise.
3360 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
3362         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
3363         from const_rtx to const rtx_insn *.  Update union members from rtx
3364         to rtx_insn *.
3365         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
3366         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
3367         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
3368         strengthen both params from const_rtx to const rtx_insn *.
3369         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
3370         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
3371         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
3372         rtx_insn *.
3373         * target.def (can_follow_jump): Strengthen both params from
3374         const_rtx to const rtx_insn *, and update default implementation
3375         from hook_bool_const_rtx_const_rtx_true to
3376         hook_bool_const_rtx_insn_const_rtx_insn_true.
3378 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
3380         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
3381         "insn" from rtx to rtx_insn *.
3382         * sched-int.h (deps_start_bb): Likewise for 2nd param.
3384 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3385             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3386             Anna Tikhonova  <anna.tikhonova@intel.com>
3387             Ilya Tocar  <ilya.tocar@intel.com>
3388             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3389             Ilya Verbin  <ilya.verbin@intel.com>
3390             Kirill Yukhin  <kirill.yukhin@intel.com>
3391             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3393         * config/i386/sse.md
3394         (define_insn "vcvtph2ps<mask_name>"): Add masking.
3395         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
3396         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
3397         (define_expand "vcvtps2ph_mask"): New.
3398         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
3399         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
3400         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
3402 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3403             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3404             Anna Tikhonova  <anna.tikhonova@intel.com>
3405             Ilya Tocar  <ilya.tocar@intel.com>
3406             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3407             Ilya Verbin  <ilya.verbin@intel.com>
3408             Kirill Yukhin  <kirill.yukhin@intel.com>
3409             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3411         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
3412         New.
3413         (define_mode_iterator VI24_AVX512BW_1): Ditto.
3414         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
3415         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
3416         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
3417         also for TARGET_AVX512VL.
3418         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
3420 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
3422         * doc/install.texi (Options specification): add
3423         --disable-libsanitizer item.
3425 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
3426             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3428         PR target/61407
3429         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
3430         and above.
3431         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
3432         kernel version check to avoid incrementing it after every major OS X
3433         release.
3434         (darwin_default_min_version): Avoid static memory buffer.
3436 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
3438         * tree.c (need_assembler_name_p): Store C++ type mangling only
3439         for aggregates.
3441 2014-09-13  Marek Polacek  <polacek@redhat.com>
3443         * tree.c (protected_set_expr_location): Don't check whether T is
3444         non-null here.
3446 2014-09-12  DJ Delorie  <dj@redhat.com>
3448         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
3449         (extend_and_shift1_hipsi2): Likewise.
3450         (extend_and_shift2_hipsi2): Likewise.
3452 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
3454         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
3455         with NULL when dealing with an insn.
3456         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
3457         from rtx to rtx_insn *.
3458         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
3459         const_rtx to const rtx_insn *.
3460         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
3462 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
3464         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
3465         assert.
3467 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
3469         * target.def (libgcc_floating_mode_supported_p): New hook.
3470         * targhooks.c (default_libgcc_floating_mode_supported_p): New
3471         function.
3472         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
3473         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
3474         (LIBGCC2_HAS_TF_MODE): Remove.
3475         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
3476         * doc/tm.texi: Regenerate.
3477         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
3478         machine mode.
3479         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
3480         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
3481         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
3482         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
3483         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3484         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
3485         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
3486         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
3487         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
3488         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
3489         function.
3490         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3491         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3492         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3493         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3494         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3495         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3496         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3497         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
3498         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
3499         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
3500         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
3501         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
3502         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
3503         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
3504         Remove.
3505         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
3506         New macro.
3507         (ia64_libgcc_floating_mode_supported_p): New function.
3508         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
3509         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
3510         (IA64_NO_LIBGCC_TFMODE): Define.
3511         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
3512         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
3513         macro.
3514         (pdp11_scalar_mode_supported_p): New function.
3515         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
3516         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
3518 2014-09-12  Richard Biener  <rguenther@suse.de>
3520         PR middle-end/63237
3521         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
3523 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
3525         * tree.c (integer_each_onep): New function.
3526         * tree.h (integer_each_onep): Declare it.
3527         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
3528         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
3529         (X & 1) == 0 for vector and complex.
3531 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3533         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
3534         for A57.
3535         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
3536         cost to spilling from integer to FP registers.
3538 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3540         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
3541         move handling.
3542         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
3543         are now handled correctly.
3545 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3547         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
3548         handling of CALLER_SAVE_REGS and POINTER_REGS.
3550 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3552         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
3553         the number of hard registers.
3555 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3556             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3557             Anna Tikhonova  <anna.tikhonova@intel.com>
3558             Ilya Tocar  <ilya.tocar@intel.com>
3559             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3560             Ilya Verbin  <ilya.verbin@intel.com>
3561             Kirill Yukhin  <kirill.yukhin@intel.com>
3562             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3564         * config/i386/sse.md
3565         (define_mode_iterator VI48_AVX512VL): New.
3566         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
3567         "avx512f_vternlog<mode>_maskz" and update mode iterator.
3568         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
3569         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
3570         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
3571         "avx512f_vternlog<mode>_mask" and update mode iterator.
3572         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
3573         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
3574         iterator.
3575         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
3576         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
3577         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
3578         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
3579         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
3580         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
3582 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3583             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3584             Anna Tikhonova  <anna.tikhonova@intel.com>
3585             Ilya Tocar  <ilya.tocar@intel.com>
3586             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3587             Ilya Verbin  <ilya.verbin@intel.com>
3588             Kirill Yukhin  <kirill.yukhin@intel.com>
3589             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3591         * config/i386/sse.md (VI128_256): Delete.
3592         (define_mode_iterator VI124_256): New.
3593         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
3594         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
3595         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
3596         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
3597         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
3598         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
3599         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
3600         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
3601         iterator.
3602         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
3603         in presence of AVX-512.
3605 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3606             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3607             Anna Tikhonova  <anna.tikhonova@intel.com>
3608             Ilya Tocar  <ilya.tocar@intel.com>
3609             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3610             Ilya Verbin  <ilya.verbin@intel.com>
3611             Kirill Yukhin  <kirill.yukhin@intel.com>
3612             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3614         * config/i386/sse.md
3615         (define_expand "<avx512>_gathersi<mode>"): Rename from
3616         "avx512f_gathersi<mode>".
3617         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
3618         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
3619         (define_expand "<avx512>_gatherdi<mode>"): Rename from
3620         "avx512f_gatherdi<mode>".
3621         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
3622         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
3623         wide versions.
3624         (define_expand "<avx512>_scattersi<mode>"): Rename from
3625         "avx512f_scattersi<mode>".
3626         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
3627         (define_expand "<avx512>_scatterdi<mode>"): Rename from
3628         "avx512f_scatterdi<mode>".
3629         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
3631 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
3633         * ira.h (ira_finish_once): Delete.
3634         * ira-int.h (target_ira_int::~target_ira_int): Declare.
3635         (target_ira_int::free_ira_costs): Likewise.
3636         (target_ira_int::free_register_move_costs): Likewise.
3637         (ira_finish_costs_once): Delete.
3638         * ira.c (free_register_move_costs): Replace with...
3639         (target_ira_int::free_register_move_costs): ...this new function.
3640         (target_ira_int::~target_ira_int): Define.
3641         (ira_init): Call free_register_move_costs as a member function rather
3642         than a global function.
3643         (ira_finish_once): Delete.
3644         * ira-costs.c (free_ira_costs): Replace with...
3645         (target_ira_int::free_ira_costs): ...this new function.
3646         (ira_init_costs): Call free_ira_costs as a member function rather
3647         than a global function.
3648         (ira_finish_costs_once): Delete.
3649         * target-globals.c (target_globals::~target_globals): Call the
3650         target_ira_int destructor.
3651         * toplev.c: Include lra.h.
3652         (finalize): Call lra_finish_once rather than ira_finish_once.
3654 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
3656         * common.opt (flto-odr-type-merging): New flag.
3657         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
3658         (types_same_for_odr): Likewise.
3659         (odr_subtypes_equivalent_p): Likewise.
3660         (add_type_duplicate): Do not walk type variants.
3661         (register_odr_type): New function.
3662         * ipa-utils.h (register_odr_type): Declare.
3663         (odr_type_p): New function.
3664         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
3665         TYPE_DECLs
3666         * doc/invoke.texi (-flto-odr-type-merging): Document.
3667         * tree.c (need_assembler_name_p): Compute ODR names when asked
3668         for it.
3669         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
3671 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3673         PR target/63228
3674         * config/i386/i386.c (ix86_option_override_internal): Also turn
3675         off OPTION_MASK_ABI_X32 for -m16.
3677 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
3679         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
3680         GPR instead of P.
3682 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
3684         PR target/58757
3685         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
3686         Directly forward to __*_DENORM_MIN__.
3688 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
3690         * rtl.h (LABEL_REF_LABEL): New macro.
3692         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
3693         of XEXP (, 0), where we know that we have a LABEL_REF.
3694         * cfgbuild.c (make_edges): Likewise.
3695         (purge_dead_tablejump_edges): Likewise.
3696         * cfgexpand.c (convert_debug_memory_address): Likewise.
3697         * cfgrtl.c (patch_jump_insn): Likewise.
3698         * combine.c (distribute_notes): Likewise.
3699         * cse.c (hash_rtx_cb): Likewise.
3700         (exp_equiv_p): Likewise.
3701         (fold_rtx): Likewise.
3702         (check_for_label_ref): Likewise.
3703         * cselib.c (rtx_equal_for_cselib_1): Likewise.
3704         (cselib_hash_rtx): Likewise.
3705         * emit-rtl.c (mark_label_nuses): Likewise.
3706         * explow.c (convert_memory_address_addr_space): Likewise.
3707         * final.c (output_asm_label): Likewise.
3708         (output_addr_const): Likewise.
3709         * gcse.c (add_label_notes): Likewise.
3710         * genconfig.c (walk_insn_part): Likewise.
3711         * genrecog.c (validate_pattern): Likewise.
3712         * ifcvt.c (cond_exec_get_condition): Likewise.
3713         (noce_emit_store_flag): Likewise.
3714         (noce_get_alt_condition): Likewise.
3715         (noce_get_condition): Likewise.
3716         * jump.c (maybe_propagate_label_ref): Likewise.
3717         (mark_jump_label_1): Likewise.
3718         (redirect_exp_1): Likewise.
3719         (rtx_renumbered_equal_p): Likewise.
3720         * lra-constraints.c (operands_match_p): Likewise.
3721         * reload.c (operands_match_p): Likewise.
3722         (find_reloads): Likewise.
3723         * reload1.c (set_label_offsets): Likewise.
3724         * reorg.c (get_branch_condition): Likewise.
3725         * rtl.c (rtx_equal_p_cb): Likewise.
3726         (rtx_equal_p): Likewise.
3727         * rtlanal.c (reg_mentioned_p): Likewise.
3728         (rtx_referenced_p): Likewise.
3729         (get_condition): Likewise.
3730         * sched-vis.c (print_value): Likewise.
3731         * varasm.c (const_hash_1): Likewise.
3732         (compare_constant): Likewise.
3733         (const_rtx_hash_1): Likewise.
3734         (output_constant_pool_1): Likewise.
3736 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
3738         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
3739         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
3740         instead of minus.
3741         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
3742         cr6_test_for_lt_reverse): Ditto.
3744 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
3746         PR c++/61489
3747         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
3749 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
3751         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
3752         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
3753         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
3754         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
3755         Delete.
3757         (aarch64_fold_builtin): Remove all reinterpret cases.
3759         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
3761         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
3763         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
3764         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
3765         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
3766         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
3767         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
3768         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
3769         aarch64_reinterpretv2df<mode>): Delete.
3771         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
3773         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
3774         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
3775         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
3776         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
3777         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
3778         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
3779         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
3780         vreinterpret_u32_f64): Use cast.
3782         * config/aarch64/iterators.md (VD_RE): Delete.
3784 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
3786         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
3787         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
3788         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
3789         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
3790         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
3791         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
3792         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
3793         Replace inline assembler with __aarch64_vset_lane_any.
3795 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
3797         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
3798         types.
3799         (vmull_high_lane_s32): Likewise.
3800         (vmull_high_lane_u16): Likewise.
3801         (vmull_high_lane_u32): Likewise.
3803 2014-09-11  Jason Merrill  <jason@redhat.com>
3805         PR c++/58678
3806         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
3808 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
3810         PR target/63223
3811         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
3812         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
3813         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
3815 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3816             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3817             Anna Tikhonova  <anna.tikhonova@intel.com>
3818             Ilya Tocar  <ilya.tocar@intel.com>
3819             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3820             Ilya Verbin  <ilya.verbin@intel.com>
3821             Kirill Yukhin  <kirill.yukhin@intel.com>
3822             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3824         * config/i386/sse.md
3825         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
3826         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
3827         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
3828         New.
3829         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
3830         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
3831         iterator.
3832         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
3833         New.
3834         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
3835         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
3836         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
3837         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
3838         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
3839         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
3840         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
3841         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
3842         iterator.
3843         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
3844         New.
3845         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
3846         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
3847         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
3849 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
3851         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
3852         to access removed nodes.
3854 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
3856         PR tree-optimization/63186
3857         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
3858         (mark_nonssa_use): Likewise.
3859         (verify_non_ssa_vars): Verify all header blocks for label
3860         definitions.
3862 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3863             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3864             Anna Tikhonova  <anna.tikhonova@intel.com>
3865             Ilya Tocar  <ilya.tocar@intel.com>
3866             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3867             Ilya Verbin  <ilya.verbin@intel.com>
3868             Kirill Yukhin  <kirill.yukhin@intel.com>
3869             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3871         * config/i386/sse.md
3872         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
3873         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
3874         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
3875         "<avx2_avx512f>_permvar<mode><mask_name>".
3876         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
3877         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
3878         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
3879         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
3880         Ditto.
3881         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
3882         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
3883         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
3884         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
3886 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
3888         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
3889         V2DF, V4SF, DF, and DI modes.
3890         (vsx_fmav2df2): Likewise.
3891         (vsx_float_fix_<mode>2): Likewise.
3892         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
3894 2014-09-10  Xinliang David Li  <davidxl@google.com>
3896         PR target/63209
3897         * config/arm/arm.md (movcond_addsi): Handle case where source
3898         and target operands are the same.
3900 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
3902         * final.c (this_is_asm_operands): Strengthen this variable from
3903         rtx to const rtx_insn *.
3904         * output.h (this_is_asm_operands): Likewise.
3905         * rtl-error.c (location_for_asm): Strengthen param "insn" from
3906         const_rtx to const rtx_insn *.
3907         (diagnostic_for_asm): Likewise.
3908         * rtl-error.h (error_for_asm): Likewise.
3909         (warning_for_asm): Likewise.
3911 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
3913         * genextract.c (print_header): When writing out insn_extract to
3914         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
3915         * recog.h (insn_extract): Strengthen the param from rtx to
3916         rtx_insn *.
3918 2014-09-10  Mike Stump  <mikestump@comcast.net>
3920         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
3921         8.6.1.
3923 2014-09-10  Martin Jambor  <mjambor@suse.cz>
3925         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
3926         (analyze): Do not set analyze flag if expand_thunk returns false;.
3927         (create_wrapper): Likewise.
3928         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
3930 2014-09-10  Martin Jambor  <mjambor@suse.cz>
3932         PR ipa/61654
3933         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
3934         new decl properly.  Analyze the new thunk if it is expanded.
3936 2014-09-10  Andreas Schwab  <schwab@suse.de>
3938         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
3939         [USED_FOR_TARGET]: Define.
3941 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
3943         * config/mips/mips.c (mips_secondary_reload_class): Handle
3944         regno < 0 case.
3946 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
3948         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
3949         assignment.
3951 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
3953         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
3954         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
3955         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
3956         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
3957         flag_delete_null_pointer_checks for them.
3958         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
3959         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
3960         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
3961         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
3962         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
3963         stmt's iterator.
3964         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
3965         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
3966         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
3967         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
3968         * doc/invoke.texi (-fsanitize=nonnull-attribute,
3969         -fsanitize=returns-nonnull-attribute): Document.
3971         * ubsan.h (struct ubsan_mismatch_data): Removed.
3972         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
3973         * ubsan.c (ubsan_source_location): For unknown locations,
3974         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
3975         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
3976         Allow more than one location and arbitrary extra arguments passed
3977         in ... instead of through MISMATCH pointer.
3978         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
3979         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
3980         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
3981         callers.
3983 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3984             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3985             Anna Tikhonova  <anna.tikhonova@intel.com>
3986             Ilya Tocar  <ilya.tocar@intel.com>
3987             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3988             Ilya Verbin  <ilya.verbin@intel.com>
3989             Kirill Yukhin  <kirill.yukhin@intel.com>
3990             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3992         * config/i386/sse.md
3993         (define_mode_iterator VI48F): New.
3994         (define_insn "<avx512>_compress<mode>_mask"): Rename from
3995         "avx512f_compress<mode>_mask" and update mode iterator.
3996         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
3997         "avx512f_compressstore<mode>_mask" and update mode iterator.
3998         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
3999         "avx512f_expand<mode>_maskz" and update mode iterator.
4000         (define_insn "<avx512>_expand<mode>_mask"): Rename from
4001         "avx512f_expand<mode>_mask" and update mode iterator.
4003 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4004             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4005             Anna Tikhonova  <anna.tikhonova@intel.com>
4006             Ilya Tocar  <ilya.tocar@intel.com>
4007             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4008             Ilya Verbin  <ilya.verbin@intel.com>
4009             Kirill Yukhin  <kirill.yukhin@intel.com>
4010             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4012         * config/i386/i386.c
4013         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
4014         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
4015         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
4016         avx512dq_rangepv4sf_mask.
4017         * config/i386/sse.md
4018         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
4019         UNSPEC_RANGE.
4020         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
4021         (define_insn "reduces<mode>"): Ditto.
4022         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
4023         Ditto.
4024         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
4025         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
4026         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
4028 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4029             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4030             Anna Tikhonova  <anna.tikhonova@intel.com>
4031             Ilya Tocar  <ilya.tocar@intel.com>
4032             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4033             Ilya Verbin  <ilya.verbin@intel.com>
4034             Kirill Yukhin  <kirill.yukhin@intel.com>
4035             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4037         * config/i386/i386.c
4038         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
4039         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
4040         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
4041         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
4042         avx512vl_getmantv2df_mask.
4043         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
4044         avx512f_vgetmantv4sf_round.
4045         * config/i386/sse.md
4046         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
4047         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
4048         mode iterator.
4049         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
4050         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
4051         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
4052         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
4053         iterator..
4054         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
4055         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
4056         update mode iterator.
4057         (define_expand
4058         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
4059         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
4060         mode iterator.
4061         (define_insn
4062         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
4063         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
4064         update mode iterator.
4065         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
4066         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
4067         iterator..
4068         (define_insn
4069         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
4070         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
4071         mode iterator..
4072         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
4073         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
4074         update mode iterator.
4075         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
4076         "avx512f_getmant<mode><round_saeonly_name>".
4078 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
4080         PR ipa/63166
4081         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
4083 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4084             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4085             Anna Tikhonova  <anna.tikhonova@intel.com>
4086             Ilya Tocar  <ilya.tocar@intel.com>
4087             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4088             Ilya Verbin  <ilya.verbin@intel.com>
4089             Kirill Yukhin  <kirill.yukhin@intel.com>
4090             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4092         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
4093         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
4094         (define_mode_iterator FMAMODE_AVX512): New.
4095         (define_mode_iterator FMAMODE): Remove conditions.
4096         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
4097         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
4098         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
4099         mode iterator.
4100         (define_mode_iterator FMAMODE_NOVF512): Remove.
4101         (define_insn "*fma_fmadd_<mode>"): Rename from
4102         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
4103         FMAMODE mode iterator.
4104         (define_mode_iterator VF_SF_AVX512VL): New.
4105         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
4106         Use VF_SF_AVX512VL mode iterator.
4107         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
4108         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
4109         iterator.
4110         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
4111         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4112         iterator.
4113         (define_insn "*fma_fmsub_<mode>"): Rename from
4114         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
4115         FMAMODE mode iterator.
4116         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
4117         Use VF_SF_AVX512VL mode iterator.
4118         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
4119         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
4120         iterator.
4121         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
4122         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4123         iterator.
4124         (define_insn "*fma_fnmadd_<mode>"): Rename from
4125         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
4126         use FMAMODE mode iterator.
4127         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
4128         Use VF_SF_AVX512VL mode iterator.
4129         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
4130         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
4131         iterator.
4132         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
4133         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4134         iterator.
4135         (define_insn "*fma_fnmsub_<mode>"): Rename from
4136         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
4137         FMAMODE mode iterator.
4138         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
4139         Use VF_SF_AVX512VL mode iterator.
4140         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
4141         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
4142         iterator.
4143         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
4144         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4145         iterator.
4146         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
4147         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
4148         use VF_AVX512VL mode iterator.
4149         (define_insn "*fma_fmaddsub_<mode>"): Rename from
4150         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
4151         remove subst usage.
4152         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
4153         Use VF_SF_AVX512VL mode iterator.
4154         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
4155         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
4156         iterator.
4157         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
4158         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4159         iterator.
4160         (define_insn "*fma_fmsubadd_<mode>"): Rename from
4161         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
4162         remove usage of subst.
4163         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
4164         Use VF_SF_AVX512VL mode iterator.
4165         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
4166         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
4167         iterator.
4168         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
4169         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
4170         iterator.
4172 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
4174         Revert r213751:
4175         * calls.c (precompute_arguments): Check
4176          promoted_for_signed_and_unsigned_p and set the promoted mode.
4177         (promoted_for_signed_and_unsigned_p): New function.
4178         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
4179         and set the promoted mode.
4180         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
4181         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
4182         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
4184 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4186         * opth-gen.awk: Generate mapping from cpp message reasons to the
4187         options that enable them.
4188         * doc/options.texi (CppReason): Document.
4190 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4192         * doc/invoke.texi (Wnormalized=): Update.
4194 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
4196         PR target/63195
4197         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
4198         operands.  Split off the constant operand alternative to ...
4199         (*bool<mode>3_imm): New.
4201 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
4203         * rtl.h (single_set_2): Strengthen first param from const_rtx to
4204         const rtx_insn *, and move prototype to above...
4205         (single_set): ...this.  Convert this from a macro to an inline
4206         function, enforcing the requirement that the param is a const
4207         rtx_insn *.
4208         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
4210         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
4211         Strengthen both params from rtx to rtx_insn *.
4212         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
4213         Likewise; introduce locals "producer_set", "consumer_set", using
4214         them in place of "producer" and "consumer" when dealing with SET
4215         rather than insn.
4216         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
4217         when invoking single_set in region guarded by INSN_P.
4218         (avr_out_bitop): Likewise.
4219         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
4220         region guarded by GET_CODE check, using methods to strengthen
4221         local "this_insn" from rtx to rtx_insn *, and for clarity.
4222         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
4223         Strengthen local "insn" from rtx to rtx_insn *.
4224         (define_insn_and_split "xload<mode>_A"): Likewise.
4225         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
4226         "insn".
4227         (find_load): Likewise for return type.
4228         (workaround_speculation): Likewise for both locals named
4229         "load_insn".
4230         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
4231         local "cc0_user".
4232         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
4233         for local "prev".
4234         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
4235         param 2.
4236         * config/h8300/h8300.c (notice_update_cc): Likewise.
4237         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
4238         "insn" and "dep_insn".
4239         (exact_store_load_dependency): Likewise for both params.
4240         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
4241         since this now clashes with inline function.  Instead, delay
4242         calling single_set until the point where its needed, and then
4243         assign the result to "compare_set" and rework the conditional that
4244         follows.
4245         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
4246         local "last" from rtx to rtx_insn *.
4247         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
4248         second param.
4249         (mips_store_data_bypass_p): Likewise for both params.
4250         * config/mips/mips.c (mips_load_store_insns): Likewise for second
4251         param.
4252         (mips_store_data_bypass_p): Likewise for both params.
4253         (mips_orphaned_high_part_p): Likewise for param "insn".
4254         * config/mn10300/mn10300.c (extract_bundle): Likewise.
4255         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
4256         Introduce local rtx "insn2_pat".
4257         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
4258         "ninsn".
4259         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
4260         Introduce local rtx "set", using it in place of "insn" for the
4261         result of single_set.  This appears to fix a bug, since the call
4262         to find_regno_note on a SET does nothing.
4263         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
4264         params from rtx to rtx_insn *.
4265         (set_to_load_agen): Likewise.
4266         * config/s390/s390.c (s390_label_align): Likewise for local
4267         "prev_insn".  Introduce new rtx locals "set" and "src", using
4268         them in place of "prev_insn" for the results of single_set
4269         and SET_SRC respectively.
4270         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
4271         Introduce new rtx local "set" using in place of "jump" for the
4272         result of single_set.  Use SET_SRC (set) rather than plain
4273         XEXP (set, 1).
4274         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
4275         rtx to rtx_insn *.
4276         (noncall_uses_reg): Likewise.
4277         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
4278         guarded by GET_CODE check, using its methods for clarity, and to
4279         enable strengthening local "this_insn" from rtx to rtx_insn *.
4280         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
4281         "insn" from rtx to rtx_insn *.
4282         (define_expand "umulhisi3"): Likewise.
4283         (define_expand "smulsi3_highpart"): Likewise.
4284         (define_expand "umulsi3_highpart"): Likewise.
4285         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
4286         local "after".  Replace GET_CODE check with a dyn_cast,
4287         introducing new local rtx_sequence * "seq", using insn method for
4288         typesafety.
4290         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
4291         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
4292         place of "insn" once we're dealing with patterns rather than the
4293         input insn.
4294         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
4295         (scan_trace): Likewise for local "elt", updating lookups within
4296         sequence to use insn method rather than element method.
4297         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
4298         to rtx_insn *.
4299         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
4300         * ifcvt.c (noce_try_abs): Likewise for local "insn".
4301         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
4302         invoking single_set.
4303         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
4304         "insn" from rtx to rtx_insn *.
4305         (skip_usage_debug_insns): Likewise for return type, adding a
4306         checked cast.
4307         (check_secondary_memory_needed_p): Likewise for local "insn".
4308         (inherit_reload_reg): Likewise.
4309         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
4310         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
4311         checked casts.
4312         (store_data_bypass_p): Likewise for both params.
4313         (if_test_bypass_p): Likewise.
4314         * recog.h (store_data_bypass_p): Likewise for both params.
4315         (if_test_bypass_p): Likewise.
4316         * reload.c (find_equiv_reg): Likewise for local "where".
4317         * reorg.c (delete_jump): Likewise for param "insn".
4318         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
4319         to const rtx_insn *.
4320         * store-motion.c (replace_store_insn): Likewise for param "del".
4321         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
4322         and use its methods for clarity, and to strengthen local "del"
4323         from rtx to rtx_insn *.
4324         (build_store_vectors): Use insn method of "st" when calling
4325         replace_store_insn for typesafety and clarity.
4327 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4329         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
4330         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
4331         on how to make it legal in future.
4333 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
4335         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
4336         to rtx_insn *.
4337         (restinsn): Likewise.
4338         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
4339         Likewise for param.
4340         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
4341         Likewise.
4342         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
4343         first param.
4344         (arc_hazard): Likewise for both params.
4345         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
4346         checked casts to rtx_sequence * and uses of the insn method for
4347         type-safety.
4348         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
4349         (arc_adjust_insn_length): Likewise for param "insn".
4350         (struct insn_length_parameters_s): Likewise for first param of
4351         "get_variants" callback field.
4352         (arc_get_insn_variants): Likewise for first param and local
4353         "inner".  Replace a check of GET_CODE with a dyn_cast to
4354         rtx_sequence *, using methods for type-safety and clarity.
4355         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
4356         rtx_sequence * and uses of the insn method for type-safety when
4357         invoking arc_adjust_insn_length.
4358         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
4359         for param.
4360         (arm_address_offset_is_imm): Likewise.
4361         (struct tune_params): Likewise for params 1 and 3 of the
4362         "sched_adjust_cost" callback field.
4363         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
4364         params 1 and 3 ("insn" and "dep").
4365         (xscale_sched_adjust_cost): Likewise.
4366         (fa726te_sched_adjust_cost): Likewise.
4367         (cortexa7_older_only): Likewise for param "insn".
4368         (cortexa7_younger): Likewise.
4369         (arm_attr_length_move_neon): Likewise.
4370         (arm_address_offset_is_imm): Likewise.
4371         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
4372         * config/avr/avr.c (avr_notice_update_cc): Likewise.
4373         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
4374         (workaround_speculation): Likewise for local "last_condjump".
4375         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
4376         (shadow_or_blockage_p): Likewise.
4377         (get_unit_reqs): Likewise.
4378         (get_unit_operand_masks): Likewise.
4379         (c6x_registers_update): Likewise.
4380         (returning_call_p): Likewise.
4381         (can_use_callp): Likewise.
4382         (convert_to_callp): Likewise.
4383         (find_last_same_clock): Likwise for local "t".
4384         (reorg_split_calls): Likewise for local "shadow".
4385         (hwloop_pattern_reg): Likewise for param "insn".
4386         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
4387         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
4388         (frv_extract_membar): Likewise.
4389         (frv_optimize_membar_local): Strengthen param "last_membar" from
4390         rtx * to rtx_insn **.
4391         (frv_optimize_membar_global): Strengthen param "membar" from rtx
4392         to rtx_insn *.
4393         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
4394         to rtx_insn **.
4395         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
4396         both params from rtx to rtx_insn *.
4397         (ia64_ld_address_bypass_p): Likewise.
4398         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
4399         "insn".
4400         (ia64_safe_type): Likewise.
4401         (group_barrier_needed): Likewise.
4402         (safe_group_barrier_needed): Likewise.
4403         (ia64_single_set): Likewise.
4404         (is_load_p): Likewise.
4405         (record_memory_reference): Likewise.
4406         (get_mode_no_for_insn): Likewise.
4407         (important_for_bundling_p): Likewise.
4408         (unknown_for_bundling_p): Likewise.
4409         (ia64_st_address_bypass_p): Likewise for both params.
4410         (ia64_ld_address_bypass_p): Likewise.
4411         (expand_vselect): Introduce new local rtx_insn * "insn", using it
4412         in place of rtx "x" after the emit_insn call.
4413         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
4414         Strengthen param from rtx to rtx_insn *.
4415         (ix86_agi_dependent): Likewise for both params.
4416         (ix86_attr_length_immediate_default): Likewise for param 1.
4417         (ix86_attr_length_address_default): Likewise for param.
4418         (ix86_attr_length_vex_default): Likewise for param 1.
4419         * config/i386/i386.c (ix86_attr_length_immediate_default):
4420         Likewise for param "insn".
4421         (ix86_attr_length_address_default): Likewise.
4422         (ix86_attr_length_vex_default): Likewise.
4423         (ix86_agi_dependent): Likewise for both params.
4424         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
4425         (vselect_insn): Likewise for this variable.
4426         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
4427         for param 1.
4428         (m68k_sched_attr_opy_type): Likewise.
4429         * config/m68k/m68k.c (sched_get_operand): Likewise.
4430         (sched_attr_op_type): Likewise.
4431         (m68k_sched_attr_opx_type): Likewise.
4432         (m68k_sched_attr_opy_type): Likewise.
4433         (sched_get_reg_operand): Likewise.
4434         (sched_get_mem_operand): Likewise.
4435         (m68k_sched_address_bypass_p): Likewise for both params.
4436         (sched_get_indexed_address_scale): Likewise.
4437         (m68k_sched_indexed_address_bypass_p): Likewise.
4438         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
4439         (m68k_sched_indexed_address_bypass_p): Likewise.
4440         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
4441         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
4442         removing another.
4443         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
4444         params from rtx to rtx_insn *.
4445         (mips_fmadd_bypass): Likewise.
4446         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
4447         (mips_linked_madd_p): Likewise.
4448         (mips_macc_chains_last_hilo): Likewise for this variable.
4449         (mips_macc_chains_record): Likewise for param.
4450         (vr4130_last_insn): Likewise for this variable.
4451         (vr4130_swap_insns_p): Likewise for both params.
4452         (mips_ls2_variable_issue): Likewise for param.
4453         (mips_need_noat_wrapper_p): Likewise for param "insn".
4454         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
4455         in place of "x" after the emit_insn.
4456         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
4457         params from rtx to rtx_insn *.
4458         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
4459         (pa_combine_instructions): Introduce local "par" for result of
4460         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
4461         to make_insn_raw.
4462         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
4463         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
4464         (rl78_alloc_physical_registers_op1): Likewise.
4465         (rl78_alloc_physical_registers_op2): Likewise.
4466         (rl78_alloc_physical_registers_ro1): Likewise.
4467         (rl78_alloc_physical_registers_cmp): Likewise.
4468         (rl78_alloc_physical_registers_umul): Likewise.
4469         (rl78_alloc_address_registers_macax): Likewise.
4470         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
4471         * config/s390/predicates.md (execute_operation): Likewise for
4472         local "insn".
4473         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
4474         params.
4475         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
4476         (addr_generation_dependency_p): Likewise for param "insn".
4477         (s390_agen_dep_p): Likewise for both params.
4478         (s390_fpload_toreg): Likewise for param "insn".
4479         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
4480         * config/sh/sh.c (sh_loop_align): Likewise for param and local
4481         "next".
4482         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
4483         * config/sh/sh_treg_combine.cc
4484         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
4485         and local "i".
4486         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
4487         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
4488         "and_insn", "load", "shift".
4489         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
4490         "insn".
4491         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
4492         for XEXP (note, 0) of the REG_CC_SETTER note.
4493         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
4494         rtx_insn *, eliminating a checked cast made redundant by this.
4495         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
4496         to rtx_insn *.
4497         * genattr.c (main): When writing out the prototype to
4498         const_num_delay_slots, strengthen the param from rtx to
4499         rtx_insn *.
4500         * genattrtab.c (write_const_num_delay_slots): Likewise when
4501         writing out the implementation of const_num_delay_slots.
4502         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
4503         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
4504         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
4505         favor of new rtx locals "src" and "set" and new local rtx_insn *
4506         "insn" and "seq".
4507         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
4508         to rtx_insn *.
4509         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
4510         locals "cond", "if_then_else", "set" and new rtx_insn * locals
4511         "insn" and "seq".
4512         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
4513         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
4514         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
4515         the top-level scope, replacing with new more tightly-scoped rtx
4516         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
4517         "new_insn", "copy_of_insn_b", and make local rtx "set" more
4518         tightly-scoped.
4519         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
4520         rtx_insn *.
4521         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
4522         "move_insn".
4523         (ira_setup_alts): Likewise for param "insn".
4524         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
4525         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
4526         and an rtx_insn *.
4527         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
4528         new more-tightly scoped rtx locals "add3_insn", "insn",
4529         "add2_insn" and rtx_insn * "move_insn".
4530         * postreload-gcse.c (eliminate_partially_redundant_load): Add
4531         checked cast on result of gen_move_insn when invoking
4532         extract_insn.
4533         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
4534         rtx_insn *.
4535         (verify_changes): Add a checked cast on "object" when invoking
4536         insn_invalid_p.
4537         (extract_insn_cached): Strengthen param "insn" from rtx to
4538         rtx_insn *.
4539         (extract_constrain_insn_cached): Likewise.
4540         (extract_insn): Likewise.
4541         * recog.h (insn_invalid_p): Likewise for param 1.
4542         (recog_memoized): Likewise for param.
4543         (extract_insn): Likewise.
4544         (extract_constrain_insn_cached): Likewise.
4545         (extract_insn_cached): Likewise.
4546         * reload.c (can_reload_into): Likewise for local "test_insn".
4547         * reload.h (cleanup_subreg_operands): Likewise for param.
4548         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
4549         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
4550         result of emit_insn.  Remove a checked cast made redundant by this
4551         change.
4552         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
4553         rtx to rtx_insn *.
4554         * sel-sched.c (get_reg_class): Likewise.
4556 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4557         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4559          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
4560          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
4561         Define.
4562         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
4564 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
4566         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
4567         const rtx_insn *, and from rtx to rtx_insn * for the other
4568         overloaded variant.
4569         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
4570         INSN_LOCATION, since we know INSN_P holds.
4571         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
4572         (insn_file): Likewise.
4573         (insn_scope): Likewise.
4574         (insn_location): Likewise.
4576         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
4577         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
4578         for the result of gen_load_const_gp.
4579         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
4580         param from rtx to rtx_insn *.
4581         * config/rs6000/rs6000.c (output_call): Likewise.
4582         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
4583         introducing a checked cast to rtx_sequence * and use of the insn
4584         method.
4585         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
4586         from rtx to rtx_insn *.
4587         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
4588         (insn_line): Likewise.
4589         (insn_file): Likewise.
4590         (insn_location): Likewise.
4591         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
4592         from rtx to rtx_insn *.
4593         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
4594         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
4595         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
4596         via a checked cast.
4597         * reorg.c (relax_delay_slots): Strengthen locals named "after"
4598         from rtx to rtx_insn *; use methods of "pat" for type-safety.
4600 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
4602         * combine.c (try_combine): Eliminate checked cast on result of
4603         gen_rtx_INSN.
4604         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
4605         autogenerated one by strengthening the return type and params 2 and 3
4606         from rtx to rtx_insn *, and by naming the params.
4607         * gengenrtl.c (special_rtx): Add INSN to those that are
4608         special-cased.
4609         * rtl.h (gen_rtx_INSN): New prototype.
4611 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
4613         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
4614         than NULL_RTX.
4615         (no_equiv): Likewise.
4616         (update_equiv_regs): Likewise.
4617         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
4618         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
4619         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
4620         clarity.
4621         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
4622         from rtx to rtx_insn_list *.
4623         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
4624         rtx_insn_list * and use methods for clarity and typesafety.
4625         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
4626         "list".
4627         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
4628         redundant check on INSN_P (insns): this cannot hold, as "insns" is
4629         an INSN_LIST, not an insn.
4630         (reverse_equiv_p): Strengthen local "insns" from rtx to
4631         rtx_insn_list * and use methods for clarity and typesafety.
4632         (contains_reloaded_insn_p): Likewise for local "list".
4634 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
4636         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
4637         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
4638         (arm_builtin_vectorized_function): Likewise.
4639         * config/arm/arm_neon_builtins.def: New macro for copysignf.
4640         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
4642 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4644         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
4645         * builtins.h (default_target_builtins): Likewise.
4646         * gcse.h (default_target_gcse): Likewise.
4647         * target-globals.h (target_globals): Add a destructor.  Convert
4648         void-pointer fields back to their real type and change from
4649         GTY((atomic)) to GTY((skip)).
4650         (restore_target_globals): Remove casts accordingly.
4651         * target-globals.c (save_target_globals): Use XCNEW rather than
4652         ggc_internal_cleared_alloc to allocate non-GC structures.
4653         Use ggc_cleared_alloc to allocate the target_globals structure
4654         itself.
4655         (target_globals::~target_globals): Define.
4657 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4659         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
4660         mnemonic instead of fldmfdd.
4661         * config/arm/arm.c (vfp_output_fstmd): Rename to...
4662         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
4663         Output vpush when address register is SP.
4664         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
4665         (vfp_output_vstmd): ... This.
4666         * config/arm/vfp.md (push_multi_vfp): Update call to
4667         vfp_output_vstmd.
4669 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4671         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
4673 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4675         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
4676         (*sqrtdf2_vfp): Likewise.
4677         (*cmpsf_vfp): Likewise.
4678         (*cmpsf_trap_vfp): Likewise.
4679         (*cmpdf_vfp): Likewise.
4680         (*cmpdf_trap_vfp): Likewise.
4682 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4684         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
4685         (*truncdfsf2_vfp): Likewise.
4686         (*truncsisf2_vfp): Likewise.
4687         (*truncsidf2_vfp): Likewise.
4688         (fixuns_truncsfsi2): Likewise.
4689         (fixuns_truncdfsi2): Likewise.
4690         (*floatsisf2_vfp): Likewise.
4691         (*floatsidf2_vfp): Likewise.
4692         (floatunssisf2): Likewise.
4693         (floatunssidf2): Likewise.
4695 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4697         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
4698         (*muldf3_vfp): Likewise.
4699         (*mulsf3negsf_vfp): Likewise.
4700         (*muldf3negdf_vfp): Likewise.
4701         (*mulsf3addsf_vfp): Likewise.
4702         (*muldf3adddf_vfp): Likewise.
4703         (*mulsf3subsf_vfp): Likewise.
4704         (*muldf3subdf_vfp): Likewise.
4705         (*mulsf3negsfaddsf_vfp): Likewise.
4706         (*fmuldf3negdfadddf_vfp): Likewise.
4707         (*mulsf3negsfsubsf_vfp): Likewise.
4708         (*muldf3negdfsubdf_vfp): Likewise.
4710 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4712         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
4713         (*absdf2_vfp): Likewise.
4714         (*negsf2_vfp): Likewise.
4715         (*negdf2_vfp): Likewise.
4716         (*addsf3_vfp): Likewise.
4717         (*adddf3_vfp): Likewise.
4718         (*subsf3_vfp): Likewise.
4719         (*subdf3_vfp): Likewise.
4720         (*divsf3_vfp): Likewise.
4721         (*divdf3_vfp): Likewise.
4723 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4725         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
4726         multiple.
4727         (arm_print_operand): Don't convert real values to decimal
4728         representation in default case.
4729         (fp_immediate_constant): Delete.
4730         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
4731         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
4732         syntax.
4733         (*thumb2_movsi_vfp): Likewise.
4734         (*movdi_vfp): Likewise.
4735         (*movdi_vfp_cortexa8): Likewise.
4736         (*movhf_vfp_neon): Likewise.
4737         (*movhf_vfp): Likewise.
4738         (*movsf_vfp): Likewise.
4739         (*thumb2_movsf_vfp): Likewise.
4740         (*movdf_vfp): Likewise.
4741         (*thumb2_movdf_vfp): Likewise.
4742         (*movsfcc_vfp): Likewise.
4743         (*thumb2_movsfcc_vfp): Likewise.
4744         (*movdfcc_vfp): Likewise.
4745         (*thumb2_movdfcc_vfp): Likewise.
4747 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
4749         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
4750         (-mtune): Likewise.
4751         (-mcpu): Likewise.
4753 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4755         PR target/61749
4756         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
4757         Use qualifier_immediate for last operand.  Rename to...
4758         (aarch64_types_ternop_lane_qualifiers): ... This.
4759         (TYPES_QUADOP): Rename to...
4760         (TYPES_TERNOP_LANE): ... This.
4761         (aarch64_simd_expand_args): Return const0_rtx when encountering user
4762         error.  Change return of 0 to return of NULL_RTX.
4763         (aarch64_crc32_expand_builtin): Likewise.
4764         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
4765         ICE when expanding unknown builtin.
4766         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
4767         TERNOP_LANE qualifiers.
4768         (sqdmlsl_lane): Likewise.
4769         (sqdmlal_laneq): Likewise.
4770         (sqdmlsl_laneq): Likewise.
4771         (sqdmlal2_lane): Likewise.
4772         (sqdmlsl2_lane): Likewise.
4773         (sqdmlal2_laneq): Likewise.
4774         (sqdmlsl2_laneq): Likewise.
4776 2014-09-09  Nick Clifton  <nickc@redhat.com>
4778         * doc/invoke.texi (Optimization Options): Add missing @gol to the
4779         end of a line.
4780         (S/390 and zSeries Options): Remove superfluous word from the
4781         description of the -mhotpatch option.
4783 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4785         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
4786         * ira.c: #include "shrink-wrap.h"
4787         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
4788         * ifcvt.c: #include "shrink-wrap.h"
4789         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
4791 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
4793         * common/config/picochip/picochip-common.c: Remove.
4794         * config.gcc: Remove support for picochip.
4795         * config/picochip/constraints.md: Remove.
4796         * config/picochip/dfa_space.md: Remove.
4797         * config/picochip/dfa_speed.md: Remove.
4798         * config/picochip/picochip-protos.h: Remove.
4799         * config/picochip/picochip.c: Remove.
4800         * config/picochip/picochip.h: Remove.
4801         * config/picochip/picochip.md: Remove.
4802         * config/picochip/picochip.opt: Remove.
4803         * config/picochip/predicates.md: Remove.
4804         * config/picochip/t-picochip: Remove.
4805         * doc/md.texi: Don't document picochi.
4807 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
4809         * basic-block.h (control_flow_insn_p): Strengthen param from
4810         const_rtx to const rtx_insn *.
4811         * cfgbuild.c (control_flow_insn_p): Likewise.
4813 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
4815         * gcse.c (modify_mem_list): Strengthen this variable from
4816         vec<rtx> * to vec<rtx_insn *> *.
4817         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
4818         vec<rtx_insn *>.
4819         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
4820         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
4821         (record_last_mem_set_info): Strengthen param "insn" from rtx to
4822         rtx_insn *.
4823         (record_last_set_info): Likewise for local "last_set_insn".
4825 2014-09-08  DJ Delorie  <dj@redhat.com>
4827         * doc/invoke.texi (MSP430 Options): Add -minrt.
4829 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4831         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
4832         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
4833         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
4834         handling SH_SPLAT.
4835         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
4836         of extracted lane.
4837         (adjust_splat): New function.
4838         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
4839         (dump_swap_insn_table): Add case for SH_SPLAT.
4841 2014-09-08  Richard Biener  <rguenther@suse.de>
4843         PR ipa/63196
4844         * tree-inline.c (copy_loops): The source loop header should
4845         always be non-NULL.
4846         (tree_function_versioning): If loops need fixup after removing
4847         unreachable blocks fix them.
4848         * omp-low.c (simd_clone_adjust): Do not add incr block to
4849         loop under construction.
4851 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4853         * config/aarch64/aarch64-builtins.c
4854         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
4856 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
4858         * config/i386/cygming.h (TF_SIZE): Remove.
4859         * config/i386/darwin.h (TF_SIZE): Remove.
4860         * config/i386/dragonfly.h (TF_SIZE): Remove.
4861         * config/i386/freebsd.h (TF_SIZE): Remove.
4862         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
4863         * config/i386/openbsdelf.h (TF_SIZE): Remove.
4864         * config/i386/sol2.h (TF_SIZE): Remove.
4865         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
4866         * config/ia64/linux.h (TF_SIZE): Remove.
4867         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
4868         * doc/tm.texi: Regenerate.
4869         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
4871 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
4873         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
4874         Remove.
4875         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
4876         Remove.
4877         * doc/tm.texi: Regenerate.
4878         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
4879         Poison.
4880         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
4881         * config/cris/cris.h (__make_dp): Remove.
4883 2014-09-08  Richard Biener  <rguenther@suse.de>
4885         PR bootstrap/63204
4886         * cfgloop.c (mark_loop_for_removal): Track former header
4887         unconditionally.
4888         * cfgloop.h (struct loop): Add former_header member unconditionally.
4889         * loop-init.c (fix_loop_structure): Enable bogus loop removal
4890         diagnostic unconditionally.
4892 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
4894         PR target/63190
4895         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
4896         constraint for operand0 and remove write only modifier from operand3.
4898 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
4900         PR rtl-optimization/62208
4901         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
4902         rather than const0_rtx in eq/ne-xor simplifications.
4904 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
4906         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
4907         (arc_output_mi_thunk): Likewise.
4909         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
4910         arguments to silence bogus warning.
4912 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
4914         PR middle-end/63171
4915         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
4917 2014-09-06  Tom de Vries  <tom@codesourcery.com>
4919         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
4920         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
4921         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
4923 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
4925         PR target/63188
4926         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
4927         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
4929 2014-09-05  Easwaran Raman  <eraman@google.com>
4931         PR rtl-optimization/62146
4932         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
4933         hoisted instruction unconditional.
4935 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
4937         PR target/63187
4938         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
4939         Do not allow any_mask_operand for operands[2].
4940         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
4942 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
4944         * config/arc/arc.c (arc_print_operand): Use insn method of
4945         final_sequence for type-safety.
4946         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
4947         "insn" from rtx to rtx_insn *.
4948         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
4949         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
4950         Likewise for locals "branch", "label".
4951         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
4952         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
4953         (same_cmp_following_p): Likewise for locals "i2", "i3".
4954         * config/sh/sh_optimize_sett_clrt.cc
4955         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
4956         param "cbranch_insn".
4957         * function.c (convert_jumps_to_returns): Likewis for local "jump".
4958         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
4959         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
4960         const rtx_insn *.
4961         (condjump_p): Likewise.
4962         (condjump_in_parallel_p): Likewise.
4963         (pc_set): Likewise.
4964         (any_uncondjump_p): Likewise.
4965         (any_condjump_p): Likewise.
4966         (condjump_label): Likewise.
4967         (returnjump_p): Strengthen param "insn" from rtx to
4968         const rtx_insn *.
4969         (onlyjump_p): Strengthen param "insn" from const_rtx to
4970         const rtx_insn *.
4971         (jump_to_label_p): Likewise.
4972         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
4973         (invert_jump): Likewise.
4974         * reorg.c (simplejump_or_return_p): Add checked cast when calling
4975         simplejump_p.
4976         (get_jump_flags): Strengthen param "insn" from rtx to
4977         const rtx_insn *.
4978         (get_branch_condition): Likewise.
4979         (condition_dominates_p): Likewise.
4980         (make_return_insns): Move declaration of local "pat" earlier, to
4981         after we've handled NONJUMP_INSN_P and non-sequences, using its
4982         methods to simplify the code and for type-safety.
4983         * rtl.h (find_constant_src): Strengthen param from const_rtx to
4984         const rtx_insn *.
4985         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
4986         (condjump_p): Strengthen param from const_rtx to
4987         const rtx_insn *.
4988         (any_condjump_p): Likewise.
4989         (any_uncondjump_p): Likewise.
4990         (pc_set): Likewise.
4991         (condjump_label): Likewise.
4992         (simplejump_p): Likewise.
4993         (returnjump_p): Likewise.
4994         (onlyjump_p): Likewise.
4995         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
4996         (invert_jump): Likewise.
4997         (condjump_in_parallel_p): Strengthen param from const_rtx to
4998         const rtx_insn *.
4999         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
5000         to const rtx_insn *.
5001         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
5002         to const rtx_insn *.
5003         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
5005 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5007         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
5008         above the conditional, and convert the check on GET_CODE to a
5009         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
5010         the conditional.  Simplify the conditional by using methods of
5011         "trial_seq".
5013 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5015         * haifa-sched.c (check_clobbered_conditions): Strengthen local
5016         "link" from rtx to rtx_insn_list *, and use its methods for
5017         clarity and type-safety.
5018         (toggle_cancelled_flags): Likewise.
5019         (restore_last_backtrack_point): Likewise.
5020         (queue_to_ready): Use insn method of "link" in one place.
5021         (schedule_block): Strengthen local "link" from rtx to
5022         rtx_insn_list *, and use its methods for clarity and type-safety.
5024 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5026         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
5027         param "insn" from const_rtx to const rtx_insn *.
5028         (sched_get_reverse_condition_uncached): Likewise.
5029         (sched_get_condition_with_rev): Likewise.
5030         (sched_has_condition_p): Likewise.
5031         (sched_insns_conditions_mutex_p): Likewise for both params.
5032         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
5033         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
5034         (setup_insn_reg_uses): Move local "list" to be more tightly
5035         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
5036         its methods for clarity and type-safety.
5037         (sched_analyze_1): Strengthen local "pending" from rtx to
5038         rtx_insn_list *, and local "pending_mem" from rtx to
5039         rtx_expr_list *.  Use methods of each for clarity and type-safety.
5040         (sched_analyze_2): Likewise.
5041         (sched_analyze_insn): Likewise.
5043         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
5044         param from const_rtx to const rtx_insn *.
5045         (sched_insns_conditions_mutex_p): Likewise for both params.
5046         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
5047         param.
5049         * system.h (CONST_CAST_RTX_INSN): New macro.
5051 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5053         * recog.c (peep2_attempt): Strengthen return type from rtx to
5054         rtx_insn *.
5055         (peep2_update_life): Likewise for params "last", "prev", removing
5056         a checked cast made redundant by this.
5057         (peephole2_optimize): Likewise for local "last".
5059 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5061         * basic-block.h (set_block_for_insn): Eliminate this macro in
5062         favor of...
5063         * rtl.h (set_block_for_insn): New inline function, imposing the
5064         requirement that the "insn" param is an rtx_insn *.
5066 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5068         * caller-save.c (setup_save_areas): Strengthen local "insn" from
5069         rtx to rtx_insn *.
5070         * final.c (get_call_reg_set_usage): Likewise for first param,
5071         eliminating a checked cast.
5072         * regs.h (get_call_reg_set_usage): Likewise for first param.
5073         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
5074         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
5075         cast, replacing references to "x" with "call_insn" where
5076         appropriate.
5077         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
5078         rtx_insn *, adding a checked cast.
5080 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5082         * output.h (final_scan_insn): Strengthen first param from rtx to
5083         rtx_insn *.
5085         * final.c (final_scan_insn): Likewise, renaming it back from
5086         "uncast_insn" to "insn", eliminating the checked cast.
5088         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
5089         "vec" with an rtx_sequence * "seq", taking a copy of
5090         "final_sequence", and using methods of "seq" for clarity, and for
5091         type-safety in the calls to final_scan_insn.
5092         * config/mips/mips.c (mips_output_conditional_branch): Use methods
5093         of "final_sequence" for clarity, and for type-safety in the call to
5094         final_scan_insn.
5095         * config/sh/sh.c (print_slot): Strengthen param from rtx to
5096         rtx_sequence * and rename from "insn" to "seq".
5098 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5100         * jump.c (delete_related_insns): Introduce a new local "table" by
5101         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
5102         get_labels method of "table" to simplify access to the labels in
5103         the jump table.
5105 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5107         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
5108         f_minmaxs, f_minmaxd types.
5110 2014-09-05  Richard Biener  <rguenther@suse.de>
5112         * cfgloop.c (mark_loop_for_removal): Record former header
5113         when ENABLE_CHECKING.
5114         * cfgloop.h (strut loop): Add former_header member when
5115         ENABLE_CHECKING.
5116         * loop-init.c (fix_loop_structure): Sanity check loops
5117         marked for removal if they re-appeared.
5119 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5121         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
5122         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
5124         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
5125         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
5126         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
5127         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
5128         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
5129         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
5130         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
5131         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
5132         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
5133         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
5134         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
5135         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
5136         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
5137         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
5138         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
5139         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
5140         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
5141         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
5142         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
5143         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
5144         with int{32,16,8}_t.
5146 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5148         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
5149         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
5150         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
5151         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
5152         Remove temporary __asm__ and reimplement.
5154 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5156         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
5157         handling cmge, cmgt, cmeq, cmtst.
5159         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
5160         cmlt, cmgeu, cmgtu, cmtst): Remove.
5162         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
5163         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
5164         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
5165         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
5167 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5169         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
5170         TYPES_TST): Define.
5171         (aarch64_fold_builtin): Update pattern for cmtst.
5173         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
5174         Declare.
5176         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
5178         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
5179         Switch operands, separate out more cases, refactor.
5181         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
5183         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
5184         argument; rename old version to...
5185         (aarch64_const_vec_all_same_in_range_p): ...this.
5186         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
5188         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
5190 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5192         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
5193         Remove qualifier_const_pointer, update comment.
5195 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5197         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
5199 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5201         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
5202         varargs with pointer parameter.
5203         (aarch64_simd_expand_builtin): pass pointer into previous.
5205 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5207         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
5208         alus_ext.
5210 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
5212         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
5213         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
5214         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
5215         Replace temporary asm with call to builtin.
5216         (vrbit_p8, vrbitq_p8): New functions.
5218 2014-09-05  Richard Biener  <rguenther@suse.de>
5220         * cfgloop.c (mark_loop_for_removal): New function.
5221         * cfgloop.h (mark_loop_for_removal): Declare.
5222         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
5223         (merge_blocks): Likewise.
5224         (duplicate_block): Likewise.
5225         * except.c (sjlj_emit_dispatch_table): Likewise.
5226         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
5227         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
5228         (thread_through_loop_header): Likewise.
5230 2014-09-05  Richard Biener  <rguenther@suse.de>
5232         PR middle-end/63148
5233         * fold-const.c (try_move_mult_to_index): Remove.
5234         (fold_binary_loc): Do not call it.
5235         * tree-data-ref.c (dr_analyze_indices): Strip conversions
5236         from the base object again.
5238 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
5240         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
5241         DImode.
5243 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
5245         PR target/55701
5246         * config/arm/arm.md (setmem): New pattern.
5247         * config/arm/arm-protos.h (struct tune_params): New fields.
5248         (arm_gen_setmem): New prototype.
5249         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
5250         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5251         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5252         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
5253         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
5254         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
5255         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
5256         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5257         (arm_const_inline_cost): New function.
5258         (arm_block_set_max_insns): New function.
5259         (arm_block_set_non_vect_profit_p): New function.
5260         (arm_block_set_vect_profit_p): New function.
5261         (arm_block_set_unaligned_vect): New function.
5262         (arm_block_set_aligned_vect): New function.
5263         (arm_block_set_unaligned_non_vect): New function.
5264         (arm_block_set_aligned_non_vect): New function.
5265         (arm_block_set_vect, arm_gen_setmem): New functions.
5267 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
5269         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
5271 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
5273         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
5275 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
5277         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
5278         an rtx.
5279         * valtrack.h: Adjust.
5281 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
5283         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
5284         an rtx.
5285         (emit_jump_insn_before_noloc): Likewise.
5286         (emit_call_insn_before_noloc): Likewise.
5287         (emit_label_before): Likewise.
5288         (emit_label_after): Likewise.
5289         (emit_insn_before_setloc): Likewise.
5290         (emit_jump_insn_before_setloc): Likewise.
5291         (emit_call_insn_before_setloc): Likewise.
5292         (emit_call_insn_before): Likewise.
5293         * rtl.h: Adjust.
5295 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5297         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
5298         rtx_insn *, eliminating a checked cast.
5300 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5302         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
5303         const_rtx to const rtx_insn *.
5304         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
5305         cast.
5307 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5309         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
5310         fixup_args_size_notes.
5311         * expr.c (fixup_args_size_notes): Strengthen first two params from
5312         rtx to rtx_insn *, eliminating a checked cast.
5313         * rtl.h (fixup_args_size_notes): Strengthen first two params from
5314         rtx to rtx_insn *.
5316 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
5318         * haifa-sched.c (get_ready_element): Strengthen return type from
5319         rtx to rtx_insn *.
5320         * sched-int.h (get_ready_element): Likewise.
5322 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
5324         PR target/63165
5325         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
5326         indexed_or_indirect_operand instead of memory_operand.
5327         (floatsi<mode>2_lfiwzx_mem): Ditto.
5329 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
5331         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
5332         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
5333         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
5335 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
5337         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
5338         rtx.
5339         (get_last_nonnote_insn): Likewise.
5340         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
5341         * resource.c (find_basic_block): Likewise.
5342         * rtl.h: Adjust.
5343         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
5344         const_rtx.
5346 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
5348         * genattr.c (main): Within the prototype of insn_latency written
5349         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
5350         * genautomata.c (output_internal_maximal_insn_latency_func):
5351         Within the implementation of insn_latency written out to
5352         insn-automata.c, strengthen both params from rtx to rtx_insn *,
5353         eliminating a pair of checked casts.
5355 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
5357         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
5358         rtx_insn *.
5360         * rtl.h (eh_returnjump_p): Likewise.
5362 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
5364         * Makefile.in (TAGS): Handle constructs in timevar.def.
5366 2014-09-04  Guozhi Wei  <carrot@google.com>
5368         PR target/62040
5369         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
5370         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
5371         it into two patterns.
5372         (move_lo_quad_internal_be_<mode>): Likewise.
5374 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5376         * doc/options.texi: Document that Var and Init are required if CPP
5377         is given.
5378         * optc-gen.awk: Require Var and Init if CPP is given.
5379         * common.opt (Wpedantic): Use Init.
5381 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5383         * config/rs6000/rs6000.c (special_handling_values): Add
5384         SH_EXTRACT.
5385         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
5386         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
5387         as swappable with special handling SH_EXTRACT.  Remove
5388         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
5389         optimization.
5390         (adjust_extract): New function.
5391         (handle_special_swappables): Add default to case statement; add
5392         case for SH_EXTRACT that calls adjust_extract.
5393         (dump_swap_insn_table): Handle SH_EXTRACT.
5395 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5397         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
5398         selection of 0th memory doubleword, regardless of endianness.
5400 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5402         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
5404 2014-09-04  Alan Modra  <amodra@gmail.com>
5406         PR debug/60655
5407         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
5408         can't be output.
5410 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
5412         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
5413         * targhooks.c (default_dwarf_frame_reg_mode): New function.
5414         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
5415         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
5416         * doc/tm.texi: Regenerate.
5417         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
5418         selection logic to default_dwarf_frame_reg_mode.
5420 2014-09-03  Marek Polacek  <polacek@redhat.com>
5422         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
5423         by -Wall.
5425 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
5427         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
5428         the automodified register.
5430 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
5432         * output.h (get_some_local_dynamic_name): Declare.
5433         * final.c (some_local_dynamic_name): New variable.
5434         (get_some_local_dynamic_name): New function.
5435         (final_end_function): Clear some_local_dynamic_name.
5436         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
5437         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
5438         (print_operand): Report an error if '%&' is used inappropriately.
5439         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
5440         (get_some_local_dynamic_name_1): Delete.
5441         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
5442         (rs6000_get_some_local_dynamic_name): Delete.
5443         (rs6000_get_some_local_dynamic_name_1): Delete.
5444         (print_operand): Report an error if '%&' is used inappropriately.
5445         * config/s390/s390.c (machine_function): Remove some_ld_name.
5446         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
5447         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
5448         * config/sparc/sparc.c: Include rtl-iter.h.
5449         (machine_function): Remove some_ld_name.
5450         (sparc_print_operand): Report an error if '%&' is used inappropriately.
5451         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
5453 2014-09-03  Richard Henderson  <rth@redhat.com>
5455         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
5456         (aarch64_popwb_pair_reg): Remove.
5457         (aarch64_set_frame_expr): Remove.
5458         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
5459         the restore ops performed by the insns generated.
5460         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
5461         insn.  Perform the calls_eh_return addition later; do not attempt to
5462         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
5463         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
5464         special markup at all.  Load cfun->machine->frame.hard_fp_offset
5465         into a local variable.
5466         (aarch64_frame_pointer_required): Don't check calls_alloca.
5468 2014-09-03  Richard Biener  <rguenther@suse.de>
5470         * opts.c (default_options_optimization): Adjust
5471         max-combine-insns to 2 for -Og.
5473 2014-09-03  Martin Jambor  <mjambor@suse.cz>
5475         PR ipa/62015
5476         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
5477         pass-trough jump functions correctly.
5479 2014-09-03  Martin Jambor  <mjambor@suse.cz>
5481         PR ipa/61986
5482         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
5483         created replacements in ascending order of offsets.
5484         (known_aggs_to_agg_replacement_list): Likewise.
5486 2014-09-03  Martin Liska  <mliska@suse.cz>
5488         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
5489         is set to set uninitialized value for vnresult.
5491 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5493         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
5494         for TARGET_MUST_PASS_IN_STACK.
5496 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5498         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
5499         for TARGET_ARG_PARTIAL_BYTES.
5501 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5503         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
5504         instructions for varargs implementation.
5505         (nds32_expand_epilogue): Emit stack adjustment instructions for
5506         varargs implementation.
5508 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5510         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
5511         optimization detection.
5513 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5515         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
5516         arguments.
5517         (nds32_function_arg_advance): Deal with nameless arguments.
5518         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
5519         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
5520         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
5522 2014-09-03  Richard Biener  <rguenther@suse.de>
5524         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
5525         (struct bb_bitmap_sets): Remove deferred member.
5526         (BB_DEFERRED): Remove.
5527         (defer_or_phi_translate_block): Remove.
5528         (compute_antic_aux): Remove deferring of blocks, assert
5529         proper iteration order.
5530         (compute_antic): Do not set BB_DEFERRED.
5531         (eliminate): Allocate el_avail of proper size initially.
5533 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5535         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
5536         according to the value of crtl->args.pretend_args_size.
5538 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5540         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
5541         varargs information.
5543 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5545         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
5546         implementation for TARGET_SETUP_INCOMING_VARARGS.
5547         (nds32_strict_argument_naming): Refine comment.
5548         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
5549         Define for future implementation.
5551 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
5553         * config/i386/adxintrin.h (_subborrow_u32): New.
5554         (_addcarry_u32): Ditto.
5555         (_subborrow_u64): Ditto.
5556         (_addcarry_u64): Ditto.
5557         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
5558         IX86_BUILTIN_SBB64.
5559         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
5560         __builtin_ia32_sbb_u64
5562 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5564         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
5565         GPR-specific stuff.
5566         (nds32_function_arg_advance): Likewise.
5567         (nds32_init_cumulative_args): Likewise.
5568         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
5569         (NDS32_FIRST_GPR_REGNUM): Define.
5570         (NDS32_LAST_GPR_REGNUM): Define.
5571         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
5572         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
5573         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
5574         (machine_function): Use GRP-specific stuff.
5576 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5578         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
5579         (nds32_expand_epilogue): Likewise.
5580         (nds32_expand_prologue_v3push): Likewise.
5581         (nds32_expand_epilogue_v3pop): Likewise.
5583 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5585         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
5586         v3push/v3pop for variadic function.
5587         * config/nds32/nds32.md (prologue, epilogue): Likewise.
5589 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5591         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
5592         Check rtx for varargs implementation.
5593         (nds32_output_stack_pop): Likewise.
5594         * config/nds32/nds32-protos.h: Have a rtx argument for
5595         nds32_output_stack_push and nds32_output_stack_pop.
5596         * config/nds32/nds32.md: Likewise.
5598 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5600         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
5601         to check if FUNC is an interrupt service routine.
5602         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
5604 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5606         * config/nds32/nds32.h (machine_function): Add some fields for variadic
5607         arguments implementation.
5609 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5611         * config/nds32/nds32-predicates.c
5612         (nds32_valid_stack_push_pop): Rename to ...
5613         (nds32_valid_stack_push_pop_p): ... this.
5614         * config/nds32/nds32-protos.h: Likewise.
5615         * config/nds32/predicates.md: Likewise.
5617 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5619         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
5620         (nds32_emit_stack_v3push): ... this.
5621         (nds32_gen_stack_v3pop): Rename to ...
5622         (nds32_emit_stack_v3pop): ... this and consider CFA restore
5623         information.
5625 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5627         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
5628         (nds32_emit_stack_push_multiple): ... this.
5629         (nds32_gen_stack_pop_multiple): Rename to ...
5630         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
5631         information.
5633 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5635         PR target/61078
5636         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
5637         and add a second splitter to handle the remaining cases.
5639 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
5641         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
5643 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
5645         * cfgexpand.c (label_rtx_for_bb): Change type to
5646         hash_map<basic_block, rtx_code_label *> *.
5647         (expand_gimple_basic_block): Adjust.
5648         (pass_expand::execute): Likewise.
5650 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
5652         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
5653         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
5654         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
5655         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
5656         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
5657         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
5658         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
5659         of rtx.
5661 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
5663         * alloc-pool.c: Include coretypes.h.
5664         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
5665         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
5666         hash_set instead of htab.
5667         * ggc-page.c (in_gc): New variable.
5668         (ggc_free): Do nothing if a collection is taking place.
5669         (ggc_collect): Set in_gc appropriately.
5670         * ggc.h (gt_ggc_mx(const char *)): New function.
5671         (gt_pch_nx(const char *)): Likewise.
5672         (gt_ggc_mx(int)): Likewise.
5673         (gt_pch_nx(int)): Likewise.
5674         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
5675         (hash_map::hash_entry::pch_nx): Likewise.
5676         (hash_map::hash_entry::pch_nx_helper): Likewise.
5677 (hash_map::hash_map): Adjust.
5678 (hash_map::create_ggc): New function.
5679 (gt_ggc_mx): Likewise.
5680 (gt_pch_nx): Likewise.
5681         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
5682 (default_hashset_traits::pch_nx): Likewise.
5683 (hash_set::hash_entry::ggc_mx): Likewise.
5684 (hash_set::hash_entry::pch_nx): Likewise.
5685 (hash_set::hash_entry::pch_nx_helper): Likewise.
5686 (hash_set::hash_set): Adjust.
5687 (hash_set::create_ggc): New function.
5688 (hash_set::elements): Likewise.
5689 (gt_ggc_mx): Likewise.
5690 (gt_pch_nx): Likewise.
5691         * hash-table.h (hash_table::hash_table): Adjust.
5692 (hash_table::m_ggc): New member.
5693         (hash_table::~hash_table): Adjust.
5694         (hash_table::expand): Likewise.
5695         (hash_table::empty): Likewise.
5696 (gt_ggc_mx): New function.
5697         (hashtab_entry_note_pointers): Likewise.
5698 (gt_pch_nx): Likewise.
5700 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5702         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
5703         built-in definition.
5704         (XVCVUXDDP_SCALE): Likewise.
5705         (XVCVDPSXDS_SCALE): Likewise.
5706         (XVCVDPUXDS_SCALE): Likewise.
5707         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
5708         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
5709         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
5710         VSX_BUILTIN_XVCVDPUXDS_SCALE.
5711         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
5712         prototype.
5713         * config/rs6000/rs6000.c (real.h): New include.
5714         (rs6000_scale_v2df): New function.
5715         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
5716         (UNSPEC_VSX_XVCVUXDDP): Likewise.
5717         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
5718         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
5719         (vsx_xvcvsxddp_scale): New define_expand.
5720         (vsx_xvcvsxddp): New define_insn.
5721         (vsx_xvcvuxddp_scale): New define_expand.
5722         (vsx_xvcvuxddp): New define_insn.
5723         (vsx_xvcvdpsxds_scale): New define_expand.
5724         (vsx_xvcvdpsxds): New define_insn.
5725         (vsx_xvcvdpuxds_scale): New define_expand.
5726         (vsx_xvcvdpuxds): New define_insn.
5727         * doc/extend.texi (vec_ctf): Add new prototypes.
5728         (vec_cts): Likewise.
5729         (vec_ctu): Likewise.
5730         (vec_splat): Likewise.
5731         (vec_div): Likewise.
5732         (vec_mul): Likewise.
5734 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5736         PR target/62275
5737         * config/arm/neon.md
5738         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
5739         <v_cmp_result>): New pattern.
5740         * config/arm/iterators.md (NEON_VCVT): New int iterator.
5741         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
5742         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
5743         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
5744         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
5745         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
5747 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5749         PR target/62275
5750         * config/arm/iterators.md (FIXUORS): New code iterator.
5751         (VCVT): New int iterator.
5752         (su_optab): New code attribute.
5753         (su): Likewise.
5754         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
5756 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5758         * config/aarch64/predicates.md (aarch64_comparison_operation):
5759         New special predicate.
5760         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
5761         aarch64_comparison_operation instead of matching an operator.
5762         Update operand numbers.
5763         (csinc3<mode>_insn): Likewise.
5764         (*csinv3<mode>_insn): Likewise.
5765         (*csneg3<mode>_insn): Likewise.
5766         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
5767         * config/aarch64/aarch64.c (aarch64_get_condition_code):
5768         Return -1 instead of aborting on invalid condition codes.
5769         (aarch64_print_operand): Update aarch64_get_condition_code callsites
5770         to assert that the returned condition code is valid.
5771         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
5773 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
5775         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
5776         tree.def, and gimple.def
5778 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
5779             Balaji V. Iyer  <balaji.v.iyer@intel.com>
5780             Igor Zamyatin  <igor.zamyatin@intel.com>
5782         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
5783         (__cilkrts_cilk_for_64): Likewise.
5784         * cilk-common.c (declare_cilk_for_builtin): New function.
5785         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
5786         __cilkrts_cilk_for_64 bultins.
5787         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
5788         CILK_TI_F_LOOP_64.
5789         (cilk_for_32_fndecl): New define.
5790         (cilk_for_64_fndecl): Likewise.
5791         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
5792         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
5793         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
5794         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
5795         GF_OMP_FOR_COMBINED_INTO.
5796         * gimplify.c (gimplify_scan_omp_clauses): Added
5797         OMP_CLAUSE__CILK_FOR_COUNT_ case.
5798         (gimplify_adjust_omp_clauses): Ditto.
5799         (gimplify_omp_for): Added CILK_FOR case.
5800         (gimplify_expr): Ditto.
5801         * omp-low.c: Include cilk.h.
5802         (extract_omp_for_data): Set appropriate kind for
5803         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
5804         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
5805         (create_omp_child_function_name): Added second argument to handle
5806         cilk_for case.
5807         (cilk_for_check_loop_diff_type): New function.
5808         (expand_cilk_for_call): Likewise.
5809         (expand_cilk_for): Likewise.
5810         (create_omp_child_function): Set cilk_for_count; handle the cases when
5811         it is true; call create_omp_child_function_name with second argument.
5812         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
5813         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
5814         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
5815         * tree-nested.c (convert_nonlocal_omp_clauses): Added
5816         OMP_CLAUSE__CILK_FOR_COUNT_ case.
5817         (convert_local_omp_clauses): Ditto.
5818         * tree-pretty-print.c (dump_omp_clause): Added
5819         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
5820         (dump_generic_node): Added CILK_FOR case.
5821         * tree.c (omp_clause_num_ops): New element
5822         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
5823         (omp_clause_code_name): New element _Cilk_for_count_.
5824         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
5825         * tree.def: Add tree code for CILK_FOR.
5827 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5829         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
5830         (ppc403-compare): Add "exts with dot" case.
5831         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
5832         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
5833         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
5834         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
5835         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
5836         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
5837         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
5838         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
5839         cell-cmp-microcoded): Similarly.
5840         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
5841         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
5842         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
5843         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
5844         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
5845         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
5846         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
5847         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
5848         (power6-compare): Add "exts with dot" case.
5849         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
5850         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
5851         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
5853         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
5854         if avoiding Cell microcode.
5855         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
5856         (is_cracked_insn): Ditto.
5857         (insn_must_be_first_in_group): Ditto.
5858         * config/rs6000/rs6000.md (dot): Adjust comment.
5859         (cell_micro): Handle exts+dot.
5860         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
5861         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
5862         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
5863         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
5864         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
5865         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
5866         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
5868 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5870         * config/rs6000/rs6000.md (QHSI): Delete.
5871         (EXTQI, EXTHI, EXTSI): New mode iterators.
5872         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
5873         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
5874         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
5875         9 anonymous instructions, and 8 splitters): Delete.
5876         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
5877         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
5878         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
5879         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
5880         *zero_extendsi<mode>2_dot2): New.
5882 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5884         * config/rs6000/rs6000.md (any_extend): New code iterator.
5885         (u, su): New code attributes.
5886         (dmode, DMODE): New mode attributes.
5887         (<su>mul<mode>3_highpart): New.
5888         (*<su>mul<mode>3_highpart): New.
5889         (<su>mulsi3_highpart_le): New.
5890         (<su>muldi3_highpart_le): New.
5891         (<su>mulsi3_highpart_64): New.
5892         (<u>mul<mode><dmode>3): New.
5893         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
5894         splitters): Delete.
5895         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
5896         splitters): Delete.
5898 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
5900         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
5901         *mulsi3_internal2, and two splitters): Delete.
5902         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
5903         Delete.
5904         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
5906 2014-09-02  Richard Biener  <rguenther@suse.de>
5908         PR tree-optimization/62695
5909         * tree-ssa-structalias.c (find_func_clobbers): Add missing
5910         vector truncate.
5912 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
5914         PR target/62312
5915         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
5917 2014-09-01  Andi Kleen  <ak@linux.intel.com>
5919         * file-find.c (add_prefix_begin): Add.
5920         (do_add_prefix): Rename from add_prefix with first argument.
5921         (add_prefix): Add new wrapper.
5922         * file-find.h (add_prefix_begin): Add.
5923         * gcc-ar.c (main): Support -B option.
5925 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
5927         * genemit.c: Include dumpfile.h.
5928         (gen_split): Print name of splitter function to dump file.
5930 2014-09-01  Richard Biener  <rguenther@suse.de>
5932         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
5933         Use stack auto_vecs for constraint expressions.
5934         (find_func_aliases_for_call): Likewise.
5935         (find_func_aliases): Likewise.
5936         (find_func_clobbers): Likewise.
5938 2014-09-01  Richard Biener  <rguenther@suse.de>
5940         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
5941         operands vector in most cases.  Remove redundant code.
5943 2014-09-01  Olivier Hainque  <hainque@adacore.com>
5945         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
5946         $WIND_BASE instead of designating a harcoded arbitrary home dir.
5947         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
5949 2014-09-01  Richard Biener  <rguenther@suse.de>
5951         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
5952         copy_reference_ops_from_call, vn_nary_op_compute_hash,
5953         vn_reference_compute_hash, vn_reference_insert): Remove.
5954         (vn_reference_lookup_call): New function.
5955         * tree-ssa-sccvn.c (vn_reference_compute_hash,
5956         copy_reference_ops_from_ref, copy_reference_ops_from_call,
5957         vn_reference_insert, vn_nary_op_compute_hash): Make static.
5958         (create_reference_ops_from_call): Remove.
5959         (vn_reference_lookup_3): Properly update shared_lookup_references.
5960         (vn_reference_lookup_pieces): Assert that we updated
5961         shared_lookup_references properly.
5962         (vn_reference_lookup): Likewise.
5963         (vn_reference_lookup_call): New function.
5964         (visit_reference_op_call): Use it.  Avoid re-building the
5965         reference ops.
5966         (visit_reference_op_load): Remove redundant lookup.
5967         (visit_reference_op_store): Perform special tail-merging work
5968         only when possibly doing tail-merging.
5969         (visit_use): Likewise.
5970         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
5972 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
5974         PR target/62025
5975         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
5976         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
5977         (find_inc): Revert 2014-08-13 change.
5979 2014-09-01  Marek Polacek  <polacek@redhat.com>
5981         PR middle-end/61903
5982         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
5983         Change the type of V to unsigned HOST_WIDE_INT.
5985 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5987         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
5988         the size of byte markers.
5989         (do_shift_rotate): Fix confusion between host, target and marker byte
5990         size.
5991         (verify_symbolic_number_p): Likewise.
5992         (find_bswap_or_nop_1): Likewise.
5993         (find_bswap_or_nop): Likewise.
5995 2014-09-01  Olivier Hainque  <hainque@adacore.com>
5997         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
5998         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
6000 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
6002         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
6003         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
6004         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
6006 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
6008         PR sanitizer/61897
6009         PR sanitizer/62140
6010         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
6011         (build_check_stmt): Likewise.
6012         (instrument_strlen_call): Likewise.
6013         (asan_expand_check_ifn): Likewise and fix types.
6014         (maybe_cast_to_ptrmode): New function.
6016 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6018         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
6020 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
6022         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
6024 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
6026         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
6027         prefix to function labels when generating fast indirect calls.
6029 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
6031         PR bootstrap/62304
6033         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
6034         param back from rtx_insn * to rtx.  Rename param from "label" to
6035         "label_or_return", reintroducing "label" as an rtx_insn * after
6036         we've ensured it's not a RETURN.
6037         (first_active_target_insn): Likewise for return type and param;
6038         add a checked cast to rtx_insn * once we've ensured "insn" is not
6039         a RETURN.
6040         (steal_delay_list_from_target): Convert param "pnew_thread" back
6041         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
6042         with JUMP_LABEL.
6043         (own_thread_p): Convert param "thread" back from an rtx_insn * to
6044         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
6045         cast once we've established we're not dealing with a RETURN,
6046         renaming subsequent uses of "thread" to "thread_insn".
6047         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
6048         to JUMP_LABEL.
6049         (follow_jumps): Convert return type and param "label" from
6050         rtx_insn * back to rtx.  Move initialization of "value" to after
6051         the handling for ANY_RETURN_P, adding a checked cast there to
6052         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
6053         rename to "this_label_or_return", reintroducing "this_label" as
6054         an rtx_insn * once we've handled the case where it could be an
6055         ANY_RETURN_P.
6056         (fill_slots_from_thread): Rename param "thread" to
6057         "thread_or_return", converting from an rtx_insn * back to an rtx.
6058         Reintroduce name "thread" as an rtx_insn * local with a checked
6059         cast once we've handled the case of it being an ANY_RETURN_P.
6060         Convert local "new_thread" from an rtx_insn * back to an rtx.
6061         Add a checked cast when assigning to "trial" from "new_thread".
6062         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
6063         checked cast to rtx_insn * from "new_thread" when invoking
6064         get_label_before.
6065         (fill_eager_delay_slots): Convert locals "target_label",
6066         "insn_at_target" from rtx_insn * back to rtx.
6067         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
6068         (relax_delay_slots): Convert locals "trial", "target_label" from
6069         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
6070         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
6071         invoking update_block.
6072         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
6073         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
6075         * resource.h (mark_target_live_regs): Undo erroneous conversion
6076         of second param of r214693, converting it back from rtx_insn * to
6077         rtx, since it could be a RETURN.
6079         * resource.c (find_dead_or_set_registers): Similarly, convert
6080         param "jump_target" back from an rtx_insn ** to an rtx *, as we
6081         could be writing back a RETURN.  Rename local rtx_insn * "next" to
6082         "next_insn", and introduce "lab_or_return" as a local rtx,
6083         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
6084         (mark_target_live_regs): Undo erroneous conversion
6085         of second param of r214693, converting it back from rtx_insn * to
6086         rtx, since it could be a RETURN.  Rename it from "target" to
6087         "target_maybe_return", reintroducing the name "target" as a local
6088         rtx_insn * with a checked cast, after we've handled the case of
6089         ANY_RETURN_P.
6091 2014-08-29  DJ Delorie  <dj@redhat.com>
6093         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
6094         pointer size up to a power of two.
6095         * defaults.h (DWARF2_ADDR_SIZE): Round up.
6096         (POINTER_SIZE_UNITS): New, rounded up value.
6097         * dwarf2asm.c (size_of_encoded_value): Use it.
6098         (dw2_output_indirect_constant_1): Likewise.
6099         * expmed.c (init_expmed_one_conv): We now know the sizes of
6100         partial int modes.
6101         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
6102         * optabs.c (expand_float): Use precision, not size.
6103         (expand_fix): Likewise.
6104         * simplify-rtx (simplify_unary_operation_1): Likewise.
6105         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6106         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
6107         (default_assemble_integer) Likewise.
6108         (dump_tm_clone_pairs): Likewise.
6109         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
6110         * var-tracking.c (adjust_mems): Allow partial-int modes also.
6111         (prepare_call_arguments): Likewise.
6112         * stor-layout.c (finalize_type_size): Preserve precision.
6113         (layout_type): Use precision, not size.
6115         * expr.c (convert_move): If the target has an explicit converter,
6116         use it.
6118 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
6120         * gdbinit.in: Skip various inline functions in rtl.h when
6121         stepping.
6123 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
6125         PR bootstrap/62301
6126         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
6128 2014-08-29  Richard Biener  <rguenther@suse.de>
6130         PR tree-optimization/62291
6131         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
6132         exactly the vector size needed and use quick_push.
6133         (phi_translate_1): Adjust comment.
6134         (valid_in_sets): Remove block argument and remove pointless
6135         checking of NAMEs.
6136         (dependent_clean): Adjust for removal of block argument.
6137         (clean): Likewise.
6138         (compute_antic_aux): Likewise.
6139         (compute_partial_antic_aux): Likewise.
6141 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6142             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6143             Anna Tikhonova  <anna.tikhonova@intel.com>
6144             Ilya Tocar  <ilya.tocar@intel.com>
6145             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6146             Ilya Verbin  <ilya.verbin@intel.com>
6147             Kirill Yukhin  <kirill.yukhin@intel.com>
6148             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6150         * config/i386/sse.md
6151         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
6152         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
6153         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
6154         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
6156 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6157             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6158             Anna Tikhonova  <anna.tikhonova@intel.com>
6159             Ilya Tocar  <ilya.tocar@intel.com>
6160             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6161             Ilya Verbin  <ilya.verbin@intel.com>
6162             Kirill Yukhin  <kirill.yukhin@intel.com>
6163             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6165         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
6166         * config/i386/sse.md
6167         (define_mode_iterator VI4_128_8_256): New.
6168         (define_mode_iterator VI2_128_4_256): Ditto.
6169         (define_mode_iterator PMOV_DST_MODE): Rename into
6170         (define_mode_iterator PMOV_DST_MODE_1): this.
6171         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
6172         Use PMOV_DST_MODE_1 mode iterator.
6173         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
6174         Ditto.
6175         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
6176         Ditto.
6177         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
6178         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
6179         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
6180         (define_mode_iterator PMOV_DST_MODE_2): New.
6181         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
6182         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
6183         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
6184         Ditto.
6185         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
6186         (define_mode_attr pmov_dst_3): Ditto.
6187         (define_mode_attr pmov_dst_zeroed_3): Ditto.
6188         (define_mode_attr pmov_suff_3): Ditto.
6189         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
6190         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
6191         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
6192         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
6193         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
6194         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
6195         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
6196         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
6197         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
6198         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
6199         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
6200         (define_mode_attr pmov_dst_4): Ditto.
6201         (define_mode_attr pmov_dst_zeroed_4): Ditto.
6202         (define_mode_attr pmov_suff_4): Ditto.
6203         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
6204         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
6205         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
6206         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
6207         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
6208         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
6209         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
6210         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
6211         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
6212         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
6213         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
6215 2014-08-29  Richard Biener  <rguenther@suse.de>
6217         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
6218         NON_LVALUE_EXPR in gimple.
6220 2014-08-29  Richard Biener  <rguenther@suse.de>
6222         PR middle-end/62292
6223         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
6224         from previous refactoring.
6225         (gimple_fold_builtin_strncpy): Likewise.
6227 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
6229         PR bootstrap/62300
6230         * function.c (assign_parm_setup_reg): Remove erroneous checked
6231         cast to rtx_insn * on result of gen_extend_insn in favor of
6232         introducing a new local rtx "pat".
6234 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6236         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
6237         to silence warning.
6238         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
6240 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6242         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
6243         (next_insn): Likewise.
6244         * emit-rtl.c (next_insn): Likewise.
6245         (previous_insn): Likewise.
6246         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
6247         "insn" and "next" from rtx to rtx_insn *.
6248         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
6249         "insn", "insn1", "vliw_start",  "prologue_end_note",
6250         "last_insn_in_packet".
6252 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6254         * shrink-wrap.h (active_insn_between): Strengthen both params from
6255         rtx to rtx_insn *.
6256         * function.c (active_insn_between): Likewise.
6258 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6260         * genattr.c (main): When writing out insn-attr.h, strengthen param
6261         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
6262         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
6263         writing out the definition of dfa_clear_single_insn_cache to the
6264         generated insn-automata.c
6266 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6268         * resource.h (clear_hashed_info_for_insn): Strengthen param from
6269         rtx to rtx_insn *.
6270         (incr_ticks_for_insn): Likewise.
6271         (init_resource_info): Likewise.
6273         * resource.c (init_resource_info): Likewise.
6274         (clear_hashed_info_for_insn): Likewise.
6275         (incr_ticks_for_insn): Likewise.
6277         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
6278         rtx to rtx_insn *.
6279         (steal_delay_list_from_target): Use methods of "seq".
6280         (try_merge_delay_insns): Use methods of "merged_insns".
6281         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
6282         (reorg_redirect_jump): Likewise for param "jump".
6284 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6286         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
6287         rtx to rtx_insn *.
6288         * config/s390/s390.c (s390_split_branches): Eliminate top-level
6289         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
6290         "set_insn".
6291         (s390_mainpool_finish): In three places, split out a local rtx
6292         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
6293         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
6294          and split another local rtx "insn" out into rtx "pat" and
6295         rtx_insn * "insn".
6296         * config/sh/sh.c (output_branchy_insn): Rather than working
6297         directly on operands[9], introduce local rtx_code_label *
6298         variables named "lab" in two places, working on them, and then
6299         assigning them to operands[9], so that the intervening operations
6300         are known by the type system to be on insns.
6302 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6304         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
6305         const rtx_insn *.
6307         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
6308         in invocation of INSN_HAS_LOCATION.
6310 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6312         * config/rs6000/altivec.h (vec_xl): New #define.
6313         (vec_xst): Likewise.
6314         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
6315         (XXSPLTD_V2DI): Likewise.
6316         (DIV_V2DI): Likewise.
6317         (UDIV_V2DI): Likewise.
6318         (MUL_V2DI): Likewise.
6319         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6320         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
6321         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
6322         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
6323         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
6324         (UNSPEC_VSX_DIVSD): Likewise.
6325         (UNSPEC_VSX_DIVUD): Likewise.
6326         (UNSPEC_VSX_MULSD): Likewise.
6327         (vsx_mul_v2di): New insn-and-split.
6328         (vsx_div_v2di): Likewise.
6329         (vsx_udiv_v2di): Likewise.
6330         (vsx_xxspltd_<mode>): New insn.
6332 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6334         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
6335         NEXT_INSN.
6336         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
6337         (NEXT_INSN): Likewise.
6338         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
6339         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
6340         const rtx_insn *.
6341         (no_labels_between_p): Likewise for both params.
6343         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
6344         cast when using NEXT_INSN on operands[2].
6345         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
6346         "insn" from rtx to rtx_insn *, adding a checked cast.
6347         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
6348         rtx_insn *.
6349         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
6350         for third param.
6351         (arc_text_label): Likewise for param "insn".
6352         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
6353         "insn".
6354         (arc_ccfsm_record_condition): Likewise for param "jump".
6355         (arc_text_label): Likewise for local "label".
6356         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
6357         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
6358         a method for typesafety.  Add a checked cast.
6359         * config/arc/constraints.md (Clb): Add a checked cast when getting
6360         the CODE_LABEL from a LABEL_REF.
6361         * config/arm/arm.c (require_pic_register): Strengthen locals
6362         "seq", "insn" from rtx to rtx_insn *.
6363         (create_fix_barrier): Likewise for locals "selected", "next".
6364         (thumb1_reorg): Likewise for locals "prev", "insn".
6365         (arm_expand_prologue): Likewise for local "last".
6366         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
6367         operands[0].
6368         (thumb2_output_casesi): Likewise for operands[2].
6369         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
6370         strengthen local "insn" from rtx to rtx_insn *.
6371         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
6372         type and param "insn".
6373         (find_prev_insn_start): Likewise.
6374         (hwloop_optimize): Likewise for locals "insn", "last_insn",
6375         "prev".
6376         (gen_one_bundle): Likewise for loal "t".
6377         (find_load): Likewise for param "insn".
6378         (workaround_speculation): Likewise for locals "insn", "next",
6379         "target", "next_tgt".
6380         * config/c6x/c6x.c (assign_reservations): Likewise for both params
6381         and for locals "insn", "within", "last".
6382         (count_unit_reqs): Likewise for params "head", "tail" and local
6383         "insn".
6384         (try_rename_operands): Likewise for params "head", "tail".
6385         (reshuffle_units): Likewise for locals "head", "tail", "insn".
6386         (struct c6x_sched_context): Likewise for fields
6387         "last_scheduled_insn", "last_scheduled_iter0".
6388         (init_sched_state): Replace NULL_RTX with NULL.
6389         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
6390         to rtx_insn *.
6391         (undo_split_delayed_nonbranch): Likewise for param and for local
6392         "prev".
6393         (conditionalize_after_sched): Likewise for local "insn".
6394         (bb_earliest_end_cycle): Likewise.
6395         (filter_insns_above): Likewise for locals "insn", "next".
6396         (hwloop_optimize): Remove redundant checked cast.
6397         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
6398         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
6399         NULL_RTX with NULL.
6400         (cris_simple_epilogue): Likewise.
6401         (cris_expand_prologue): Likewise.
6402         (cris_expand_epilogue): Likewise.
6403         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
6404         local "insn" from rtx to rtx_insn *.
6405         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
6406         (struct frv_packet_group): Likewise for the elements within array
6407         fields "insns", "sorted", and for field "nop".
6408         (frv_packet): Likewise for the elements within array field
6409         "insns".
6410         (frv_add_insn_to_packet): Likewise for param "insn".
6411         (frv_insert_nop_in_packet): Likewise for param "insn" and local
6412         "last".
6413         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
6414         (frv_sort_insn_group_1): Likewise for local "insn".
6415         (frv_optimize_membar_local): Likewise.
6416         (frv_align_label): Likewise for locals "x", "last", "barrier",
6417         "label".
6418         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
6419         local.
6420         (ia64_sched_init): Likewise for local "insn".
6421         (scheduled_good_insn): Likewise for param "last".
6422         (struct _ia64_sched_context): Likewise for field
6423         "last_scheduled_insn".
6424         (ia64_init_sched_context): Replace NULL_RTX with NULL.
6425         (struct bundle_state): Likewise for field "insn".
6426         (issue_nops_and_insn): Likewise for param "insn".
6427         (get_next_important_insn): Likewise for return type and both
6428         params.
6429         (ia64_add_bundle_selector_before): Likewise for param "insn".
6430         (bundling): Likewise for params "prev_head_insn", "tail" and
6431         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
6432         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
6433         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
6434         Strengthen final param from rtx to rtx_insn *.
6435         (iq2000_move_1word): Likewise for second param.
6436         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
6437         param "cur_insn" and local "next_insn".
6438         (iq2000_move_1word): Likewise for param "insn".
6439         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
6440         casts when using NEXT_INSN on operands[1].
6441         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
6442         "insn" from rtx to rtx_insn *.
6443         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
6444         "x", introducing local rtx_insn * "insn" for when working with the
6445         CODE_LABEL of the LABEL_REF.
6446         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
6447         rtx_insn *.
6448         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
6449         param.
6450         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
6451         type.
6452         (conditionalize_block): Likewise for return type and param.
6453         (mcore_is_dead): Likewise for param "first" and local "insn".
6454         (emit_new_cond_insn): Likewise for return type.
6455         (conditionalize_block): Likewise for return type, param, and
6456         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
6457         "newinsn".
6458         (conditionalize_optimization): Likewise for local "insn".
6459         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
6460         using NEXT_INSN.
6461         * config/microblaze/microblaze.md: Add checked casts when using
6462         NEXT_INSN.
6463         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
6464         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
6465         and rtx_insn * "insn".
6466         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
6467         checked cast when using NEXT_INSN on operands[2].
6468         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
6469         local "insn" from rtx to rtx_insn *.
6470         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
6471         Likewise.
6472         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
6473         Add a checked cast when using NEXT_INSN on operands[1].
6474         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
6475         rtx to rtx_insn *.
6476         (pa_output_cbranch): Likewise for final param.
6477         (pa_output_lbranch): Likewise for second param.
6478         (pa_output_bb): Likewise for third param.
6479         (pa_output_bvb): Likewise.
6480         (pa_output_dbra): Likewise for second param.
6481         (pa_output_movb): Likewise.
6482         (pa_output_parallel_movb): Likewise.
6483         (pa_output_parallel_addb): Likewise.
6484         (pa_output_millicode_call): Likewise for first param.
6485         (pa_output_mul_insn): Likewise for second param.
6486         (pa_output_div_insn): Likewise for third param.
6487         (pa_output_mod_insn): Likewise for second param.
6488         (pa_jump_in_call_delay): Likewise for param.
6489         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
6490         (pa_output_div_insn): Likewise.
6491         (pa_output_mod_insn): Likewise.
6492         (pa_output_cbranch): Likewise.
6493         (pa_output_lbranch): Likewise.
6494         (pa_output_bb): Likewise.
6495         (pa_output_bvb): Likewise.
6496         (pa_output_dbra): Likewise.
6497         (pa_output_movb): Likewise.
6498         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
6499         to simplify and for typesafety.
6500         (pa_output_call): Use method of rtx_sequence *.
6501         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
6502         (pa_jump_in_call_delay): Likewise.
6503         (pa_output_parallel_movb): Likewise.
6504         (pa_output_parallel_addb): Likewise.
6505         (pa_following_call): Likewise.
6506         (pa_combine_instructions): Likewise for locals "anchor",
6507         "floater".
6508         (pa_can_combine_p): Likewise for params "anchor", "floater" and
6509         locals "start", "end".
6510         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
6511         param "insn" and local "local_insn".
6512         (picochip_final_prescan_insn): Likewise for local "local_insn".
6513         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
6514         local "insn".
6515         (uses_TOC): Likewise.
6516         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
6517         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
6518         splitting out to more tightly-scoped locals, 3 as rtx and one as
6519         rtx_insn *.
6520         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
6521         to rtx_insn *.
6522         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
6523         where needed.
6524         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
6525         to rtx_insn *.
6526         (fixup_addr_diff_vecs): Likewise.
6527         (reg_unused_after): Likewise for param 2.
6528         (sh_can_redirect_branch): Likewise for both params.
6529         (check_use_sfunc_addr): Likewise for param 1.
6530         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
6531         (find_barrier): Likewise for local "last_got".
6532         (gen_block_redirect): Likewise for return type, param "jump" and
6533         locals "prev", "scan", "next", "insn".
6534         (struct far_branch): Likewise for fields "near_label",
6535         "insert_place", "far_label".
6536         (gen_far_branch): Likewise for local "jump".
6537         (fixup_addr_diff_vecs): Likewise for param "first" and locals
6538         "insn", "prev".
6539         (barrier_align): Likewise for param and for locals "prev", "x".
6540         Introduce local rtx_sequence * "prev_seq" and use insn method for
6541         typesafety and clarity.
6542         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
6543         (get_dest_uid): Likewise for local "dest".
6544         (split_branches): Likewise for locals "next", "beyond", "label",
6545         "block", "far_label".  Add checked casts when assigning to
6546         bp->far_label and "far_label".
6547         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
6548         (sequence_insn_p): Likewise.
6549         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
6550         more loop-scoped rtx "insn" when walking LABEL_REFS.
6551         (sh_can_redirect_branch): Strengthen both params from rtx to
6552         rtx_insn *.
6553         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
6554         new local rtx_sequence * "seq" via a dyn_cast, and use a method
6555         for clarity and typesafety.
6556         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
6557         "insn" from rtx to rtx_insn *.
6558         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
6559         when using NEXT_INSN on the CODE_LABEL in operands[2].
6560         (define_insn "casesi_worker_2"): Likewise.
6561         (define_insn "casesi_shift_media"): Likewise.
6562         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
6563         operands[3].
6564         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
6565         Strengthen field "insn" from rtx to rtx_insn *.
6566         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
6567         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
6568         param "start_insn" and local "start_insn".
6569         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
6570         field "insn".
6571         (find_set_of_reg_bb): Likewise for param "insn".
6572         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
6573         (trace_reg_uses): Likewise for param "start_insn".
6574         (sh_treg_combine::cbranch_trace): Likewise for field
6575         "cbranch_insn".
6576         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
6577         param "insn".
6578         (sh_treg_combine::record_set_of_reg): Likewise for param
6579         "start_insn" and local "i".
6580         (sh_treg_combine::can_remove_cstore): Likewise for local
6581         "prev_insn".
6582         (sh_treg_combine::try_optimize_cbranch): Likewise for param
6583         "insn".
6584         (sh_treg_combine::execute): Likewise for local "i".
6585         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
6586         param.
6587         (sparc_check_64): Likewise for second param.
6588         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
6589         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
6590         dyn_cast, using its insn method for typesafety and clarity.
6591         (empty_delay_slot): Strengthen param "insn" from rtx to
6592         rtx_insn *.
6593         (set_extends): Likewise.
6594         (sparc_check_64): Likewise.
6595         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
6596         for locals "seq", "last_insn".
6597         (combine_bnp): Likewise for param "insn".
6598         (xstormy16_reorg): Likewise for local "insn".
6599         * config/v850/v850.c (substitute_ep_register): Likewise for params
6600         "first_insn", "last_insn" and local "insn".
6601         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
6602         elements of "regs" array, and local "insn".
6603         * except.c (emit_note_eh_region_end): Likewise for param "insn".
6604         * final.c (final_sequence): Strengthen this global from rtx to
6605         rtx_sequence *.
6606         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
6607         rtx_insn *.
6608         (final_scan_insn): Update assignment to "final_sequence" to be
6609         from "seq", the cast version of "body", for type-safety.
6610         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
6611         "insns" from rtx to rtx_insn *.
6612         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
6613         * genattr.c (main): When writing out generated insn-attr.h,
6614         strengthen params 1 and 3 of eligible_for_delay,
6615         eligible_for_annul_true, eligible_for_annul_false from rtx to
6616         rtx_insn *.
6617         * genattrtab.c (write_eligible_delay): Likewise when writing out
6618         generated insn-attrtab.c; also local "insn" the generated
6619         functions.
6620         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
6621         to rtx_insn *.
6622         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
6623         "start_label" from rtx to rtx_insn *.
6624         * ira.c (decrease_live_ranges_number): Likewise for local "p".
6625         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
6626         "insns" and local "insn".
6627         (validate_equiv_mem): Likewise for param "start" and local "insn".
6628         (memref_used_between_p): Likewise for params "start", "end" and
6629         local "insn".
6630         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
6631         final param.
6632         * loop-doloop.c (doloop_optimize): Within region guarded by
6633         INSN_P (doloop_pat), introduce a new local rtx_insn *
6634         "doloop_insn" via a checked cast, and use it for typesafety,
6635         eventually writing the value back into doloop_pat.
6636         * output.h (final_sequence): Strengthen this global from rtx to
6637         rtx_sequence *.
6638         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
6639         reintroducing "insn" as an rtx_insn * via a checked cast.
6640         Strengthen param "attempt" and local "new_insn"from rtx to
6641         rtx_insn *.
6642         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
6643         to rtx_insn *.
6644         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
6645         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
6646         "p" in favor of more tightly-scoped replacements, sometimes rtx
6647         and sometimes rtx_insn *, as appropriate.
6648         (delete_output_reload): Eliminate top-level rtx "i1", splitting
6649         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
6650         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
6651         local "trial" from rtx to rtx_insn *.
6652         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
6653         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
6654         rtx_sequence * and use methods for clarity and typesafety.
6655         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
6656         rtx to rtx_insn *.  Strenghten local "li" from rtx to
6657         rtx_insn_list * and use its methods for clarity and typesafety.
6658         (steal_delay_list_from_target): Strengthen param "insn" from rtx
6659         to rtx_insn *.
6660         (steal_delay_list_from_fallthrough): Likewise.
6661         (try_merge_delay_insns): Likewise for param "thread" and locals
6662         "trial", "next_trial", "delay_insn".
6663         (redundant_insn): Likewise for param "target" and local "trial".
6664         (own_thread_p): Likewise for param "thread" and locals
6665         "active_insn", "insn".
6666         (get_label_before): Likewise for param "insn".
6667         (fill_simple_delay_slots): Likewise for local "new_label"; use
6668         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
6669         (label_before_next_insn): Strengthen return type and local "insn"
6670         from rtx to rtx_insn *.
6671         (relax_delay_slots): Likewise for locals "other", "tmp".
6672         (make_return_insns): Likewise for param "first" and locals "insn",
6673         "jump_insn", "prev".  Move declaration of "pat" to its assignment
6674         and strengthen from rtx to rtx_sequence *.  Use its methods for
6675         clarity and typesafety.
6676         * rtlanal.c (no_labels_between_p): Strengthen params from
6677         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
6678         rtx_insn *.
6679         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
6680         from const_rtx to const rtx_insn *.
6681         (reg_set_between_p): Rename param "from_insn" to
6682         "uncast_from_insn", and reintroduce "from_insn" as a
6683         const rtx_insn * via a checked cast.
6684         (modified_between_p): Likewise for param "start" as "uncast_start".
6685         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
6686         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
6687         "tmp", head" from rtx to rtx_insn *.
6688         (recompute_rev_top_order): Likewise for local "insn".
6689         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
6690         * store-motion.c (build_store_vectors): Likewise for local "insn".
6691         Strengthen local "st" from rtx to rtx_insn_list * and use methods
6692         for clarity and typesafety.
6693         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
6694         rtx to rtx_insn *.
6695         (computation_cost): Likewise for local "seq".
6696         (get_address_cost): Likewise.
6698 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6700         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
6701         const rtx_insn *.
6702         (label_is_jump_target_p): Likewise for second param.
6704         * rtlanal.c (tablejump_p): Likewise for param "insn".
6705         (label_is_jump_target_p): Likewise for param "jump_insn".
6707 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6709         * rtl.h (find_first_parameter_load): Strengthen return type and
6710         both params from rtx to rtx_insn *.
6711         * rtlanal.c (find_first_parameter_load): Strengthen return type,
6712         both params and locals "before", "first_set" from rtx to
6713         rtx_insn *.  Remove now-redundant cast.
6714         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
6716 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6718         * rtl.h (find_last_value): Delete.
6719         * rtlanal.c (find_last_value): Delete.
6721 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6723         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
6724         from rtx to rtx_insn *.
6725         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
6726         rtx "note" with new local rtx_insn * "new_head" when calculating
6727         head insn of new basic block.
6728         * combine.c (combine_split_insns): Strengthen return type and local
6729         "ret" from rtx to rtx_insn *.
6730         (likely_spilled_retval_p): Likewise for locals "use" and "p".
6731         (try_combine): Eliminate local "m_split", splitting into new
6732         locals "m_split_insn" and "m_split_pat".
6733         (find_split_point): Strengthen local "seq" from rtx into
6734         rtx_insn *.
6735         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
6736         locals "label", "branch".
6737         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
6738         for local "insn".
6739         (define_expand "umulsi3_highpart"): Likewise for local "insn".
6740         * dse.c (note_add_store_info): Likewise for fields "first",
6741         "current".
6742         (note_add_store): Likewise for local "insn".
6743         (emit_inc_dec_insn_before): Likewise for locals "insn",
6744         "new_insn", "cur".
6745         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
6746         (replace_read): Likewise for locals "insns", "this_insn".
6747         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
6748         (notice_eh_throw): Likewise for param "insn".
6749         (before_next_cfi_note): Likewise for return type, param, and local
6750         "prev".
6751         (connect_traces): Likewise for local "note".
6752         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
6753         (verify_rtl_sharing): Likewise.
6754         (unshare_all_rtl_in_chain): Likewise for param "insn".
6755         (get_first_nonnote_insn): Likewise for local "insn".
6756         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
6757         "seq" and use its methods to clarify things.
6758         (next_insn): Strengthen return type from rtx to rtx_insn *.
6759         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
6760         local rtx_insn * using a checked cast, dropping a checked cast
6761         made redundant by this change.  Use a cast to and method of
6762         rtx_sequence to clarify the code.
6763         (previous_insn): Rename param "insn" to "uncast_insn" and
6764         reintroduce "insn" as a local rtx_insn * using a checked cast,
6765         dropping a checked cast made redundant by this change.  Use a cast
6766         to and method of rtx_sequence to clarify the code.
6767         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
6768         reintroduce "insn" as a local rtx_insn * using a checked cast,
6769         dropping a checked cast made redundant by this change.
6770         (next_nonnote_insn_bb): Likewise.
6771         (prev_nonnote_insn): Likewise.
6772         (prev_nonnote_insn_bb): Likewise.
6773         (next_nondebug_insn): Likewise.
6774         (prev_nondebug_insn): Likewise.
6775         (next_nonnote_nondebug_insn): Likewise.
6776         (prev_nonnote_nondebug_insn): Likewise.
6777         (next_real_insn): Likewise.
6778         (prev_real_insn): Likewise.
6779         (next_active_insn): Likewise.
6780         (prev_active_insn): Likewise.
6781         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
6782         clarity.
6783         (prev_cc0_setter): Likewise.
6784         (try_split): Rename param "trial" to "uncast_trial" and
6785         reintroduce "insn" as a local rtx_insn * using a checked cast,
6786         dropping checked casts made redundant by this change.
6787         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
6788         rtx to rtx_insn *.
6789         (remove_insn): Rename param "insn" to "uncast_insn" and
6790         reintroduce "insn" as a local rtx_insn * using a checked cast.
6791         (emit_pattern_after_setloc): Likewise for param "after", as
6792         "uncast_after".
6793         (emit_pattern_after): Likewise.  Strengthen local "prev" from
6794         rtx to rtx_insn *.
6795         (emit_pattern_before_setloc): Rename param "before" to
6796         "uncast_before" and reintroduce "before" as a local rtx_insn *
6797         using a checked cast.  Strengthen locals "first", "last" from
6798         rtx to rtx_insn *.
6799         (emit_pattern_before): Likewise rename/cast param "before" to
6800         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
6801         * except.c (copy_reg_eh_region_note_forward): Strengthen param
6802         "first" and local "insn" from rtx to rtx_insn *.
6803         (copy_reg_eh_region_note_backward): Likewise for param "last"
6804         and local "insn".
6805         * expr.c (fixup_args_size_notes): Rename param "last" to
6806         "uncast_last" and reintroduce "last" as a local rtx_insn *
6807         using a checked cast.  Strengthen local "insn" from rtx to
6808         rtx_insn *.
6809         * function.c (set_insn_locations): Strengthen param "insn" from
6810         rtx to rtx_insn *.
6811         (record_insns): Likewise for param "insns" and local "tmp".
6812         (active_insn_between): Rename param "tail" to
6813         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
6814         using a checked cast.
6815         (thread_prologue_and_epilogue_insns): Split out top-level local
6816         rtx "seq" into three different rtx_insn * locals.  Strengthen
6817         local "prologue_seq" from rtx to rtx_insn *.
6818         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
6819         from rtx to rtx_insn *.
6820         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
6821         (priority): Likewise for locals "prev_first", "twin".
6822         (setup_insn_max_reg_pressure): Likewise for param "after".
6823         (sched_setup_bb_reg_pressure_info): Likewise.
6824         (no_real_insns_p): Strengthen params from const_rtx to
6825         const rtx_insn *.
6826         (schedule_block): Strengthen local "next_tail" from rtx to
6827         rtx_insn *.
6828         * ifcvt.c (find_active_insn_before): Strengthen return type and
6829         param "insn" from rtx to rtx_insn *.
6830         (find_active_insn_after): Likewise.
6831         (cond_exec_process_insns): Likewise for param "start" and local "insn".
6832         (cond_exec_process_if_block): Likewise for locals "then_start",
6833         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
6834         (noce_process_if_block): Likewise for local "jump".
6835         (merge_if_block): Likewise for two locals named "end".
6836         (cond_exec_find_if_block): Likewise for local "last_insn".
6837         * jump.c (delete_related_insns): Rename param "insn" to
6838         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
6839         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
6840         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
6841         NULL.
6842         (split_reg): Likewise.
6843         * lra.c (lra_process_new_insns): Likewise.
6844         * modulo-sched.c (permute_partial_schedule): Strengthen param
6845         "last" from rtx to rtx_insn *.
6846         * optabs.c (add_equal_note): Likewise for param "insns" and local
6847         "last_insn".
6848         (expand_binop_directly): Add checked casts to rtx_insn * within
6849         NEXT_INSN (pat) uses.
6850         (expand_unop_direct): Likewise.
6851         (maybe_emit_unop_insn): Likewise.
6852         * recog.c (peep2_attempt): Strengthen locals "last",
6853         "before_try", "x" from rtx to rtx_insn *.
6854         * reorg.c (optimize_skip): Strengthen return type and local
6855         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
6856         and locals "trial", "next_trial" from rtx to rtx_insn *.
6857         * resource.c (next_insn_no_annul): Strengthen return type and
6858         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
6859         rtx_sequence to clarify the code.
6860         (mark_referenced_resources): Add a checked cast to rtx_insn *
6861         within PREV_INSN (x).
6862         (find_dead_or_set_registers): Strengthen return type, param
6863         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
6864         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
6865         to rtx_insn **.
6866         (mark_target_live_regs): Strengthen params "insns" and "target",
6867         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
6868         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
6869         the code.
6870         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
6871         from rtx to rtx_insn *.
6872         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
6873         from rtx to rtx_insn *.
6874         (copy_reg_eh_region_note_backward): Likewise.
6875         (unshare_all_rtl_in_chain): Likewise for sole param.
6876         (dump_rtl_slim): Strengthen second and third params from const_rtx
6877         to const rtx_insn *.
6878         * sched-deps.c (sched_free_deps): Strengthen params "head" and
6879         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
6880         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
6881         "next_tail" from rtx to rtx_insn *.
6882         (begin_move_insn): Likewise for local "next".
6883         * sched-int.h (sched_free_deps): Likewise for first and second
6884         params.
6885         (no_real_insns_p): Strengthen both params from const_rtx to
6886         const rtx_insn *.
6887         (sched_setup_bb_reg_pressure_info): Strengthen second params from
6888         rtx to rtx_insn *.
6889         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
6890         "next_tail".
6891         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
6892         and locals "insn", "tail" from const_rtx to const rtx_insn *.
6893         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
6894         rtx_insn *.
6895         (debug_rtl_slim): Strengthen params "first" and "last" from
6896         const_rtx to const rtx_insn *.
6897         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
6898         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
6899         (convert_to_simple_return): Likewise for param "returnjump".
6900         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
6901         "prologue_seq".
6902         (convert_to_simple_return): Likewise for param "returnjump".
6903         * valtrack.c (propagate_for_debug): Likewise for params
6904         "insn", "last".
6905         * valtrack.h (propagate_for_debug): Likewise for second param.
6907 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6909         * output.h (insn_current_reference_address): Strengthen param
6910         from rtx to rtx_insn *.
6911         * final.c (insn_current_reference_address): Likewise.
6913 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6915         * basic-block.h (inside_basic_block_p): Strengthen param from
6916         const_rtx to const rtx_insn *.
6917         * cfgbuild.c (inside_basic_block_p): Likewise.
6919 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6921         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
6922         rtx_insn *.
6923         (get_trace_info): Likewise for param "insn".
6924         (save_point_p): Likewise.
6925         (maybe_record_trace_start): Likewise for both params.
6926         (maybe_record_trace_start_abnormal): Likewise.
6927         (create_trace_edges): Likewise for sole param and for three of the
6928         locals named "lab".
6929         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
6930         to rtx_insn *, and update a call to pat->element to pat->insn.
6932 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6934         * function.h (struct expr_status): Convert field "x_forced_labels"
6935         from rtx_expr_list * to rtx_insn_list *.
6937         * cfgbuild.c (make_edges): Convert local "x" from an
6938         rtx_expr_list * to an rtx_insn_list *, replacing use of
6939         "element" method with "insn" method.
6940         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6941         * except.c (sjlj_emit_dispatch_table): Replace use of
6942         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
6943         forced_labels.
6944         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
6945         rtx_expr_list * to an rtx_insn_list *, replacing use of
6946         "element" method with "insn" method.
6947         * reload1.c (set_initial_label_offsets): Likewise for local "x".
6948         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
6949         rtx_insn *, adding a checked cast.  Replace use of
6950         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
6951         forced_labels.
6952         (expand_label): Likewise for local "label_r".
6954 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6956         * function.h (struct rtl_data): Convert field
6957         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
6958         rtx_insn_list *.
6959         * rtl.h (remove_node_from_insn_list): New prototype.
6961         * builtins.c (expand_builtin): When prepending to
6962         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
6963         gen_rtx_EXPR_LIST.
6964         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
6965         to rtx_insn_list *, and use its "insn" method rather than
6966         "element" method.
6967         * cfgrtl.c (delete_insn): Use new function
6968         remove_node_from_insn_list rather than
6969         remove_node_from_expr_list.
6970         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
6971         to rtx_insn_list *, and use its "insn" method rather than
6972         "element" method.
6973         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
6974         * reload1.c (set_initial_label_offsets): Likewise for local "x".
6975         * rtlanal.c (remove_node_from_insn_list): New function, adapted
6976         from remove_node_from_expr_list.
6977         * stmt.c (expand_label): When prepending to
6978         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
6979         gen_rtx_EXPR_LIST.
6981 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6983         * function.h (struct rtl_data): Strengthen fields "x_return_label"
6984         and "x_naked_return_label" from rtx to rtx_code_label *.
6986 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
6988         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
6989         (SET_NEXT_INSN): Likewise.
6990         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
6992         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
6993         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
6994         to split out the SEQUENCE from local "bundle", strengthening the
6995         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
6996         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
6997         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
6998         and the type of the elements of the "slot" array from rtx to
6999         rtx_insn *.
7000         (reorg_split_calls): Likewise for locals "insn" and "next", and
7001         the type of the elements of the "slot" array.
7003         * config/frv/frv.c (frv_nops): Likewise for the elements of this
7004         array.
7005         (frv_function_prologue): Likewise for locals "insn", "next",
7006         "last_call".
7007         (frv_register_nop): Introduce a local "nop_insn" to be the
7008         rtx_insn * containing rtx "nop".
7010         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
7011         used as an insn and sometimes as a pattern, so rename it to
7012         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
7013         using it where dealing with the core insn.
7015         * config/picochip/picochip.c (reorder_var_tracking_notes):
7016         Strengthen locals "insn", "next", "last_insn", "queue",
7017         "next_queue", "prev" from rtx to rtx_insn *.
7019         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
7020         the second param is an rtx_insn ** rather than an rtx **.
7021         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
7022         from rtx to rtx_sequence *, and introduce local named "sequence",
7023         using methods of rtx_sequence to clarify the code.
7024         (remove_insn): Introduce local rtx_sequence * named "sequence" and
7025         use its methods.
7026         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
7027         Rename param "after" to "uncast_after", reintroducing "after" as a
7028         local rtx_insn * with a checked cast.
7029         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
7030         reintroducing "after" as a local rtx_insn * with a checked cast.
7031         Strengthen local "last" from rtx to rtx_insn * and remove the
7032         now-redundant checked casts.
7033         (copy_delay_slot_insn): Strengthen return type and param from rtx
7034         to rtx_insn *.
7036         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
7037         "last" from rtx to rtx_insn *.
7039 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
7041         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
7042         param from rtx to rtx_insn *.
7044         * emit-rtl.c (copy_delay_slot_insn): Likewise.
7046         * reorg.c (skip_consecutive_labels): Strengthen return type, param
7047         and local "insn" from rtx to rtx_insn *.
7048         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
7049         (unfilled_slots_next): Likewise.
7050         (function_return_label): Strengthen from rtx to rtx_code_label *.
7051         (function_simple_return_label): Likewise.
7052         (first_active_target_insn): Strengthen return type and param from
7053         rtx to rtx_insn *.
7054         (find_end_label): Strengthen return type from rtx to
7055         rtx_code_label *; strengthen locals as appropriate.
7056         (emit_delay_sequence): Strengthen return type, param "insn" and
7057         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
7058         and local "li" from rtx to rtx_insn_list *, using methods of
7059         rtx_insn_list for clarity and typesafety.
7060         (add_to_delay_list): Strengthen return type and param "insn" from
7061         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
7062         rtx_insn_list * and use methods of rtx_insn_list.
7063         (delete_from_delay_slot): Strengthen return type, param "insn",
7064         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
7065         Strengthen local "seq" from rtx to rtx_sequence *, and local
7066         "delay_list" from rtx to rtx_insn_list *, using methods of
7067         rtx_sequence for clarity and type-safety.
7068         (delete_scheduled_jump): Add checked cast when invoking
7069         delete_from_delay_slot.  Strengthen local "trial" from rtx to
7070         rtx_insn *.
7071         (optimize_skip): Strengthen return type and local "delay_list"
7072         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
7073         rtx_insn *.
7074         (steal_delay_list_from_target): Strengthen return type, param
7075         "delay_list" and local "new_delay_list" from rtx to
7076         rtx_insn_list *.  Strengthen param "seq" from rtx to
7077         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
7078         rtx_insn **.
7079         Split out local "temp" into multiple more-tightly scoped locals:
7080         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
7081         of rtx_insn_list and rtx_sequence for clarity and typesafety.
7082         Strengthen locals named "trial" from rtx to rtx_insn *.
7083         (steal_delay_list_from_fallthrough): Strengthen return type and
7084         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
7085         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
7086         Strengthen local "trial" from rtx to rtx_insn *.
7087         (try_merge_delay_insns): Strength local "merged_insns" from rtx
7088         to rtx_insn_list * and use its methods.  Strengthen local "pat"
7089         from rtx to rtx_sequence * and use its methods.  Strengthen locals
7090         "dtrial" and "new_rtx" from rtx to rtx_insn *.
7091         (get_label_before): Strengthen return type and local "label" from
7092         rtx to rtx_insn *.
7093         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
7094         "next_trial", "next", prev".  Strengthen local "delay_list" from
7095         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
7096         rtx_insn **.
7097         (follow_jumps): Strengthen return type, param "label" and locals
7098         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
7099         (fill_slots_from_thread): Strengthen return type, param
7100         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
7101         "insn", "thread", "opposite_thread" and locals "new_thread",
7102         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
7103         "sequence" from a checked cast to rtx_sequence so that we can call
7104         steal_delay_list_from_target and steal_delay_list_from_fallthrough
7105         with an rtx_sequence *.
7106         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
7107         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
7108         Strengthen local "delay_list" from rtx to rtx_insn_list *.
7109         (relax_delay_slots): Strengthen param "first" and locals "insn",
7110         "next", "trial", "delay_insn", "target_label" from rtx to
7111         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
7112         Introduce a local "trial_seq" for PATTERN (trial) of type
7113         rtx_sequence *, in both cases using methods of rtx_sequence.
7114         (dbr_schedule): Strengthen param "first" and locals "insn",
7115         "next", "epilogue_insn" from rtx to rtx_insn *.
7117 2014-08-28  Richard Biener  <rguenther@suse.de>
7119         PR tree-optimization/62283
7120         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7121         Do not peel loops for alignment where the vector loop likely
7122         doesn't run at least VF times.
7124 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
7126         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
7127         important_candidates.  Consider all important candidates if
7128         IVS doesn't give any result.  Remove check on ivs->upto.
7129         (try_add_cand_for): Call iv_ca_add_use only once.
7131 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7132             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7133             Anna Tikhonova  <anna.tikhonova@intel.com>
7134             Ilya Tocar  <ilya.tocar@intel.com>
7135             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7136             Ilya Verbin  <ilya.verbin@intel.com>
7137             Kirill Yukhin  <kirill.yukhin@intel.com>
7138             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7140         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
7141         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
7142         masking.
7143         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
7144         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
7145         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
7146         (define_insn "*mul<mode>3"): Add EVEX version.
7148 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7149             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7150             Anna Tikhonova  <anna.tikhonova@intel.com>
7151             Ilya Tocar  <ilya.tocar@intel.com>
7152             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7153             Ilya Verbin  <ilya.verbin@intel.com>
7154             Kirill Yukhin  <kirill.yukhin@intel.com>
7155             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7157         * config/i386/sse.md
7158         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
7159         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
7160         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
7161         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
7162         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
7163         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
7164         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
7165         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
7166         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
7167         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
7168         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
7169         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
7170         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
7171         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
7172         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
7173         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
7175 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7176             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7177             Anna Tikhonova  <anna.tikhonova@intel.com>
7178             Ilya Tocar  <ilya.tocar@intel.com>
7179             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7180             Ilya Verbin  <ilya.verbin@intel.com>
7181             Kirill Yukhin  <kirill.yukhin@intel.com>
7182             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7184         * config/i386/sse.md
7185         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
7186         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
7187         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
7189 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7190             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7191             Anna Tikhonova  <anna.tikhonova@intel.com>
7192             Ilya Tocar  <ilya.tocar@intel.com>
7193             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7194             Ilya Verbin  <ilya.verbin@intel.com>
7195             Kirill Yukhin  <kirill.yukhin@intel.com>
7196             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7198         * config/i386/sse.md
7199         (define_mode_iterator VI128_256): New.
7200         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
7202 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7203             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7204             Anna Tikhonova  <anna.tikhonova@intel.com>
7205             Ilya Tocar  <ilya.tocar@intel.com>
7206             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7207             Ilya Verbin  <ilya.verbin@intel.com>
7208             Kirill Yukhin  <kirill.yukhin@intel.com>
7209             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7211         * config/i386/sse.md
7212         (define_mode_iterator VI8_256_512): New.
7213         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
7214         Ditto.
7215         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7216         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
7217         Ditto.
7218         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
7220 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7222         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
7223         pointer to the cumulative reloc value and return the value for
7224         this reloc instead.
7225         (compute_reloc_for_rtx): Take a const_rtx.  Call
7226         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
7227         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
7228         for_each_rtx for the CONST case.
7230 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7232         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
7233         (mark_constants_in_pattern): ...this new function to iterate over
7234         all the subrtxes.
7235         (mark_constants): Update accordingly.
7237 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7239         * varasm.c: Include rtl-iter.h.
7240         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
7241         Remove the pointer to the cumulative hashval_t and just return
7242         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
7243         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7244         Accumulate the hashval_ts here instead of const_rtx_hash_1.
7246 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7248         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
7249         Give real type of data parameter.  Remove return value.
7250         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
7251         to iterate over subrtxes.
7253 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7255         * var-tracking.c (use_narrower_mode_test): Turn from being a
7256         for_each_rtx callback to being a function that examines each
7257         subrtx itself.
7258         (adjust_mems): Update accordingly.
7260 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7262         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
7263         callback to being a function that examines each subrtx itself.
7264         Remove handling of null rtxes.
7265         (add_uses): Update accordingly.
7267 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7269         * var-tracking.c: Include rtl-iter.h.
7270         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
7271         to being a function that examines each subrtx itself.
7272         (use_type): Update accordingly.
7274 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7276         * store-motion.c: Include rtl-iter.h.
7277         (extract_mentioned_regs_1): Delete.
7278         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
7279         for_each_rtx to iterate over subrtxes.
7281 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7283         * sel-sched.c: Include rtl-iter.h
7284         (count_occurrences_1): Delete.
7285         (count_occurrences_equiv): Turn rtxes into const_rtxes.
7286         Use FOR_EACH_SUBRTX rather than for_each_rtx.
7288 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7290         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
7291         * rtlanal.c (tls_referenced_p_1): Delete.
7292         (tls_referenced_p): Take a const_rtx rather than an rtx.
7293         Use FOR_EACH_SUBRTX rather than for_each_rtx.
7295 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7297         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
7298         (for_each_inc_dec): Take an rtx rather than an rtx *.
7299         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
7300         (cselib_record_sets): Likewise.
7301         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
7302         (check_for_inc_dec): Likewise.
7303         * rtlanal.c (for_each_inc_dec_ops): Delete.
7304         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
7305         rather than a pointer to the memory address.  Replace
7306         for_each_inc_dec_ops argument with separate function and data
7307         arguments.  Abort on non-autoinc addresses.
7308         (for_each_inc_dec_find_mem): Delete.
7309         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
7310         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
7312 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7314         * rtl.h (find_all_hard_regs): Declare.
7315         * rtlanal.c (find_all_hard_regs): New function.
7316         (record_hard_reg_uses_1): Delete.
7317         (record_hard_reg_uses): Use find_all_hard_regs.
7319 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7321         * rtl.h (replace_label_data): Delete.
7322         (replace_label): Take the old label, new label and update-nuses flag
7323         as direct arguments.  Return void.
7324         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
7325         * rtlanal.c (replace_label): Update interface as above.  Handle
7326         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
7327         iterator.  Use FOR_EACH_SUBRTX_PTR.
7329 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7331         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
7332         with const_rtx parameters.
7333         * varasm.c (get_pool_constant): Likewise.
7334         * rtlanal.c (rtx_referenced_p_1): Delete.
7335         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7336         Assert that the rtx we're looking for is nonnull.  Allow searches
7337         for constant pool SYMBOL_REFs.
7339 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7341         * reload1.c: Include rtl-iter.h.
7342         (note_reg_elim_costly): Turn from being a for_each_rtx callback
7343         to being a function that examines each subrtx itself.
7344         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
7346 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7348         * regcprop.c (cprop_find_used_regs_1): Delete.
7349         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7351 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7353         * regcprop.c: Include rtl-iter.h.
7354         (kill_value): Take a const_rtx.
7355         (kill_autoinc_value): Turn from being a for_each_rtx callback
7356         to being a function that examines each subrtx itself.
7357         (copyprop_hardreg_forward_1): Update accordingly.
7359 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7361         * reg-stack.c: Include rtl-iter.h.
7362         (subst_stack_regs_in_debug_insn): Delete.
7363         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
7364         instead of for_each_rtx.
7366 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7368         * lower-subreg.c (find_decomposable_subregs): Turn from being
7369         a for_each_rtx callback to being a function that examines each
7370         subrtx itself.  Remove handling of null rtxes.
7371         (decompose_multiword_subregs): Update accordingly.
7373 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7375         * lower-subreg.c (adjust_decomposed_uses): Delete.
7376         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
7377         Remove handling of null rtxes.
7379 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7381         * lower-subreg.c: Include rtl-iter.h.
7382         (resolve_subreg_use): Turn from being a for_each_rtx callback
7383         to being a function that examines each subrtx itself.  Remove
7384         handling of null rtxes.
7385         (resolve_reg_notes, resolve_simple_move): Update accordingly.
7386         (decompose_multiword_subregs): Likewise.
7388 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7390         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
7391         to being a function that examines each subrtx itself.
7392         (simplify_using_condition, simplify_using_initial_values): Update
7393         accordingly.
7395 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7397         * loop-iv.c: Include rtl-iter.h.
7398         (find_single_def_src): New function.
7399         (replace_single_def_regs): Turn from being a for_each_rtx callback
7400         to being a function that examines each subrtx itself.
7401         (replace_in_expr, simplify_using_initial_values): Update accordingly.
7403 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7405         * jump.c (eh_returnjump_p_1): Delete.
7406         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
7407         Remove handling of null rtxes.
7409 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7411         * jump.c: Include rtl-iter.h.
7412         (returnjump_p_1): Delete.
7413         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
7414         Remove handling of null rtxes.
7416 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7418         * ira.c: Include rtl-iter.h.
7419         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
7420         to being a function that examines each subrtx itself.  Remove
7421         handling of null rtxes.
7422         (update_equiv_regs): Update call accordingly.
7424 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7426         * fwprop.c: Include rtl-iter.h.
7427         (varying_mem_p): Turn from being a for_each_rtx callback to being
7428         a function that examines each subrtx itself.
7429         (propagate_rtx): Update accordingly.
7431 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7433         * function.c: Include rtl-iter.h
7434         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
7435         callback to being a function that examines each subrtx itself.
7436         Return the changed flag.
7437         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
7438         (instantiate_virtual_regs): Update calls accordingly.
7440 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7442         * final.c: Include rtl-iter.h.
7443         (mark_symbol_ref_as_used): Delete.
7444         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
7445         for_each_rtx.
7447 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7449         * emit-rtl.c: Include rtl-iter.h.
7450         (find_auto_inc): Turn from being a for_each_rtx callback to being
7451         a function that examines each subrtx itself.  Assume the first operand
7452         to an RTX_AUTOINC is the automodified register.
7453         (try_split): Update call accordingly.
7455 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7457         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
7458         Return a bool, inverting the result so that 0/false means "not ok".
7459         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
7460         subrtxes of a CONST.
7461         (mem_loc_descriptor, add_const_value_attribute)
7462         (resolve_addr_in_expr): Update calls accordingly.
7464 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7466         * dwarf2out.c: Include rtl-iter.h.
7467         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
7468         Remove unused data parameter.  Return a bool, inverting the result
7469         so that 0/false means "not ok".
7470         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
7471         instead of for_each_rtx.
7473 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7475         * dse.c: Include rtl-iter.h.
7476         (check_mem_read_rtx): Change void * parameter to real type.
7477         Remove return value.
7478         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
7479         for_each_rtx.  Don't handle null rtxes.
7481 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7483         * df-problems.c: Include rtl-iter.h.
7484         (find_memory): Turn from being a for_each_rtx callback to being
7485         a function that examines each subrtx itself.  Continue to look for
7486         volatile references even after a nonvolatile one has been found.
7487         (can_move_insns_across): Update calls accordingly.
7489 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7491         * ddg.c (walk_mems_2, walk_mems_1): Delete.
7492         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
7493         to iterate over subrtxes.  Return a bool rather than an int.
7495 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7497         * ddg.c: Include rtl-iter.h.
7498         (mark_mem_use_1): Rename to...
7499         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
7500         instead of for_each_rtx.
7501         (mem_read_insn_p): Update accordingly.
7503 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7505         * cse.c (change_cc_mode_args): Delete.
7506         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
7507         a function that examines each subrtx itself.  Take the fields of
7508         change_cc_mode_args as argument and return void.
7509         (cse_change_cc_mode_insn): Update calls accordingly.
7511 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7513         * cse.c (is_dead_reg): Change argument to const_rtx.
7514         (dead_debug_insn_data): Delete.
7515         (is_dead_debug_insn): Expand commentary.  Turn from being a
7516         for_each_rtx callback to being a function that examines
7517         each subrtx itself.  Take the fields of dead_debug_insn_data
7518         as argument.
7519         (delete_trivially_dead_insns): Update call accordingly.
7521 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7523         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
7524         being a for_each_rtx callback to being a function that examines
7525         each subrtx itself.
7526         (cse_extended_basic_block): Update call accordingly.
7528 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7530         * cse.c (check_dependence_data): Delete.
7531         (check_dependence): Change from being a for_each_rtx callback to being
7532         a function that examines all subrtxes itself.  Don't handle null rtxes.
7533         (invalidate): Update call accordingly.
7535 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7537         * cse.c: Include rtl-iter.h.
7538         (approx_reg_cost_1): Delete.
7539         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7540         Don't handle null rtxes.
7542 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7544         * cfgcleanup.c: Include rtl-iter.h.
7545         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
7546         to being a function that examines each subrtx itself.
7547         (thread_jump): Update accordingly.
7549 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7551         * combine-stack-adj.c: Include rtl-iter.h.
7552         (record_stack_refs_data): Delete.
7553         (record_stack_refs): Turn from being a for_each_rtx callback
7554         to being a function that examines each subrtx itself.
7555         Take a pointer to the reflist.  Invert sense of return value
7556         so that true means success and false means failure.  Don't
7557         handle null rtxes.
7558         (combine_stack_adjustments_for_block): Update accordingly.
7560 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7562         * combine.c (record_truncated_value): Turn from being a for_each_rtx
7563         callback to a function that takes an rtx and returns a bool
7564         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
7565         for_each_rtx.
7567 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7569         * combine.c: Include rtl-iter.h.
7570         (unmentioned_reg_p_1): Delete.
7571         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
7572         Don't handle null rtxes.
7574 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7576         * calls.c: Include rtl-iter.h.
7577         (internal_arg_pointer_based_exp_1): Delete.
7578         (internal_arg_pointer_based_exp): Take a const_rtx.
7579         Use FOR_EACH_SUBRTX to iterate over subrtxes.
7581 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7583         * caller-save.c: Include rtl-iter.h.
7584         (add_used_regs_1): Delete.
7585         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
7586         to iterate over subrtxes.  Assert that any remaining pseudos
7587         have been spilled.
7589 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7591         * bt-load.c: Include rtl-iter.h.
7592         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
7593         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
7594         to iterate over subrtxes.
7595         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
7596         find_btr_use rather than btr_referenced_p.
7598 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7600         * alias.c: Include rtl-iter.h.
7601         (refs_newer_value_cb): Delete.
7602         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
7604 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
7606         * rtl-iter.h: New file.
7607         * rtlanal.c: Include it.
7608         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
7609         (generic_subrtx_iterator <T>::add_single_to_queue)
7610         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
7611         (generic_subrtx_iterator <T>::free_array): New functions.
7612         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
7613         (generic_subrtx_iterator <const_rtx_accessor>)
7614         (generic_subrtx_iterator <rtx_var_accessor>
7615         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
7616         (setup_reg_subrtx_bounds): New function.
7617         (init_rtlanal): Call it.
7619 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
7621         PR target/62261
7622         * config/sh/sh.md (ashlsi3): Handle negative shift count for
7623         TARGET_SHMEDIA.
7624         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
7626 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
7628         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
7630 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7632         * rtl.h (JUMP_LABEL_AS_INSN): New.
7634 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7636         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
7637         rtx_expr_list **.
7638         (alloc_EXPR_LIST): Strengthen return type from rtx to
7639         rtx_expr_list *.
7640         (remove_free_EXPR_LIST_node): Likewise for param.
7641         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
7642         from rtx to rtx_expr_list *.
7643         * sched-int.h (struct deps_desc): Strengthen fields
7644         "pending_read_mems" and "pending_write_mems" from rtx to
7645         rtx_expr_list *.
7647         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
7648         rtx to rtx_expr_list *.
7649         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
7650         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
7651         rtx_expr_list **.
7652         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
7653         from rtx to rtx_expr_list *.
7654         * loop-iv.c (simplify_using_initial_values): Strengthen local
7655         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
7656         "pnote_next" from rtx * to rtx_expr_list **.
7657         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
7658         param "exprp" from rtx * to rtx_expr_list **.
7659         (add_insn_mem_dependence): Strengthen local "mem_list" from
7660         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
7661         to rtx_expr_list *.
7662         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
7663         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
7664         param "old_mems_p" from rtx * to rtx_expr_list **.
7665         * var-tracking.c (struct adjust_mem_data): Strengthen field
7666         "side_effects" from rtx to rtx_expr_list *.
7667         (adjust_insn): Replace NULL_RTX with NULL when assigning to
7668         rtx_expr_list *.
7669         (prepare_call_arguments): Likewise.
7671 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7673         * function.h (struct rtl_data): Strengthen field
7674         "x_stack_slot_list" from rtx to rtx_expr_list *.
7676         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
7677         when assigning to stack_slot_list.
7679 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7681         * function.h (struct rtl_data): Strengthen field
7682         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
7683         * rtl.h (remove_node_from_expr_list): Strengthen second param from
7684         rtx * to rtx_expr_list **.
7686         * cfgbuild.c (make_edges): In loop over
7687         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
7688         rtx_expr_list *, and use methods of the latter class to clarify
7689         the code.
7690         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
7691         rtx_expr_list *, and use methods of the latter class to clarify
7692         the code.
7693         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
7694         * reload1.c (set_initial_label_offsets): Likewise for local "x".
7695         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
7696         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
7697         to rtx_expr_list *.  Use methods of the latter class to clarify
7698         the code.
7700 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7702         * function.h (struct expr_status): Strengthen field
7703         "x_forced_labels" from rtx to rtx_expr_list *.
7705         * cfgbuild.c (make_edges): Split local "x" into two locals,
7706         strengthening one from rtx to rtx_expr_list *, and using methods
7707         of said class.
7708         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
7709         loop over forced_labels, introduce strengthen it from rtx to
7710         rtx_expr_list *, using methods to clarify the code.
7711         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
7712         to rtx_expr_list *, using methods of said class to clarify the
7713         code.
7714         * reload1.c (set_initial_label_offsets): Split local "x" into two
7715         per-loop variables, strengthening the first from rtx to
7716         rtx_expr_list * and using methods.
7718 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7720         * coretypes.h (class rtx_expr_list): Add forward declaration.
7721         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
7722         * gengenrtl.c (special_rtx): Add EXPR_LIST.
7723         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
7724         invariant: GET_CODE (X) == EXPR_LIST.
7725         (is_a_helper <rtx_expr_list *>::test): New.
7726         (rtx_expr_list::next): New.
7727         (rtx_expr_list::element): New.
7728         (gen_rtx_EXPR_LIST): New.
7730 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7732         * varasm.c (mark_constants): Convert a GET_CODE check into a
7733         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
7734         Use methods of rtx_sequence to clarify the code.
7736 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7738         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
7739         local "seq" via a checked cast, and use methods of rtx_sequence
7740         to simplify the code.
7742 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7744         * resource.c (mark_referenced_resources): Strengthen local
7745         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
7746         using methods of rtx_sequence to clarify the code.
7747         (find_dead_or_set_registers): Within the switch statement, convert
7748         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
7749         the JUMP_P handling, introduce another local "seq", adding a
7750         checked cast to rtx_sequence *.  In both cases, use methods of
7751         rtx_sequence to clarify the code.
7752         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
7753         via a checked cast, and use methods of rtx_sequence to simplify
7754         the code.
7756 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7758         * reorg.c (redundant_insn): In two places in the function, replace
7759         a check of GET_CODE with a dyn_cast, introducing local "seq", and
7760         usings methods of rtx_sequence to clarify the code.
7762 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7764         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
7765         local "seq" with a checked cast, and use methods of rtx_sequence
7766         to clarify the code.
7768 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7770         * function.c (contains): Introduce local "seq" for PATTERN (insn),
7771         with a checked cast, in the region for where we know it's a
7772         SEQUENCE.  Use methods of rtx_sequence.
7774 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7776         * final.c (get_attr_length_1): Replace GET_CODE check with a
7777         dyn_cast, introducing local "seq" and the use of methods of
7778         rtx_sequence.
7779         (shorten_branches): Likewise, introducing local "body_seq".
7780         Strengthen local "inner_insn" from rtx to rtx_insn *.
7781         (reemit_insn_block_notes): Replace GET_CODE check with a
7782         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
7783         Use methods of rtx_sequence.
7784         (final_scan_insn): Likewise, introducing local "seq" for when
7785         "body" is known to be a SEQUENCE, using its methods.
7787 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7789         * except.c (can_throw_external): Strengthen local "seq" from rtx
7790         to rtx_sequence *.  Use methods of rtx_sequence.
7791         (insn_nothrow_p): Likewise.
7793 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7795         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
7796         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
7797         Use methods of rtx_sequence.
7798         (scan_trace): Likewise for local "pat".
7800 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7802         * coretypes.h (class rtx_sequence): Add forward declaration.
7803         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
7804         invariant: GET_CODE (X) == SEQUENCE.
7805         (is_a_helper <rtx_sequence *>::test): New.
7806         (is_a_helper <const rtx_sequence *>::test): New.
7807         (rtx_sequence::len): New.
7808         (rtx_sequence::element): New.
7809         (rtx_sequence::insn): New.
7811 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7813         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
7814         rtx_insn_list **.
7815         (alloc_INSN_LIST): Strengthen return type from rtx to
7816         rtx_insn_list *.
7817         (copy_INSN_LIST): Likewise for return type and param.
7818         (concat_INSN_LIST): Likewise for both params and return type.
7819         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
7820         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
7821         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
7822         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
7824         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
7825         "implicit_sets", "control_uses", "clobbers" from rtx to
7826         rtx_insn_list *.
7827         (struct deps_desc): Likewise for fields "pending_read_insns",
7828         "pending_write_insns", "pending_jump_insns",
7829         "last_pending_memory_flush", "last_function_call",
7830         "last_function_call_may_noreturn", "sched_before_next_call",
7831         "sched_before_next_jump".
7832         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
7833         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
7835         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
7836         from rtx to rtx_insn_list *.
7837         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
7838         rtx_insn_list *.
7840         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
7841         to rtx_insn_list **.
7842         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
7843         rtx_insn_list *.
7844         (queue_insn): Likewise for local "link".
7845         (struct haifa_saved_data): Strengthen field "insn_queue" from
7846         rtx * to rtx_insn_list **.
7847         (save_backtrack_point): Update allocation of save->insn_queue to
7848         reflect the strengthening of elements from rtx to rtx_insn_list *.
7849         (queue_to_ready): Strengthen local "link" from rtx to
7850         rtx_insn_list *; use methods "next" and "insn" when traversing the
7851         list.
7852         (early_queue_to_ready): Likewise for locals "link", "next_link",
7853         "prev_link".
7854         (schedule_block): Update allocation of insn_queue to reflect the
7855         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
7856         local "link" from rtx to rtx_insn_list *, and use methods when
7857         working it.
7858         (add_to_speculative_block): Strengthen locals "twins" and
7859         "next_node" from rtx to rtx_insn_list *, and use methods when
7860         working with them.  Strengthen local "twin" from rtx to
7861         rtx_insn *, eliminating a checked cast.
7862         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
7863         from rtx to rtx_insn_list *, and use methods when working with
7864         them.
7866         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
7867         from rtx to rtx_insn_list *, adding a checked cast.
7868         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
7869         rtx_insn_list **.
7870         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
7871         "newlink" from rtx to rtx_insn_list *.  Strengthen local
7872         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
7873         from rtx to rtx_insn *.
7874         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
7875         from rtx to rtx_insn_list *.  Use methods of the latter class.
7876         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
7877         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
7878         (remove_free_INSN_LIST_node): Strengthen return type and local
7879         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
7880         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
7881         rtx_insn_list *, using "insn" method.
7883         * sched-deps.c (add_dependence_list):  Strengthen param "list"
7884         from rtx to rtx_insn_list *, and use methods when working with it.
7885         (add_dependence_list_and_free):  Strengthen param "listp" from
7886         rtx * to rtx_insn_list **.
7887         (remove_from_dependence_list): Strenghten param "listp" from rtx *
7888         to rtx_insn_list **, and use methods when working with *listp.
7889         (remove_from_both_dependence_lists): Strengthen param "listp" from
7890         rtx * to rtx_insn_list **
7891         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
7892         to rtx_insn_list **.  Eliminate local "link", in favor of two new
7893         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
7894         respectively.
7895         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
7896         by introducing local "cond_deps".
7897         (remove_from_deps): Strengthen param "insn" from rtx to
7898         rtx_insn *.
7900         * sched-rgn.c (concat_insn_mem_list): Strengthen param
7901         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
7902         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
7903         Use methods of rtx_insn_list.
7905         * store-motion.c (struct st_expr): Strengthen fields
7906         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
7907         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
7908         rtx_insn_list *.
7909         (find_moveable_store): Split out "tmp" into multiple more-tightly
7910         scoped locals.  Use methods of rtx_insn_list *.
7911         (compute_store_table): Strengthen local "tmp" from rtx to
7912         rtx_insn *.  Use methods of rtx_insn_list *.
7914 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7916         * coretypes.h (class rtx_insn_list): Add forward declaration.
7917         * rtl.h (class rtx_insn_list): New subclass of rtx_def
7918         (is_a_helper <rtx_insn_list *>::test): New.
7919         (rtx_insn_list::next): New.
7920         (rtx_insn_list::insn): New.
7921         (gen_rtx_INSN_LIST): Add prototype.
7922         * emit-rtl.c (gen_rtx_INSN_LIST): New.
7923         * gengenrtl.c (special_rtx): Add INSN_LIST.
7925 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7927         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
7928         "prev" from rtx to rtx_insn *.
7930 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7932         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
7933         functions.  Require merely an rtx for now, not an rtx_insn *.
7934         (BLOCK_FOR_INSN): Likewise.
7935         (INSN_LOCATION): Likewise.
7936         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
7938 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7940         * rtl.h (PATTERN): Convert this macro into a pair of inline
7941         functions, for now, requiring const_rtx and rtx.
7943 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
7945         * target.def (unwind_emit): Strengthen param "insn" from rtx to
7946         rtx_insn *.
7947         (final_postscan_insn): Likewise.
7948         (adjust_cost): Likewise.
7949         (adjust_priority): Likewise.
7950         (variable_issue): Likewise.
7951         (macro_fusion_pair_p): Likewise.
7952         (dfa_post_cycle_insn): Likewise.
7953         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
7954         (first_cycle_multipass_issue): Likewise.
7955         (dfa_new_cycle): Likewise.
7956         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
7957         (speculate_insn): Likewise for param "insn".
7958         (gen_spec_check): Likewise for params "insn" and "label".
7959         (get_insn_spec_ds): Likewise for param "insn".
7960         (get_insn_checked_ds): Likewise.
7961         (dispatch_do): Likewise.
7962         (dispatch): Likewise.
7963         (cannot_copy_insn_p): Likewise.
7964         (invalid_within_doloop): Likewise.
7965         (legitimate_combined_insn): Likewise.
7966         (needed): Likewise.
7967         (after): Likewise.
7969         * doc/tm.texi: Automatically updated to reflect changes to
7970         target.def.
7972         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
7973         working with insn.
7974         (schedule_block): Likewise.
7975         (sched_init): Likewise.
7976         (sched_speculate_insn): Strengthen param "insn" from rtx to
7977         rtx_insn *.
7978         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
7979         working with insn.
7980         * hooks.c (hook_bool_rtx_true): Rename to...
7981         hook_bool_rtx_insn_true): ...this, and strengthen first param from
7982         rtx to rtx_insn *.
7983         (hook_constcharptr_const_rtx_null): Rename to...
7984         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
7985         first param from const_rtx to const rtx_insn *.
7986         (hook_bool_rtx_int_false): Rename to...
7987         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
7988         param from rtx to rtx_insn *.
7989         (hook_void_rtx_int): Rename to...
7990         (hook_void_rtx_insn_int): ...this, and strengthen first param from
7991         rtx to rtx_insn *.
7993         * hooks.h (hook_bool_rtx_true): Rename to...
7994         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
7995         rtx to rtx_insn *.
7996         (hook_bool_rtx_int_false): Rename to...
7997         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
7998         param from rtx to rtx_insn *.
7999         (hook_void_rtx_int): Rename to...
8000         (hook_void_rtx_insn_int): ...this, and strengthen first param from
8001         rtx to rtx_insn *.
8002         (hook_constcharptr_const_rtx_null): Rename to...
8003         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
8004         first param from const_rtx to const rtx_insn *.
8006         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
8007         and local "prev" from rtx to rtx_insn *.
8009         * sched-int.h (sched_speculate_insn): Strengthen first param from
8010         rtx to rtx_insn *.
8012         * sel-sched.c (create_speculation_check): Likewise for local "label".
8013         * targhooks.c (default_invalid_within_doloop): Strengthen param
8014         "insn" from const_rtx to const rtx_insn *.
8015         * targhooks.h (default_invalid_within_doloop): Strengthen param
8016         from const_rtx to const rtx_insn *.
8018         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
8019         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
8021         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
8022         "insn".
8023         (arc_invalid_within_doloop): Likewise, with const.
8025         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
8026         (arm_cannot_copy_insn_p): Likewise for param "insn".
8027         (arm_unwind_emit): Likewise.
8029         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
8030         "dep_insn".
8032         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
8033         (c6x_variable_issue): Likewise.  Removed now-redundant checked
8034         cast.
8035         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
8037         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
8038         Likewise for param "insn".
8039         (epiphany_mode_after): Likewise.
8040         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
8041         params "insn", "dep_insn".
8042         (epiphany_mode_needed): Likewise for param "insn".
8043         (epiphany_mode_after): Likewise.
8045         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
8046         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8047         (ix86_avx_u128_mode_needed): Likewise.
8048         (ix86_i387_mode_needed): Likewise.
8049         (ix86_mode_needed): Likewise.
8050         (ix86_avx_u128_mode_after): Likewise.
8051         (ix86_mode_after): Likewise.
8052         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
8053         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
8054         (ix86_adjust_priority): Likewise for param "insn".
8055         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
8056         (do_dispatch): Likewise.
8057         (has_dispatch): Likewise.
8058         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
8060         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
8061         reflect renaming of default hook implementation from
8062         hook_constcharptr_const_rtx_null to
8063         hook_constcharptr_const_rtx_insn_null.
8064         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
8065         rtx to rtx_insn *.
8066         (ia64_variable_issue): Likewise for param "insn".
8067         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
8068         (ia64_dfa_new_cycle): Likewise.
8069         (ia64_get_insn_spec_ds): Likewise.
8070         (ia64_get_insn_checked_ds): Likewise.
8071         (ia64_speculate_insn): Likewise.
8072         (ia64_gen_spec_check): Likewise for params "insn", "label".
8073         (ia64_asm_unwind_emit): Likewise for param "insn".
8075         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
8077         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
8078         "insn", "def_insn".
8079         (m68k_sched_variable_issue): Likewise for param "insn".
8081         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
8082         "def_insn".
8084         * config/microblaze/microblaze.c (microblaze_adjust_cost):
8085         Likewise for params "insn", "dep".
8087         * config/mips/mips.c (mips_adjust_cost): Likewise.
8088         (mips_variable_issue): Likewise for param "insn".
8089         (mips_final_postscan_insn): Likewise.
8091         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
8092         for params "insn", "dep".
8094         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
8095         "dep_insn".
8096         (pa_adjust_priority): Likewise for param "insn".
8098         * config/picochip/picochip.c (picochip_sched_adjust_cost):
8099         Likewise for params "insn", "dep_insn".
8101         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
8102         param "insn".
8103         (rs6000_variable_issue): Likewise.
8104         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
8105         (rs6000_debug_adjust_cost): Likewise.
8106         (rs6000_adjust_priority): Likewise for param "insn".
8107         (rs6000_use_sched_lookahead_guard): Likewise.
8108         (get_next_active_insn): Likewise for return type and both params.
8109         (redefine_groups): Likewise for params "prev_head_insn", "tail"
8110         and locals "insn", "next_insn".
8111         (pad_groups): Likewise.
8113         * config/s390/s390.c (s390_adjust_priority): Likewise for param
8114         "insn".
8115         (s390_cannot_copy_insn_p): Likewise.
8116         (s390_sched_variable_issue): Likewise for third param, eliminating
8117         checked cast.
8118         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
8119         default hook implementation from hook_constcharptr_const_rtx_null
8120         to hook_constcharptr_const_rtx_insn_null.
8122         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
8123         from rtx to rtx_insn *.
8124         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
8125         (sh_variable_issue): Likewise for param "insn".
8126         (sh_dfa_new_cycle): Likewise.
8127         (sh_mode_needed): Likewise.
8128         (sh_mode_after): Likewise.
8130         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
8131         params "insn", "dep_insn".
8132         (hypersparc_adjust_cost): Likewise.
8133         (sparc_adjust_cost): Likewise.
8135         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
8136         param, eliminated checked cast.
8137         (spu_sched_adjust_cost): Likewise for first and third params.
8139         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
8140         params "insn" and "dep_insn" from rtx to rtx_insn *.
8142         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
8144 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
8146         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
8147         (set_is_load_p): ...this, updating to work on a SET pattern rather
8148         than an insn.
8149         (is_store_insn): Rename to...
8150         (set_is_store_p): ...this, updating to work on a SET pattern
8151         rather than an insn.
8152         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
8153         top of function to where it is needed.  Rewrite the bogus
8154         condition that checks for "insn" and "dep" being PARALLEL to
8155         instead use single_set, introducing locals "insn_set" and
8156         "dep_set".  Given that we only ever returned "cost" for a non-pair
8157         of SETs, bail out early if we don't have a pair of SET.
8158         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
8159         use the new locals "insn_set" and "dep_set", and update calls to
8160         is_load_insn and is_store_insn to be calls to set_is_load_p and
8161         set_is_store_p.
8163 2014-08-27  Guozhi Wei  <carrot@google.com>
8165         PR target/62262
8166         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
8167         amount before using it.
8169 2014-08-27  Richard Biener  <rguenther@suse.de>
8171         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
8172         get_maxval_strlen inside a more useful API.
8173         (gimple_fold_builtin_with_strlen): Remove and fold into ...
8174         (gimple_fold_builtin): ... caller.
8175         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
8176         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
8177         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
8178         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
8179         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
8180         gimple_fold_builtin_sprintf): Adjust to compute maxval
8181         themselves.
8183 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
8185         PR other/62248
8186         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
8188 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8189             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8190             Anna Tikhonova  <anna.tikhonova@intel.com>
8191             Ilya Tocar  <ilya.tocar@intel.com>
8192             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8193             Ilya Verbin  <ilya.verbin@intel.com>
8194             Kirill Yukhin  <kirill.yukhin@intel.com>
8195             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8197         * config/i386/sse.md
8198         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
8199         Use `concat_tg_mode' attribute to determine asm register size.
8201 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8202             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8203             Anna Tikhonova  <anna.tikhonova@intel.com>
8204             Ilya Tocar  <ilya.tocar@intel.com>
8205             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8206             Ilya Verbin  <ilya.verbin@intel.com>
8207             Kirill Yukhin  <kirill.yukhin@intel.com>
8208             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8210         * config/i386/sse.md
8211         (define_mode_iterator VI48_AVX512VL): New.
8212         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
8213         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
8214         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
8215         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8216         with VI1): Change mode iterator.
8217         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8218         with VI_ULOADSTORE_BW_AVX512VL): New.
8219         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8220         with VI_ULOADSTORE_F_AVX512VL): Ditto.
8221         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8222         with VI1): Change mode iterator.
8223         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8224         with VI_ULOADSTORE_BW_AVX512VL): New.
8225         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
8226         with VI_ULOADSTORE_F_AVX512VL): Ditto.
8227         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8228         with VI1): Change mode iterator.
8229         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8230         with VI_ULOADSTORE_BW_AVX512VL): New.
8231         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
8232         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
8233         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
8234         (define_insn "<avx512>_storedqu<mode>_mask" with
8235         VI48_AVX512VL): New.
8236         (define_insn "<avx512>_storedqu<mode>_mask" with
8237         VI12_AVX512VL): Ditto.
8239 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8240             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8241             Anna Tikhonova  <anna.tikhonova@intel.com>
8242             Ilya Tocar  <ilya.tocar@intel.com>
8243             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8244             Ilya Verbin  <ilya.verbin@intel.com>
8245             Kirill Yukhin  <kirill.yukhin@intel.com>
8246             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8248         * config/i386/sse.md
8249         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
8250         (define_mode_iterator VI48_AVX512BW): New.
8251         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
8252         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
8253         with VI48_AVX2_48_AVX512F): New.
8254         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
8255         with VI2_AVX512VL): Ditto.
8257 2014-08-27  Richard Biener  <rguenther@suse.de>
8259         PR middle-end/62239
8260         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
8261         (fold_builtin_3): Do not fold strcat_chk here.
8262         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
8263         from builtins.c.
8264         (gimple_fold_builtin): Fold strcat_chk here.
8266 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
8268         * dwarf2out.h (dwarf2out_decl): Remove prototype.
8269         * dwarf2out.c (dwarf2out_decl): Make static.
8271 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
8273         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
8275 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8277         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
8278         from rtx to rtx_insn *.
8279         (cselib_lookup_from_insn): Likewise for final param.
8280         (cselib_subst_to_values_from_insn): Likewise.
8281         (cselib_add_permanent_equiv): Likewise.
8283         * cselib.c (cselib_current_insn): Likewise for this variable.
8284         (cselib_subst_to_values_from_insn): Likewise for param "insn".
8285         (cselib_lookup_from_insn): Likewise.
8286         (cselib_add_permanent_equiv): Likewise for param "insn" and local
8287         "save_cselib_current_insn".
8288         (cselib_process_insn): Replace use of NULL_RTX with NULL.
8290         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
8291         from rtx to rtx_insn *.
8293 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8295         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
8296         rtx_insn *.
8298 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8300         * df.h (df_dump_insn_problem_function): Strengthen first param of
8301         this callback from const_rtx to const rtx_insn *.
8302         (struct df_insn_info): Strengthen field "insn" from rtx to
8303         rtx_insn *.
8304         (DF_REF_INSN): Eliminate this function, reinstating the older
8305         macro definition.
8306         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
8307         (df_reg_defined): Likewise.
8308         (df_find_use): Likewise.
8309         (df_reg_used): Likewise.
8310         (df_dump_insn_top): Strengthen param 1 from const_rtx to
8311         const rtx_insn *.
8312         (df_dump_insn_bottom): Likewise.
8313         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
8314         (df_insn_debug_regno): Likewise.
8315         (debug_df_insn): Likewise.
8316         (df_rd_simulate_one_insn): Likewise for param 2.
8317         (df_word_lr_simulate_defs): Likewise for param 1.
8318         (df_word_lr_simulate_uses): Likewise.
8319         (df_md_simulate_one_insn): Likewise for param 2.
8320         (df_simulate_find_noclobber_defs): Likewise for param 1.
8321         (df_simulate_find_defs): Likewise.
8322         (df_simulate_defs): Likewise.
8323         (df_simulate_uses): Likewise.
8324         (df_simulate_one_insn_backwards): Likewise for param 2.
8325         (df_simulate_one_insn_forwards): Likewise.
8326         (df_uses_create): Likewise for param 2.
8327         (df_insn_create_insn_record): Likewise for param 1.
8328         (df_insn_delete): Likewise.
8329         (df_insn_rescan): Likewise.
8330         (df_insn_rescan_debug_internal): Likewise.
8331         (df_insn_change_bb): Likewise.
8332         (df_notes_rescan): Likewise.
8333         * rtl.h (remove_death): Likewise for param 2.
8334         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
8335         const rtx_insn *.
8336         * sched-int.h (reemit_notes): Strengthen param from rtx to
8337         rtx_insn *.
8338         * valtrack.h (propagate_for_debug): Likewise for param 1.
8340         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
8341         local "tmp_rtx" from const_rtx to const rtx_insn *.
8342         * combine.c (remove_death): Strengthen param "insn" from rtx to
8343         rtx_insn *.
8344         (move_deaths): Likewise for local "where_dead".
8345         * cse.c (delete_trivially_dead_insns): Introduce local
8346         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
8347         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
8348         rtx_insn *.
8349         (df_reg_defined): Likewise.
8350         (df_find_use): Likewise.
8351         (df_reg_used): Likewise.
8352         (df_dump_insn_problem_data): Strengthen param "insn" from
8353         const_rtx to const rtx_insn *.
8354         (df_dump_insn_top): Likewise.
8355         (df_dump_insn_bottom): Likewise.
8356         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
8357         (df_insn_debug_regno): Likewise.
8358         (debug_df_insn): Likewise.
8359         (DF_REF_INSN): Delete.
8360         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
8361         from rtx to rtx_insn *.
8362         (df_chain_insn_top_dump): Strengthen param "insn" from
8363         const_rtx to const rtx_insn *.
8364         (df_chain_insn_bottom_dump): Likewise.
8365         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
8366         rtx_insn *.
8367         (df_word_lr_simulate_uses): Likewise.
8368         (df_print_note): Likewise.
8369         (df_remove_dead_and_unused_notes): Likewise.
8370         (df_set_unused_notes_for_mw): Likewise.
8371         (df_set_dead_notes_for_mw): Likewise.
8372         (df_create_unused_note): Likewise.
8373         (df_simulate_find_defs): Likewise.
8374         (df_simulate_find_uses): Likewise.
8375         (df_simulate_find_noclobber_defs): Likewise.
8376         (df_simulate_defs): Likewise.
8377         (df_simulate_uses): Likewise.
8378         (df_simulate_one_insn_backwards): Likewise.
8379         (df_simulate_one_insn_forwards): Likewise.
8380         (df_md_simulate_one_insn): Likewise.
8381         * df-scan.c (df_uses_create): Likewise.
8382         (df_insn_create_insn_record): Likewise.
8383         (df_insn_delete): Likewise.
8384         (df_insn_rescan): Likewise.
8385         (df_insn_rescan_debug_internal): Likewise.
8386         (df_insn_change_bb): Likewise.
8387         (df_notes_rescan): Likewise.
8388         (df_refs_add_to_chains): Likewise.
8389         (df_insn_refs_verify): Likewise.
8390         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
8391         when invoking df_insn_delete.
8392         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
8393         (set_unique_reg_note): Add checked cast.
8394         * final.c (cleanup_subreg_operands): Likewise.
8395         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
8396         "insn" from rtx to rtx_insn *.
8397         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
8398         "last" from rtx to rtx_insn *.
8399         * ira-emit.c (change_regs_in_insn): New function.
8400         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
8401         Invoke change_regs_in_insn rather than change_regs.
8402         * ira.c (update_equiv_regs): Strengthen locals "insn",
8403         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
8404         for_each_rtx_in_insn rather than for_each_rtx.
8405         * recog.c (confirm_change_group): Add checked casts.
8406         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
8407         Add checked cast.
8408         (peep2_fill_buffer): Add checked cast.
8409         * rtlanal.c (remove_note): Likewise.
8410         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
8411         locals "next" "end" from rtx to rtx_insn *.
8413 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8415         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
8416         to rtx_insn *.
8417         (struct reg_use_data): Likewise for field "insn".
8418         (insn_cost): Likewise for param.
8419         (real_insn_for_shadow): Likewise for return type and param.
8420         (increase_insn_priority): Likewise for param 1.
8421         (debug_dependencies): Likewise for both params.
8423         * haifa-sched.c (insn_delay): Likewise for param "insn".
8424         (real_insn_for_shadow): Likewise for return type and param "insn".
8425         (update_insn_after_change): Likewise for param "insn".
8426         (recompute_todo_spec): Likewise for param "next" and locals "pro",
8427         "other".
8428         (insn_cost): Likewise for param "insn".
8429         (increase_insn_priority): Likewise.
8430         (calculate_reg_deaths): Likewise.
8431         (setup_insn_reg_pressure_info): Likewise.
8432         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
8433         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
8434         (model_recompute): Likewise.
8435         (must_restore_pattern_p): Likewise for param "next".
8436         (model_excess_cost): Likewise for param "insn".
8437         (queue_remove): Likewise.
8438         (adjust_priority): Likewise for param "prev".
8439         (update_register_pressure): Likewise for param "insn".
8440         (setup_insn_max_reg_pressure): Likewise for local "insn".
8441         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
8442         (model_add_to_schedule): Likewise.
8443         (model_reset_queue_indices): Likewise for local "insn".
8444         (unschedule_insns_until): Strengthen local "recompute_vec" from
8445         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
8446         "con" from rtx to rtx_insn *.
8447         (restore_last_backtrack_point): Likewise for both locals "x". Add
8448         checked casts.
8449         (estimate_insn_tick): Likewise for param "insn".
8450         (commit_schedule): Likewise for params "prev_head", "tail" and
8451         local "x".
8452         (verify_shadows): Likewise for locals "i1", "i2".
8453         (dump_insn_stream): Likewise for params "head", "tail" and locals
8454         "next_tail", "insn".
8455         (schedule_block): Likewise for locals "insn", "x".  Add a checked
8456         cast.
8457         (fix_inter_tick): Likewise for params "head", "tail".
8458         (create_check_block_twin): Likewise for local "jump".
8459         (haifa_change_pattern): Likewise for param "insn".
8460         (haifa_speculate_insn): Likewise.
8461         (dump_new_block_header): Likewise for params "head", "tail".
8462         (fix_jump_move): Likewise for param "jump".
8463         (move_block_after_check): Likewise.
8464         (sched_init_insn_luid): Likewise for param "insn".
8465         (sched_init_luids): Likewise for local "insn".
8466         (insn_luid): Likewise for param "insn".
8467         (init_h_i_d): Likewise.
8468         (haifa_init_h_i_d): Likewise for local "insn".
8469         (haifa_init_insn): Likewise for param "insn".
8470         * sched-deps.c (add_dependence): Likewise for local "real_pro",
8471         "other".
8472         (create_insn_reg_use): Likewise for param "insn".
8473         (setup_insn_reg_uses): Likewise.  Add a checked cast.
8474         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
8475         "tail" from rtx to rtx_insn *.
8476         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
8477         "insn", "next_tail".
8479 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8481         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
8482         from rtx to rtx_insn *.
8483         (model_add_to_schedule): Likewise for locals "start", "end",
8484         "iter".
8486 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8488         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
8489         rtx_insn *.
8490         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
8491         "to" and locals "insn", "next", "copy".  Remove now-redundant
8492         checked cast.
8494 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8496         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
8497         rtx_insn * and param 4 from rtx * to rtx_insn **.
8498         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
8499         param 2 from rtx * to rtx_insn **.
8501         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
8502         rtx_insn * and final param from rtx * to rtx_insn **.
8504         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
8505         from rtx to rtx_insn *.
8506         (try_head_merge_bb): Likewise for both locals named "move_upto".
8507         * df-problems.c (can_move_insns_across): Likewise for params
8508         "from", "to", "across_from", "across_to" and locals "insn",
8509         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
8510         rtx_insn **.
8511         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
8512         from rtx to rtx_insn *.
8513         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
8514         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
8515         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
8516         rtx_insn *.
8517         (noce_try_abs): Likewise.
8518         (noce_get_condition): Likewise for param "jump".  Strengthen param
8519         "earliest" from rtx * to rtx_insn **.
8520         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
8521         rtx_insn *.
8522         (find_cond_trap): Likewise.
8523         (dead_or_predicable): Likewise for local "earliest".
8524         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
8525         checked cast.
8526         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
8527         and local "prev".  Strengthen param "earliest" from rtx * to
8528         rtx_insn **.
8529         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
8530         Strengthen param "earliest" from rtx * to rtx_insn **.
8532 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8534         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
8535         "to" and local "insn" from rtx to rtx_insn *.
8537 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8539         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
8540         from rtx to rtx_insn *.
8541         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
8542         (code_motion_path_driver): Likewise for local "last_insn".
8543         (simplify_changed_insns): Likewise for local "insn".
8545 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8547         * rtl.h (push_to_sequence): Strengthen param from rtx to
8548         rtx_insn *.
8549         (push_to_sequence2): Likewise for both params.
8550         (delete_insns_since): Likewise for param.
8551         (reorder_insns_nobb): Likewise for all three params.
8552         (set_new_first_and_last_insn): Likewise for both params.
8554         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
8555         rtx_insn *.  Remove now-redundant cast.
8556         (set_last_insn): Likewise.
8558         * builtins.c (expand_builtin_return): Strengthen local
8559         "call_fusage" from rtx to rtx_insn *.
8560         * cfgrtl.c (create_basic_block_structure): Likewise for local
8561         "after".
8562         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
8563         "first", "last" and local "insn".
8564         (delete_insns_since): Likewise for param "from".
8565         (reorder_insns_nobb): Likewise for params "from", "to", "after"
8566         and local "x".
8567         (push_to_sequence): Likewise for param "first" and local "last".
8568         (push_to_sequence2): Likewise for params "first" and "last".
8569         * lra.c (emit_add3_insn): Likewise for local "last".
8570         (lra_emit_add): Likewise.
8571         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
8572         "last_insn".
8573         (process_address_1): Likewise for locals "insn", last".
8574         * modulo-sched.c (ps_first_note): Likewise for return type.
8575         * optabs.c (expand_binop_directly): Likewise for param "last".
8577 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8579         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
8580         to rtx_insn*.
8581         * emit-rtl.c (get_last_insn_anywhere): Likewise.
8583 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8585         * function.h (struct sequence_stack): Strengthen fields "first"
8586         and "last" from rtx to rtx_insn *.
8587         (struct emit_status): Likewise for fields "x_first_insn" and
8588         "x_last_insn".
8590         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
8591         (set_first_insn): Add checked cast.
8592         (get_last_insn): Remove now-redundant checked cast.
8593         (set_last_insn): Add checked cast.
8595         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
8596         "saved_first" and "saved_last" from rtx to rtx_insn *.
8598 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8600         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
8601         (unlink_insn_chain): Strengthen both params from rtx to
8602         rtx_insn *.
8604         * cfgrtl.c (cfg_layout_function_header): Likewise for this
8605         variable.
8606         (unlink_insn_chain): Likewise for params "first" and "last".
8607         Remove now-redundant checked cast.
8608         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
8609         (fixup_reorder_chain): Strengthen local "insn" from rtx to
8610         rtx_insn *.
8611         * emit-rtl.c (link_insn_into_chain): Likewise for all three
8612         params.
8613         (add_insn): Likewise for param "insn" and local "prev".
8614         (add_insn_after_nobb): Likewise for both params and local "next".
8615         (add_insn_before_nobb): Likewise for both params and local "prev".
8616         (add_insn_after): Rename param "after" to "uncast_after",
8617         introducing local "after" with another checked cast.
8618         (add_insn_before): Rename params "insn" and "before", giving them
8619         "uncast_" prefixes, adding the old names back using checked casts.
8620         (emit_note_after): Likewise for param "after".
8621         (emit_note_before): Likewise for param "before".
8622         (emit_label): Add a checked cast.
8624 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8626         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
8627         "insn" from rtx to rtx_insn *.
8629         * cselib.c (cselib_record_sets_hook): Likewise.
8631         * var-tracking.c (add_with_sets): Likewise, renaming back from
8632         "uncast_insn" to "insn" and eliminating the checked cast from rtx
8633         to rtx_insn *.
8635 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8637         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
8638         and "header_" from rtx to rtx_insn *.
8639         (struct basic_block_d): Likewise for field "head_" within "x"
8640         field of union basic_block_il_dependent.
8641         (BB_HEAD): Drop function...
8642         (SET_BB_HEAD): ...and this function in favor of...
8643         (BB_HEAD): ...reinstate macro.
8644         (BB_END): Drop function...
8645         (SET_BB_END): ...and this function in favor of...
8646         (BB_END): ...reinstate macro.
8647         (BB_HEADER): Drop function...
8648         (SET_BB_HEADER): ...and this function in favor of...
8649         (BB_HEADER): ...reinstate macro.
8651         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
8652         (fix_crossing_unconditional_branches): Likewise.
8653         * caller-save.c (save_call_clobbered_regs): Likewise.
8654         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
8655         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
8656         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8657         (merge_blocks_move_successor_nojumps): Likewise.
8658         (outgoing_edges_match): Update use of for_each_rtx to
8659         for_each_rtx_in_insn.
8660         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
8661         (expand_gimple_cond): Likewise.
8662         (expand_gimple_tailcall): Likewise.
8663         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
8664         SET_BB_END.
8665         (construct_exit_block): Drop use of SET_BB_END.
8666         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
8667         rtx_insn *.
8668         (delete_insn): Rename param "insn" to "uncast_insn", introducing
8669         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
8670         SET_BB_HEAD and SET_BB_END.
8671         (create_basic_block_structure): Drop use of SET_BB_HEAD and
8672         SET_BB_END.
8673         (rtl_delete_block): Drop use of SET_BB_HEAD.
8674         (rtl_split_block): Drop use of SET_BB_END.
8675         (emit_nop_for_unique_locus_between): Likewise.
8676         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
8677         (block_label): Drop use of SET_BB_HEAD.
8678         (fixup_abnormal_edges): Drop use of SET_BB_END.
8679         (record_effective_endpoints): Drop use of SET_BB_HEADER.
8680         (relink_block_chain): Likewise.
8681         (fixup_reorder_chain): Drop use of SET_BB_END.
8682         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
8683         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
8684         rtx_insn **.  Drop use of SET_BB_HEADER.
8685         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
8686         SET_BB_HEAD.
8687         (BB_HEAD): Delete this function.
8688         (SET_BB_HEAD): Likewise.
8689         (BB_END): Likewise.
8690         (SET_BB_END): Likewise.
8691         (BB_HEADER): Likewise.
8692         (SET_BB_HEADER): Likewise.
8693         * emit-rtl.c (add_insn_after):  Rename param "insn" to
8694         "uncast_insn", adding a new local "insn" and a checked cast to
8695         rtx_insn *.  Drop use of SET_BB_END.
8696         (remove_insn): Strengthen locals "next" and "prev" from rtx to
8697         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
8698         (reorder_insns): Drop use of SET_BB_END.
8699         (emit_insn_after_1): Strengthen param "first" and locals "last",
8700         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
8701         (emit_pattern_after_noloc): Add checked cast.
8702         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
8703         (restore_other_notes): Likewise.
8704         (move_insn): Likewise.
8705         (sched_extend_bb): Likewise.
8706         (fix_jump_move): Likewise.
8707         * ifcvt.c (noce_process_if_block): Likewise.
8708         (dead_or_predicable): Likewise.
8709         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
8710         * reg-stack.c (change_stack): Drop use of SET_BB_END.
8711         * sel-sched-ir.c (sel_move_insn): Likewise.
8712         * sel-sched.c (move_nop_to_previous_block): Likewise.
8714         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
8715         SET_BB_END.
8716         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
8718 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8720         * basic-block.h (create_basic_block_structure): Strengthen params
8721         1 "head" and 2 "end" from rtx to rtx_insn *.
8722         * cfgrtl.c (create_basic_block_structure): Likewise.
8723         (rtl_create_basic_block): Update casts from void * to rtx to
8724         rtx_insn *, so that we can pass them as rtx_insn * to
8725         create_basic_block_structure.
8726         * sel-sched-ir.c (sel_create_basic_block): Likewise.
8728 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8730         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
8731         rtx_insn **.
8732         (check_for_inc_dec): Strengthen param "insn" from rtx to
8733         rtx_insn *.
8735         * cselib.h (cselib_process_insn): Likewise.
8737         * cselib.c (cselib_record_sets): Likewise.
8738         (cselib_process_insn): Likewise.
8740         * dse.c (struct insn_info): Likewise for field "insn".
8741         (check_for_inc_dec_1): Likewise for local "insn".
8742         (check_for_inc_dec): Likewise for param "insn".
8743         (scan_insn): Likewise.
8744         (dse_step1): Likewise for local "insn".
8746         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
8747         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
8749 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8751         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
8752         from rtx to rtx_insn *.
8753         (DEP_PRO): Delete this function and...
8754         (SET_DEP_PRO): ...this function in favor of...
8755         (DEP_PRO): ...reinstate this macro.
8756         (DEP_CON): Delete this function and...
8757         (SET_DEP_CON): ...this function in favor of...
8758         (DEP_CON): ...reinstate this old macro.
8759         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
8760         (init_dep): Likewise.
8761         (set_priorities): Likewise for both params.
8762         (sd_copy_back_deps): Likewise for params 1 and 2.
8764         * haifa-sched.c (priority): Likewise for param "insn" and local
8765         "next".
8766         (set_priorities): Likewise for params "head" and "tail" and local
8767         "insn".
8768         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
8769         local "consumer".
8770         (add_to_speculative_block): Add a checked cast.
8771         (create_check_block_twin): Drop use of SET_DEP_CON.
8772         (add_jump_dependencies): Strengthen params "insn" and "jump" from
8773         rtx to rtx_insn *.
8775         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
8776         Drop use of SET_DEP_PRO
8777         (init_dep): Strengthen params "pro" and "con" from rtx to
8778         rtx_insn *.
8779         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
8780         use of SET_DEP_CON.
8781         (DEP_PRO): Delete.
8782         (DEP_CON): Delete.
8783         (SET_DEP_PRO): Delete.
8784         (SET_DEP_CON): Delete.
8786 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8788         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
8789         from rtx to rtx_insn *.
8790         (VINSN_INSN_RTX): Eliminate rvalue function and...
8791         (SET_VINSN_INSN): ...lvalue function in favor of...
8792         (VINSN_INSN_RTX): reinstate this old macro.
8794         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
8795         in favor of VINSN_INSN_RTX.
8796         (VINSN_INSN_RTX): Delete this function.
8797         (SET_VINSN_INSN_RTX): Likewise.
8799 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8801         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
8802         (BND_TO): Delete this function and...
8803         (SET_BND_TO): ...this functions in favor of...
8804         (BND_TO): ...reinstating this macro.
8805         (struct _fence): Strengthen field "executing_insns" from
8806         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
8807         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
8808         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
8809         and param "insn" from rtx to insn_t.
8810         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
8811         rtx_insn *.
8813         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
8814         vec<rtx_insn *> .
8815         (rtx_vec_t): Likewise.
8816         (struct sched_deps_info_def): Strengthen param of "start_insn"
8817         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
8818         "note_mem_dep" callback and first param of "note_dep" callback.
8820         * haifa-sched.c (add_to_speculative_block): Strengthen param
8821         "insn" from rtx to rtx_insn *.
8822         (clear_priorities): Likewise.
8823         (calc_priorities): Likewise for local "insn".
8825         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
8826         Remove redundant checked cast.
8827         (haifa_note_mem_dep): Likewise for param "pending_insn".
8828         (haifa_note_dep): Likewise for param "elem".
8829         (note_mem_dep): Likewise for param "e".
8830         (sched_analyze_1): Add checked casts.
8831         (sched_analyze_2): Likewise.
8833         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
8834         from rtx to rtx_insn *.
8835         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
8836         from vec<rtx> * to vec<rtx_insn *> *.
8838         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
8839         scaffolding.
8840         (flist_add): Strengthen param "executing_insns" from
8841         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
8842         (advance_deps_context): Remove now-redundant checked cast.
8843         (init_fences): Replace uses of NULL_RTX with NULL.
8844         (merge_fences): Strengthen params "last_scheduled_insn" and
8845         "sched_next" from rtx to rtx_insn * and "executing_insns" from
8846         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
8847         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
8848         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
8849         an instruction, rather than doing double-duty as a pattern.
8850         (return_nop_to_pool): Update for change of insn_t.
8851         (deps_init_id): Remove now-redundant checked cast.
8852         (struct sched_scan_info_def): Strengthen param of "init_insn"
8853         callback from rtx to insn_t.
8854         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
8855         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
8856         NULL.
8857         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
8858         "end" from rtx to rtx_insn *.
8859         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
8860         (rtx insn_rtx, bool force_unique_p)
8861         (BND_TO): Delete function.
8862         (SET_BND_TO): Delete function.
8864         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
8865         rtx to rtx_insn *.
8866         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
8867         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
8868         rtx to rtx_insn *.
8869         (undo_transformations): Likewise for param "insn".
8870         (update_liveness_on_insn): Likewise.
8871         (compute_live_below_insn): Likewise for param "insn" and local
8872         "succ".
8873         (update_data_sets): Likewise for param "insn".
8874         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
8875         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
8876         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
8877         rtx_insn *.
8878         (move_cond_jump): Likewise for param "insn".
8879         (move_cond_jump): Drop use of SET_BND_TO.
8880         (compute_av_set_on_boundaries): Likewise.
8881         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
8882         (update_and_record_unavailable_insns): Strengthen local "bb_end"
8883         from rtx to rtx_insn *.
8884         (maybe_emit_renaming_copy): Likewise for param "insn".
8885         (maybe_emit_speculative_check): Likewise.
8886         (handle_emitting_transformations): Likewise.
8887         (remove_insn_from_stream): Likewise.
8888         (code_motion_process_successors): Strengthen local "succ" from rtx
8889         to insn_t.
8891 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8893         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
8894         ilist_t, not _xlist_t;
8895         (ILIST_INSN): Define in terms of new union field "insn".
8896         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
8897         _XLIST_NEXT.
8898         (struct _list_node): Add new field "insn" to the union, of type
8899         insn_t.
8900         (ilist_add): Replace macro with an inline function, requiring an
8901         insn_t.
8902         (ilist_remove): Define this macro directly in terms of
8903         _list_remove, rather than indirectly via _xlist_remove.
8904         (ilist_clear): Likewise, in terms of _list_clear rather than
8905         _xlist_clear.
8906         (ilist_is_in_p): Replace macro with an inline function, requiring
8907         an insn_t.
8908         (_list_iter_cond_insn): New function.
8909         (ilist_iter_remove): Define this macro directly in terms of
8910         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
8911         (ilist_iterator): Define directly in terms of _list_iterator
8912         rather than indirectly through _xlist_iterator.
8913         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
8914         than in terms of _FOR_EACH_X.
8915         (FOR_EACH_INSN_1): Likewise.
8917 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
8919         PR target/60606
8920         PR target/61330
8921         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
8922         DECL_HARD_REGISTER and return for invalid register specifications.
8923         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
8924         DECL_HARD_REGISTER, call expand_one_error_var.
8925         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
8926         CC_REGNUM with non-MODE_CC modes.
8927         (arm_regno_class): Return NO_REGS for PC_REGNUM.
8929 2014-08-26  Marek Polacek  <polacek@redhat.com>
8931         PR c/61271
8932         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
8934 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
8936         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
8937         qi cost; add di cost.
8938         (cortexa57_addrcost_table): Likewise.
8940 2014-08-26  Marek Polacek  <polacek@redhat.com>
8942         PR c/61271
8943         * expr.c (is_aligning_offset): Remove logical not.
8945 2014-08-26  Marek Polacek  <polacek@redhat.com>
8947         PR c/61271
8948         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
8949         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
8951 2014-08-26  Richard Biener  <rguenther@suse.de>
8953         PR tree-optimization/62175
8954         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8955         expand possibly trapping operations.
8957 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
8959         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
8960         "insn" from rtx to rtx_insn *.
8961         (permute_load): Likewise for param "insn".
8962         (permute_store): Likewise.
8963         (handle_special_swappables): Likewise for local "insn".
8964         (replace_swap_with_copy): Likewise for locals "insn" and
8965         "new_insn".
8966         (rs6000_analyze_swaps): Likewise for local "insn".
8968 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8970         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
8971         to rtx_insn *.
8973 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8975         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
8976         "note_list" from rtx to rtx_insn *.
8977         (BB_NOTE_LIST): Replace this function and...
8978         (SET_BB_NOTE_LIST): ...this function with...
8979         (BB_NOTE_LIST): ...the former macro implementation.
8981         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
8982         local "from_start" from rtx to rtx_insn *.  Strengthen param
8983         "to_endp" from rtx * to rtx_insn **.
8985         * haifa-sched.c (concat_note_lists): Likewise.
8986         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
8987         BB_NOTE_LIST.
8988         (sel_restore_notes): Likewise.
8989         (move_bb_info): Likewise.
8990         (BB_NOTE_LIST): Delete this function.
8991         (SET_BB_NOTE_LIST): Delete this function.
8992         * sel-sched.c (create_block_for_bookkeeping): Eliminate
8993         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
8995 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8997         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
8998         from rtx * to rtx_insn **.
8999         (reorder2): Likewise.
9000         (dependencies_evaluation_hook): Strengthen params "head", "tail"
9001         from rtx to rtx_insn *.
9003         * doc/tm.texi: Update mechanically for above change to target.def.
9005         * sched-int.h (note_list): Strengthen this variable from rtx to
9006         rtx_insn *.
9007         (remove_notes): Likewise for both params.
9008         (restore_other_notes): Likewise for return type and first param.
9009         (struct ready_list): Strengthen field "vec" from rtx * to
9010         rtx_insn **.
9011         (struct dep_replacement): Strenghten field "insn" from rtx to
9012         rtx_insn *.
9013         (struct deps_desc): Likewise for fields "last_debug_insn",
9014         "last_args_size".
9015         (struct haifa_sched_info): Likewise for callback field
9016         "can_schedule_ready_p"'s param, for first param of "new_ready"
9017         callback field, for both params of "rank" callback field, for
9018         first field of "print_insn" callback field (with a const), for
9019         both params of "contributes_to_priority" callback, for param
9020         of "insn_finishes_block_p" callback, for fields "prev_head",
9021         "next_tail", "head", "tail", for first param of "add_remove_insn"
9022         callback, for first param of "begin_schedule_ready" callback, for
9023         both params of "begin_move_insn" callback, and for second param
9024         of "advance_target_bb" callback.
9025         (add_dependence): Likewise for params 1 and 2.
9026         (sched_analyze): Likewise for params 2 and 3.
9027         (deps_analyze_insn): Likewise for param 2.
9028         (ready_element): Likewise for return type.
9029         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
9030         (try_ready): Strenghten param from rtx to rtx_insn *.
9031         (sched_emit_insn): Likewise for return type.
9032         (record_delay_slot_pair): Likewise for params 1 and 2.
9033         (add_delay_dependencies): Likewise for param.
9034         (contributes_to_priority): Likewise for both params.
9035         (find_modifiable_mems): Likewise.
9037         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
9038         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
9039         "first_older_only_insn" from rtx to rtx_insn *.
9040         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
9041         rtx_insn **.
9043         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
9044         "last_scheduled_iter0" from rtx to rtx_insn *.
9045         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
9046         (c6x_sched_reorder_1): Strengthen param "ready" and locals
9047         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
9048         "insn" from rtx to rtx_insn *.
9049         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
9050         rtx_insn **.
9051         (c6x_sched_reorder2): Strengthen param "ready" and locals
9052         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
9053         "insn" from rtx to rtx_insn *.
9054         (c6x_variable_issue):  Add a checked cast when assigning from insn
9055         to ss.last_scheduled_iter0.
9056         (split_delayed_branch): Strengthen param "insn" and local "i1"
9057         from rtx to rtx_insn *.
9058         (split_delayed_nonbranch): Likewise.
9059         (undo_split_delayed_nonbranch): Likewise for local "insn".
9060         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
9061         "entry_after", "end_packet", "head_insn", "tail_insn",
9062         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
9063         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
9064         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
9065         but add a checked cast on loop->start_label.  Consolidate calls to
9066         avoid assigning result of gen_spkernel to "insn", now an
9067         rtx_insn *.
9069         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
9070         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
9071         rtx to rtx_insn *.
9072         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
9073         rtx_insn **.  Strengthen locals "top", "next" from rtx to
9074         rtx_insn *.
9075         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
9076         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
9077         (add_parameter_dependencies): Strengthen params "call", "head" and
9078         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
9079         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
9080         (add_dependee_for_func_arg): Likewise for param "arg" and local
9081         "insn".
9082         (ix86_dependencies_evaluation_hook): Likewise for params "head",
9083         "tail" and locals "insn", "first_arg".
9085         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
9086         for params "head", "tail" and locals "insn", "next", "next_tail".
9087         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
9088         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
9089         "insn", "lowest", "highest" from rtx to rtx_insn *.
9090         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
9091         rtx_insn **.
9092         (ia64_sched_reorder2): Likewise.
9094         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
9095         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
9096         from rtx * to rtx_insn **.
9097         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
9098         rtx_insn **.
9099         (mep_print_sched_insn): Strengthen param "insn" from rtx to
9100         rtx_insn *.
9101         (mep_sched_reorder): Strengthen param "ready" from rtx * to
9102         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
9103         to rtx_insn *.
9105         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
9106         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
9107         to rtx_insn *.
9108         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
9109         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
9110         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
9111         rtx_insn **.
9112         (vr4130_reorder): Likewise.
9113         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
9114         rtx to rtx_insn *.
9115         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
9116         rtx_insn **.
9117         (mips_sched_reorder): Likewise.
9118         (mips_sched_reorder2): Likewise.
9120         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
9122         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
9123         Strengthen local "tmp" from rtx to rtx_insn *.
9124         (rs6000_sched_reorder2): Likewise.
9126         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
9127         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
9128         (s390_sched_reorder): Strengthen param "ready" from rtx * to
9129         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
9131         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
9132         "tmp2" from rtx to rtx_insn *.
9133         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
9134         Strengthen local "insn" from rtx to rtx_insn *.
9135         (ready_reorder): Strengthen param "ready" from rtx * to
9136         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
9137         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
9138         (sh_reorder2): Likewise.
9140         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
9141         local "insn" from rtx to rtx_insn *.
9143         * haifa-sched.c (note_list): Strengthen this variable from rtx to
9144         rtx_insn *.
9145         (scheduled_insns): Strengthen this variable from vec<rtx> to
9146         vec<rtx_insn *>.
9147         (set_modulo_params): Likewise for locals "i1", "i2".
9148         (record_delay_slot_pair): Likewise for params "i1", "i2".
9149         (add_delay_dependencies): Likewise for param "insn".
9150         (cond_clobbered_p): Likewise.
9151         (recompute_todo_spec): Likewise for local "prev".
9152         (last_scheduled_insn): Likewise for this variable.
9153         (nonscheduled_insns_begin): Likewise.
9154         (model_set_excess_costs): Strengthen param "insns" from rtx * to
9155         rtx_insn **.
9156         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
9157         rtx_insn *.
9158         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
9159         Strengthen local "insn" from rtx to rtx_insn *.
9160         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
9161         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
9162         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
9163         (ready_remove_first): Likewise for return type and local "t".
9164         (ready_element): Likewise for return type.
9165         (ready_remove): Likewise for return type and local "t".
9166         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
9167         (check_clobbered_conditions): Strengthen local "x" from rtx to
9168         rtx_insn *, adding a checked cast.
9169         (schedule_insn): Likewise for param "insn".
9170         (remove_notes): Likewise for params "head", "tail" and locals
9171         "next_tail", "insn", "next".
9172         (struct haifa_saved_data): Likewise for fields
9173         "last_scheduled_insn", "nonscheduled_insns_begin".
9174         (save_backtrack_point): Update for change to field "vec" of
9175         struct ready_list.
9176         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
9177         rtx_insn **.
9178         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
9179         from rtx to rtx_insn *
9180         (resolve_dependencies): Strengthen param "insn" from rtx to
9181         rtx_insn *
9182         (restore_other_notes): Likewise for return type, for param "head"
9183         and local "note_head".
9184         (undo_all_replacements): Likewise for local "insn".
9185         (first_nonscheduled_insn): Likewise for return type and local "insn".
9186         (queue_to_ready): Likewise for local "insn", adding checked casts.
9187         (early_queue_to_ready): Likewise for local "insn".
9188         (debug_ready_list_1): Strengthen local "p" from rtx * to
9189         rtx_insn **.
9190         (move_insn): Strengthen param "insn" and local "note" from rtx to
9191         rtx_insn *
9192         (insn_finishes_cycle_p): Likewise for param "insn".
9193         (max_issue): Likewise for local "insn".
9194         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
9195         to rtx_insn **.
9196         (commit_schedule): Strengthen param "prev_head" and local "insn"
9197         from rtx to rtx_insn *
9198         (prune_ready_list): Likewise for local "insn".
9199         (schedule_block): Likewise for locals "prev_head", "head", "tail",
9200         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
9201         (set_priorities): Likewise for local "prev_head".
9202         (try_ready): Likewise for param "next".
9203         (fix_tick_ready): Likewise.
9204         (change_queue_index): Likewise.
9205         (sched_extend_ready_list): Update for change to field "vec" of
9206         struct ready_list.
9207         (generate_recovery_code): Strengthen param "insn" from rtx to
9208         rtx_insn *.
9209         (begin_speculative_block): Likewise.
9210         (create_check_block_twin): Likewise for param "insn" and locals
9211         "label", "check", "twin".  Introduce local "check_pat" to avoid
9212         "check" being used as a plain rtx before being used as an insn.
9213         (fix_recovery_deps): Add a checked cast to rtx_insn * when
9214         extracting elements from ready_list.
9215         (sched_remove_insn): Strengthen param "insn" from rtx to
9216         rtx_insn *.
9217         (sched_emit_insn): Likewise for return type.
9218         (ready_remove_first_dispatch): Likewise for return type and local
9219         "insn".
9221         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
9223         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
9224         const rtx_insn *.
9226         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
9227         from rtx to rtx_insn *.
9228         (add_dependence_list): Likewise for param "insn".  Add a checked
9229         cast.
9230         (add_dependence_list_and_free): Strengthen param "insn" from rtx
9231         to rtx_insn *.  Strengthen param "list_p" from rtx * to
9232         rtx_insn **.
9233         (chain_to_prev_insn): Strengthen param "insn" and locals
9234         "prec_nonnote", "i" from rtx to rtx_insn *.
9235         (flush_pending_lists): Likewise for param "insn".
9236         (cur_insn): Likewise for this variable.
9237         (haifa_start_insn): Add a checked cast.
9238         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
9239         (sched_analyze_reg): Likewise for param "insn".
9240         (sched_analyze_1): Likewise.
9241         (sched_analyze_2): Likewise.  Add checked casts.
9242         (sched_analyze_insn): Likewise.  Also for local "prev".
9243         (deps_analyze_insn): Likewise for param "insn".
9244         (sched_analyze): Likewise for params "head", "tail" and local "insn".
9245         (add_dependence_1): Likewise for params "insn", "elem".
9246         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
9247         (parse_add_or_inc): Likewise for param "insn".
9248         (find_inc): Likewise for local "inc_cand".
9249         (find_modifiable_mems): Likewise for params "head", "tail" and
9250         locals "insn", "next_tail".
9252         * sched-ebb.c (init_ready_list): Likewise for local "insn".
9253         (begin_schedule_ready): Likewise for param "insn".
9254         (begin_move_insn): Likewise for params "insn" and "last".
9255         (ebb_print_insn): Strengthen param "insn" from const_rtx to
9256         const rtx_insn *.
9257         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
9258         (ebb_contributes_to_priority): Likewise for params "next", "insn".
9259         (ebb_add_remove_insn): Likewise for param "insn".
9260         (advance_target_bb): Likewise.
9262         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
9263         "insn".
9264         (check_live): Likewise for param "insn".
9265         (init_ready_list): Likewise for local "insn".
9266         (can_schedule_ready_p): Likewise for param "insn".
9267         (begin_schedule_ready): Likewise.
9268         (new_ready): Likewise for param "next".
9269         (rgn_print_insn): Likewise for param "insn".
9270         (rgn_rank): Likewise for params "insn1", "insn2".
9271         (contributes_to_priority): Likewise for params "next", "insn".
9272         (rgn_insn_finishes_block_p): Likewise for param "insn".
9273         (add_branch_dependences): Likewise for params "head", "tail" and
9274         locals "insn", "last".
9275         (rgn_add_remove_insn): Likewise for param "insn".
9276         (advance_target_bb): Likewise.
9278         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
9279         const_rtx to const rtx_insn *.
9281         * sel-sched-dump.h (sel_print_insn): Likewise.
9283         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
9284         (deps_init_id): Likewise.
9286         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
9287         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
9288         rtx_insn **.
9290 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9292         * output.h (final_start_function): Strengthen param 1 from rtx to
9293         rtx_insn *.
9295         * final.c (final_start_function): Likewise, renaming back from
9296         "uncast_first" to "first", and dropping the checked cast from rtx
9297         to rtx_insn *.
9299 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9301         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
9302         * final.c (final): Likewise.  Rename param back from
9303         "uncast_first" to "first" and eliminate the checked cast from rtx
9304         to rtx_insn *.
9306 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9308         * output.h (shorten_branches): Strengthen param from rtx to
9309         rtx_insn *.
9311         * final.c (shorten_branches): Likewise, renaming param back from
9312         "uncast_first" to "first", and dropping the checked cast from rtx
9313         to rtx_insn *.
9315         * genattr.c (gen_attr): Likewise when writing out the prototype of
9316         shorten_branches.
9318 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9320         * sched-int.h (struct haifa_sched_info): Strengthen fields
9321         "prev_head" and "next_tail" from rtx to rtx_insn *.
9323 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9325         * rtl.h (rtx_jump_table_data::get_labels): New method.
9326         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
9327         with use of the new rtx_jump_table_data::get_labels method.
9328         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
9329         to rtx_jump_table_data *.  Simplify by using get_labels method.
9330         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
9331         a dyn_cast, introducing local "table", using it to replace
9332         label-lookup logic with a get_labels method call.
9333         (patch_jump_insn): Simplify using get_labels method.
9334         * dwarf2cfi.c (create_trace_edges): Likewise.
9335         * rtlanal.c (label_is_jump_target_p): Likewise.
9337 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9339         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
9340         to rtx_insn *.
9342         * emit-rtl.c (unshare_all_rtl_1): Likewise.
9343         (unshare_all_rtl_again): Likewise, also for local "p".
9345 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9347         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
9348         to rtx_insn *.
9349         * cfgrtl.c (delete_insn_and_edges): Likewise.
9351 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9353         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
9354         from rtx to rtx_insn *.
9356         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
9358 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9360         * function.c (thread_prologue_and_epilogue_insns): Likewise for
9361         locals "returnjump", "epilogue_end", "insn", "next".
9363         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
9364         "returnjump" from rtx * to rtx_insn **.
9365         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
9367 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9369         * basic-block.h (struct edge_def). Strengthen "r" within
9370         union edge_def_insns from rtx to rtx_insn *.
9372         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
9373         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
9374         rtx_insn *.
9375         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
9376         from rtx to rtx_insn *.
9377         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
9378         rtx_insn *.
9379         * postreload-gcse.c (reg_killed_on_edge): Likewise.
9380         (reg_used_on_edge): Likewise.
9381         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
9382         (gt_pch_nx): New overload for rtx_insn *&.
9383         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
9384         from rtx to rtx_insn *.
9386 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9388         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
9389         from rtx to rtx_insn *.
9390         (BB_FOOTER): Replace function with access macro.
9391         (SET_BB_FOOTER): Delete.
9393         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
9394         with BB_FOOTER.
9395         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9396         (emit_barrier_after_bb): Likewise.
9397         (record_effective_endpoints): Likewise.
9398         (relink_block_chain): Likewise.
9399         (fixup_fallthru_exit_predecessor): Likewise.
9400         (cfg_layout_duplicate_bb): Likewise.
9401         (cfg_layout_split_block): Likewise.
9402         (cfg_layout_delete_block): Likewise.
9403         (cfg_layout_merge_blocks): Likewise.
9404         (BB_FOOTER): Delete function.
9405         (SET_BB_FOOTER): Delete function.
9406         * combine.c (update_cfg_for_uncondjump): Replace uses of
9407         SET_BB_FOOTER with BB_FOOTER.
9409 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9411         * except.h (struct eh_landing_pad_d): Strengthen field
9412         "landing_pad" from rtx to rtx_code_label *.
9414         * except.c (sjlj_emit_dispatch_table): Likewise for param
9415         "dispatch_label"
9416         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
9418 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9420         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
9421         first param from rtx to rtx_insn *.
9422         * config/xtensa/xtensa.c (struct machine_function): Likewise for
9423         field "set_frame_ptr_insn".
9424         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
9425         "csend" from rtx to rtx_code_label *.
9426         (xtensa_expand_atomic): Likewise for local "csloop".
9427         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
9428         rtx_insn *.
9429         (xtensa_call_tls_desc): Likewise for return type and locals
9430         "call_insn", "insns".
9431         (xtensa_legitimize_tls_address): Likewise for local "insns".
9432         (xtensa_expand_prologue): Likewise for locals "insn", "first".
9434 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9436         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
9437         first param from rtx to rtx_insn *.
9438         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
9439         "insn".
9441 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9443         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
9444         Strengthen param 1 from rtx to rtx_insn *.
9445         (tilepro_output_cbranch): Likewise.
9446         (tilepro_adjust_insn_length): Likewise.
9447         (tilepro_final_prescan_insn): Likewise for sole param.
9449         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
9450         Likewise for local "last".
9451         (cbranch_predicted_p): Likewise for param "insn".
9452         (tilepro_output_simple_cbranch_with_opcode): Likewise.
9453         (tilepro_output_cbranch_with_opcode): Likewise.
9454         (tilepro_output_cbranch): Likewise.
9455         (frame_emit_load): Likewise for return type and locals "seq",
9456         "insn".
9457         (emit_sp_adjust): Likewise for return type and local "insn".
9458         (tilepro_expand_epilogue): Likewise for locals "last_insn",
9459         "insn".
9460         (tilepro_adjust_insn_length): Likewise for param "insn".
9461         (next_insn_to_bundle): Likewise for return type and params
9462         "r", "end".
9463         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
9464         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
9465         local "new_insns".
9466         (match_addli_pcrel): Likewise for param "insn".
9467         (replace_addli_pcrel): Likewise.
9468         (match_auli_pcrel): Likewise.
9469         (replace_auli_pcrel): Likewise.
9470         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
9471         "next_insn".
9472         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
9473         "queue", "next_queue", "prev".
9474         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
9475         (tilepro_final_prescan_insn): Likewise for param "insn".
9477 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9479         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
9480         Strengthen param 1 from rtx to rtx_insn *.
9481         (tilegx_output_cbranch): Likewise.
9482         (tilegx_adjust_insn_length): Likewise.
9483         (tilegx_final_prescan_insn): Likewise for sole param.
9485         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
9486         or local "last".
9487         (cbranch_predicted_p): Likewise for param "insn".
9488         (tilegx_output_simple_cbranch_with_opcode): Likewise.
9489         (tilegx_output_cbranch_with_opcode): Likewise.
9490         (tilegx_output_cbranch): Likewise.
9491         (frame_emit_load): Likewise for return type.
9492         (set_frame_related_p): Likewise for locals "seq", "insn".
9493         (emit_sp_adjust): Likewise for return type, and for local "insn".
9494         Introduce local "pat" for use in place of "insn" where the latter
9495         isn't an instruction.
9496         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
9497         from rtx to rtx_insn *.
9498         (tilegx_adjust_insn_length): Likewise for param "insn".
9499         (next_insn_to_bundle): Likewise for return type and params "r" and
9500         "end".
9501         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
9502         "end".
9503         (replace_insns): Likewise for params "old_insn", "new_insns".
9504         (replace_mov_pcrel_step1): Likewise for param "insn" and local
9505         "new_insns".
9506         (replace_mov_pcrel_step2): Likewise.
9507         (replace_mov_pcrel_step3): Likewise.
9508         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
9509         "next_insn".
9510         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
9511         "queue", "next_queue", "prev".
9512         (tilegx_output_mi_thunk): Likewise for local "insn".
9513         (tilegx_final_prescan_insn): Likewise for param "insn".
9515 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9517         * config/spu/spu.c (frame_emit_store): Strengthen return type from
9518         rtx to rtx_insn *.
9519         (frame_emit_load): Likewise.
9520         (frame_emit_add_imm): Likewise, also for local "insn".
9521         (spu_expand_prologue): Likewise for local "insn".
9522         (struct spu_bb_info): Likewise for field "prop_jump".
9523         (emit_nop_for_insn): Likewise for param "insn" and local
9524         "new_insn".
9525         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
9526         "hbr_insn".
9527         (spu_emit_branch_hint): Likewise for params "before", "branch" and
9528         locals "hint", "insn".
9529         (get_branch_target): Likewise for param "branch".
9530         (insn_clobbers_hbr): Likewise for param "insn".
9531         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
9532         locals "insn", "before_4", "before_16".
9533         (insert_hbrp): Likewise for local "insn".
9534         (spu_machine_dependent_reorg): Likewise for locals "branch",
9535         "insn", "next", "bbend".
9536         (uses_ls_unit): Likewise for param "insn".
9537         (get_pipe): Likewise.
9538         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
9539         introducing a checked cast.
9540         (spu_sched_adjust_cost): Likewise for params "insn" and
9541         "dep_insn".
9542         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
9543         (spu_sms_res_mii): Likewise.
9545 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9547         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
9548         from rtx to rtx_insn *.
9549         (output_cbranch): Likewise for param 6.
9550         (output_return): Likewise for param 1.
9551         (output_sibcall): Likewise.
9552         (output_v8plus_shift): Likewise.
9553         (output_v8plus_mult): Likewise.
9554         (output_v9branch): Likewise for param 7.
9555         (output_cbcond):  Likewise for param 3.
9557         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
9558         for local "insn".
9559         (sparc_legitimize_pic_address): Likewise.
9560         (sparc_emit_call_insn): Likewise.
9561         (emit_save_or_restore_regs): Likewise.
9562         (emit_window_save): Likewise for return type and local "insn".
9563         (sparc_expand_prologue): Likewise for local "insn".
9564         (sparc_flat_expand_prologue): Likewise.
9565         (output_return): Likewise for param "insn".
9566         (output_sibcall): Likewise for param "insn" and local "delay".
9567         (output_ubranch): Likewise for param "insn".
9568         (output_cbranch): Likewise.
9569         (output_cbcond): Likewise.
9570         (output_v9branch): Likewise.
9571         (output_v8plus_shift): Likewise.
9572         (sparc_output_mi_thunk): Likewise for local "insn".
9573         (get_some_local_dynamic_name): Likewise.
9574         (output_v8plus_mult): Likewise for param "insn".
9576 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9578         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
9579         from rtx to rtx_insn *.
9580         (output_branchy_insn): Likewise for param 3.
9581         (output_far_jump): Likewise for param 1.
9582         (final_prescan_insn): Likewise.
9583         (sh_insn_length_adjustment): Likewise for sole param.
9585         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
9586         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
9587         rtx_code_label *.
9588         (sh_emit_compare_and_set): Likewise for local "lab".
9589         (output_far_jump): Strengthen param "insn" and local "prev" from
9590         rtx to rtx_insn *.
9591         (output_branchy_insn): Likewise for param "insn" and local
9592         "next_insn".
9593         (output_ieee_ccmpeq): Likewise for param "insn".
9594         (struct label_ref_list_d): Strengthen field "label" from rtx to
9595         rtx_code_label *.
9596         (pool_node): Likewise.
9597         (pool_window_label): Likewise for this global.
9598         (add_constant): Likewise for return type and locals "lab", "new_rtx".
9599         (dump_table): Strengthen params "start", "barrier" and local
9600         "scan" from rtx to rtx_insn *.
9601         (broken_move): Likewise for param "insn".
9602         (untangle_mova): Likewise for params "first_mova" and "new_mova".
9603         Strengthen param "first_mova" from rtx * to rtx_insn **.
9604         (mova_p): Likewise for param "insn".
9605         (fixup_mova): Likewise for param "mova".
9606         (find_barrier): Likewise for return type, params "mova" and
9607         "from", and locals "barrier_before_mova", "found_barrier",
9608         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
9609         "label" from rtx to rtx_code_label *.
9610         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
9611         rtx to rtx_insn *.
9612         (sh_reorg): Likewise for locals "link", "scan", "barrier".
9613         (split_branches): Likewise for param "first" and local "insn".
9614         (final_prescan_insn): Likewise for param "insn".
9615         (sequence_insn_p): Likewise for locals "prev", "next".
9616         (sh_insn_length_adjustment): Likewise for param "insn".
9617         (sh_can_redirect_branch): Likewise for local "insn".
9618         (find_r0_life_regions): Likewise for locals "end", "insn".
9619         (sh_output_mi_thunk): Likewise for local "insns".
9621 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9623         * config/score/score.c (score_output_mi_thunk): Strengthen local
9624         "insn" from rtx to rtx_insn *.
9625         (score_prologue): Likewise.
9627 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9629         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
9630         1 from rtx to rtx_insn *.
9631         (s390_emit_jump): Likewise for return type.
9632         (s390_emit_call): Likewise.
9633         (s390_load_got): Likewise.
9635         * config/s390/s390.c (last_scheduled_insn): Likewise for this
9636         variable.
9637         (s390_match_ccmode): Likewise for param "insn".
9638         (s390_emit_jump): Likewise for return type.
9639         (s390_split_branches): Likewise for local "label".
9640         (struct constant): Strengthen field "label" from rtx to
9641         rtx_code_label *.
9642         (struct constant_pool): Likewise for field "label".  Strengthen
9643         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
9644         rtx_insn *.
9645         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
9646         insns.
9647         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
9648         (s390_end_pool): Likewise.
9649         (s390_dump_pool): Likewise for local "insn".
9650         (s390_mainpool_start): Likewise.
9651         (s390_chunkify_start): Likewise.
9652         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
9653         with insns.  Strengthen locals "label", "jump", "barrier", "next",
9654         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
9655         (s390_chunkify_finish): Strengthen local "insn" from rtx to
9656         rtx_insn *.
9657         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
9658         "jump", "label", "next_insn".
9659         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
9660         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
9661         "tbegin_insn".
9662         (s390_load_got): Likewise for return type and local "insns".
9663         (s390_save_gprs_to_fprs): Likewise for local "insn".
9664         (s390_restore_gprs_from_fprs): Likewise.
9665         (pass_s390_early_mach::execute): Likewise.
9666         (s390_emit_prologue): Likewise for local "insns".
9667         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
9668         rtx_code_label *.
9669         (s390_emit_call): Strengthen return type and local "insn" from
9670         rtx to rtx_insn *.
9671         (s390_emit_tpf_eh_return): Likewise for local "insn".
9672         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
9673         "next_insn", introducing locals "s_pat", "rpat" to allow this.
9674         (s390_fix_long_loop_prediction): Likewise for param "insn" and
9675         local "cur_insn".
9676         (s390_non_addr_reg_read_p): Likewise for param "insn".
9677         (find_cond_jump): Likewise for return type and param "insn".
9678         (s390_swap_cmp): Likewise for param "insn".
9679         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
9680         "prev_insn", "next_insn".
9681         (s390_reorg): Likewise for locals "insn", "target".
9682         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
9683         (s390_sched_variable_issue): For now, rename param "insn" to
9684         "uncast_insn", introducing a checked cast.
9685         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
9686         insn.
9687         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
9688         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
9690 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9692         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
9693         param from rtx to rtx_insn *.
9694         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
9696 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9698         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
9699         4 from rtx to rtx_insn *.
9700         (rs6000_final_prescan_insn): Likewise for first param.
9701         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
9702         local "insn".
9703         (rs6000_get_some_local_dynamic_name): Likewise.
9704         (output_cbranch): Likewise for param "insn".
9705         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
9706         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
9707         (rs6000_emit_allocate_stack): Likewise for local "insn".
9708         (load_cr_save): Likewise.
9709         (restore_saved_cr): Likewise.
9710         (restore_saved_lr): Likewise.
9711         (emit_cfa_restores): Likewise.
9712         (rs6000_output_function_epilogue): Likewise for locals "insn" and
9713         "deleted_debug_label".
9714         (rs6000_output_mi_thunk): Likewise for local "insn".
9715         (rs6000_final_prescan_insn): Likewise for param "insn".
9717 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9719         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
9720         Strengthen param "insn" from rtx to rtx_insn *.
9721         * config/picochip/picochip.c (picochip_current_prescan_insn):
9722         Likewise for this variable.
9723         (picochip_final_prescan_insn): Likewise for param "insn".
9725 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9727         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
9728         from rtx to rtx_insn *.
9729         (pa_output_indirect_call): Likewise.
9730         (pa_adjust_insn_length): Likewise.
9731         (pa_attr_length_millicode_call): Likewise.
9732         (pa_attr_length_call): Likewise.
9733         (pa_attr_length_indirect_call): Likewise.
9735         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
9736         "insn".
9737         (pa_attr_length_millicode_call): Likewise.
9738         (pa_attr_length_call): Likewise.
9739         (pa_output_call): Likewise.
9740         (pa_attr_length_indirect_call): Likewise.
9741         (pa_output_indirect_call): Likewise.
9743 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9745         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
9746         Strengthen first param from rtx to rtx_insn *.
9747         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
9748         param "insn".
9750 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9752         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
9753         type from rtx to rtx_insn *.
9754         (mips_expand_call): Likewise.
9755         (mips_adjust_insn_length): Likewise for first param.
9756         (mips_output_conditional_branch): Likewise.
9757         (mips_output_order_conditional_branch): Likewise.
9758         (mips_final_prescan_insn): Likewise.
9760         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
9761         rtx_insn * for the SEQUENCE case.
9762         (SEQ_END): Likewise.
9763         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
9764         (mips_emit_call_insn): Likewise, also for local "insn".
9765         (mips16_gp_pseudo_reg): Likewise for local "scan".
9766         (mips16_build_call_stub): Likewise for return type and for local
9767         "insn".  Introduce a new local "pattern" so that "insn" can indeed
9768         be an insn.
9769         (mips_expand_call): Strengthen return type and local "insn" from
9770         rtx to rtx_insn *.
9771         (mips_block_move_loop): Strengthen local "label" from rtx to
9772         rtx_code_label *.
9773         (mips_expand_synci_loop): Likewise for locals "label",
9774         "end_label".
9775         (mips_set_frame_expr): Strengthen local "insn" from rtx to
9776         rtx_insn *.
9777         (mips16e_collect_argument_saves): Likewise for locals "insn",
9778         "next".
9779         (mips_find_gp_ref): Likewise for param of callback for "pred"
9780         param, and for local "insn".
9781         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
9782         (mips_insn_has_flexible_gp_ref_p): Likewise.
9783         (mips_epilogue_emit_cfa_restores): Likewise for return type and
9784         local "insn".
9785         (mips_epilogue_set_cfa): Likewise for local "insn".
9786         (mips_expand_epilogue): Likewise.
9787         (mips_adjust_insn_length): Likewise for param "insn".
9788         (mips_output_conditional_branch): Likewise.
9789         (mips_output_order_conditional_branch): Likewise.
9790         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
9791         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
9792         "falu2_turn_enabled_insn".
9793         (mips_builtin_branch_and_move): Strengthen locals "true_label",
9794         "done_label" from rtx to rtx_code_label *.
9795         (struct mips16_constant): Likewise for field "label".
9796         (mips16_add_constant): Likewise for return type.
9797         (mips16_emit_constants_1): Strengthen return type and param "insn"
9798         from rtx to rtx_insn *.
9799         (mips16_emit_constants): Likewise for param "insn".
9800         (mips16_insn_length): Likewise.
9801         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
9802         to rtx_code_label *.
9803         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
9804         from rtx to rtx_insn *.
9805         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
9806         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
9807         (r10k_simplify_address): Strengthen param "insn" and local
9808         "def_insn" from rtx to rtx_insn *.
9809         (r10k_safe_address_p): Strengthen param "insn" from rtx to
9810         rtx_insn *.
9811         (r10k_needs_protection_p_1): Update target type of cast of data
9812         from to rtx to rtx_insn *.
9813         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
9814         rtx * to rtx_insn **.
9815         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
9816         rtx_insn *.
9817         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
9818         (mips_call_expr_from_insn): Likewise for param "insn".
9819         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
9820         (mips_find_pic_call_symbol): Likewise for param "insn".
9821         (mips_annotate_pic_calls): Likewise for local "insn".
9822         (mips_sim_insn): Likewise for this variable.
9823         (struct mips_sim): Likewise for field "insn" within elements of
9824         last_set array.
9825         (mips_sim_wait_reg): Likewise for param "insn".
9826         (mips_sim_wait_regs): Likewise.
9827         (mips_sim_wait_units): Likewise.
9828         (mips_sim_wait_insn): Likewise.
9829         (mips_sim_issue_insn): Likewise.
9830         (mips_sim_finish_insn): Likewise.
9831         (mips_seq_time): Likewise for param "seq" and local "insn".
9832         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
9833         locals "first", "second".
9834         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
9835         "last", "last2", "next".
9836         (mips_avoid_hazard): Likewise for params "after", "insn".
9837         (mips_reorg_process_insns): Likewise for locals "insn",
9838         "last_insn", "subinsn", "next_insn".
9839         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
9840         (mips16_split_long_branches): Likewise for locals "insn" "jump",
9841         "jump_sequence".
9842         (mips_output_mi_thunk): Likewise for local "insn".
9843         (mips_final_prescan_insn): Likewise for param "insn".
9845 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9847         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
9848         Strengthen return type and local "insns" from rtx to rtx_insn *.
9849         (microblaze_legitimize_tls_address): Likewise for local "insns".
9850         (microblaze_block_move_loop): Strengthen local "label" from rtx
9851         to rtx_code_label *.
9852         (microblaze_expand_prologue): Strengthen two locals named "insn"
9853         from rtx to rtx_insn *.
9854         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
9855         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
9856         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
9857         to rtx_code_label *.
9859 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9861         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
9862         param from rtx to rtx_insn *.
9863         (mep_reuse_lo): Likewise for third param.
9864         (mep_use_post_modify_p): Likewise for first param.
9865         (mep_core_address_length): Likewise.
9866         (mep_cop_address_length): Likewise.
9867         (mep_final_prescan_insn): Likewise.
9868         (mep_store_data_bypass_p): Likewise for both params.
9869         (mep_mul_hilo_bypass_p): Likewise.
9870         (mep_ipipe_ldc_p): Likewise for param.
9872         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
9873         (mep_rewrite_mult): Likewise.
9874         (mep_rewrite_mulsi3): Likewise.
9875         (mep_rewrite_maddsi3): Likewise.
9876         (mep_reuse_lo_p_1): Likewise.
9877         (mep_reuse_lo_p): Likewise.
9878         (mep_frame_expr): Likewise.
9879         (mep_make_parallel): Likewise for both params.
9880         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
9881         local "insn".
9882         (mep_use_post_modify_p): Likewise for param "insn".
9883         (mep_core_address_length): Likewise.
9884         (mep_cop_address_length): Likewise.
9885         (mep_reg_set_in_function): Likewise for local "insn".
9886         (mep_asm_without_operands_p): Likewise.
9887         (F): Likewise for return type and param "x".
9888         (add_constant): Likewise for local "insn".
9889         (maybe_dead_move): Likewise for return type and local "insn".
9890         (mep_expand_prologue): Likewise for local "insn".
9891         (mep_final_prescan_insn): Likewise for param "insn".
9892         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
9893         "next", "follow", "x".
9894         (mep_insert_repeat_label_last): Likewise for return type, param
9895         "last_insn", and locals "next", "prev".  Strengthen param "label"
9896         from rtx to rtx_code_label *.
9897         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
9898         rtx_insn *.
9899         (struct mep_doloop_end): Likewise for fields "insn" and
9900         "fallthrough".
9901         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
9902         Strengthen local "repeat_label" from rtx to rtx_code_label *.
9903         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
9904         rtx_insn *.
9905         (mep_invert_branch): Likewise for params "insn" and "after".
9906         (mep_reorg_erepeat): Likewise for param "insns" and locals
9907         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
9908         "l" from rtx to rtx_code_label *.
9909         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
9910         from rtx to rtx_insn *.
9911         (mep_reorg_addcombine): Likewise for param "insns" and locals
9912         "i", "n".
9913         (add_sp_insn_p): Likewise for param "insn".
9914         (mep_reorg_noframe): Likewise for param "insns" and locals
9915         "start_frame_insn", "end_frame_insn", "next".
9916         (mep_reorg): Likewise for local "insns".
9917         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
9918         cast.
9919         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
9920         (mep_mul_hilo_bypass_p): Likewise.
9921         (mep_ipipe_ldc_p): Likewise for param "insn".
9922         (mep_make_bundle): Likewise for return type, param "cop" and local
9923         "insn", splitting out the latter into a new local "seq" for when it
9924         is a SEQUENCE rather than an insn.
9925         (core_insn_p): Likewise for param "insn".
9926         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
9927         "last", "first", "note", "prev", "core_insn".
9929 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9931         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
9932         rtx to rtx_insn *.
9933         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
9934         (m68k_final_prescan_insn): Likewise for first param.
9936         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
9937         (m68k_set_frame_related): Likewise for param "insn".
9938         (output_btst): Likewise for param "insn".
9939         (m68k_final_prescan_insn): Likewise.
9940         (m68k_move_to_reg): Likewise for local "insn".
9941         (m68k_call_tls_get_addr): Likewise for local "insns".
9942         (m68k_call_m68k_read_tp): Likewise.
9943         (strict_low_part_peephole_ok): Likewise for param "first_insn".
9944         (m68k_output_mi_thunk): Likewise for local "insn".
9946 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9948         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
9949         first param from rtx to rtx_insn *.
9950         (iq2000_adjust_insn_length): Likewise.
9951         (iq2000_output_conditional_branch): Likewise.
9952         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
9953         "insn" and local "nop_insn".
9954         (iq2000_annotate_frame_insn): Likewise for param "insn".
9955         (iq2000_expand_prologue): Likewise for both locals "insn".
9956         (iq2000_adjust_insn_length): Likewise for param "insn".
9957         (iq2000_output_conditional_branch): Likewise.
9959 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9961         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
9962         "insns" from rtx to rtx_insn *.
9963         (ia64_emit_cond_move): Likewise for locals "insn", "first".
9964         (struct spill_fill_data): Likewise for field "init_after" and for
9965         elements of array field "prev_insn".
9966         (spill_restore_mem): Likewise for locals "insn", "first".
9967         (do_spill): Likewise for local "insn".
9968         (do_restore): Likewise.
9969         (ia64_expand_prologue): Likewise.
9970         (ia64_expand_epilogue): Likewise.
9971         (emit_insn_group_barriers): Likewise for locals "insn",
9972         "last_label".
9973         (emit_all_insn_group_barriers): Likewise for locals "insn",
9974         "last".
9975         (dfa_stop_insn): Likewise for this global.
9976         (dfa_pre_cycle_insn): Likewise.
9977         (ia64_nop): Likewise.
9978         (final_emit_insn_group_barriers): Likewise for locals "insn",
9979         "last".
9980         (emit_predicate_relation_info): Likewise for locals "head", "n",
9981         "insn", "b", "a".
9982         (ia64_reorg): Likewise for local "insn".
9983         (ia64_output_mi_thunk): Likewise.
9984         (expand_vec_perm_interleave_2): Likewise for local "seq".
9986 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
9988         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
9989         param 1 "insn" from rtx to rtx_insn *.
9990         (ix86_use_lea_for_mov): Likewise.
9991         (ix86_avoid_lea_for_addr): Likewise.
9992         (ix86_split_lea_for_addr): Likewise.
9993         (ix86_lea_for_add_ok): Likewise.
9994         (ix86_output_call_insn): Likewise.
9996         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
9997         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
9998         (ix86_output_function_epilogue): Likewise for locals "insn",
9999         "deleted_debug_label".
10000         (legitimize_tls_address): Likewise for local "insn".
10001         (get_some_local_dynamic_name): Likewise.
10002         (increase_distance): Likewise for params "prev", "next".
10003         (distance_non_agu_define_in_bb): Likewise for params "insn",
10004         "start" and locals "prev", "next".
10005         (distance_non_agu_define): Likewise for param "insn".
10006         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
10007         locals "next", "prev".
10008         (distance_agu_use): Likewise for param "insn".
10009         (ix86_lea_outperforms): Likewise.
10010         (ix86_ok_to_clobber_flags): Likewise.
10011         (ix86_avoid_lea_for_add): Likewise.
10012         (ix86_use_lea_for_mov): Likewise.
10013         (ix86_avoid_lea_for_addr): Likewise.
10014         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
10015         (ix86_split_lea_for_addr): Likewise for param "insn".
10016         (ix86_lea_for_add_ok): Likewise for param "insn".
10017         (ix86_expand_carry_flag_compare): Likewise for local
10018         "compare_seq".
10019         (ix86_expand_int_movcc): Likewise.
10020         (ix86_output_call_insn): Likewise for param "insn".
10021         (ix86_output_call_insn): Likewise for local "i".
10022         (x86_output_mi_thunk): Introduce local "insn", using it in place
10023         of "tmp" when dealing with insns.
10024         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
10025         "start".
10026         (ix86_pad_returns): Likewise for locals "ret", "prev".
10027         (ix86_count_insn_bb): Likewise for local "insn".
10028         (ix86_pad_short_function): Likewise for locals "ret", "insn".
10029         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
10030         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
10031         (expand_vec_perm_interleave2): Likewise for local "seq".
10032         (expand_vec_perm_vperm2f128_vblend): Likewise.
10033         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
10034         call to for_each_rtx with for_each_rtx_in_insn.
10036 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10038         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
10039         "label" from rtx to rtx_code_label *.
10040         (ix86_expand_prologue): Likewise.
10041         (ix86_expand_split_stack_prologue): Likewise for locals "label",
10042         "varargs_label".
10043         (ix86_split_idivmod): Likewise for locals "end_label" and
10044         "qimode_label".
10045         (ix86_expand_branch): Likewise for local "label2".
10046         (ix86_expand_aligntest): Likewise for return type and local "label".
10047         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
10048         "top_label".
10049         (expand_movmem_epilogue): Likewise for the various locals named
10050         "label".
10051         (expand_setmem_epilogue): Likewise.
10052         (expand_small_movmem_or_setmem): Likewise for local "label".
10053         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
10054         Strengthen param "done_label" from rtx * to rtx_code_label **.
10055         Strengthen locals "loop_label" and "label" from rtx to
10056         rtx_code_label *.
10057         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
10058         Likewise for locals "loop_label", "label".
10059         (ix86_expand_set_or_movmem): Likewise for locals "label",
10060         "jump_around_label", "hot_label".
10061         (ix86_expand_strlensi_unroll_1): Likewise for locals
10062         "align_2_label", align_3_label", "align_4_label", "end_0_label",
10063         "end_2_label".
10064         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
10065         (void ix86_emit_i387_log1p): Likewise for locals "label1",
10066         "label2", "jump_label".
10067         (ix86_expand_sse_compare_and_jump): Likewise for return type and
10068         local "label".
10069         (ix86_expand_lfloorceil): Likewise for local "label".
10070         (ix86_expand_rint): Likewise.
10071         (ix86_expand_floorceildf_32): Likewise.
10072         (ix86_expand_floorceil): Likewise.
10073         (ix86_expand_rounddf_32): Likewise.
10074         (ix86_expand_trunc): Likewise.
10075         (ix86_expand_truncdf_32): Likewise.
10076         (ix86_expand_round): Likewise.
10078 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10080         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
10081         first param from rtx to rtx_insn *.
10082         (h8300_insn_length_from_table): Likewise.
10083         * config/h8300/h8300.c (F): Likewise for return type and param
10084         "x".
10085         (Fpa): Add a checked cast to rtx_insn *.
10086         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
10087         rtx_insn *.
10088         (final_prescan_insn): Likewise for param "insn".
10089         (h8300_binary_length): Likewise.
10090         (h8300_insn_length_from_table): Likewise.
10092 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10094         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
10095         Strengthen first param "insn" from rtx to rtx_insn *.
10097         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
10098         Likewise.
10099         (frame_insn): Likewise for return type.  Introduce local "insn"
10100         for use in place of local "x" for use as an rtx_insn *.
10101         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
10102         (epiphany_expand_prologue): Likewise for local "insn".
10103         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
10104         * config/epiphany/resolve-sw-modes.c
10105         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
10106         "seq".
10108 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10110         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
10111         param from rtx to rtx_insn *.
10112         (c6x_final_prescan_insn): Likewise for first param.
10114         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
10115         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
10116         (c6x_expand_compare): Strengthen local "insns" from rtx to
10117         rtx_insn *.
10118         (c6x_get_unit_specifier): Likewise for param "insn".
10119         (c6x_print_unit_specifier_field): Likewise.
10120         (c6x_final_prescan_insn): Likewise.
10121         (emit_add_sp_const): Likewise for local "insn".
10122         (c6x_expand_prologue): Likewise.
10124 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10126         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
10127         param 1 from rtx to rtx_insn *.
10128         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
10129         the various locals named "insn".
10130         (expand_epilogue_reg_restore): Likewise.
10131         (frame_related_constant_load): Likewise.
10132         (add_to_reg): Likewise.
10133         (emit_link_insn): Likewise.
10134         (do_link): Likewise.
10135         (expand_interrupt_handler_prologue): Likewise.
10136         (branch_dest): Likewise for param "branch".
10137         (asm_conditional_branch): Likewise for param "insn".
10138         (gen_one_bundle): Likewise for elements of param "slot" and local
10139         "t".
10140         (bfin_gen_bundles): Likewise for locals "insn", "next" and
10141         elements of local "slot".
10142         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10143         "queue", "next_queue", "prev".
10144         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
10145         (add_sched_insns_for_speculation): Likewise for local "insn".
10147 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10149         * config/avr/avr-protos.h (output_movqi): Strengthen first param
10150         from rtx to rtx_insn *.
10151         (output_movhi): Likewise.
10152         (output_movsisf): Likewise.
10153         (avr_out_tstsi): Likewise.
10154         (avr_out_tsthi): Likewise.
10155         (avr_out_tstpsi): Likewise.
10156         (avr_out_compare): Likewise.
10157         (avr_out_compare64): Likewise.
10158         (avr_out_movpsi): Likewise.
10159         (ashlqi3_out): Likewise.
10160         (ashlhi3_out): Likewise.
10161         (ashlsi3_out): Likewise.
10162         (ashrqi3_out): Likewise.
10163         (ashrhi3_out): Likewise.
10164         (ashrsi3_out): Likewise.
10165         (lshrqi3_out): Likewise.
10166         (lshrhi3_out): Likewise.
10167         (lshrsi3_out): Likewise.
10168         (avr_out_ashlpsi3): Likewise.
10169         (avr_out_ashrpsi3): Likewise.
10170         (avr_out_lshrpsi3): Likewise.
10171         (avr_out_fract): Likewise.
10172         (avr_out_sbxx_branch): Likewise.
10173         (avr_out_round): Likewise.
10174         (avr_out_xload): Likewise.
10175         (avr_out_movmem): Likewise.
10176         (adjust_insn_length): Likewise.
10177         (avr_out_lpm): Likewise.
10178         (reg_unused_after): Likewise.
10179         (_reg_unused_after): Likewise.
10180         (avr_jump_mode): Likewise for second param.
10181         (jump_over_one_insn): Likewise for first param.
10182         (avr_final_prescan_insn): Likewise.
10183         (out_shift_with_cnt): Likewise for second param.
10185         * config/avr/avr.c (get_sequence_length): Likewise for param
10186         "insns" and local "insn".
10187         (emit_push_byte): Likewise for local "insn".
10188         (emit_push_sfr): Likewise.
10189         (avr_prologue_setup_frame): Likewise for locals "insn",
10190         "fp_plus_insns", "sp_plus_insns".
10191         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
10192         "sp_plus_insns".
10193         (avr_jump_mode): Likewise for param "insn".
10194         (avr_final_prescan_insn): Likewise.
10195         (avr_find_unused_d_reg): Likewise.
10196         (avr_out_lpm_no_lpmx): Likewise.
10197         (avr_out_lpm): Likewise.
10198         (avr_out_xload): Likewise.
10199         (output_movqi): Likewise.
10200         (output_movhi): Likewise.
10201         (out_movqi_r_mr): Likewise.
10202         (out_movhi_r_mr): Likewise.
10203         (out_movsi_r_mr): Likewise.
10204         (out_movsi_mr_r): Likewise.
10205         (output_movsisf): Likewise.
10206         (avr_out_load_psi): Likewise.
10207         (avr_out_store_psi): Likewise.
10208         (avr_out_movpsi): Likewise.
10209         (out_movqi_mr_r): Likewise.
10210         (avr_out_movhi_mr_r_xmega): Likewise.
10211         (out_movhi_mr_r): Likewise.
10212         (compare_condition): Likewise for param "insn" and local "next".
10213         (compare_sign_p): Likewise for param "insn".
10214         (compare_diff_p): Likewise.
10215         (compare_eq_p): Likewise.
10216         (avr_out_compare): Likewise.
10217         (avr_out_compare64): Likewise.
10218         (avr_out_tsthi): Likewise.
10219         (avr_out_tstpsi): Likewise.
10220         (avr_out_tstsi): Likewise.
10221         (out_shift_with_cnt): Likewise.
10222         (ashlqi3_out): Likewise.
10223         (ashlhi3_out): Likewise.
10224         (avr_out_ashlpsi3): Likewise.
10225         (ashlsi3_out): Likewise.
10226         (ashrqi3_out): Likewise.
10227         (ashrhi3_out): Likewise.
10228         (avr_out_ashrpsi3): Likewise.
10229         (ashrsi3_out): Likewise.
10230         (lshrqi3_out): Likewise.
10231         (lshrhi3_out): Likewise.
10232         (avr_out_lshrpsi3): Likewise.
10233         (lshrsi3_out): Likewise.
10234         (avr_out_fract): Likewise.
10235         (avr_out_round): Likewise.
10236         (avr_adjust_insn_length): Likewise.
10237         (reg_unused_after): Likewise.
10238         (_reg_unused_after): Likewise.
10239         (avr_compare_pattern): Likewise.
10240         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
10241         and locals "branch1", "branch2", "insn2", "jump".
10242         (avr_reorg): Likewise for local "insn".
10243         (avr_2word_insn_p): Likewise for param "insn".
10244         (jump_over_one_insn_p): Likewise.
10245         (avr_out_sbxx_branch): Likewise.
10246         (avr_out_movmem): Likewise.
10248 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10250         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
10251         param from rtx to rtx_insn *.
10252         (thumb1_final_prescan_insn): Likewise.
10253         (thumb2_final_prescan_insn): Likewise.
10255         * config/arm/arm.c (emit_set_insn): Strengthen return type from
10256         rtx to rtx_insn *.
10257         (struct minipool_node): Likewise for field "insn".
10258         (dump_minipool): Likewise for param "scan".
10259         (create_fix_barrier): Likewise for local "from".  Strengthen local
10260         "label" from rtx to rtx_code_label *.
10261         (push_minipool_barrier): Strengthen param "insn" from rtx to
10262         rtx_insn *.
10263         (push_minipool_fix): Likewise.
10264         (note_invalid_constants): Likewise.
10265         (thumb2_reorg): Likewise for local "insn".
10266         (arm_reorg): Likewise.
10267         (thumb2_final_prescan_insn): Likewise for param
10268         "insn" and local "first_insn".
10269         (arm_final_prescan_insn): Likewise for param "insn" and locals
10270         "start_insn", "this_insn".
10271         (arm_debugger_arg_offset): Likewise for param "insn".
10272         (thumb1_emit_multi_reg_push): Likewise for return type and local
10273         "insn".
10274         (thumb1_final_prescan_insn): Likewise for param "insn".
10275         (thumb_far_jump_used_p): Likewise for local "insn".
10276         (thumb1_expand_prologue): Likewise.
10277         (arm_expand_epilogue_apcs_frame): Likewise.
10278         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
10279         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
10280         from rtx to rtx_code_label *.
10281         (arm_split_atomic_op): Likewise for local "label".
10282         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
10284 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10286         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
10287         first param from rtx to rtx_insn *.
10288         (arc_verify_short): Likewise.
10289         (arc_short_long): Likewise.
10290         (arc_need_delay): Likewise.
10292         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
10293         "target_insn".
10294         (arc_ccfsm_advance): Likewise for param "insn" and locals
10295         "start_insn", "this_insn".
10296         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
10297         (arc_ccfsm_post_advance): Likewise for param "insn".
10298         (arc_next_active_insn): Likewise for return type and param "insn".
10299         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
10300         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
10301         (output_short_suffix): Likewise for local "insn".
10302         (arc_final_prescan_insn): Likewise for param "insn".  Remove
10303         now-redundant checked cast.
10304         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
10305         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
10306         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
10307         for use where lc_set became an insn.
10308         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
10309         rtx to rtx_insn *.
10310         (arc_get_insn_variants): Likewise for local "prev".
10311         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
10312         "next".
10313         (arc_predicate_delay_insns): Likewise for local "insn".
10314         (arc_pad_return): Likewise for local "prev".  For now, add a
10315         checked cast when extracting the insn from "final_sequence".
10316         (arc_short_long): Likewise for param "insn".
10317         (arc_need_delay): Likewise for param "insn" and local "next".
10318         (arc_label_align): Likewise for locals "prev", "next".
10320 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10322         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
10323         "insn" from rtx to rtx_insn *.
10324         (alpha_gp_save_rtx): Likewise for local "seq".
10325         (alpha_instantiate_decls): Likewise for local "top".
10326         (get_some_local_dynamic_name): Likewise for local "insn".
10327         (alpha_does_function_need_gp): Likewise.
10328         (set_frame_related_p): Likewise for return type and for locals
10329         "seq" and "insn".
10330         (emit_frame_store_1): Likewise for local "insn".
10331         (alpha_expand_prologue): Likewise for locals "insn", "seq".
10332         (alpha_end_function): Likewise for local "insn".
10333         (alpha_output_mi_thunk_osf): Likewise.
10334         (alphaev4_insn_pipe): Likewise for param "insn".
10335         (alphaev5_insn_pipe): Likewise.
10336         (alphaev4_next_group): Likewise for return type and param 1
10337         "insn".
10338         (alphaev5_next_group): Likewise.
10339         (alpha_align_insns_1): Likewise for return type and param 1 of
10340         callback param "next_group", and for locals "i", "next", "prev",
10341         "where", "where2", "insn".
10343 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10345         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
10346         rather than modifying the stmt.
10348 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10350         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
10351         cgraph_state conversion.
10353 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10355         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10356         Strengthen local "insns" from rtx to rtx_insn *.
10357         (aarch64_set_frame_expr): Likewise for local "insn".
10358         (aarch64_save_or_restore_fprs): Likewise.
10359         (aarch64_save_or_restore_callee_save_registers): Likewise.
10360         (aarch64_expand_prologue): Likewise.
10361         (aarch64_expand_epilogue): Likewise.
10362         (aarch64_output_mi_thunk): Likewise.
10363         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
10364         "label2" from rtx to rtx_code_label *.
10365         (aarch64_split_atomic_op): Likewise for local "label".
10367 2014-08-25  Martin Liska  <mliska@suse.cz>
10369         * cgraph.h (symtab_node):
10370         (bool needed_p (void)): created from decide_is_symbol_needed
10371         (bool referred_to_p (void)): created from referred_to_p
10372         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
10373         * cgraph.h (cgraph_node):
10374         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
10375         (void expand (void)): created from expand_function
10376         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
10377         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
10378         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
10379         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
10380         * cgraph.h (varpool_node):
10381         (static void add (tree decl): created from varpool_add_new_variable
10382         * cgraph.h (cgraph_edge):
10383         void remove (void);
10384         (void remove_caller (void)): created from cgraph_edge_remove_caller
10385         (void remove_callee (void)): created from cgraph_edge_remove_callee
10386         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
10387           created from cgraph_set_call_stmt
10388         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
10389         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
10390         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
10391           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
10392         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
10393           created from cgraph_speculative_call_info
10394         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
10395           int freq_scale, bool update_original)): created from cgraph_clone_edge
10396         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
10397         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
10398         (bool recursive_p (void)): created from cgraph_edge_recursive_p
10399         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
10400         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
10401         (static void rebuild_references (void)): created from cgraph_rebuild_references
10402         * cgraph.h (symbol_table):
10403         (create_reference): renamed from add_reference
10404         (maybe_create_reference): renamed from maybe_add_reference
10405         (void register_symbol (symtab_node *node)): new function
10406         (void clear_asm_symbols (void)): new function
10407         (void unregister (symtab_node *node)): new function
10408         (void release_symbol (cgraph_node *node, int uid)): new function
10409         (cgraph_node * allocate_cgraph_symbol (void)): new function
10410         (void initialize (void)): created from cgraph_init
10411         (symtab_node *first_symbol (void)):new function
10412         (asm_node *first_asm_symbol (void)):new function
10413         (symtab_node *first_defined_symbol (void)):new function
10414         (varpool_node *first_variable (void)):new function
10415         (varpool_node *next_variable (varpool_node *node)):new function
10416         (varpool_node *first_static_initializer (void)):new function
10417         (varpool_node *next_static_initializer (varpool_node *node)):new function
10418         (varpool_node *first_defined_variable (void)):new function
10419         (varpool_node *next_defined_variable (varpool_node *node)):new function
10420         (cgraph_node *first_defined_function (void)):new function
10421         (cgraph_node *next_defined_function (cgraph_node *node)):new function
10422         (cgraph_node *first_function (void)):new function
10423         (cgraph_node *next_function (cgraph_node *node)):new function
10424         (cgraph_node *first_function_with_gimple_body (void)):new function
10425         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
10426         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
10427           created from symtab_remove_unreachable_nodes
10428         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
10429         (void process_new_functions (void)): created from cgraph_process_new_functions
10430         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
10431         (bool output_variables (void)): created from varpool_node::output_variables
10432         (void output_asm_statements (void)): created from output_asm_statements
10433         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
10434         (void compile (void)): created from compile
10435         (void output_weakrefs (void)): created from output_weakrefs
10436         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
10437         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
10438           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
10439         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
10440         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
10441           created from cgraph_next_function_with_gimple_body
10442         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
10443           created from cgraph_remove_edge_removal_hook
10444         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
10445           created from cgraph_add_node_removal_hook
10446         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
10447           created from cgraph_remove_node_removal_hook
10448         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
10449           created from varpool_add_node_removal_hook
10450         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
10451           created from varpool_remove_node_removal_hook
10452         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
10453           created from cgraph_add_function_insertion_hook
10454         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
10455           created from cgraph_remove_function_insertion_hook
10456         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
10457           created from varpool_add_variable_insertion_hook
10458         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
10459           created from varpool_remove_variable_insertion_hook
10460         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
10461           created from cgraph_add_edge_duplication_hook
10462         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
10463           created from cgraph_remove_edge_duplication_hook
10464         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
10465           created from cgraph_add_node_duplication_hook
10466         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
10467           created from cgraph_remove_node_duplication_hook
10468         (void call_edge_removal_hooks (cgraph_edge *e)):
10469           created from cgraph_call_edge_removal_hooks
10470         (void call_cgraph_insertion_hooks (cgraph_node *node)):
10471           created from call_function_insertion_hooks
10472         (void call_cgraph_removal_hooks (cgraph_node *node)):
10473           created from cgraph_call_node_removal_hooks
10474         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
10475           created from cgraph_node::call_duplication_hooks
10476         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
10477           created from cgraph_call_edge_duplication_hooks
10478         (void call_varpool_removal_hooks (varpool_node *node)):
10479           created from varpool_call_node_removal_hooks
10480         (void call_varpool_insertion_hooks (varpool_node *node)):
10481           created from varpool_call_variable_insertion_hooks
10482         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
10483           created from insert_to_assembler_name_hash
10484         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
10485           created from unlink_from_assembler_name_hash
10486         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
10487           created from symtab_prevail_in_asm_name_hash
10488         (void symtab_initialize_asm_name_hash (void)):
10489           created from symtab_initialize_asm_name_hash
10490         (void change_decl_assembler_name (tree decl, tree name)):
10491           created from change_decl_assembler_name
10492         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
10493         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
10494           created from decl_assembler_name_hash
10495         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
10496           created from decl_assembler_name_equal
10497         (static hashval_t hash_node_by_assembler_name (const void *p)):
10498           created from hash_node_by_assembler_name
10499         (static int eq_assembler_name (const void *p1, const void *p2)):
10500           created from eq_assembler_name
10502 2014-08-25  Marek Polacek  <polacek@redhat.com>
10504         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
10506 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
10508         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
10509         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
10510         SWI1248_AVX512BW mode iterator.
10512 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
10514         PR target/62111
10515         * config/sh/predicates.md (general_extend_operand): Disable
10516         TRUNCATE before reload completes.
10518 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
10520         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
10522 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
10524         PR target/61996
10525         * config/sh/sh.opt (musermode): Allow negative form.
10526         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
10527         targets that don't support it.
10528         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
10529         Document -mno-usermode option.
10531 2014-08-24  Kito Cheng  <kito@0xlab.org>
10533         * system.h (CALLER_SAVE_PROFITABLE): Poison.
10534         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
10535         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
10536         * doc/tm.texi: Regenerate.
10538 2014-08-24  Kito Cheng  <kito@0xlab.org>
10540         * ira.c: Fix typo in comment.
10542 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
10544         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
10545         Deprecate c++1y. Change language to reflect greater confidence in C++14.
10547 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
10549         PR target/62038
10550         * config/pa/pa.c (pa_output_function_epilogue): Don't set
10551         last_address when the current function is a thunk.
10552         (pa_asm_output_mi_thunk): When we don't have named sections or they
10553         are not being used, check that thunk can reach the stub table with a
10554         short branch.
10556 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
10558         * web.c (union_match_dups): Strengthen param "insn" from rtx to
10559         rtx_insn *.
10560         (pass_web::execute): Likewise for local "insn".
10562 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
10564         * var-tracking.c (struct micro_operation_def): Strengthen field
10565         "insn" from rtx to rtx_insn *.
10566         (struct emit_note_data_def): Likewise.
10567         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
10568         (vt_stack_adjustments): Likewise for local "insn".
10569         (adjust_insn): Likewise for param "insn".
10570         (val_store): Likewise.
10571         (val_resolve): Likewise.
10572         (struct count_use_info): Likewise for field "insn".
10573         (log_op_type): Likewise for param "insn".
10574         (reverse_op): Likewise.
10575         (prepare_call_arguments): Likewise.
10576         (add_with_sets):  The initial param takes an insn, but we can't
10577         yet strengthen it from rtx to rtx_insn * since it's used as a
10578         cselib_record_sets_hook callback.  For now rename initial param
10579         from "insn" to "uncast_insn", and introduce a local "insn" of
10580         the stronger rtx_insn * type, with a checked cast.
10581         (compute_bb_dataflow): Strengthen local "insn" from rtx to
10582         rtx_insn *.
10583         (emit_note_insn_var_location): Likewise.
10584         (emit_notes_for_changes): Likewise.
10585         (emit_notes_for_differences): Likewise.
10586         (next_non_note_insn_var_location): Likewise for return type and
10587         for param "insn".
10588         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
10589         (vt_initialize): Likewise for local "insn".
10590         (delete_debug_insns): Likewise for locals "insn" and "next".
10592 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
10594         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
10595         rtx_insn *.
10596         (mark_constant_pool): Likewise for local "insn".
10598 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
10600         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
10601         rtx to rtx_insn *.
10602         (dead_debug_promote_uses): Likewise.
10603         (dead_debug_insert_temp): Likewise.
10605 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
10607         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
10608         from const_rtx to const rtx_insn *.
10609         (store_killed_after): Likewise.  Strengthen locals "last", "act"
10610         from rtx to rtx_insn *.
10611         (store_killed_before): Strengthen param "insn" from const_rtx to
10612         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
10613         (find_moveable_store): Strengthen param "insn" from rtx to
10614         rtx_insn *.
10615         (compute_store_table): Likewise for local "insn".
10616         (insert_insn_start_basic_block): Likewise for param "insn" and
10617         locals "prev", "before", "insn".
10618         (insert_store): For now, add a checked cast to rtx_insn * on the
10619         result of gen_move_insn.
10620         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
10621         to rtx_insn *.
10622         (replace_store_insn): Likewise.  For now, add a checked cast to
10623         rtx_insn * on the result of gen_move_insn.
10625 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10627         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
10628         rtx_insn *.
10629         (expand_sjlj_dispatch_table): Likewise.
10631 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10633         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
10634         "insn" from rtx to rtx_insn *.
10636 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10638         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
10639         "insn" from rtx to rtx_insn *.
10640         (dup_block_and_redirect): Likewise for param 3 "before".
10642         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
10643         from rtx to rtx_insn *.
10644         (move_insn_for_shrink_wrap): Likewise.
10645         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
10646         (dup_block_and_redirect): Likewise for param "before" and local
10647         "insn".
10648         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
10649         "end".
10650         (convert_to_simple_return): Likewise for local "start".
10652         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
10653         Strengthen local "insn" from rtx to rtx_insn *, for use when
10654         invoking requires_stack_frame_p.
10656 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10658         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
10659         rtx_insn *.
10660         (speculate_expr): Likewise for locals "orig_insn_rtx",
10661         "spec_insn_rtx".
10662         (eq_transformed_insns): Likewise for locals "i1", "i2".
10663         (check_for_new_jump): Likewise for return type and local "end".
10664         (find_new_jump): Likewise for return type and local "jump".
10665         (sel_split_edge): Likewise for local "jump".
10666         (sel_create_recovery_block): Likewise.
10667         (sel_redirect_edge_and_branch_force): Likewise.
10668         (sel_redirect_edge_and_branch): Likewise.
10670 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10672         * sel-sched.c (substitute_reg_in_expr): Strengthen local
10673         "new_insn" from rtx to rtx_insn *.
10674         (create_insn_rtx_with_rhs): Likewise for return type and for local
10675         "insn_rtx".
10676         (create_insn_rtx_with_lhs): Likewise.
10677         (create_speculation_check): Likewise for local "insn_rtx".
10678         (implicit_clobber_conflict_p): Likewise for local "insn".
10679         (get_expr_cost): Likewise.
10680         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
10681         (move_cond_jump): Likewise for locals "next", "prev", "link",
10682         "head", "from", "to".
10684 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10686         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
10687         "next" from rtx to rtx_insn *.
10688         (find_conditional_protection): Likewise for local "next".
10689         (is_conditionally_protected): Likewise for local "insn1".
10690         (is_pfree): Likewise for locals "insn1", "insn2".
10692 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10694         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
10695         from rtx to rtx_insn *.
10697         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
10698         locals "insn1", "insn2" from rtx to rtx_insn *.
10699         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
10700         locals "insn", "prev", "last_jump", "next_tail".
10701         (schedule_ebb): Likewise for params "head", "tail".
10702         (schedule_ebbs): Likewise for locals "tail", "head".
10704         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
10705         to rtx_insn on "last_insn" in one of the invocations of
10706         schedule_ebb.
10708 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10710         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
10711         "elem", "insn" from rtx to rtx_insn *.
10712         (change_spec_dep_to_hard): Likewise.
10713         (get_back_and_forw_lists): Likewise for local "con".
10714         (sd_add_dep): Likewise for locals "elem", "insn".
10715         (sd_resolve_dep): Likewise for locals "pro", "con".
10716         (sd_unresolve_dep): Likewise.
10717         (sd_delete_dep): Likewise.
10718         (chain_to_prev_insn): Likewise for local "pro".
10719         (find_inc): Likewise for locals "pro", "con".
10721 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10723         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
10724         to rtx_insn *.
10725         (reg_set_between_p): Strengthen local "insn" from const_rtx to
10726         const rtx_insn *.
10727         (modified_between_p): Strengthen local "insn" from rtx to
10728         rtx_insn *.
10729         (remove_reg_equal_equiv_notes_for_regno): Likewise.
10730         (keep_with_call_p): Strengthen local "i2" from const_rtx to
10731         const rtx_insn *.
10733 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10735         * resource.c (next_insn_no_annul): Strengthen local "next" from
10736         rtx to rtx_insn *.
10737         (mark_referenced_resources): Likewise for local "insn".
10739 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10741         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
10742         to rtx_insn *.
10743         (find_reloads): Likewise for param 1.
10744         (subst_reloads): Likewise for sole param.
10745         (find_equiv_reg): Likwise for param 2.
10746         (regno_clobbered_p): Likwise for param 2.
10747         (reload): Likewise for param 1.
10749         * caller-save.c (save_call_clobbered_regs): Strengthen local
10750         "insn" from rtx to rtx_insn *.
10751         (insert_one_insn): Likewise for local "insn".
10753         * reload.c (this_insn): Likewise for this global.
10754         (find_reloads): Likewise for param "insn".
10755         (find_reloads_toplev): Likewise.
10756         (find_reloads_address): Likewise.
10757         (subst_reg_equivs): Likewise.
10758         (update_auto_inc_notes): Likewise.
10759         (find_reloads_address_1): Likewise.
10760         (find_reloads_subreg_address): Likewise.
10761         (subst_reloads): Likewise.
10762         (find_equiv_reg): Likewise, also for local "p".
10763         (regno_clobbered_p): Likewise for param "insn".
10765         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
10766         array.
10767         (spill_reg_store): Likewise for the elements of this array.
10768         (remove_init_insns): Likewise for local "equiv_insn".
10769         (will_delete_init_insn_p): Likewise for param "insn".
10770         (reload): Likewise for param ""first" and local "insn".
10771         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
10772         rtx_insn *.
10773         (calculate_elim_costs_all_insns): Likewise.
10774         (delete_caller_save_insns): Likewise.
10775         (spill_failure): Likewise for param "insn".
10776         (delete_dead_insn): Likewise.
10777         (set_label_offsets): Likewise.
10778         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
10779         "prev_insn".
10780         (elimination_costs_in_insn): Likewise for param "insn".
10781         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
10782         when referring to an insn.
10783         (set_initial_label_offsets): Likewise.
10784         (set_offsets_for_label): Strengthen param "insn" from rtx to
10785         rtx_insn *.
10786         (init_eliminable_invariants): Likewise for param "first" and local
10787         "insn".
10788         (fixup_eh_region_note): Likewise for param "insn".
10789         (reload_as_needed): Likewise for locals "prev", "insn",
10790         "old_next", "old_prev", "next".
10791         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
10792         "last".
10793         (reload_inheritance_insn): Strengthen elements of this array from
10794         rtx to rtx_insn *.
10795         (failed_reload): Likewise for param "insn".
10796         (choose_reload_regs): Likewise for local "insn".  Replace use of
10797         NULL_RTX with NULL when referring to an insn.
10798         (input_reload_insns): Strengthen elements of this array from rtx
10799         to rtx_insn *.
10800         (other_input_address_reload_insns): Likewise for this global.
10801         (other_input_reload_insns): Likewise for this global.
10802         (input_address_reload_insns): Likwise for the elements of this
10803         array.
10804         (inpaddr_address_reload_insns): Likwise for the elements of this
10805         array.
10806         (output_reload_insns): Likewise for the elements of this array.
10807         (output_address_reload_insns): Likewise for the elements of this
10808         array.
10809         (outaddr_address_reload_insns): Likewise for the elements of this
10810         array.
10811         (operand_reload_insns): Likewise for this global.
10812         (other_operand_reload_insns): Likewise for this global.
10813         (other_output_reload_insns): Likewise for the elements of this
10814         array.
10815         (new_spill_reg_store): Likewise for the elements of this
10816         array.
10817         (emit_input_reload_insns): Likewise for locals "insn", "temp".
10818         Strengthen local "where" from rtx * to rtx_insn **.
10819         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
10820         from rtx to rtx_insn *.
10821         (do_input_reload): Likewise for local "insn".
10822         (do_output_reload): Likewise for local "insn".
10823         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
10824         (emit_insn_if_valid_for_reload): Likewise for return type and local
10825         "last".  Add checked cast to rtx_insn when returning "insn" since
10826         this has been through emit_insn.
10827         (gen_reload): Strengthen return type and locals "last", "insn", "set"
10828         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
10829         returning "insn" since it's been through
10830         emit_insn_if_valid_for_reload at this point.
10831         (delete_output_reload): Strengthen param "insn" and locals
10832         "output_reload_insn", "i2" from rtx to rtx_insn *.
10833         (delete_address_reloads): Likewise for params "dead_insn",
10834         "current_insn" and locals "prev", "next".
10835         (delete_address_reloads_1): Likewise for params "dead_insn",
10836         "current_insn" and locals "prev", "i2".
10837         (inc_for_reload): Likewise for locals "last", "add_insn".
10838         (add_auto_inc_notes): Strengthen param "insn" from rtx to
10839         rtx_insn *.
10841         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
10842         param of this duplicate of the prototype from reload.h
10844 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10846         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
10847         rtx to rtx_insn *.
10848         (regstat_bb_compute_calls_crossed): Likewise.
10850 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10852         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
10853         to rtx_insn *.
10854         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
10855         with an insn.
10856         (regrename_analyze): Strengthen local "insn" from rtx to
10857         rtx_insn *.
10858         (scan_rtx_reg): Likewise for param "insn".
10859         (scan_rtx_address): Likewise.
10860         (scan_rtx): Likewise.
10861         (restore_operands): Likewise.
10862         (record_out_operands): Likewise.
10863         (build_def_use): Likewise for local "insn".  Replace use of
10864         NULL_RTX with NULL when dealing with an insn.
10866 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10868         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
10869         * reginfo.c (reg_scan): Likewise, also for local "insn".
10870         (reg_scan_mark_refs): Likewise for param "insn".
10871         (init_subregs_of_mode): Likewise for local "insn".
10873 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10875         * regcprop.c (struct queued_debug_insn_change): Strengthen field
10876         "insn" from rtx to rtx_insn *.
10877         (replace_oldest_value_reg): Likewise for param "insn".
10878         (replace_oldest_value_addr): Likewise.
10879         (replace_oldest_value_mem): Likewise.
10880         (apply_debug_insn_changes): Likewise for local "last_insn".
10881         (copyprop_hardreg_forward_1): Likewise for local "insn".
10883 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10885         * reg-stack.c (next_flags_user): Strengthen return type and param
10886         "insn" from rtx to rtx_insn *.
10887         (straighten_stack): Likewise for param "insn".
10888         (check_asm_stack_operands): Likewise.
10889         (remove_regno_note): Likewise.
10890         (emit_pop_insn): Likewise for return type, param "insn", local
10891         "pop_insn".
10892         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
10893         "limit" from rtx to rtx_insn *.
10894         (swap_to_top): Likewise for param "insn".
10895         (move_for_stack_reg): Likewise.
10896         (move_nan_for_stack_reg): Likewise.
10897         (swap_rtx_condition): Likewise.
10898         (compare_for_stack_reg): Likewise.
10899         (subst_all_stack_regs_in_debug_insn): Likewise.
10900         (subst_stack_regs_pat): Likewise, and local "insn2".
10901         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
10902         rtx_insn *.
10903         (subst_stack_regs): Likewise.
10904         (change_stack): Likewise.
10905         (convert_regs_1): Likewise for locals "insn", "next".
10907 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10909         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
10910         rtx_insn *.
10911         (combine_set_extension): Likewise for param "curr_insn".
10912         (transform_ifelse): Likewise for param "def_insn".
10913         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
10914         from vec<rtx> * to vec<rtx_insn *> *.
10915         (is_cond_copy_insn): Likewise for param "insn".
10916         (struct ext_state): Strengthen the four vec fields from vec<rtx>
10917         to vec<rtx_insn *>.
10918         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
10919         local "def_insn" from rtx to rtx_insn *.
10920         (get_sub_rtx): Likewise for param "def_insn".
10921         (merge_def_and_ext): Likewise.
10922         (combine_reaching_defs): Likewise.
10923         (add_removable_extension): Likewise for param "insn".
10924         (find_removable_extensions): Likewise for local "insn".
10925         (find_and_remove_re): Likewise for locals "curr_insn" and
10926         "def_insn".  Strengthen locals "reinsn_del_list" and
10927         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
10929 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10931         * recog.c (split_insn): Strengthen param "insn" and locals
10932         "first", "last" from rtx to rtx_insn *.
10933         (split_all_insns): Likewise for locals "insn", "next".
10934         (split_all_insns_noflow): Likewise.
10936 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10938         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
10939         const rtx_insn *.
10940         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
10941         (debug_rtx_find): Likewise for param 1 "x".
10943         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
10944         const_rtx to const rtx_insn *.  Likewise for local "insn".
10945         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
10946         (debug_rtx_find): Likewise for param 1 "x".
10947         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
10948         from const_rtx to const rtx_insn * within the appropriate cases of
10949         the switch statement.
10951         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
10952         Strengthen local "insns" from rtx to rtx_insn * since this is
10953         passed to a call to debug_rtx_list.
10955 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10957         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
10958         to rtx_insn *.
10960         * function.c (stack_protect_epilogue): Add checked cast to
10961         rtx_insn for now when invoking predict_insn_def.
10963         * predict.c (predict_insn): Strengthen param "insn" from rtx to
10964         rtx_insn *.
10965         (predict_insn_def): Likewise.
10966         (rtl_predict_edge): Likewise for local "last_insn".
10967         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
10968         const rtx_insn *.
10969         (combine_predictions_for_insn): Strengthen param "insn" from rtx
10970         to rtx_insn *.
10971         (bb_estimate_probability_locally): Likewise for local "last_insn".
10972         (expensive_function_p): Likewise for local "insn".
10974         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
10975         local "jmp", since this is used when invoking predict_insn_def.
10977 2014-08-22  Marek Polacek  <polacek@redhat.com>
10979         PR c++/62199
10980         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
10982 2014-08-22  Marek Polacek  <polacek@redhat.com>
10984         PR c/61271
10985         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
10986         a comparison in parens.
10987         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
10988         in parens.
10990 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10992         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
10993         rtx_insn *.
10995         * cprop.c (fis_get_condition): Likewise.
10997         * postreload.c (reload_cse_regs): Likewise for param "first".
10998         (reload_cse_simplify): Likewise for param "insn".
10999         (reload_cse_regs_1): Likewise for local "insn".
11000         (reload_cse_simplify_set): Likewise for param "insn".
11001         (reload_cse_simplify_operands): Likewise.
11002         (struct reg_use): Likewise for field "insn".
11003         (reload_combine_purge_insn_uses): Likewise for param "insn".
11004         (fixup_debug_insns): Likewise for params "from", "to" and local
11005         "insn".
11006         (try_replace_in_use): Likewise for local "use_insn".
11007         (reload_combine_recognize_const_pattern): Likewise for param
11008         "insn" and locals "add_moved_after_insn", "use_insn".
11009         (reload_combine_recognize_pattern): Likewise for param "insn" and
11010         local "prev".
11011         (reload_combine): Likewise for locals "insn", "prev".
11012         (reload_combine_note_use): Likewise for param "insn".
11013         (move2add_use_add2_insn): Likewise.
11014         (move2add_use_add3_insn): Likewise.
11015         (reload_cse_move2add): Likewise, also for local "next".
11016         (move2add_note_store): Likewise for local "insn".
11018 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11020         * postreload-gcse.c (struct occr): Strengthen field "insn" from
11021         rtx to rtx_insn *.
11022         (struct unoccr): Likewise.
11023         (struct modifies_mem): Likewise.
11024         (alloc_mem): Likewise for local "insn".
11025         (insert_expr_in_table): Likewise for param "insn".
11026         (dump_expr_hash_table_entry): Likewise for local "insn".
11027         (oprs_unchanged_p): Likewise for param "insn".
11028         (load_killed_in_block_p): Likewise for local "setter".
11029         (record_last_reg_set_info): Likewise for param "insn".
11030         (record_last_reg_set_info_regno): Likewise.
11031         (record_last_mem_set_info): Likewise.
11032         (record_last_set_info): Likewise for local "last_set_insn".
11033         (record_opr_changes): Likewise for param "insn".
11034         (hash_scan_set): Likewise.
11035         (compute_hash_table): Likewise for local "insn".
11036         (get_avail_load_store_reg): Likewise for param "insn".
11037         (eliminate_partially_redundant_load): Likewise, also for locals
11038         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
11039         RTX for insns.
11040         (eliminate_partially_redundant_loads): Likewise for local "insn".
11042 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11044         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
11045         rtx to rtx_insn *.
11046         (expand_binop): Likewise for locals "entry_last", "last", "insns"
11047         (expand_twoval_unop): Likewise for locals entry_last", "last".
11048         (expand_twoval_binop): Likewise.
11049         (expand_twoval_binop_libfunc): Likewise for local "insns".
11050         (widen_leading): Likewise for local "last".
11051         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
11052         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
11053         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
11054         (expand_parity): Likewise for locals "last" and "seq".
11055         (expand_ffs): Likewise for local "seq".  Strengthen local
11056         "nonzero_label" from rtx to rtx_code_label *.
11057         (expand_absneg_bit): Strengthen local "insns" from rtx to
11058         rtx_insn *.
11059         (expand_unop_direct): Likewise for local "last".
11060         (expand_unop): Likewise for locals "last", "insns".
11061         (expand_abs_nojump): Likewise for local "last".
11062         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
11063         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
11064         rtx_insn *.
11065         (expand_copysign_absneg): Strengthen local "label" from rtx to
11066         rtx_code_label *.
11067         (expand_copysign_bit): Strengthen local "insns" from rtx to
11068         rtx_insn *.
11069         (struct no_conflict_data): Likewise for fields "first", "insn".
11070         (emit_libcall_block_1): Likewise for param "insns" and locals
11071         "next", "last", "insn".
11072         (emit_libcall_block): For now, add a checked cast to rtx_insn *
11073         on "insns" when invoking emit_libcall_block_1.  Ultimately we
11074         want to strengthen insns itself.
11075         (prepare_cmp_insn): Strengthen local "last" from rtx to
11076         rtx_insn *.
11077         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
11078         (prepare_float_lib_cmp): Likewise for local "insns".
11079         (emit_conditional_move): Likewise for local "last".
11080         (emit_conditional_add): Likewise.
11081         (have_sub2_insn): Likewise for local "seq".
11082         (expand_float): Likewise for local "insns".  Strengthen locals
11083         "label", "neglabel" from rtx to rtx_code_label *.
11084         (expand_fix): Likewise for locals "last", "insn", "insns" (to
11085         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
11086         (expand_fixed_convert): Likewise for local "insns" (to
11087         rtx_insn *).
11088         (expand_sfix_optab): Likewise for local "last".
11089         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
11090         to rtx_code_label *.
11091         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
11092         from rtx to rtx_insn *.
11093         (expand_atomic_fetch_op): Likewise for local "insn".
11094         (maybe_legitimize_operand_same_code): Likewise for local "last".
11095         (maybe_legitimize_operands): Likewise.
11097 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11099         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
11100         "insn" from rtx to rtx_insn *.
11101         (ps_rtl_insn): Likewise for return type.
11102         (doloop_register_get): Likewise for params "head", "tail" and
11103         locals "insn", "first_insn_not_to_check".
11104         (schedule_reg_move): Likewise for local "this_insn".
11105         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
11106         of gen_move_insn for now.
11107         (reset_sched_times): Strengthen local "insn" from rtx to
11108         rtx_insn *.
11109         (permute_partial_schedule): Likewise.
11110         (duplicate_insns_of_cycles): Likewise for local "u_insn".
11111         (dump_insn_location): Likewise for param "insn".
11112         (loop_canon_p): Likewise for local "insn".
11113         (sms_schedule): Likewise.
11114         (print_partial_schedule): Likewise.
11115         (ps_has_conflicts): Likewise.
11117 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11119         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
11120         "tailp" from rtx * to rtx_insn **.
11122         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
11123         from rtx to rtx_insn *.
11124         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
11125         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
11126         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
11127         rtx to rtx_insn *.
11128         * modulo-sched.c (const_iteration_count): Strengthen return type
11129         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
11130         use of NULL_RTX with NULL when working with insns.
11131         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
11132         to rtx_insn *.
11133         (sms_schedule): Likewise.
11134         * sched-rgn.c (init_ready_list): Likewise, also for locals
11135         "src_head" and "src_next_tail".
11136         (compute_block_dependences): Likewise.
11137         (free_block_dependencies): Likewise.
11138         (debug_rgn_dependencies): Likewise.
11139         (free_rgn_deps): Likewise.
11140         (compute_priorities): Likewise.
11141         (schedule_region): Likewise.
11142         * sel-sched.c (find_ebb_boundaries): Likewise.
11144         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
11145         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
11147 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11149         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
11150         from rtx to rtx_insn *.
11151         (new_seginfo): Likewise for param "insn".
11152         (create_pre_exit): Likewise for locals "last_insn",
11153         "before_return_copy", "return_copy".
11154         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
11155         "mode_set".
11157 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11159         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
11160         from rtx to rtx_insn *.
11161         (lra_push_insn): Likewise for 1st param.
11162         (lra_push_insn_and_update_insn_regno_info): Likewise.
11163         (lra_pop_insn): Likewise for return type.
11164         (lra_invalidate_insn_data): Likewise for 1st param.
11165         (lra_set_insn_deleted): Likewise.
11166         (lra_delete_dead_insn): Likewise.
11167         (lra_process_new_insns): Likewise for first 3 params.
11168         (lra_set_insn_recog_data): Likewise for 1st param.
11169         (lra_update_insn_recog_data): Likewise.
11170         (lra_set_used_insn_alternative): Likewise.
11171         (lra_invalidate_insn_regno_info): Likewise.
11172         (lra_update_insn_regno_info): Likewise.
11173         (lra_former_scratch_operand_p): Likewise.
11174         (lra_eliminate_regs_1): Likewise.
11175         (lra_get_insn_recog_data): Likewise.
11177         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
11178         rtx to rtx_insn *.
11180         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
11181         "mv1" and "mv2".
11182         (substitute_within_insn): New.
11183         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
11184         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
11185         Replace call to "substitute" with call to substitute_within_insn.
11187         * lra-constraints.c (curr_insn): Strengthen from rtx to
11188         rtx_insn *.
11189         (get_equiv_with_elimination): Likewise for param "insn".
11190         (match_reload): Strengthen params "before" and "after" from rtx *
11191         to rtx_insn **.
11192         (emit_spill_move): Likewise for return type.  Add a checked cast
11193         to rtx_insn * on result of gen_move_insn for now.
11194         (check_and_process_move): Likewise for local "before".  Replace
11195         NULL_RTX with NULL when referring to insns.
11196         (process_addr_reg): Strengthen params "before" and "after" from
11197         rtx * to rtx_insn **.
11198         (insert_move_for_subreg): Likewise.
11199         (simplify_operand_subreg): Strengthen locals "before" and "after"
11200         from rtx to rtx_insn *.
11201         (process_address_1): Strengthen params "before" and "after" from
11202         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
11203         rtx to rtx_insn *.
11204         (process_address): Strengthen params "before" and "after" from
11205         rtx * to rtx_insn **.
11206         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
11207         (curr_insn_transform): Strengthen locals "before" and "after"
11208         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
11209         to insns.
11210         (loc_equivalence_callback): Update cast of "data", changing
11211         resulting type from rtx to rtx_insn *.
11212         (substitute_pseudo_within_insn): New.
11213         (inherit_reload_reg): Strengthen param "insn" from rtx to
11214         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
11215         NULL when referring to insns.  Add a checked cast to rtx_insn *
11216         when using usage_insn to invoke lra_update_insn_regno_info.
11217         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
11218         likewise for locals "restore", "save".  Add checked casts to
11219         rtx_insn * when using usage_insn to invoke
11220         lra_update_insn_regno_info and lra_process_new_insns.  Replace
11221         NULL_RTX with NULL when referring to insns.
11222         (split_if_necessary): Strengthen param "insn" from rtx to
11223         rtx_insn *.
11224         (update_ebb_live_info): Likewise for params "head", "tail" and local
11225         "prev_insn".
11226         (get_last_insertion_point): Likewise for return type and local "insn".
11227         (get_live_on_other_edges): Likewise for local "last".
11228         (inherit_in_ebb): Likewise for params "head", "tail" and locals
11229         "prev_insn", "next_insn", "restore".
11230         (remove_inheritance_pseudos): Likewise for local "prev_insn".
11231         (undo_optional_reloads): Likewise for local "insn".
11233         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
11234         "insn".
11235         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
11236         insns.
11237         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
11238         rtx_insn *.
11239         (spill_pseudos): Likewise for local "insn".
11240         (init_elimination): Likewise.
11241         (process_insn_for_elimination): Likewise for param "insn".
11243         * lra-lives.c (curr_insn): Likewise.;
11245         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
11246         (remove_pseudos): Likewise for param "insn".
11247         (spill_pseudos): Likewise for local "insn".
11248         (lra_final_code_change): Likewise for locals "insn", "curr".
11250         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
11251         (lra_set_insn_deleted): Likewise.
11252         (lra_delete_dead_insn): Likewise, and for local "prev".
11253         (new_insn_reg): Likewise for param "insn".
11254         (lra_set_insn_recog_data): Likewise.
11255         (lra_update_insn_recog_data): Likewise.
11256         (lra_set_used_insn_alternative): Likewise.
11257         (get_insn_freq): Likewise.
11258         (invalidate_insn_data_regno_info): Likewise.
11259         (lra_invalidate_insn_regno_info): Likewise.
11260         (lra_update_insn_regno_info): Likewise.
11261         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
11262         vec<rtx_insn *>.
11263         (lra_push_insn_1): Strengthen param "insn" from rtx to
11264         rtx_insn *.
11265         (lra_push_insn): Likewise.
11266         (lra_push_insn_and_update_insn_regno_info): Likewise.
11267         (lra_pop_insn): Likewise for return type and local "insn".
11268         (push_insns): Likewise for params "from", "to", and local "insn".
11269         (setup_sp_offset): Likewise for params "from", "last" and locals
11270         "before", "insn".
11271         (lra_process_new_insns): Likewise for params "insn", "before",
11272         "after" and local "last".
11273         (struct sloc): Likewise for field "insn".
11274         (lra_former_scratch_operand_p): Likewise for param "insn".
11275         (remove_scratches): Likewise for locals "insn", "last".
11276         (check_rtl): Likewise for local "insn".
11277         (add_auto_inc_notes): Likewise for param "insn".
11278         (update_inc_notes): Likewise for local "insn".
11279         (lra): Replace NULL_RTX with NULL when referring to insn.
11281 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11283         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
11284         to rtx_insn *.
11285         (resolve_reg_notes): Likewise.
11286         (resolve_simple_move): Likewise for return type, param "insn", and
11287         locals "insns", "minsn".
11288         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
11289         (resolve_use): Likewise.
11290         (resolve_debug): Likewise.
11291         (find_decomposable_shift_zext): Likewise.
11292         (resolve_shift_zext): Likewise for return type, param "insn", and
11293         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
11294         (decompose_multiword_subregs): Likewise for local "insn",
11295         "orig_insn", "decomposed_shift", "end".
11297 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11299         * basic-block.h (basic_block split_edge_and_insert): Strengthen
11300         param "insns" from rtx to rtx_insn *.
11302         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
11303         rtx to rtx_insn *.
11304         (struct iv_to_split): Likewise.
11305         (loop_exit_at_end_p): Likewise for local "insn".
11306         (split_edge_and_insert): Likewise for param "insns".
11307         (compare_and_jump_seq): Likewise for return type, param "cinsn",
11308         and locals "seq", "jump".
11309         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
11310         "branch_code"; update invocations of compare_and_jump_seq to
11311         eliminate NULL_RTX in favor of NULL.
11312         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
11313         rtx to rtx_insn *.
11314         (reset_debug_uses_in_loop): Likewise.
11315         (analyze_insn_to_expand_var): Likewise for param "insn".
11316         (analyze_iv_to_split_insn): Likewise.
11317         (analyze_insns_in_loop): Likewise for local "insn".
11318         (insert_base_initialization): Likewise for param
11319         "insn" and local "seq".
11320         (split_iv): Likewise for param "insn" and local "seq".
11321         (expand_var_during_unrolling): Likewise for param "insn".
11322         (insert_var_expansion_initialization): Likewise for local "seq".
11323         (combine_var_copies_in_loop_exit): Likewise.
11324         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
11325         "insn".
11326         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
11327         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
11328         "next".
11330 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11332         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
11333         rtx_insn *.
11334         (iv_analyze_result): Likewise.
11335         (iv_analyze_expr): Likewise.
11336         (biv_p): Likewise.
11338         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
11339         local "def_insn" from rtx to rtx_insn *.
11340         (get_biv_step_1): Likewise for local "insn".
11341         (iv_analyze_expr): Likewise for param "insn".
11342         (iv_analyze_def): Likewise for local "insn".
11343         (iv_analyze_op): Likewise for param "insn".
11344         (iv_analyze): Likewise.
11345         (iv_analyze_result): Likewise.
11346         (biv_p): Likewise.
11347         (suitable_set_for_replacement): Likewise.
11348         (simplify_using_initial_values): Likewise for local "insn".
11349         (iv_number_of_iterations): Likewise for param "insn".
11350         (check_simple_exit): Add checked cast to rtx_insn when invoking
11351         iv_number_of_iterations for now (until get_condition is
11352         strengthened).
11354         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
11355         "insn" from rtx to rtx_insn *.
11356         (analyze_insns_in_loop): Likewise for local "insn".
11358 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11360         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
11361         to rtx_insn *.
11362         (struct invariant): Likewise.
11363         (hash_invariant_expr_1): Likewise for param "insn".
11364         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
11365         (find_exits): Likewise for local "insn".
11366         (create_new_invariant): Likewise for param "insn".
11367         (check_dependencies): Likewise.
11368         (find_invariant_insn): Likewise.
11369         (record_uses): Likewise.
11370         (find_invariants_insn): Likewise.
11371         (find_invariants_bb): Likewise for local "insn".
11372         (get_pressure_class_and_nregs): Likewise for param "insn".
11373         (calculate_loop_reg_pressure): Likewise for local "insn".
11375 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11377         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
11378         to rtx_insn *.
11379         (add_test): Likewise for locals "seq", "jump".
11380         (doloop_modify): Likewise for locals "sequence", "jump_insn".
11382 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11384         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
11385         rtx_insn *.
11386         (rebuild_jump_labels_chain): Likewise for param "chain".
11388         * cfgexpand.c (pass_expand::execute): Add checked cast to
11389         rtx_insn * when calling rebuild_jump_labels_chain in region where
11390         we know e->insns.r is non-NULL.
11392         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
11393         rtx_insn *.
11394         (rebuild_jump_labels): Likewise.
11395         (rebuild_jump_labels_chain): Likewise for param "chain".
11396         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
11397         (init_label_info): Likewise for param "f".
11398         (maybe_propagate_label_ref): Likewise for params "jump_insn",
11399         "prev_nonjump_insn".
11400         (mark_all_labels): Likewise for param "f" and locals "insn",
11401         "prev_nonjump_insn".
11403 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11405         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
11406         from rtx to rtx_insn *insn.
11407         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
11408         (ira_add_allocno_copy): Likewise.
11409         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
11410         rtx to rtx_insn *.
11411         (ira_create_copy): Likewise.
11412         (ira_add_allocno_copy): Likewise.
11413         (create_bb_allocnos): Likewise for local "insn".
11414         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
11415         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
11416         process_regs_for_copy for rtx_insn * param.
11417         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
11418         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
11419         process_regs_for_copy for rtx_insn * param.
11420         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
11421         * ira-costs.c (record_reg_classes): Likewise for param "insn".
11422         (record_operand_costs): Likewise.
11423         (scan_one_insn): Likewise for return type, and for param "insn".
11424         (process_bb_for_costs): Likewise for local "insn".
11425         (process_bb_node_for_hard_reg_moves): Likewise.
11426         * ira-emit.c (struct move): Likewise for field "insn".
11427         (create_move): Eliminate use of NULL_RTX when dealing with an
11428         rtx_insn *.
11429         (emit_move_list): Strengthen return type and locals "result",
11430         "insn" from rtx to rtx_insn *insn.
11431         (emit_moves): Likewise for locals "insns", "tmp".
11432         (ira_emit): Likewise for local "insn".
11433         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
11434         "insn".
11435         (find_call_crossed_cheap_reg): Likewise.
11436         (process_bb_node_lives): Likewise for local "insn".
11437         * ira.c (decrease_live_ranges_number): Likewise.
11438         (compute_regs_asm_clobbered): Likewise.
11439         (build_insn_chain): Likewise.
11440         (find_moveable_pseudos): Likewise, also locals "def_insn",
11441         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
11442         to rtx_insn **.  Add a checked cast when assigning from
11443         "closest_use" into closest_uses array in a region where we know
11444         it's a non-NULL insn.
11445         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
11446         to rtx_insn *.
11447         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
11448         "last_interesting_insn", "uin".
11449         (move_unallocated_pseudos): Likewise for locals "def_insn",
11450         "move_insn", "newinsn".
11452 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11454         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
11455         Strengthen locals "done_label", "do_error" from rtx to
11456         rtx_code_label *.
11457         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
11458         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
11459         rtx_code_label *.
11460         (ubsan_expand_si_overflow_neg_check): Likewise for locals
11461         "done_label", "do_error" to rtx_code_label * and local  "last" to
11462         rtx_insn *.
11463         (ubsan_expand_si_overflow_mul_check): Likewise for locals
11464         "done_label", "do_error", "large_op0", "small_op0_large_op1",
11465         "one_small_one_large", "both_ops_large", "after_hipart_neg",
11466         "after_lopart_neg", "do_overflow", "hipart_different"  to
11467         rtx_code_label * and local  "last" to rtx_insn *.
11469 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11471         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
11472         "insn" and "move_insn" from rtx to rtx_insn *.
11474 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11476         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
11477         rtx_insn *.
11478         (cheap_bb_rtx_cost_p): Likewise.
11479         (first_active_insn): Likewise for return type and local "insn".
11480         (last_active_insn):  Likewise for return type and locals "insn",
11481         "head".
11482         (struct noce_if_info): Likewise for fields "jump", "insn_a",
11483         "insn_b".
11484         (end_ifcvt_sequence): Likewise for return type and locals "insn",
11485         "seq".
11486         (noce_try_move): Likewise for local "seq".
11487         (noce_try_store_flag): Likewise.
11488         (noce_try_store_flag_constants): Likewise.
11489         (noce_try_addcc): Likewise.
11490         (noce_try_store_flag_mask): Likewise.
11491         (noce_try_cmove): Likewise.
11492         (noce_try_minmax): Likewise.
11493         (noce_try_abs): Likewise.
11494         (noce_try_sign_mask): Likewise.
11495         (noce_try_bitop): Likewise.
11496         (noce_can_store_speculate_p): Likewise for local "insn".
11497         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
11498         seq".
11499         (check_cond_move_block): Likewise for local "insn".
11500         (cond_move_convert_if_block): Likewise.
11501         (cond_move_process_if_block): Likewise for locals "seq",
11502         "loc_insn".
11503         (noce_find_if_block): Likewise for local "jump".
11504         (merge_if_block): Likewise for local "last".
11505         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
11506         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
11507         (block_has_only_trap): Likewise for return type and local "trap".
11508         (find_if_case_1): Likewise for local "jump".
11509         (dead_or_predicable): Likewise for locals "head", "end", "jump",
11510         "insn".
11512 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11514         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
11515         "last_insn", "loop_end" from rtx to rtx_insn *.
11517         * hw-doloop.c (scan_loop): Likewise for local "insn".
11518         (discover_loop): Likewise for param "tail_insn".
11519         (discover_loops): Likewise for local "tail".
11521         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
11522         cast to rtx_insn * when assigning from an rtx local to a
11523         hwloop_info's "last_insn" field.
11525 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11527         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
11528         (add_delay_dependencies): Strengthen local "pro" from rtx to
11529         rtx_insn *.
11530         (recompute_todo_spec): Likewise.
11531         (dep_cost_1): Likewise for locals "insn", "used".
11532         (schedule_insn): Likewise for local "dbg".
11533         (schedule_insn): Likewise for locals "pro", "next".
11534         (unschedule_insns_until): Likewise for local "con".
11535         (restore_pattern): Likewise for local "next".
11536         (estimate_insn_tick): Likewise for local "pro".
11537         (resolve_dependencies): Likewise for local "next".
11538         (fix_inter_tick): Likewise.
11539         (fix_tick_ready): Likewise for local "pro".
11540         (add_to_speculative_block): Likewise for locals "check", "twin",
11541         "pro".
11542         (sched_extend_bb): Likewise for locals "end", "insn".
11543         (init_before_recovery): Likewise for local "x".
11544         (sched_create_recovery_block): Likewise for local "barrier".
11545         (create_check_block_twin): Likewise for local "pro".
11546         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
11547         "consumer".
11548         (unlink_bb_notes): Update for change to type of bb_header.
11549         Strengthen locals "prev", "label", "note", "next" from rtx to
11550         rtx_insn *.
11551         (clear_priorities): Likewise for local "pro".
11553 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11555         * gcse.c (struct occr): Strengthen field "insn" from rtx to
11556         rtx_insn *.
11557         (test_insn): Likewise for this global.
11558         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
11559         const rtx_insn *.
11560         (oprs_anticipatable_p): Likewise.
11561         (oprs_available_p): Likewise.
11562         (insert_expr_in_table): Strengthen param "insn" from  rtx to
11563         rtx_insn *.
11564         (hash_scan_set): Likewise.
11565         (hash_scan_clobber): Likewise.
11566         (hash_scan_call): Likewise.
11567         (hash_scan_insn): Likewise.
11568         (compute_hash_table_work): Likewise for local "insn".
11569         (process_insert_insn): Likewise for return type and local "pat".
11570         (insert_insn_end_basic_block): Likewise for locals "new_insn",
11571         "pat", "pat_end", "maybe_cc0_setter".
11572         (pre_edge_insert): Likewise for local "insn".
11573         (pre_insert_copy_insn): Likewise for param "insn".
11574         (pre_insert_copies): Likewise for local "insn".
11575         (struct set_data): Likewise for field "insn".
11576         (single_set_gcse): Likewise for param "insn".
11577         (gcse_emit_move_after): Likewise.
11578         (pre_delete): Likewise for local "insn".
11579         (update_bb_reg_pressure): Likewise for param "from" and local
11580         "insn".
11581         (should_hoist_expr_to_dom): Likewise for param "from".
11582         (hoist_code): Likewise for local "insn".
11583         (get_pressure_class_and_nregs): Likewise for param "insn".
11584         (calculate_bb_reg_pressure): Likewise for local "insn".
11585         (compute_ld_motion_mems): Likewise.
11587 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11589         * genpeep.c (main): Rename param back from "uncast_ins1" to
11590         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
11591         checked cast.
11593         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
11595 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
11597         PR target/62195
11598         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
11599         documentation to state it is only for VSX operations.
11601         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
11602         constraint only active if VSX.
11604         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
11605         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
11606         (lfiwzx): Likewise.
11608 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11610         * fwprop.c (single_def_use_dom_walker::before_dom_children):
11611         Strengthen local "insn" from rtx to rtx_insn *.
11612         (use_killed_between): Likewise for param "target_insn".
11613         (all_uses_available_at): Likewise for param "target_insn" and
11614         local "next".
11615         (update_df_init): Likewise for params "def_insn", "insn".
11616         (update_df): Likewise for param "insn".
11617         (try_fwprop_subst): Likewise for param "def_insn" and local
11618         "insn".
11619         (free_load_extend): Likewise for param "insn".
11620         (forward_propagate_subreg): Likewise for param "def_insn" and
11621         local "use_insn".
11622         (forward_propagate_asm): Likewise for param "def_insn" and local
11623         "use_insn".
11624         (forward_propagate_and_simplify): Likewise for param "def_insn"
11625         and local "use_insn".
11626         (forward_propagate_into): Likewise for locals "def_insn" and
11627         "use_insn".
11629 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11631         * function.c (emit_initial_value_sets): Strengthen local "seq"
11632         from rtx to rtx_insn *.
11633         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
11634         local "seq".
11635         (instantiate_virtual_regs): Likewise for local "insn".
11636         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
11637         (reorder_blocks_1): Likewise for param "insns" and local "insn".
11638         (expand_function_end): Likewise for locals "insn" and "seq".
11639         (epilogue_done): Likewise for local "insn".
11640         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
11641         "last", "trial".
11642         (reposition_prologue_and_epilogue_notes): Likewise for locals
11643         "insn", "last", "note", "first".
11644         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
11645         (pass_match_asm_constraints::execute): Likewise for local "insn".
11647 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11649         * output.h (final_scan_insn): Strengthen return type from rtx to
11650         rtx_insn *.
11651         (final_forward_branch_p): Likewise for param.
11652         (current_output_insn): Likewise for this global.
11654         * final.c (rtx debug_insn): Likewise for this variable.
11655         (current_output_insn): Likewise.
11656         (get_attr_length_1): Rename param "insn" to "uncast_insn",
11657         adding "insn" back in as an rtx_insn * with a checked cast, so
11658         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
11659         first param.
11660         (compute_alignments): Strengthen local "label" from rtx to
11661         rtx_insn *.
11662         (shorten_branches): Rename param from "first" to "uncast_first",
11663         introducing a new local rtx_insn * "first" using a checked cast to
11664         effectively strengthen "first" from rtx to rtx_insn * without
11665         affecting the type signature.  Strengthen locals "insn", "seq",
11666         "next", "label" from rtx to rtx_insn *.
11667         (change_scope): Strengthen param "orig_insn" and local "insn" from
11668         rtx to rtx_insn *.
11669         (final_start_function): Rename param from "first" to "uncast_first",
11670         introducing a new local rtx_insn * "first" using a checked cast to
11671         effectively strengthen "first" from rtx to rtx_insn * without
11672         affecting the type signature.  Strengthen local "insn" from rtx to
11673         rtx_insn *.
11674         (dump_basic_block_info): Strengthen param "insn" from rtx to
11675         rtx_insn *.
11676         (final): Rename param from "first" to "uncast_first",
11677         introducing a new local rtx_insn * "first" using a checked cast to
11678         effectively strengthen "first" from rtx to rtx_insn * without
11679         affecting the type signature.  Strengthen locals "insn", "next"
11680         from rtx to rtx_insn *.
11681         (output_alternate_entry_point): Strengthen param "insn" from rtx to
11682         rtx_insn *.
11683         (call_from_call_insn): Strengthen param "insn" from rtx to
11684         rtx_call_insn *.
11685         (final_scan_insn): Rename param from "insn" to "uncast_insn",
11686         introducing a new local rtx_insn * "insn" using a checked cast to
11687         effectively strengthen "insn" from rtx to rtx_insn * without
11688         affecting the type signature.  Strengthen return type and locals
11689         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
11690         now-redundant checked cast to rtx_insn * from both invocations of
11691         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
11692         introducing a local "call_insn" for use when invoking
11693         call_from_call_insn.
11694         (notice_source_line): Strengthen param "insn" from rtx to
11695         rtx_insn *.
11696         (leaf_function_p): Likewise for local "insn".
11697         (final_forward_branch_p): Likewise.
11698         (leaf_renumber_regs): Likewise for param "first".
11699         (rest_of_clean_state): Likewise for locals "insn" and "next".
11700         (self_recursive_call_p): Likewise for param "insn".
11701         (collect_fn_hard_reg_usage): Likewise for local "insn".
11702         (get_call_fndecl): Likewise for param "insn".
11703         (get_call_cgraph_rtl_info): Likewise.
11704         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
11705         introducing a new local rtx_insn * "insn" using a checked cast to
11706         effectively strengthen "insn" from rtx to rtx_insn * without
11707         affecting the type signature.
11709         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
11710         cast when assigning from param "insn" to current_output_insn.
11711         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
11712         so that we can assign it back to current_output_insn.
11714 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11716         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
11717         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
11718         atmxt540s and atmxt540sreva devices.
11719         * config/avr/avr-tables.opt: Regenerate.
11720         * config/avr/t-multilib: Regenerate.
11721         * doc/avr-mmcu.texi: Regenerate.
11723 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11725         * expr.c (convert_move): Strengthen local "insns" from rtx to
11726         rtx_insn *.
11727         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
11728         "top_label" from rtx to rtx_code_label *.
11729         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
11730         rtx_insn *.
11731         (emit_single_push_insn): Likewise for locals "prev", "last".
11732         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
11733         to rtx_code_label *.
11734         (store_constructor): Likewise for locals "loop_start", "loop_end".
11735         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
11736         rtx_insn *.
11737         (expand_expr_real_2): Likewise.
11738         (expand_expr_real_1): Strengthen local "label" from rtx to
11739         rtx_code_label *.
11741 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11743         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
11744         from rtx to rtx_insn *.
11745         (store_bit_field_1): Likewise.
11746         (extract_bit_field_1): Likewise.
11747         (expand_mult_const): Likewise for local "insns".
11748         (expmed_mult_highpart): Strengthen local "label" from rtx to
11749         rtx_code_label *.
11750         (expand_smod_pow2): Likewise.
11751         (expand_sdiv_pow2): Likewise.
11752         (expand_divmod): Strengthen locals "last", "insn" from rtx to
11753         rtx_insn *.  Strengthen locals "label", "label1", "label2",
11754         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
11755         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
11756         (emit_store_flag): Likewise.
11757         (emit_store_flag_force): Strengthen local "label" from rtx to
11758         rtx_code_label *.
11759         (do_cmp_and_jump): Likewise for param "label".
11761 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11763         * explow.c (force_reg): Strengthen local "insn" from rtx to
11764         rtx_insn *.
11765         (adjust_stack_1): Likewise.
11766         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
11767         "final_label", "available_label", "space_available" from rtx to
11768         rtx_code_label *.
11769         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
11770         (anti_adjust_stack_and_probe): Likewise.
11772 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11774         * except.h (sjlj_emit_function_exit_after): Strengthen param
11775         "after" from rtx to rtx_insn *.  This is only called with
11776         result of get_last_insn (in function.c) so type-change should be
11777         self-contained.
11779         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
11780         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
11781         to rtx_insn *.  These fields are only used from except.c so this
11782         type-change should be self-contained to this patch.
11784         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
11785         local "last" from rtx to rtx_insn *.
11786         (dw2_build_landing_pads): Likewise for local "seq".
11787         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
11788         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
11789         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
11790         rtx to rtx_insn *.
11791         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
11792         to rtx_insn *.
11793         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
11794         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
11795         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
11796         referring to an insn.  Strengthen local "dispatch_label" from
11797         rtx to rtx_code_label *.
11798         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
11799         rtx_insn *.
11800         (expand_eh_return): Strengthen local "around_label" from
11801         rtx to rtx_code_label *.
11802         (convert_to_eh_region_ranges): Strengthen locals "iter",
11803         "last_action_insn", "first_no_action_insn",
11804         "first_no_action_insn_before_switch",
11805         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
11807 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11809         * dwarf2out.c (last_var_location_insn): Strengthen this variable
11810         from rtx to rtx_insn *.
11811         (cached_next_real_insn): Likewise.
11812         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
11813         working with insns.
11814         (dwarf2out_var_location): Strengthen locals "next_real",
11815         "next_note", "expected_next_loc_note", "last_start", "insn" from
11816         rtx to rtx_insn *.
11818 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11820         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
11821         from rtx to rtx_insn *.
11822         (create_pseudo_cfg): Likewise for local "insn".
11824 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11826         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
11827         from rtx to rtx_insn *.
11828         (df_bb_regno_last_def_find): Likewise.
11830         * df-problems.c (df_rd_bb_local_compute): Likewise.
11831         (df_lr_bb_local_compute): Likewise.
11832         (df_live_bb_local_compute): Likewise.
11833         (df_chain_remove_problem): Likewise.
11834         (df_chain_create_bb): Likewise.
11835         (df_word_lr_bb_local_compute): Likewise.
11836         (df_remove_dead_eq_notes): Likewise for param "insn".
11837         (df_note_bb_compute): Likewise for local "insn".
11838         (simulate_backwards_to_point): Likewise.
11839         (df_md_bb_local_compute): Likewise.
11841         * df-scan.c (df_scan_free_bb_info): Likewise.
11842         (df_scan_start_dump): Likewise.
11843         (df_scan_start_block): Likewise.
11844         (df_install_ref_incremental): Likewise for local "insn".
11845         (df_insn_rescan_all): Likewise.
11846         (df_reorganize_refs_by_reg_by_insn): Likewise.
11847         (df_reorganize_refs_by_insn_bb): Likewise.
11848         (df_recompute_luids): Likewise.
11849         (df_bb_refs_record): Likewise.
11850         (df_update_entry_exit_and_calls): Likewise.
11851         (df_bb_verify): Likewise.
11853 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11855         * ddg.h (struct ddg_node): Strengthen fields "insn" and
11856         "first_note" from rtx to rtx_insn *.
11857         (get_node_of_insn): Likewise for param 2 "insn".
11858         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
11860         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
11861         rtx_insn *.
11862         (mem_write_insn_p): Likewise.
11863         (mem_access_insn_p): Likewise.
11864         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
11865         (def_has_ccmode_p): Likewise for param "insn".
11866         (add_cross_iteration_register_deps): Likewise for locals
11867         "def_insn" and "use_insn".
11868         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
11869         (build_intra_loop_deps): Likewise for local "src_insn".
11870         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
11871         to rtx_insn *.
11872         (get_node_of_insn): Likewise for param "insn".
11874 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11876         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
11877         (deletable_insn_p): Strengthen param "insn" from rtx to
11878         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
11879         find_call_stack_args, since this is guarded by CALL_P (insn).
11880         (marked_insn_p): Strengthen param "insn" from rtx to
11881         rtx_insn *.
11882         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
11883         invoking find_call_stack_args, since this is guarded by
11884         CALL_P (insn).
11885         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
11886         rtx_insn *; we know this is an insn since this was called by
11887         mark_nonreg_stores.
11888         (mark_nonreg_stores_2): Likewise.
11889         (mark_nonreg_stores): Strengthen param "insn" from rtx to
11890         rtx_insn *.
11891         (find_call_stack_args): Strengthen param "call_insn" from rtx to
11892         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
11893         to rtx_insn *.
11894         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
11895         from rtx to rtx_insn *.
11896         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
11897         "next", "ref_insn".
11898         (delete_unmarked_insns): Likewise for locals "insn", "next".
11899         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
11900         (mark_reg_dependencies): Likewise for param "insn".
11901         (rest_of_handle_ud_dce): Likewise for local "insn".
11902         (word_dce_process_block): Likewise.
11903         (dce_process_block): Likewise.
11905 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
11907         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
11908         from rtx to rtx_insn *.
11909         (struct change_cc_mode_args): Likewise for field "insn".
11910         (this_insn): Strengthen from rtx to rtx_insn *.
11911         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
11912         with insn.
11913         (validate_canon_reg): Strengthen param "insn" from rtx to
11914         rtx_insn *.
11915         (canon_reg): Likewise.
11916         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
11917         dealing with insn.
11918         (record_jump_equiv): Strengthen param "insn" from rtx to
11919         rtx_insn *.
11920         (try_back_substitute_reg): Likewise, also for locals "prev",
11921         "bb_head".
11922         (find_sets_in_insn): Likewise for param "insn".
11923         (canonicalize_insn): Likewise.
11924         (cse_insn): Likewise.  Add a checked cast.
11925         (invalidate_from_clobbers): Likewise for param "insn".
11926         (invalidate_from_sets_and_clobbers): Likewise.
11927         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
11928         dealing with insn.
11929         (cse_prescan_path): Strengthen local "insn" from rtx to
11930         rtx_insn *.
11931         (cse_extended_basic_block): Likewise for locals "insn" and
11932         "prev_insn".
11933         (cse_main): Likewise for param "f".
11934         (check_for_label_ref): Likewise for local "insn".
11935         (set_live_p): Likewise for second param ("insn").
11936         (insn_live_p): Likewise for first param ("insn") and for local
11937         "next".
11938         (cse_change_cc_mode_insn): Likewise for first param "insn".
11939         (cse_change_cc_mode_insns): Likewise for first and second params
11940         "start" and "end".
11941         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
11942         and "end".
11943         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
11944         "cc_src_insn".
11946 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11947             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11948             Anna Tikhonova  <anna.tikhonova@intel.com>
11949             Ilya Tocar  <ilya.tocar@intel.com>
11950             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11951             Ilya Verbin  <ilya.verbin@intel.com>
11952             Kirill Yukhin  <kirill.yukhin@intel.com>
11953             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11955         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
11956         New.
11957         * config/i386/sse.md
11958         (define_mode_iterator VI248_AVX2): Delete.
11959         (define_mode_iterator VI2_AVX2_AVX512BW): New.
11960         (define_mode_iterator VI48_AVX2): Ditto.
11961         (define_insn <shift_insn><mode>3): Delete.
11962         (define_insn "<shift_insn><mode>3<mask_name>" with
11963         VI2_AVX2_AVX512BW): New.
11964         (define_insn "<shift_insn><mode>3<mask_name>" with
11965         VI48_AVX2): Ditto.
11967 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11968             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11969             Anna Tikhonova  <anna.tikhonova@intel.com>
11970             Ilya Tocar  <ilya.tocar@intel.com>
11971             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11972             Ilya Verbin  <ilya.verbin@intel.com>
11973             Kirill Yukhin  <kirill.yukhin@intel.com>
11974             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11976         * config/i386/sse.md
11977         (define_mode_iterator VI4F_BRCST32x2): New.
11978         (define_mode_attr 64x2_mode): Ditto.
11979         (define_mode_attr 32x2mode): Ditto.
11980         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
11981         with VI4F_BRCST32x2): Ditto.
11982         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
11983         with V16FI mode iterator): Ditto.
11984         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
11985         with V16FI): Ditto.
11986         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
11987         with VI8F_BRCST64x2): Ditto.
11989 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11990             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11991             Anna Tikhonova  <anna.tikhonova@intel.com>
11992             Ilya Tocar  <ilya.tocar@intel.com>
11993             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11994             Ilya Verbin  <ilya.verbin@intel.com>
11995             Kirill Yukhin  <kirill.yukhin@intel.com>
11996             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11998         * config/i386/sse.md
11999         (define_mode_iterator VI8_AVX512VL): New.
12000         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
12002 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12004         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
12005         (define_mode_iterator V48_AVX512VL): New.
12006         (define_mode_iterator V12_AVX512VL): Ditto.
12007         (define_insn <avx512>_load<mode>_mask): Split into two similar
12008         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
12009         Refactor output template.
12010         (define_insn "<avx512>_store<mode>_mask"): Ditto.
12012 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12014         * cprop.c (struct occr): Strengthen field "insn" from rtx to
12015         rtx_insn *.
12016         (reg_available_p): Likewise for param "insn".
12017         (insert_set_in_table): Likewise.
12018         (hash_scan_set): Likewise.
12019         (hash_scan_insn): Likewise.
12020         (make_set_regs_unavailable): Likewise.
12021         (compute_hash_table_work): Likewise for local "insn".
12022         (reg_not_set_p): Strengthen param "insn" from const_rtx to
12023         const rtx_insn *.
12024         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
12025         (try_replace_reg): Likewise.
12026         (find_avail_set): Likewise.
12027         (cprop_jump): Likewise for params "setcc", "jump".
12028         (constprop_register): Likewise for param "insn".
12029         (cprop_insn): Likewise.
12030         (do_local_cprop): Likewise.
12031         (local_cprop_pass): Likewise for local "insn".
12032         (bypass_block): Likewise for params "setcc" and "jump".
12033         (bypass_conditional_jumps): Likewise for locals "setcc" and
12034         "insn".
12035         (one_cprop_pass): Likewise for local "insn".
12037 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12039         * compare-elim.c (struct comparison_use): Strengthen field "insn"
12040         from rtx to rtx_insn *.
12041         (struct comparison): Likewise, also for field "prev_clobber".
12042         (conforming_compare): Likewise for param "insn".
12043         (arithmetic_flags_clobber_p): Likewise.
12044         (find_flags_uses_in_insn): Likewise.
12045         (find_comparison_dom_walker::before_dom_children): Likewise for
12046         locals "insn", "next", "last_clobber".
12047         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
12049 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12051         * combine-stack-adj.c (struct csa_reflist): Strengthen field
12052         "insn" from rtx to rtx_insn *.
12053         (single_set_for_csa): Likewise for param "insn".
12054         (record_one_stack_ref): Likewise.
12055         (try_apply_stack_adjustment): Likewise.
12056         (struct record_stack_refs_data): Likewise for field "insn".
12057         (maybe_move_args_size_note): Likewise for params "last" and "insn".
12058         (prev_active_insn_bb): Likewise for return type and param "insn".
12059         (next_active_insn_bb): Likewise.
12060         (force_move_args_size_note): Likewise for params "prev" and "last"
12061         and locals "test", "next_candidate", "prev_candidate".
12062         (combine_stack_adjustments_for_block): Strengthen locals
12063         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
12064         rtx_insn *.
12066 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12068         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
12069         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
12070         (subst_insn): Likewise for this variable.
12071         (added_links_insn): Likewise.
12072         (struct insn_link): Likewise for field "insn".
12073         (alloc_insn_link): Likewise for param "insn".
12074         (struct undobuf): Likewise for field "other_insn".
12075         (find_single_use): Likewise for param "insn" and local "next".
12076         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
12077         (delete_noop_moves): Likewise for locals "insn", "next".
12078         (create_log_links): Likewise for locals "insn", "use_insn".
12079         Strengthen local "next_use" from rtx * to rtx_insn **.
12080         (insn_a_feeds_b): Likewise for params "a", "b".
12081         (combine_instructions): Likewise for param "f" and locals "insn",
12082         "next", "prev", "first", "last_combined_insn", "link", "link1",
12083         "temp".  Replace use of NULL_RTX with NULL when referring to
12084         insns.
12085         (setup_incoming_promotions): Likewise for param "first"
12086         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
12087         (can_combine_p): Likewise for params "insn", "i3", "pred",
12088         "pred2", "succ", "succ2" and for local "p".
12089         (combinable_i3pat): Likewise for param "i3".
12090         (cant_combine_insn_p): Likewise for param "insn".
12091         (likely_spilled_retval_p): Likewise.
12092         (adjust_for_new_dest): Likewise.
12093         (update_cfg_for_uncondjump): Likewise, also for local "insn".
12094         (try_combine): Likewise for return type and for params "i3", "i2",
12095         "i1", "i0", "last_combined_insn", and for locals "insn",
12096         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
12097         "i0_insn".  Eliminate local "tem" in favor of new locals
12098         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
12099         checked cast for now to rtx_insn * on the return type of
12100         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
12101         insns.
12102         (find_split_point): Strengthen param "insn" from rtx to
12103         rtx_insn *.
12104         (simplify_set): Likewise for local "other_insn".
12105         (recog_for_combine): Likewise for param "insn".
12106         (record_value_for_reg): Likewise.
12107         (record_dead_and_set_regs_1): Likewise for local
12108         "record_dead_insn".
12109         (record_dead_and_set_regs): Likewise for param "insn".
12110         (record_promoted_value): Likewise.
12111         (check_promoted_subreg): Likewise.
12112         (get_last_value_validate): Likewise.
12113         (reg_dead_at_p): Likewise.
12114         (move_deaths): Likewise for param "to_insn".
12115         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
12116         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
12117         in favor of new locals "tem_note" and "tem_insn", the latter being
12118         an rtx_insn *.
12119         (distribute_links): Strengthen locals "place", "insn" from rtx to
12120         rtx_insn *.
12122 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12124         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
12125         than a const_rtx.
12126         (can_delete_label_p): Require a const rtx_code_label * rather than
12127         a const_rtx.
12128         (delete_insn): Add checked cast to rtx_code_label * when we know
12129         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
12130         rtx to rtx_insn *.
12131         (delete_insn_chain): Strengthen locals "prev" and "current" from
12132         rtx to rtx_insn *.  Add a checked cast when assigning from
12133         "finish" (strengthening the params will come later).  Add a
12134         checked cast to rtx_note * in region where we know
12135         NOTE_P (current).
12136         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
12137         rtx_insn *.
12138         (compute_bb_for_insn): Likewise.
12139         (free_bb_for_insn): Likewise for local "insn".
12140         (compute_bb_for_insn): Likewise.
12141         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
12142         local "insn" from rtx to rtx_insn *
12143         (flow_active_insn_p): Require a const rtx_insn * rather than a
12144         const_rtx.
12145         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
12146         rtx_insn *.
12147         (can_fallthru): Likewise for locals "insn" and "insn2".
12148         (bb_note): Likewise for local "note".
12149         (first_insn_after_basic_block_note): Likewise for local "note" and
12150         for return type.
12151         (rtl_split_block): Likewise for locals "insn" and "next".
12152         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
12153         "end".
12154         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
12155         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
12156         "prev", "tmp".
12157         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
12158         them), "kill_from", "barrier", "new_insn".
12159         (patch_jump_insn): Likewise for params "insn", "old_label".
12160         (redirect_branch_edge): Likewise for locals "old_label", "insn".
12161         (force_nonfallthru_and_redirect): Likewise for locals "insn",
12162         "old_label", "new_label".
12163         (rtl_tidy_fallthru_edge): Likewise for local "q".
12164         (rtl_split_edge): Likewise for locals "before", "last".
12165         (commit_one_edge_insertion): Likewise for locals "before",
12166         "after", "insns", "tmp", "last", adding a checked cast where
12167         currently necessary.
12168         (commit_edge_insertions): Likewise.
12169         (rtl_dump_bb): Likewise for locals "insn", "last".
12170         (print_rtl_with_bb): Likewise for local "x".
12171         (rtl_verify_bb_insns): Likewise for local "x".
12172         (rtl_verify_bb_pointers): Likewise for local "insn".
12173         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
12174         "head", "end".
12175         (rtl_verify_fallthru): Likewise for local "insn".
12176         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
12177         (purge_dead_edges): Likewise for local "insn".
12178         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
12179         (skip_insns_after_block): Likewise for return type and for locals
12180         "insn", "last_insn", "next_head", "prev".
12181         (record_effective_endpoints): Likewise for locals "next_insn",
12182         "insn", "end".
12183         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
12184         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
12185         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
12186         (duplicate_insn_chain): For now, add checked cast from rtx to
12187         rtx_insn * when returning insn.
12188         (cfg_layout_duplicate_bb): Likewise for local "insn".
12189         (cfg_layout_delete_block): Likewise for locals "insn", "next",
12190         "prev", "remaints".
12191         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
12192         (rtl_block_empty_p): Likewise.
12193         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
12194         "split_point", "last".
12195         (rtl_block_ends_with_call_p): Likewise for local "insn".
12196         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
12197         const rtx_insn *.
12198         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
12199         "split_at_insn" from rtx to rtx_insn *.
12200         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
12201         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
12202         to const rtx_insn *.
12203         (rtl_account_profile_record): Likewise.
12205 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12207         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
12208         rtx to rtx_insn *.
12209         (average_num_loop_insns): Likewise.
12210         (init_set_costs): Likewise for local "seq".
12211         (seq_cost): Likewise for param "seq", from const_rtx to const
12212         rtx_insn *.
12214 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12216         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
12217         rtx to rtx_insn *.
12219 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12221         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
12222         "f1" and "f2" from rtx * to rtx_insn **.
12223         (flow_find_head_matching_sequence): Likewise.
12225         * cfgcleanup.c (try_simplify_condjump): Strengthen local
12226         "cbranch_insn" from rtx to rtx_insn *.
12227         (thread_jump): Likewise for local "insn".
12228         (try_forward_edges): Likewise for local "last".
12229         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
12230         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
12231         "real_b_end".
12232         (can_replace_by): Likewise for params "i1", "i2".
12233         (old_insns_match_p): Likewise.
12234         (merge_notes): Likewise.
12235         (walk_to_nondebug_insn): Likewise for param "i1".
12236         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
12237         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
12238         "afterlast1", "afterlast2" from rtx to rtx_insn *.
12239         (flow_find_head_matching_sequence): Strengthen params "f1" and
12240         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
12241         "last1", "last2", "beforelast1", "beforelast2" from rtx to
12242         rtx_insn *.
12243         (outgoing_edges_match): Likewise for locals "last1", "last2".
12244         (try_crossjump_to_edge): Likewise for local "insn".
12245         Replace call to for_each_rtx with for_each_rtx_in_insn.
12247         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
12248         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
12249         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
12250         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
12251         (try_optimize_cfg): Strengthen local "last" from rtx to
12252         rtx_insn *.
12253         (delete_dead_jumptables): Likewise for locals "insn", "next",
12254         "label".
12256         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
12257         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
12258         "rtx else_first_tail", to reflect the basic-block.h changes above.
12260 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12262         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
12263         rtx_insn *.
12264         (purge_dead_tablejump_edges): Likewise.
12265         (find_bb_boundaries): Likewise for locals "insn", "end",
12266         "flow_transfer_insn".
12268 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12270         * caller-save.c (save_call_clobbered_regs): Strengthen locals
12271         "ins" and "prev" from rtx to rtx_insn *.
12273 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12275         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
12276         rtx_insn *.
12277         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
12278         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
12279         "scan_start".
12280         (load_register_parameters): Likewise for local "before_arg".
12281         (check_sibcall_argument_overlap): Likewise for param "insn".
12282         (expand_call): Likewise for locals "normal_call_insns",
12283         "tail_call_insns", "insns", "before_call", "after_args",
12284         "before_arg", "last", "prev".  Strengthen one of the "last" from
12285         rtx to rtx_call_insn *.
12286         (fixup_tail_calls): Strengthen local "insn" from rtx to
12287         rtx_insn *.
12288         (emit_library_call_value_1): Likewise for locals "before_call" and
12289         "last".
12291 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12293         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
12294         and "last" from rtx to rtx_insn *.
12295         (expand_builtin_nonlocal_goto): Likewise for local "insn".
12296         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
12297         rtx_call_insn *.
12298         (expand_errno_check): Strengthen local "lab" from rtx to
12299         rtx_code_label *.
12300         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
12301         rtx_insn *.
12302         (expand_builtin_mathfn_2): Likewise.
12303         (expand_builtin_mathfn_ternary): Likewise.
12304         (expand_builtin_mathfn_3): Likewise.
12305         (expand_builtin_interclass_mathfn): Likewise for local "last".
12306         (expand_builtin_int_roundingfn): Likewise for local "insns".
12307         (expand_builtin_int_roundingfn_2): Likewise.
12308         (expand_builtin_strlen): Likewise for local "before_strlen".
12309         (expand_builtin_strncmp): Likewise for local "seq".
12310         (expand_builtin_signbit): Likewise for local "last".
12311         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
12312         from rtx to rtx_code_label *.
12313         (expand_stack_restore):  Strengthen local "prev" from rtx to
12314         rtx_insn *.
12316 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12318         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
12319         to rtx_insn *.
12320         (struct btr_def_s): Likewise.
12321         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
12322         const rtx_insn *.
12323         (add_btr_def): Likewise.
12324         (new_btr_user): Likewise.
12325         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
12326         rtx to rtx_insn *.
12327         (link_btr_uses): Likewise.
12328         (move_btr_def): Likewise for locals "insp", "old_insn",
12329         "new_insn".  Add checked cast to rtx_insn * for now on result of
12330         gen_move_insn.
12331         (can_move_up): Strengthen param "insn" from const_rtx to
12332         const rtx_insn *.
12334 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12336         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
12337         rtx_insn *.
12338         (get_uncond_jump_length): Likewise for locals "label", "jump".
12339         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
12340         "jump", "insn".
12341         (add_labels_and_missing_jumps): Likewise for local "new_jump".
12342         (fix_up_fall_thru_edges): Likewise for local "old_jump".
12343         (find_jump_block): Likewise for local "insn".
12344         (fix_crossing_conditional_branches): Likewise for locals
12345         "old_jump", "new_jump".
12346         (fix_crossing_unconditional_branches): Likewise for locals
12347         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
12348         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
12350 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12352         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
12353         rtx to rtx_insn *.
12354         (struct mem_insn): Likewise for field "insn".
12355         (reg_next_use): Strengthen from rtx * to rtx_insn **.
12356         (reg_next_inc_use): Likewise.
12357         (reg_next_def): Likewise.
12358         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
12359         from rtx to rtx_insn *.
12360         (move_insn_before): Likewise for param "next_insn" and local "insns".
12361         (attempt_change): Likewise for local "mov_insn".
12362         (try_merge): Likewise for param "last_insn".
12363         (get_next_ref): Likewise for return type and local "insn".
12364         Strengthen param "next_array" from rtx * to rtx_insn **.
12365         (parse_add_or_inc): Strengthen param "insn" from rtx to
12366         rtx_insn *.
12367         (find_inc): Likewise for locals "insn" and "other_insn" (three of
12368         the latter).
12369         (merge_in_block): Likewise for locals "insn", "curr",
12370         "other_insn".
12371         (pass_inc_dec::execute): Update allocations of the arrays to
12372         reflect the stronger types.
12374 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12376         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
12377         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
12378         from rtx to rtx_code_label *.
12380 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12382         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
12383         to rtx_insn *.
12385 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
12387         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
12388         generated a warning and prevented bootstrapping the compiler.
12390 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12392         * rtl.h (delete_related_insns): Strengthen return type from rtx to
12393         rtx_insn *.
12395         * jump.c (delete_related_insns): Likewise, also for locals "next"
12396         and "prev".
12398 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12400         * genautomata.c (output_internal_insn_latency_func): When writing
12401         the function "internal_insn_latency" to insn-automata.c,
12402         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
12403         allowing the optional guard function of (define_bypass) clauses to
12404         expect a pair of rtx_insn *, rather than a pair of rtx.
12405         (output_insn_latency_func): When writing the function
12406         "insn_latency", add an "uncast_" prefix to params "insn" and
12407         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
12408         using checked casts from the params, thus enabling the above
12409         change to the generated "internal_insn_latency" function.
12411 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
12413         PR tree-optimization/62091
12414         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
12415         handle correctly arrays.
12416         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
12417         inheritance binfos.
12418         (record_known_type): Walk into inner type.
12419         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
12420         condition on no type changes.
12422 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12424         * genattrtab.c (write_attr_get): Within the generated get_attr_
12425         functions, rename param "insn" to "uncast_insn" and reintroduce
12426         "insn" as an local rtx_insn * using a checked cast, so that "insn"
12427         is an rtx_insn * within insn-attrtab.c
12429 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12431         * output.h (peephole): Strengthen return type from rtx to
12432         rtx_insn *.
12433         * rtl.h (delete_for_peephole): Likewise for both params.
12434         * genpeep.c (main): In generated "peephole" function, strengthen
12435         return type and local "insn" from rtx to rtx_insn *.  For now,
12436         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
12437         rtx_insn *, with a checked cast.
12438         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
12439         locals "insn", "next", "prev" from rtx to rtx_insn *.
12441 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
12443         PR tree-optimization/62112
12444         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
12445         * gimple-iterator.h (gsi_replace): Return bool.
12446         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
12447         moved from ref_may_alias_global_p.
12448         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
12449         New overloads.
12450         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
12451         (stmt_kills_ref_p_1): Rename...
12452         (stmt_kills_ref_p): ... to this.
12453         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
12454         stmt_kills_ref_p): Declare.
12455         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
12456         Move the self-assignment case...
12457         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
12459 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12461         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
12463         * emit-rtl.c (try_split): Likewise, also for locals "before" and
12464         "after".  For now, don't strengthen param "trial", which requires
12465         adding checked casts when returning it.
12467 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12469         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
12470         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
12471         "var_location" hook from rtx to rtx_insn *.
12472         (debug_nothing_rtx): Delete in favor of...
12473         (debug_nothing_rtx_code_label): New prototype.
12474         (debug_nothing_rtx_rtx): Delete unused prototype.
12475         (debug_nothing_rtx_insn): New prototype.
12477         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
12478         invoking debug_hooks->var_location (in two places, one in a NOTE
12479         case of a switch statement, the other guarded by a CALL_P
12480         conditional.  Add checked cast to rtx_code_label * when invoking
12481         debug_hooks->label (within CODE_LABEL case of switch statement).
12483         * dbxout.c (dbx_debug_hooks): Update "label" hook from
12484         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
12485         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
12486         (xcoff_debug_hooks): Likewise.
12487         * debug.c (do_nothing_debug_hooks): Likewise.
12488         (debug_nothing_rtx): Delete in favor of...
12489         (debug_nothing_rtx_insn): New function.
12490         (debug_nothing_rtx_rtx): Delete unused function.
12491         (debug_nothing_rtx_code_label): New function.
12492         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
12493         debug_nothing_rtx to debug_nothing_rtx_code_label.
12494         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
12495         to rtx_insn *.
12496         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
12497         debug_nothing_rtx to debug_nothing_rtx_insn.
12498         (sdbout_label): Strengthen param "insn" from rtx to
12499         rtx_code_label *.
12500         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
12501         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
12502         "var_location" hook from debug_nothing_rtx to
12503         debug_nothing_rtx_insn.
12505 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12507         * recog.h (insn_output_fn): Update this function typedef to match
12508         the changes below to the generated output functions, strengthening
12509         the 2nd param from rtx to rtx_insn *.
12511         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
12512         insn when invoking an output function, to match the new signature
12513         of insn_output_fn with a stronger second param.
12515         * genconditions.c (write_header): In the generated code for
12516         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
12517         to match the other changes in this patch.
12519         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
12520         the generated "gen_" functions from rtx to rtx_insn * within their
12521         implementations.
12523         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
12524         the subfunctions within the generated "recog_", "split", "peephole2"
12525         function trees from rtx to rtx_insn *.  For now, the top-level
12526         generated functions ("recog", "split", "peephole2") continue to
12527         take a plain rtx for "insn", to avoid introducing dependencies on
12528         other patches.  Rename this 2nd param from "insn" to
12529         "uncast_insn", and reintroduce "insn" as a local variable of type
12530         rtx_insn *, initialized at the top of the generated function with
12531         a checked cast on "uncast_insn".
12532         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
12533         the generated "gen_" functions from rtx to rtx_insn * within their
12534         prototypes.
12536         * genoutput.c (process_template): Strengthen the 2nd param within
12537         the generated "output_" functions "insn" from rtx to rtx_insn *.
12539 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
12541         * tree-profile.c (tree_profiling): Skip external functions
12542         when doing coverage instrumentation.
12543         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
12545 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12547         * config/rs6000/altivec.h (vec_cpsgn): New #define.
12548         (vec_mergee): Likewise.
12549         (vec_mergeo): Likewise.
12550         (vec_cntlz): Likewise.
12551         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
12552         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
12553         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
12554         VMRGEW, and VMRGOW.
12555         * doc/extend.texi: Document various forms of vec_cpsgn,
12556         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
12557         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
12558         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
12559         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
12560         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
12562 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12564         * config/rs6000/rs6000.c (context.h): New include.
12565         (tree-pass.h): Likewise.
12566         (make_pass_analyze_swaps): New decl.
12567         (rs6000_option_override): Register pass_analyze_swaps.
12568         (swap_web_entry): New subsclass of web_entry_base (df.h).
12569         (special_handling_values): New enum.
12570         (union_defs): New function.
12571         (union_uses): Likewise.
12572         (insn_is_load_p): Likewise.
12573         (insn_is_store_p): Likewise.
12574         (insn_is_swap_p): Likewise.
12575         (rtx_is_swappable_p): Likewise.
12576         (insn_is_swappable_p): Likewise.
12577         (chain_purpose): New enum.
12578         (chain_contains_only_swaps): New function.
12579         (mark_swaps_for_removal): Likewise.
12580         (swap_const_vector_halves): Likewise.
12581         (adjust_subreg_index): Likewise.
12582         (permute_load): Likewise.
12583         (permute_store): Likewise.
12584         (handle_special_swappables): Likewise.
12585         (replace_swap_with_copy): Likewise.
12586         (dump_swap_insn_table): Likewise.
12587         (rs6000_analyze_swaps): Likewise.
12588         (pass_data_analyze_swaps): New pass_data.
12589         (pass_analyze_swaps): New rtl_opt_pass.
12590         (make_pass_analyze_swaps): New function.
12591         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
12593 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12595         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
12596         type from rtx to rtx_insn *.
12597         (create_copy_of_insn_rtx): Likewise.
12598         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
12599         (create_copy_of_insn_rtx): Likewise, also for local "res".
12601 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12603         * rtl.h (find_first_parameter_load): Strengthen return type from
12604         rtx to rtx_insn *.
12605         * rtlanal.c (find_first_parameter_load): Strengthen return type
12606         from rtx to rtx_insn *.  Add checked cast for now, to postpone
12607         strengthening the params.
12609 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12611         PR fortran/44054
12612         * diagnostic.c: Set default caret.
12613         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
12614         line is needed.
12615         * diagnostic.h (struct diagnostic_context):
12617 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12619         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
12620         (sel_bb_head): Strengthen return type insn_t (currently just an
12621         rtx) to rtx_insn *.
12622         (sel_bb_end): Likewise.
12624         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
12625         (sel_bb_head): Strengthen return type and local "head" from
12626         insn_t (currently just an rtx) to rtx_insn *.
12627         (sel_bb_end): Likewise for return type.
12628         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
12629         working with insn.
12631 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
12633         * basic-block.h (get_last_bb_insn): Strengthen return type from
12634         rtx to rtx_insn *.
12635         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
12636         end".
12638 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12640         PR fortran/44054
12641         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
12642          to here ...
12643         (diagnostic_report_diagnostic): ... from here.
12644         * toplev.c (general_init): Move code to c-family.
12646 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12648         * df.h (web_entry_base): Replace existing struct web_entry with a
12649         new class web_entry_base with only the predecessor member.
12650         (unionfind_root): Remove declaration and move to class member.
12651         (unionfind_union): Remove declaration and move to friend
12652         function.
12653         (union_defs): Remove declaration.
12654         * web.c (web_entry_base::unionfind_root): Modify to be member
12655         function and adjust accessors.
12656         (unionfind_union): Modify to be friend function and adjust
12657         accessors.
12658         (web_entry): New subclass of web_entry_base containing the reg
12659         member.
12660         (union_match_dups): Modify for struct -> class changes.
12661         (union_defs): Likewise.
12662         (entry_register): Likewise.
12663         (pass_web::execute): Likewise.
12665 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
12667         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
12668         builtin define __VEC_ELEMENT_REG_ORDER__.
12670 2014-08-20  Martin Jambor  <mjambor@suse.cz>
12671             Wei Mi  <wmi@google.com>
12673         PR ipa/60449
12674         PR middle-end/61776
12675         * tree-ssa-operands.c (update_stmt_operands): Remove
12676         MODIFIED_NORETURN_CALLS.
12677         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
12678         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
12679         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
12680         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
12681         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
12682         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
12683         (gimple_call_set_ctrl_altering): New func.
12684         (gimple_call_ctrl_altering_p): Ditto.
12685         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
12686         (make_blocks): Use gimple_call_initialize_ctrl_altering.
12687         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
12688         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
12689         remove MODIFIED_NORETURN_CALLS.
12691 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
12693         * coverage.c (coverage_compute_profile_id): Return non-0;
12694         also handle symbols with unique name.
12695         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
12697 2014-08-20  Steve Ellcey  <sellcey@mips.com>
12699         PR middle-end/49191
12700         * doc/sourcebuild.texi (non_strict_align): New.
12702 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
12704         * cgraphunit.c (ipa_passes, compile): Reshedule
12705         symtab_remove_unreachable_nodes passes; update comments.
12706         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
12707         TODO_remove_functions before the pass; the functions ought to be
12708         already removed.
12709         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
12710         TODO_remove_functions.
12711         * passes.c (pass_data_early_local_passes): Do not schedule function
12712         removal.
12713         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
12715 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12717         PR c/59304
12718         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
12719         before setting the option.
12720         * diagnostic.c (diagnostic_classify_diagnostic): Record
12721         command-line status.
12723 2014-08-20  Richard Biener  <rguenther@suse.de>
12725         PR lto/62190
12726         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
12727         to build uint{16,32,64}_type_node.
12729 2014-08-20  Terry Guo  <terry.guo@arm.com>
12731         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
12732         with immediate_operand.
12734 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
12736         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
12737         "insn" from an as_a to a safe_as_a, for the case when "insn" is
12738         NULL.
12740 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12742         PR preprocessor/51303
12743         * incpath.c (remove_duplicates): Use cpp_warning.
12745 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12747         PR c/60975
12748         PR c/53063
12749         * doc/options.texi (CPP): Document it.
12750         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
12751         * optc-gen.awk: Handle CPP.
12752         * opth-gen.awk: Likewise.
12754 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12756         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
12757         rtx_insn *.
12758         (duplicate_insn_chain): Likewise.
12759         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
12760         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
12761         checked cast for now (until we can strengthen the params in the
12762         same way).
12763         (duplicate_insn_chain): Likewise.
12765 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12767         * rtl.h (next_cc0_user): Strengthen return type from rtx to
12768         rtx_insn *.
12769         (prev_cc0_setter): Likewise.
12771         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
12772         rtx_insn *, adding checked casts for now as necessary.
12773         (prev_cc0_setter): Likewise.
12775 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12777         * expr.h (emit_move_insn): Strengthen return type from rtx to
12778         rtx_insn *.
12779         (emit_move_insn_1): Likewise.
12780         (emit_move_complex_push): Likewise.
12781         (emit_move_complex_parts): Likewise.
12783         * expr.c (emit_move_via_integer): Strengthen return type from rtx
12784         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
12785         with insns.
12786         (emit_move_complex_push): Strengthen return type from rtx to
12787         rtx_insn *.
12788         (emit_move_complex): Likewise, also for local "ret".
12789         (emit_move_ccmode): Likewise.
12790         (emit_move_multi_word): Likewise for return type and locals
12791         "last_insn", "seq".
12792         (emit_move_insn_1): Likewise for return type and locals "result",
12793         "ret".
12794         (emit_move_insn): Likewise for return type and local "last_insn".
12795         (compress_float_constant): Likewise.
12797 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12799         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
12800         from rtx to rtx_insn *.
12802         * rtl.h (emit_insn_before): Likewise.
12803         (emit_insn_before_noloc): Likewise.
12804         (emit_insn_before_setloc): Likewise.
12805         (emit_jump_insn_before): Likewise.
12806         (emit_jump_insn_before_noloc): Likewise.
12807         (emit_jump_insn_before_setloc): Likewise.
12808         (emit_call_insn_before): Likewise.
12809         (emit_call_insn_before_noloc): Likewise.
12810         (emit_call_insn_before_setloc): Likewise.
12811         (emit_debug_insn_before): Likewise.
12812         (emit_debug_insn_before_noloc): Likewise.
12813         (emit_debug_insn_before_setloc): Likewise.
12814         (emit_label_before): Likewise.
12815         (emit_insn_after): Likewise.
12816         (emit_insn_after_noloc): Likewise.
12817         (emit_insn_after_setloc): Likewise.
12818         (emit_jump_insn_after): Likewise.
12819         (emit_jump_insn_after_noloc): Likewise.
12820         (emit_jump_insn_after_setloc): Likewise.
12821         (emit_call_insn_after): Likewise.
12822         (emit_call_insn_after_noloc): Likewise.
12823         (emit_call_insn_after_setloc): Likewise.
12824         (emit_debug_insn_after): Likewise.
12825         (emit_debug_insn_after_noloc): Likewise.
12826         (emit_debug_insn_after_setloc): Likewise.
12827         (emit_label_after): Likewise.
12828         (emit_insn): Likewise.
12829         (emit_debug_insn): Likewise.
12830         (emit_jump_insn): Likewise.
12831         (emit_call_insn): Likewise.
12832         (emit_label): Likewise.
12833         (gen_clobber): Likewise.
12834         (emit_clobber): Likewise.
12835         (gen_use): Likewise.
12836         (emit_use): Likewise.
12837         (emit): Likewise.
12839         (emit_barrier_before): Strengthen return type from rtx to
12840         rtx_barrier *.
12841         (emit_barrier_after): Likewise.
12842         (emit_barrier): Likewise.
12844         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
12845         from rtx to rtx_insn *.  Add checked casts for now when converting
12846         "last" from rtx to rtx_insn *.
12847         (emit_insn_before_noloc): Likewise for return type.
12848         (emit_jump_insn_before_noloc): Likewise.
12849         (emit_call_insn_before_noloc): Likewise.
12850         (emit_debug_insn_before_noloc): Likewise.
12851         (emit_barrier_before): Strengthen return type and local "insn"
12852         from rtx to rtx_barrier *.
12853         (emit_label_before): Strengthen return type from rtx to
12854         rtx_insn *.  Add checked cast for now when returning param
12855         (emit_pattern_after_noloc): Strengthen return type from rtx to
12856         rtx_insn *.  Add checked casts for now when converting "last" from
12857         rtx to rtx_insn *.
12858         (emit_insn_after_noloc): Strengthen return type from rtx to
12859         rtx_insn *.
12860         (emit_jump_insn_after_noloc): Likewise.
12861         (emit_call_insn_after_noloc): Likewise.
12862         (emit_debug_insn_after_noloc): Likewise.
12863         (emit_barrier_after): Strengthen return type from rtx to
12864         rtx_barrier *.
12865         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
12866         Add checked cast for now when converting "label" from rtx to
12867         rtx_insn *.
12868         (emit_pattern_after_setloc): Strengthen return type from rtx to
12869         rtx_insn *.  Add checked casts for now when converting "last" from
12870         rtx to rtx_insn *.
12871         (emit_pattern_after): Strengthen return type from rtx to
12872         rtx_insn *.
12873         (emit_insn_after_setloc): Likewise.
12874         (emit_insn_after): Likewise.
12875         (emit_jump_insn_after_setloc): Likewise.
12876         (emit_jump_insn_after): Likewise.
12877         (emit_call_insn_after_setloc): Likewise.
12878         (emit_call_insn_after): Likewise.
12879         (emit_debug_insn_after_setloc): Likewise.
12880         (emit_debug_insn_after): Likewise.
12881         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
12882         when converting "last" from rtx to rtx_insn *.
12883         (emit_pattern_before): Strengthen return type from rtx to
12884         rtx_insn *.
12885         (emit_insn_before_setloc): Likewise.
12886         (emit_insn_before): Likewise.
12887         (emit_jump_insn_before_setloc): Likewise.
12888         (emit_jump_insn_before): Likewise.
12889         (emit_call_insn_before_setloc): Likewise.
12890         (emit_call_insn_before): Likewise.
12891         (emit_debug_insn_before_setloc): Likewise.
12892         (emit_debug_insn_before): Likewise.
12893         (emit_insn): Strengthen return type and locals "last", "insn",
12894         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
12895         within cases where we know we have an insn.
12896         (emit_debug_insn): Likewise.
12897         (emit_jump_insn): Likewise.
12898         (emit_call_insn): Strengthen return type and local "insn" from rtx
12899         to rtx_insn *.
12900         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
12901         a checked cast to rtx_insn * for now on "label".
12902         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
12903         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
12904         (emit_use): Likewise.
12905         (gen_use): Likewise, also for local "seq".
12906         (emit): Likewise for return type and local "insn".
12907         (rtx_insn): Likewise for return type and local "new_rtx".
12909         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
12910         from rtx to rtx_barrier *.
12912         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
12913         changed return type from rtx to rtx_insn *, we must update
12914         "emit_fn" type, and this in turn means updating...
12915         (frame_insn): ...this.  Strengthen return type from rtx to
12916         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
12918 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12920         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
12921         rtx to rtx_jump_table_data *.  Also for local.
12922         * rtl.h (emit_jump_table_data): Likewise.
12924 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12926         * basic-block.h (create_basic_block_structure): Strengthen third
12927         param "bb_note" from rtx to rtx_note *.
12928         * rtl.h (emit_note_before): Strengthen return type from rtx to
12929         rtx_note *.
12930         (emit_note_after): Likewise.
12931         (emit_note): Likewise.
12932         (emit_note_copy): Likewise.  Also, strengthen param similarly.
12933         * function.h (struct rtl_data): Strengthen field
12934         "x_stack_check_probe_note" from rtx to rtx_note *.
12936         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
12937         from rtx to rtx_note *.
12938         * cfgrtl.c (create_basic_block_structure): Strengthen third param
12939         "bb_note" from rtx to rtx_note *.
12940         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
12941         when calling emit_note_copy.
12942         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
12943         rtx_note *.
12944         (emit_note_after): Likewise.
12945         (emit_note_before): Likewise.
12946         (emit_note_copy): Likewise.  Also, strengthen param similarly.
12947         (emit_note): Likewise.
12948         * except.c (emit_note_eh_region_end): Likewise for return type.
12949         Strengthen local "next" from rtx to rtx_insn *.
12950         (convert_to_eh_region_ranges): Strengthen local "note"
12951         from rtx to rtx_note *.
12952         * final.c (change_scope): Likewise.
12953         (reemit_insn_block_notes): Likewise, for both locals named "note".
12954         Also, strengthen local "insn" from rtx to rtx_insn *.
12955         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
12956         rtx to rtx_note *.
12957         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
12958         strengthen local "seq" from rtx to rtx_insn *.
12959         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
12960         to rtx_note *.
12961         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
12962         vec<rtx_note *>.
12963         (get_bb_note_from_pool): Strengthen return type from rtx to
12964         rtx_note *.
12965         (sel_create_basic_block): Strengthen local "new_bb_note" from
12966         insn_t to rtx_note *.
12967         * var-tracking.c (emit_note_insn_var_location): Strengthen local
12968         "note" from rtx to rtx_note *.
12969         (emit_notes_in_bb): Likewise.
12971 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12973         * function.h (struct rtl_data): Strengthen field
12974         "x_parm_birth_insn" from rtx to rtx_insn *.
12975         * function.c (struct assign_parm_data_all): Strengthen fields
12976         "first_conversion_insn" and "last_conversion_insn" from rtx to
12977         rtx_insn *.
12979 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
12981         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
12982         to rtx_insn *; also for local "var_end_seq".
12983         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
12984         (maybe_cleanup_end_of_block): Likewise for param "last" and local
12985         "insn".
12986         (expand_gimple_cond): Likewise for locals "last2" and "last".
12987         (mark_transaction_restart_calls): Likewise for local "insn".
12988         (expand_gimple_stmt): Likewise for return type and locals "last"
12989         and "insn".
12990         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
12991         (avoid_complex_debug_insns): Likewise for param "insn".
12992         (expand_debug_locations): Likewise for locals "insn", "last",
12993         "prev_insn" and "insn2".
12994         (expand_gimple_basic_block): Likewise for local "last".
12995         (construct_exit_block): Likewise for locals "head", "end",
12996         "orig_end".
12997         (pass_expand::execute): Likewise for locals "var_seq",
12998         "var_ret_seq", "next".
13000 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13002         * asan.h (asan_emit_stack_protection): Strengthen return type from
13003         rtx to rtx_insn *.
13004         * asan.c (asan_emit_stack_protection): Likewise.  Add local
13005         "insns" to hold the return value.
13007 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13009         * basic-block.h (bb_note): Strengthen return type from rtx to
13010         rtx_note *.
13011         * sched-int.h (bb_note): Likewise.
13012         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
13014 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13016         * rtl.h (make_insn_raw): Strengthen return type from rtx to
13017         rtx_insn *.
13019         * emit-rtl.c (make_insn_raw): Strengthen return type and local
13020         "insn" from rtx to rtx_insn *.
13021         (make_debug_insn_raw): Strengthen return type from rtx to
13022         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
13023         (make_jump_insn_raw):  Strengthen return type from rtx to
13024         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
13025         (make_call_insn_raw):  Strengthen return type from rtx to
13026         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
13027         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
13028         callback from rtx to rtx_insn *; likewise for local "insn" and
13029         "next", adding a checked cast to rtx_insn in the relevant cases of
13030         the switch statement.
13031         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
13032         callback from rtx to rtx_insn *.
13033         (emit_pattern_after_setloc): Likewise.
13034         (emit_pattern_after): Likewise.
13035         (emit_pattern_before_setloc): Likewise.
13036         (emit_pattern_before): Likewise.
13038 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13040         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
13041         rtx_call_insn *.
13042         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
13043         accepting an rtx_insn *.
13044         (last_call_insn): Strengthen return type from rtx to
13045         rtx_call_insn *.
13047 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13049         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
13050         "insns" from rtx to rtx_insn *.
13051         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
13052         locals "insn" and "prev".
13054 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13056         * rtl.h (tablejump_p): Strengthen third param from rtx * to
13057         rtx_jump_table_data **.
13059         * cfgbuild.c (make_edges): Introduce local "table", using it in
13060         place of "tmp" for jump table data.
13061         (find_bb_boundaries): Strengthen local "table" from rtx to
13062         rtx_jump_table_data *.
13063         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
13064         (outgoing_edges_match): Likewise for locals "table1" and "table2".
13065         (try_crossjump_to_edge): Likewise.
13066         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
13067         "table".
13068         (patch_jump_insn): Introduce local "table", using it in place of
13069         "tmp" for jump table data.
13070         (force_nonfallthru_and_redirect): Introduce local "table", so that
13071         call to tablejump_p can receive an rtx_jump_table_data **.  Update
13072         logic around the call to overwrite "note" appropriately if
13073         tablejump_p returns non-zero.
13074         (get_last_bb_insn): Introduce local "table", using it in place of
13075         "tmp" for jump table data.
13076         * dwarf2cfi.c (create_trace_edges): Likewise.
13078         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
13079         from rtx to rtx_jump_table_data *.
13080         (create_fix_barrier): Strengthen local "tmp" from rtx to
13081         rtx_jump_table_data *.
13082         (arm_reorg): Likewise for local "table".
13084         * config/s390/s390.c (s390_chunkify_start): Likewise.
13086         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
13088         * jump.c (delete_related_insns): Strengthen local "lab_next" from
13089         rtx to rtx_jump_table_data *.
13091         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
13092         rtx_jump_table_data **.  Add a checked cast when writing through
13093         the pointer: we know there that local "table" is non-NULL and that
13094         JUMP_TABLE_DATA_P (table) holds.
13095         (label_is_jump_target_p): Introduce local "table", using it in
13096         place of "tmp" for jump table data.
13098 2014-08-19  Marek Polacek  <polacek@redhat.com>
13100         PR c++/62153
13101         * doc/invoke.texi: Document -Wbool-compare.
13103 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13105         * rtl.h (entry_of_function): Strengthen return type from rtx to
13106         rtx_insn *.
13107         * cfgrtl.c (entry_of_function): Likewise.
13109 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13111         * emit-rtl.h (get_insns): Strengthen return type from rtx to
13112         rtx_insn *, adding a checked cast for now.
13113         (get_last_insn): Likewise.
13115 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13117         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
13118         rtx_code_label *.
13120         * emit-rtl.c (gen_label_rtx): Likewise.
13122 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13124         * rtl.h (previous_insn): Strengthen return type from rtx to
13125         rtx_insn *.
13126         (next_insn): Likewise.
13127         (prev_nonnote_insn): Likewise.
13128         (prev_nonnote_insn_bb): Likewise.
13129         (next_nonnote_insn): Likewise.
13130         (next_nonnote_insn_bb): Likewise.
13131         (prev_nondebug_insn): Likewise.
13132         (next_nondebug_insn): Likewise.
13133         (prev_nonnote_nondebug_insn): Likewise.
13134         (next_nonnote_nondebug_insn): Likewise.
13135         (prev_real_insn): Likewise.
13136         (next_real_insn): Likewise.
13137         (prev_active_insn): Likewise.
13138         (next_active_insn): Likewise.
13140         * emit-rtl.c (next_insn): Strengthen return type from rtx to
13141         rtx_insn *, adding a checked cast.
13142         (previous_insn): Likewise.
13143         (next_nonnote_insn): Likewise.
13144         (next_nonnote_insn_bb): Likewise.
13145         (prev_nonnote_insn): Likewise.
13146         (prev_nonnote_insn_bb): Likewise.
13147         (next_nondebug_insn): Likewise.
13148         (prev_nondebug_insn): Likewise.
13149         (next_nonnote_nondebug_insn): Likewise.
13150         (prev_nonnote_nondebug_insn): Likewise.
13151         (next_real_insn): Likewise.
13152         (prev_real_insn): Likewise.
13153         (next_active_insn): Likewise.
13154         (prev_active_insn): Likewise.
13156         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
13157         param "stepfunc" so that it returns an rtx_insn * rather than an
13158         rtx, to track the change to prev_nonnote_insn_bb, which is the
13159         only function this is called with.
13160         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
13162 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
13164         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
13165         assert.
13167 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13169         * coretypes.h (class rtx_debug_insn): Add forward declaration.
13170         (class rtx_nonjump_insn): Likewise.
13171         (class rtx_jump_insn): Likewise.
13172         (class rtx_call_insn): Likewise.
13173         (class rtx_jump_table_data): Likewise.
13174         (class rtx_barrier): Likewise.
13175         (class rtx_code_label): Likewise.
13176         (class rtx_note): Likewise.
13178         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
13179         adding the invariant DEBUG_INSN_P (X).
13180         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
13181         the invariant NONJUMP_INSN_P (X).
13182         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
13183         the invariant JUMP_P (X).
13184         (class rtx_call_insn): New, a subclass of rtx_insn, adding
13185         the invariant CALL_P (X).
13186         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
13187         invariant JUMP_TABLE_DATA_P (X).
13188         (class rtx_barrier): New, a subclass of rtx_insn, adding the
13189         invariant BARRIER_P (X).
13190         (class rtx_code_label): New, a subclass of rtx_insn, adding
13191         the invariant LABEL_P (X).
13192         (class rtx_note): New, a subclass of rtx_insn, adding
13193         the invariant NOTE_P(X).
13194         (is_a_helper <rtx_debug_insn *>::test): New.
13195         (is_a_helper <rtx_nonjump_insn *>::test): New.
13196         (is_a_helper <rtx_jump_insn *>::test): New.
13197         (is_a_helper <rtx_call_insn *>::test): New.
13198         (is_a_helper <rtx_jump_table_data *>::test): New functions,
13199         overloaded for both rtx and rtx_insn *.
13200         (is_a_helper <rtx_barrier *>::test): New.
13201         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
13202         for both rtx and rtx_insn *.
13203         (is_a_helper <rtx_note *>::test): New.
13205 2014-08-19  Marek Polacek  <polacek@redhat.com>
13207         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
13208         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
13209         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
13210         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
13212 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13214         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
13215         rtx_insn *.  To help with transition, for now, convert from an
13216         access macro into a pair of functions: BND_TO, returning an
13217         rtx_insn *, and...
13218         (SET_BND_TO): New function, for use where BND_TO is used as an
13219         lvalue.
13221         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
13222         SET_BND_TO.
13223         (BND_TO): New function, adding a checked cast.
13224         (SET_BND_TO): New function.
13226         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
13227         SET_BND_TO.
13228         (compute_av_set_on_boundaries): Likewise.
13230 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13232         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
13233         destination if it is used in source.
13234         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
13235         (*popcount<mode>2_falsedep_1): Likewise.
13237 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13239         PR other/62168
13240         * configure.ac: Set install_gold_as_default to no first.
13241         * configure: Regenerated.
13243 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13245         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
13246         "note_list" field will eventually be an rtx_insn *.  To help with
13247         transition, for now, convert from an access macro into a pair of
13248         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
13249         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
13250         used as an lvalue.
13252         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
13253         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
13255         * sel-sched-ir.c (init_bb): Likewise.
13256         (sel_restore_notes): Likewise.
13257         (move_bb_info): Likewise.
13258         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
13259         (SET_BB_NOTE_LIST): New function.
13261 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13263         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
13264         field will eventually be an rtx_insn *.  To help with transition,
13265         for now, convert from an access macro into a pair of functions:
13266         VINSN_INSN_RTX, returning an rtx_insn *, and...
13267         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
13268         is used as an lvalue.
13270         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
13271         SET_VINSN_INSN_RTX where it's used as an lvalue.
13272         (VINSN_INSN_RTX): New function.
13273         (SET_VINSN_INSN_RTX): New function.
13275 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13277         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
13278         eventually be rtx_insn *, but to help with transition, for now,
13279         convert from an access macro into a pair of functions: DEP_PRO
13280         returning an rtx_insn * and...
13281         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
13282         lvalue, returning an rtx&.
13283         (DEP_CON): Analogous changes to DEP_PRO above.
13284         (SET_DEP_CON): Likewise.
13286         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
13287         an lvalue to SET_DEP_CON.
13288         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
13289         (sd_copy_back_deps): Likewise for DEP_CON.
13290         (DEP_PRO): New function, adding a checked cast for now.
13291         (DEP_CON): Likewise.
13292         (SET_DEP_PRO): New function.
13293         (SET_DEP_CON): Likewise.
13295 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
13297         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
13298         (extra_options): Add i386/cygwin.opt.
13299         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
13300         (CPP_SPEC): Accept -pthread.
13301         (LINK_SPEC): Ditto.
13302         (GOMP_SELF_SPECS): Update comment.
13303         * config/i386/cygwin.opt: New file for -pthread flag.
13305 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13307         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
13308         * df.h (DF_REF_INSN): Convert from a macro to a function, so
13309         that we can return an rtx_insn *.
13311 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
13313         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
13314         when building executables, not DLLs.  Add --large-address-aware
13315         under the same conditions.
13316         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
13317         when building executables, not DLLs.  Add --large-address-aware
13318         under the same conditions when using -m32.
13320         * config/i386/cygwin-stdint.h: Throughout, make type
13321         definitions dependent on target architecture, not host.
13323 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13325         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
13326         the return type from rtx to rtx_insn *,  which will enable various
13327         conversions in followup patches.  For now this is is done by a
13328         checked cast.
13329         (NEXT_INSN): Likewise.
13330         (SET_PREV_INSN): Convert to an inline function.  This is intended
13331         for use as an lvalue, and so returns an rtx& to allow in-place
13332         modification.
13333         (SET_NEXT_INSN): Likewise.
13335 2014-07-08  Mark Wielaard  <mjw@redhat.com>
13337         PR debug/59051
13338         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
13340 2014-08-19  Marek Polacek  <polacek@redhat.com>
13342         PR c/61271
13343         * cgraphunit.c (handle_alias_pairs): Fix condition.
13345 2014-08-19  Richard Biener  <rguenther@suse.de>
13347         * gimple-fold.c (fold_gimple_assign): Properly build a
13348         null-pointer constant when devirtualizing addresses.
13350 2014-07-07  Mark Wielaard  <mjw@redhat.com>
13352         * dwarf2out.c (decl_quals): New function.
13353         (modified_type_die): Take one cv_quals argument instead of two,
13354         one for const and one for volatile.
13355         (add_type_attribute): Likewise.
13356         (generic_parameter_die): Call add_type_attribute with one modifier
13357         argument.
13358         (base_type_for_mode): Likewise.
13359         (add_bounds_info): Likewise.
13360         (add_subscript_info): Likewise.
13361         (gen_array_type_die): Likewise.
13362         (gen_descr_array_type_die): Likewise.
13363         (gen_entry_point_die): Likewise.
13364         (gen_enumeration_type_die): Likewise.
13365         (gen_formal_parameter_die): Likewise.
13366         (gen_subprogram_die): Likewise.
13367         (gen_variable_die): Likewise.
13368         (gen_const_die): Likewise.
13369         (gen_field_die): Likewise.
13370         (gen_pointer_type_die): Likewise.
13371         (gen_reference_type_die): Likewise.
13372         (gen_ptr_to_mbr_type_die): Likewise.
13373         (gen_inheritance_die): Likewise.
13374         (gen_subroutine_type_die): Likewise.
13375         (gen_typedef_die): Likewise.
13376         (force_type_die): Likewise.
13378 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13380         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
13381         if unset.
13382         * configure: Regenerate.
13384 2014-08-19  Richard Biener  <rguenther@suse.de>
13386         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
13387         DECL_EXTERNALs in BLOCKs as non-references.
13388         * tree-streamer-out.c (streamer_write_chain): Likewise.
13390 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13391             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13392             Anna Tikhonova  <anna.tikhonova@intel.com>
13393             Ilya Tocar  <ilya.tocar@intel.com>
13394             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13395             Ilya Verbin  <ilya.verbin@intel.com>
13396             Kirill Yukhin  <kirill.yukhin@intel.com>
13397             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13399         * config/i386/sse.md
13400         (define_mode_iterator VI48_AVX512F): Delete.
13401         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
13402         (define_mode_iterator VI2_AVX512VL): Ditto.
13403         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
13404         Delete.
13405         (define_insn
13406         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
13407         New.
13408         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
13409         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
13410         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
13411         with VI48_AVX512F_AVX512VL): New.
13412         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
13413         with VI2_AVX512VL): Ditto.
13415 2014-08-19  Marek Polacek  <polacek@redhat.com>
13417         * doc/invoke.texi: Document -Wc99-c11-compat.
13419 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13421         * rtl.h (PREV_INSN): Split macro in two: the existing one,
13422         for rvalues, and...
13423         (SET_PREV_INSN): New macro, for use as an lvalue.
13424         (NEXT_INSN, SET_NEXT_INSN): Likewise.
13426         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
13427         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
13428         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
13429         (fixup_abnormal_edges): Likewise.
13430         (unlink_insn_chain): Likewise.
13431         (fixup_reorder_chain): Likewise.
13432         (cfg_layout_delete_block): Likewise.
13433         (cfg_layout_merge_blocks): Likewise.
13434         * combine.c (update_cfg_for_uncondjump): Likewise.
13435         * emit-rtl.c (link_insn_into_chain): Likewise.
13436         (remove_insn): Likewise.
13437         (delete_insns_since): Likewise.
13438         (reorder_insns_nobb): Likewise.
13439         (emit_insn_after_1): Likewise.
13440         * final.c (rest_of_clean_state): Likewise.
13441         (final_scan_insn): Likewise.
13442         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
13443         * haifa-sched.c (concat_note_lists): Likewise.
13444         (remove_notes): Likewise.
13445         (restore_other_notes): Likewise.
13446         (move_insn): Likewise.
13447         (unlink_bb_notes): Likewise.
13448         (restore_bb_notes): Likewise.
13449         * jump.c (delete_for_peephole): Likewise.
13450         * optabs.c (emit_libcall_block_1): Likewise.
13451         * reorg.c (emit_delay_sequence): Likewise.
13452         (fill_simple_delay_slots): Likewise.
13453         * sel-sched-ir.c (sel_move_insn): Likewise.
13454         (sel_remove_insn): Likewise.
13455         (get_bb_note_from_pool): Likewise.
13456         * sel-sched.c (move_nop_to_previous_block): Likewise.
13458         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
13459         * config/c6x/c6x.c (gen_one_bundle): Likewise.
13460         (c6x_gen_bundles): Likewise.
13461         (hwloop_optimize): Likewise.
13462         * config/frv/frv.c (frv_function_prologue): Likewise.
13463         (frv_register_nop): Likewise.
13464         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
13465         (ia64_reorg): Likewise.
13466         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
13467         (mep_make_bundle): Likewise.
13468         (mep_bundle_insns): Likewise.
13469         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
13470         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
13471         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
13473 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
13475         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
13476         return type from rtx to rtx_insn *.
13477         (BB_END): Likewise.
13478         (BB_HEADER): Likewise.
13479         (BB_FOOTER): Likewise.
13480         (SET_BB_HEAD): Convert to a function.
13481         (SET_BB_END): Likewise.
13482         (SET_BB_HEADER): Likewise.
13483         (SET_BB_FOOTER): Likewise.
13485         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
13486         Strengthen the return type from rtx to rtx_insn *.  For now, this
13487         is done by adding a checked cast, but this will eventually
13488         become a field lookup.
13489         (BB_END): Likewise.
13490         (BB_HEADER): Likewise.
13491         (BB_FOOTER): Likewise.
13492         (SET_BB_HEAD): New function, from macro of same name.  This is
13493         intended for use as an lvalue, and so returns an rtx& to allow
13494         in-place modification.
13495         (SET_BB_END): Likewise.
13496         (SET_BB_HEADER): Likewise.
13497         (SET_BB_FOOTER): Likewise.
13499 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
13501         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
13502         for rvalues, and...
13503         (SET_BB_HEAD): New macro, for use as a lvalue.
13504         (BB_END, SET_BB_END): Likewise.
13505         (BB_HEADER, SET_BB_HEADER): Likewise.
13506         (BB_FOOTER, SET_BB_FOOTER): Likewise.
13508         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
13509         of BB_* macros into SET_BB_* macros.
13510         (fix_crossing_unconditional_branches): Likewise.
13511         * caller-save.c (save_call_clobbered_regs): Likewise.
13512         (insert_one_insn): Likewise.
13513         * cfgbuild.c (find_bb_boundaries): Likewise.
13514         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
13515         (outgoing_edges_match): Likewise.
13516         (try_optimize_cfg): Likewise.
13517         * cfgexpand.c (expand_gimple_cond): Likewise.
13518         (expand_gimple_tailcall): Likewise.
13519         (expand_gimple_basic_block): Likewise.
13520         (construct_exit_block): Likewise.
13521         * cfgrtl.c (delete_insn): Likewise.
13522         (create_basic_block_structure): Likewise.
13523         (rtl_delete_block): Likewise.
13524         (rtl_split_block): Likewise.
13525         (emit_nop_for_unique_locus_between): Likewise.
13526         (rtl_merge_blocks): Likewise.
13527         (block_label): Likewise.
13528         (try_redirect_by_replacing_jump): Likewise.
13529         (emit_barrier_after_bb): Likewise.
13530         (fixup_abnormal_edges): Likewise.
13531         (record_effective_endpoints): Likewise.
13532         (relink_block_chain): Likewise.
13533         (fixup_reorder_chain): Likewise.
13534         (fixup_fallthru_exit_predecessor): Likewise.
13535         (cfg_layout_duplicate_bb): Likewise.
13536         (cfg_layout_split_block): Likewise.
13537         (cfg_layout_delete_block): Likewise.
13538         (cfg_layout_merge_blocks): Likewise.
13539         * combine.c (update_cfg_for_uncondjump): Likewise.
13540         * emit-rtl.c (add_insn_after): Likewise.
13541         (remove_insn): Likewise.
13542         (reorder_insns): Likewise.
13543         (emit_insn_after_1): Likewise.
13544         * haifa-sched.c (get_ebb_head_tail): Likewise.
13545         (restore_other_notes): Likewise.
13546         (move_insn): Likewise.
13547         (sched_extend_bb): Likewise.
13548         (fix_jump_move): Likewise.
13549         * ifcvt.c (noce_process_if_block): Likewise.
13550         (dead_or_predicable): Likewise.
13551         * ira.c (update_equiv_regs): Likewise.
13552         * reg-stack.c (change_stack): Likewise.
13553         * sel-sched-ir.c (sel_move_insn): Likewise.
13554         * sel-sched.c (move_nop_to_previous_block): Likewise.
13556         * config/c6x/c6x.c (hwloop_optimize): Likewise.
13557         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
13559 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
13561         * rtl.h (for_each_rtx_in_insn): New function.
13562         * rtlanal.c (for_each_rtx_in_insn): Likewise.
13564 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
13566         * coretypes.h (class rtx_insn): Add forward declaration.
13568         * rtl.h: Include is-a.h.
13569         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
13570         workaround to ensure gengtype knows inheritance is occurring,
13571         whilst continuing to use the pre-existing special-casing for
13572         rtx_def.
13573         (class rtx_insn): New subclass of rtx_def, adding the
13574         invariant that we're dealing with something we can sanely use
13575         INSN_UID, NEXT_INSN, PREV_INSN on.
13576         (is_a_helper <rtx_insn *>::test): New.
13577         (is_a_helper <const rtx_insn *>::test): New.
13579 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
13581         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
13583 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
13585         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
13586         comdats as extern.
13588 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
13590         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
13591         to BUILT_IN_UNREACHABLE.
13593 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
13595         PR target/62011
13596         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
13597         New tune flag.
13598         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
13599         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
13600         (ffs<mode>2): Do not expand with tzcnt for
13601         TARGET_AVOID_FALSE_DEP_FOR_BMI.
13602         (ffssi2_no_cmove): Ditto.
13603         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
13604         (ctz<mode>2): New expander.
13605         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
13606         (*ctz<mode>2_falsedep): New insn.
13607         (*ctz<mode>2): Rename from ctz<mode>2.
13608         (clz<mode>2_lzcnt): New expander.
13609         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
13610         (*clz<mode>2_lzcnt_falsedep): New insn.
13611         (*clz<mode>2): Rename from ctz<mode>2.
13612         (popcount<mode>2): New expander.
13613         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
13614         (*popcount<mode>2_falsedep): New insn.
13615         (*popcount<mode>2): Rename from ctz<mode>2.
13616         (*popcount<mode>2_cmp): Remove.
13617         (*popcountsi2_cmp_zext): Ditto.
13619 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
13621         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
13622         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
13623         * config/microblaze/microblaze.h
13624         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
13626 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13628         PR other/62168
13629         * configure.ac: Set install_gold_as_default to no for
13630          --enable-gold=no.
13631          * configure: Regenerated.
13633 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
13635         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
13636         * config.in: Add undef of HAVE_isl.
13637         * configure: Regenerate.
13638         * configure.ac: Add definition of HAVE_isl.
13639         * graphite-blocking.c: Add checking of HAVE_isl.
13640         * graphite-dependences.c: Likewise.
13641         * graphite-interchange.c: Likewise.
13642         * graphite-isl-ast-to-gimple.c: Likewise.
13643         * graphite-optimize-isl.c: Likewise.
13644         * graphite-poly.c: Likewise.
13645         * graphite-scop-detection.c: Likewise.
13646         * graphite-sese-to-poly.c: Likewise.
13647         * graphite.c: Likewise.
13648         * toplev.c: Replace the checking of HAVE_cloog with the checking
13649         of HAVE_isl.
13651 2014-08-18  Richard Biener  <rguenther@suse.de>
13653         PR tree-optimization/62090
13654         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
13655         (fold_builtin_3): Do not fold snprintf.
13656         (fold_builtin_4): Likewise.
13657         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
13658         moved from builtins.c.
13659         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
13660         (gimple_fold_builtin): Do not fold sprintf here.
13662 2014-08-18  Richard Biener  <rguenther@suse.de>
13664         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
13665         code to ...
13666         (maybe_canonicalize_mem_ref_addr): ... this function.
13667         (fold_stmt_1): Apply it here before all simplification.
13669 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
13671         PR ipa/61800
13672         * cgraph.h (cgraph_node::create_indirect_edge): Add
13673         compute_indirect_info param.
13674         * cgraph.c (cgraph_node::create_indirect_edge): Compute
13675         indirect_info only when it is required.
13676         * cgraphclones.c (cgraph_clone_edge): Do not recompute
13677         indirect_info fore cloned indirect edge.
13679 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13680             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13681             Anna Tikhonova  <anna.tikhonova@intel.com>
13682             Ilya Tocar  <ilya.tocar@intel.com>
13683             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13684             Ilya Verbin  <ilya.verbin@intel.com>
13685             Kirill Yukhin  <kirill.yukhin@intel.com>
13686             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13688         * config/i386/sse.md
13689         (define_mode_iterator VI8_AVX2_AVX512BW): New.
13690         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
13692 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13693             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13694             Anna Tikhonova  <anna.tikhonova@intel.com>
13695             Ilya Tocar  <ilya.tocar@intel.com>
13696             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13697             Ilya Verbin  <ilya.verbin@intel.com>
13698             Kirill Yukhin  <kirill.yukhin@intel.com>
13699             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13701         * config/i386/sse.md
13702         (define_mode_iterator VF1_AVX512VL): New.
13703         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
13704         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
13705         New.
13707 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13708             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13709             Anna Tikhonova  <anna.tikhonova@intel.com>
13710             Ilya Tocar  <ilya.tocar@intel.com>
13711             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13712             Ilya Verbin  <ilya.verbin@intel.com>
13713             Kirill Yukhin  <kirill.yukhin@intel.com>
13714             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13716         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
13717         * config/i386/i386.md
13718         (define_code_iterator any_float): New.
13719         (define_code_attr floatsuffix): New.
13720         * config/i386/sse.md
13721         (define_mode_iterator VF1_128_256VL): New.
13722         (define_mode_iterator VF2_512_256VL): New.
13723         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
13724         TARGET check.
13725         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
13726         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
13727         New.
13728         (define_mode_attr qq2pssuff): New.
13729         (define_mode_attr sselongvecmode): New.
13730         (define_mode_attr sselongvecmodelower): New.
13731         (define_mode_attr sseintvecmode3): New.
13732         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
13733         New.
13734         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
13735         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
13736         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
13737         (define_insn "ufloatv2siv2df2<mask_name>"): New.
13739 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13740             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13741             Anna Tikhonova  <anna.tikhonova@intel.com>
13742             Ilya Tocar  <ilya.tocar@intel.com>
13743             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13744             Ilya Verbin  <ilya.verbin@intel.com>
13745             Kirill Yukhin  <kirill.yukhin@intel.com>
13746             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13748         * config/i386/sse.md
13749         (define_mode_iterator VF2_AVX512VL): New.
13750         (define_mode_attr sseintvecmode2): New.
13751         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
13752         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
13753         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
13754         (define_insn
13755         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
13756         Ditto.
13757         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
13758         Ditto.
13759         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
13760         Ditto.
13762 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13763             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13764             Anna Tikhonova  <anna.tikhonova@intel.com>
13765             Ilya Tocar  <ilya.tocar@intel.com>
13766             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13767             Ilya Verbin  <ilya.verbin@intel.com>
13768             Kirill Yukhin  <kirill.yukhin@intel.com>
13769             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13771         * config/i386/i386.md
13772         (define_insn "*movoi_internal_avx"): Add evex version.
13773         (define_insn "*movti_internal"): Ditto.
13775 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13776             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13777             Anna Tikhonova  <anna.tikhonova@intel.com>
13778             Ilya Tocar  <ilya.tocar@intel.com>
13779             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13780             Ilya Verbin  <ilya.verbin@intel.com>
13781             Kirill Yukhin  <kirill.yukhin@intel.com>
13782             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13784         * config/i386/i386.md
13785         (define_attr "isa"): Add avx512dq, noavx512dq.
13786         (define_attr "enabled"): Ditto.
13787         * config/i386/sse.md
13788         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
13790 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13791             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13792             Anna Tikhonova  <anna.tikhonova@intel.com>
13793             Ilya Tocar  <ilya.tocar@intel.com>
13794             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13795             Ilya Verbin  <ilya.verbin@intel.com>
13796             Kirill Yukhin  <kirill.yukhin@intel.com>
13797             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13799         * config/i386/i386.c
13800         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
13801         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
13802         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
13803         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
13804         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
13805         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
13806         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
13807         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
13808         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
13809         * config/i386/sse.md
13810         (define_mode_iterator VMOVE): Allow V4TI mode.
13811         (define_mode_iterator V_AVX512VL): New.
13812         (define_mode_iterator V): New handling for AVX512VL.
13813         (define_insn "avx512f_load<mode>_mask"): Delete.
13814         (define_insn "<avx512>_load<mode>_mask"): New.
13815         (define_insn "avx512f_store<mode>_mask"): Delete.
13816         (define_insn "<avx512>_store<mode>_mask"): New.
13819 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
13821         PR sanitizer/62089
13822         * asan.c (instrument_derefs): Fix bitfield check.
13824 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13826         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
13827         * config/rs6000/htm.md (ttest): Remove clobber.
13828         * config/rs6000/predicates.md (any_mask_operand): New predicate.
13829         (and_operand): Reformat.
13830         (and_2rld_operand): New predicate.
13831         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
13832         parameter.
13833         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
13834         parameter.  Handle AND directly.
13835         (rs6000_split_logical_di): Remove last parameter.
13836         (rs6000_split_logical): Remove last parameter.  Remove obsolete
13837         comment.
13838         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
13839         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
13840         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
13841         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
13842         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
13843         and 5 anonymous splitters):  Delete.
13844         (and<mode>3): New expander.
13845         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
13846         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
13847         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
13848         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
13849         (floatdisf2_internal1): Remove clobbers.
13850         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
13851         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
13852         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
13853         (and<mode>3 for BOOL_128): Remove clobber.
13854         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
13855         rs6000_split_logical.
13856         (*bool<mode>3_internal for BOOL_128): Adjust call of
13857         rs6000_split_logical.
13858         (*boolc<mode>3_internal1 for BOOL_128,
13859         *boolc<mode>3_internal2 for BOOL_128,
13860         *boolcc<mode>3_internal1 for BOOL_128,
13861         *boolcc<mode>3_internal2 for BOOL_128,
13862         *eqv<mode>3_internal1 for BOOL_128,
13863         *eqv<mode>3_internal2 for BOOL_128,
13864         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
13865         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
13866         clobber.
13867         (*vec_reload_and_reg_<mptrsize>): Delete.
13869 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13871         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
13872         and split, *boolccsi3_internal3 and split): Delete.
13873         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
13874         *boolccdi3_internal3 and split): Delete.
13875         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
13876         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
13878 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13880         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
13881         and split, *boolcsi3_internal3 and split): Delete.
13882         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
13883         *boolcdi3_internal3 and split): Delete.
13884         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
13886 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
13888         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
13889         <'u'>: Also support printing the low-order 16 bits.
13890         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
13891         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
13892         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
13893         *booldi3_internal3 and split): Delete.
13894         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
13895         *bool<mode>3_dot2): New.
13896         (two anonymous define_splits for non_logical_cint_operand): Merge.
13898 2014-08-17  Marek Polacek  <polacek@redhat.com>
13899             Manuel López-Ibáñez  <manu@gcc.gnu.org>
13901         PR c/62059
13902         * diagnostic.c (adjust_line): Add gcc_checking_assert.
13903         (diagnostic_show_locus): Don't print caret diagnostic
13904         if a column is larger than the line_width.
13906 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
13908         * common.opt: Make the ISL AST generator to be the main code generator
13909         of Graphite.
13911 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
13913         * wide-int.h (generic_wide_int): Declare as class instead of struct.
13915 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
13917         PR target/61641
13918         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
13919         Declare.
13920         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
13921         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
13922         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
13923         Define.
13924         * config/pa/pa.md (begin_brtab): Delete insn.
13925         (end_brtab): Likewise.
13927 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13929         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
13931 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
13933         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
13934         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
13935         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
13936         (get_dynamic_type): Remove.
13937         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
13938         (clear_speculation): Bring to ipa-deivrt.h
13939         (get_class_context): Rename to ...
13940         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
13941         (contains_type_p): Update.
13942         (get_dynamic_type): Rename to ...
13943         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
13944         (possible_polymorphic_call_targets): UPdate.
13945         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
13946         * ipa-prop.c (ipa_analyze_call_uses): Update.
13948 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
13950         * doc/invoke.texi (SH options): Document missing processor variant
13951         options.  Remove references to Hitachi.  Undocument deprecated mspace
13952         option.
13954 2014-08-15  Jason Merrill  <jason@redhat.com>
13956         * tree.c (type_hash_canon): Uncomment assert.
13958 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13960         * input.h (in_system_header_at): Add comment.
13962 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13964         PR fortran/44054
13965         * diagnostic.c (build_message_string): Make it extern.
13966         * diagnostic.h (build_message_string): Make it extern.
13968 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
13970         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
13971         load/store from/to non-floating class pseudo.
13973 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13975         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
13977 2014-08-15  Richard Biener  <rguenther@suse.de>
13979         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
13980         (get_constraint_for_ssa_var): Remove dead code.
13981         (get_constraint_for_1): Adjust.
13982         (find_what_var_points_to): Likewise.
13983         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
13985 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
13987         PR target/61878
13988         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
13989         (_mm512_mask_cmpge_epu32_mask): Ditto.
13990         (_mm512_cmpge_epu32_mask): Ditto.
13991         (_mm512_mask_cmpge_epi64_mask): Ditto.
13992         (_mm512_cmpge_epi64_mask): Ditto.
13993         (_mm512_mask_cmpge_epu64_mask): Ditto.
13994         (_mm512_cmpge_epu64_mask): Ditto.
13995         (_mm512_mask_cmple_epi32_mask): Ditto.
13996         (_mm512_cmple_epi32_mask): Ditto.
13997         (_mm512_mask_cmple_epu32_mask): Ditto.
13998         (_mm512_cmple_epu32_mask): Ditto.
13999         (_mm512_mask_cmple_epi64_mask): Ditto.
14000         (_mm512_cmple_epi64_mask): Ditto.
14001         (_mm512_mask_cmple_epu64_mask): Ditto.
14002         (_mm512_cmple_epu64_mask): Ditto.
14003         (_mm512_mask_cmplt_epi32_mask): Ditto.
14004         (_mm512_cmplt_epi32_mask): Ditto.
14005         (_mm512_mask_cmplt_epu32_mask): Ditto.
14006         (_mm512_cmplt_epu32_mask): Ditto.
14007         (_mm512_mask_cmplt_epi64_mask): Ditto.
14008         (_mm512_cmplt_epi64_mask): Ditto.
14009         (_mm512_mask_cmplt_epu64_mask): Ditto.
14010         (_mm512_cmplt_epu64_mask): Ditto.
14011         (_mm512_mask_cmpneq_epi32_mask): Ditto.
14012         (_mm512_mask_cmpneq_epu32_mask): Ditto.
14013         (_mm512_cmpneq_epu32_mask): Ditto.
14014         (_mm512_mask_cmpneq_epi64_mask): Ditto.
14015         (_mm512_cmpneq_epi64_mask): Ditto.
14016         (_mm512_mask_cmpneq_epu64_mask): Ditto.
14017         (_mm512_cmpneq_epu64_mask): Ditto.
14018         (_mm512_castpd_ps): Ditto.
14019         (_mm512_castpd_si512): Ditto.
14020         (_mm512_castps_pd): Ditto.
14021         (_mm512_castps_si512): Ditto.
14022         (_mm512_castsi512_ps): Ditto.
14023         (_mm512_castsi512_pd): Ditto.
14024         (_mm512_castpd512_pd128): Ditto.
14025         (_mm512_castps512_ps128): Ditto.
14026         (_mm512_castsi512_si128): Ditto.
14027         (_mm512_castpd512_pd256): Ditto.
14028         (_mm512_castps512_ps256): Ditto.
14029         (_mm512_castsi512_si256): Ditto.
14030         (_mm512_castpd128_pd512): Ditto.
14031         (_mm512_castps128_ps512): Ditto.
14032         (_mm512_castsi128_si512): Ditto.
14033         (_mm512_castpd256_pd512): Ditto.
14034         (_mm512_castps256_ps512): Ditto.
14035         (_mm512_castsi256_si512): Ditto.
14036         (_mm512_cmpeq_epu32_mask): Ditto.
14037         (_mm512_mask_cmpeq_epu32_mask): Ditto.
14038         (_mm512_mask_cmpeq_epu64_mask): Ditto.
14039         (_mm512_cmpeq_epu64_mask): Ditto.
14040         (_mm512_cmpgt_epu32_mask): Ditto.
14041         (_mm512_mask_cmpgt_epu32_mask): Ditto.
14042         (_mm512_mask_cmpgt_epu64_mask): Ditto.
14043         (_mm512_cmpgt_epu64_mask): Ditto.
14044         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
14045         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
14046         * config/i386/i386.c (enum ix86_builtins): Add
14047         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
14048         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
14049         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
14050         (bdesc_args): Add __builtin_ia32_si512_256si,
14051         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
14052         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
14053         __builtin_ia32_pd512_pd.
14054         (ix86_expand_args_builtin): Handle new FTYPEs.
14055         * config/i386/sse.md (castmode): Add 512-bit modes.
14056         (AVX512MODE2P): New.
14057         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
14058         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
14060 2014-08-15  Richard Biener  <rguenther@suse.de>
14062         * fold-const.c (tree_swap_operands_p): Put all constants
14063         last, also strip sign-changing NOPs when considering further
14064         canonicalization.  Canonicalize also when optimizing for size.
14066 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14068         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
14069         one_match > zero_match case to just before simple_sequence.
14071 2014-08-15  Richard Biener  <rguenther@suse.de>
14073         * data-streamer.h (streamer_string_index, string_for_index):
14074         Remove.
14075         * data-streamer-out.c (streamer_string_index): Make static.
14076         * data-streamer-in.c (string_for_index): Likewise.
14077         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
14078         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
14080 2014-08-15  Richard Biener  <rguenther@suse.de>
14082         PR tree-optimization/62031
14083         * tree-data-ref.c (dr_analyze_indices): Do not set
14084         DR_UNCONSTRAINED_BASE.
14085         (dr_may_alias_p): All indirect accesses have to go the
14086         formerly DR_UNCONSTRAINED_BASE path.
14087         * tree-data-ref.h (struct indices): Remove
14088         unconstrained_base member.
14089         (DR_UNCONSTRAINED_BASE): Remove.
14091 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
14093         PR middle-end/62092
14094         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
14095         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
14096         in OMP_CLAUSE_MAP in some outer target region.
14098 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
14100         * tree-ssa-loop-ivopts.c (ivopts_data): New field
14101         name_expansion_cache.
14102         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
14103         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
14104         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
14105         (difference_cannot_overflow_p): New parameter.  Use affine
14106         expansion for equality check.
14107         (iv_elimination_compare_lt): Pass new argument.
14109 2014-08-14  DJ Delorie  <dj@redhat.com>
14111         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
14112         variables to the accumulator.
14114         * config/rl78/predicates.md (rl78_near_mem_operand): New.
14115         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
14116         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
14117         with far-far moves.
14119         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
14120         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
14121         (umulqihi3_virt): Likewise.
14122         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
14123         (umulqihi3_real): Likewise.
14125         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
14127 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
14129         PR tree-optimization/62091
14130         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
14131         function_entry_reached.
14132         (walk_aliased_vdefs): Clear it here.
14133         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
14135 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
14137         * ipa-utils.h (compare_virtual_tables): Declare.
14138         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
14140 2014-08-14  Marek Polacek  <polacek@redhat.com>
14142         DR 458
14143         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
14144         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
14146 2014-08-14  Tom de Vries  <tom@codesourcery.com>
14148         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
14150 2014-08-14  Tom de Vries  <tom@codesourcery.com>
14152         PR rtl-optimization/62004
14153         PR rtl-optimization/62030
14154         * ifcvt.c (rtx_interchangeable_p): New function.
14155         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
14156         * emit-rtl.h (mem_attrs_eq_p): Declare.
14158 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
14160         * graphite-scop-detection.c:
14161         Add inclusion of cp-tree.h.
14162         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
14163         in case they are pointers to object types
14165 2014-08-14  Richard Biener  <rguenther@suse.de>
14167         * BASE-VER: Change to 5.0.0
14169 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14170             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14171             Anna Tikhonova  <anna.tikhonova@intel.com>
14172             Ilya Tocar  <ilya.tocar@intel.com>
14173             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14174             Ilya Verbin  <ilya.verbin@intel.com>
14175             Kirill Yukhin  <kirill.yukhin@intel.com>
14176             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14178         * config/i386/sse.md (define_mode_attr avx512): New.
14179         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
14180         V4DI modes.
14181         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
14182         (define_mode_attr ssse3_avx2): Ditto.
14183         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
14184         (define_mode_attr avx2_avx512bw): New.
14185         (define_mode_attr ssedoublemodelower): New.
14186         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
14187         V32HI, V64QI modes.
14188         (define_mode_attr ssebytemode): Allow V8DI modes.
14189         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
14190         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
14191         (define_mode_attr ssePSmode2): New.
14192         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
14193         V16HI, V32HI modes.
14194         (define_mode_attr dbpsadbwmode): New.
14195         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
14196         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
14197         (vi8_sse4_1_avx2_avx512): New.
14198         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
14199         mode attribute.
14200         (define_mode_attr blendbits): Move before its immediate use.
14202 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14203             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14204             Anna Tikhonova  <anna.tikhonova@intel.com>
14205             Ilya Tocar  <ilya.tocar@intel.com>
14206             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14207             Ilya Verbin  <ilya.verbin@intel.com>
14208             Kirill Yukhin  <kirill.yukhin@intel.com>
14209             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14211         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
14212         * config/i386/subst.md
14213         (define_mode_iterator SUBST_V): Update.
14214         (define_mode_iterator SUBST_A): Ditto.
14215         (define_subst_attr "mask_operand7"): New.
14216         (define_subst_attr "mask_operand10"): New.
14217         (define_subst_attr "mask_operand_arg34") : New.
14218         (define_subst_attr "mask_expand_op3"): New.
14219         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
14220         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
14221         (define_subst_attr "mask_avx512vl_condition"): New.
14222         (define_subst_attr "round_mask_operand4"): Ditto.
14223         (define_subst_attr "round_mask_scalar_op3"): Delete.
14224         (define_subst_attr "round_mask_op4"): New.
14225         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
14226         V16SImode.
14227         (define_subst_attr "round_modev8sf_condition"): New.
14228         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
14229         <MODE>mode.
14230         (define_subst_attr "round_saeonly_mask_operand4"): New.
14231         (define_subst_attr "round_saeonly_mask_op4"): New.
14232         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
14233         V8DImode, V16SImode.
14234         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
14235         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
14236         (define_subst_attr "mask_expand4_args"): New.
14237         (define_subst "mask_expand4"): New.
14239 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14240             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14241             Anna Tikhonova  <anna.tikhonova@intel.com>
14242             Ilya Tocar  <ilya.tocar@intel.com>
14243             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14244             Ilya Verbin  <ilya.verbin@intel.com>
14245             Kirill Yukhin  <kirill.yukhin@intel.com>
14246             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14248         * config/i386/i386.md
14249         (define_attr "isa"): Add avx512bw,noavx512bw.
14250         (define_attr "enabled"): Ditto.
14251         (define_split): Add 32/64-bit mask logic.
14252         (define_insn "*k<logic>qi"): New.
14253         (define_insn "*k<logic>hi"): New.
14254         (define_insn "*anddi_1"): Add mask version.
14255         (define_insn "*andsi_1"): Ditto.
14256         (define_insn "*<code><mode>_1"): Ditto.
14257         (define_insn "*<code>hi_1"): Ditto.
14258         (define_insn "kxnor<mode>"): New.
14259         (define_insn "kunpcksi"): New.
14260         (define_insn "kunpckdi"): New.
14261         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
14262         (define_insn "*one_cmplhi2_1"): Ditto.
14264 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14265             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14266             Anna Tikhonova  <anna.tikhonova@intel.com>
14267             Ilya Tocar  <ilya.tocar@intel.com>
14268             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14269             Ilya Verbin  <ilya.verbin@intel.com>
14270             Kirill Yukhin  <kirill.yukhin@intel.com>
14271             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14273         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
14274         V32HImode.
14276 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14277             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14278             Anna Tikhonova  <anna.tikhonova@intel.com>
14279             Ilya Tocar  <ilya.tocar@intel.com>
14280             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14281             Ilya Verbin  <ilya.verbin@intel.com>
14282             Kirill Yukhin  <kirill.yukhin@intel.com>
14283             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14285         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
14286         registers.
14287         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
14288         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
14289         xmm/ymm16+ when availble.
14290         * config/i386/i386.h
14291         (HARD_REGNO_NREGS): Add mask regs.
14292         (VALID_AVX512F_REG_MODE): Ditto.
14293         (VALID_AVX512F_REG_MODE) : Define.
14294         (VALID_MASK_AVX512BW_MODE): Ditto.
14295         (reg_class) (MASK_REG_P(X)): Define.
14296         * config/i386/i386.md: Do not split long moves with mask register,
14297         use kmovb if avx512bw is availible.
14298         (movdi_internal): Handle mask registers.
14300 2014-08-14  Richard Biener  <rguenther@suse.de>
14302         PR tree-optimization/62081
14303         * tree-ssa-loop.c (pass_fix_loops): New pass.
14304         (pass_tree_loop::gate):  Do not fixup loops here.
14305         * tree-pass.h (make_pass_fix_loops): Declare.
14306         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
14308 2014-08-14  Richard Biener  <rguenther@suse.de>
14310         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
14311         (type_hash_canon): ... this and avoid 2nd lookup for the add.
14313 2014-08-14  Richard Biener  <rguenther@suse.de>
14315         PR tree-optimization/62090
14316         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
14317         (fold_builtin_2): Do not fold sprintf.
14318         (fold_builtin_3): Likewise.
14319         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
14320         moved from builtins.c.
14321         (gimple_fold_builtin): Fold sprintf.
14323 2014-08-14  Richard Biener  <rguenther@suse.de>
14325         PR rtl-optimization/62079
14326         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
14327         run cleanup_cfg.
14329 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
14331         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
14332         current_function_decl.
14334 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
14336         * cgraph.c (cgraph_node::function_symbol): Fix wrong
14337         cgraph_function_node to cgraph_node::function_symbol
14338         refactoring.
14340 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
14342         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
14343         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
14345 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
14347         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
14348         warning.
14350 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
14352         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
14353         generator.
14355 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
14357         PR target/62025
14358         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
14359         any registers that are used in mem_insn.
14361 2014-08-12  Steve Ellcey  <sellcey@mips.com>
14363         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
14365 2014-08-12  Steve Ellcey  <sellcey@mips.com>
14367         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
14368         (MULTILIB_DIRNAMES): Ditto.
14369         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
14370         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
14371         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
14372         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
14373         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
14374         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
14376 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14378         PR target/61413
14379         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
14380         of __ARM_SIZEOF_WCHAR_T.
14382 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14384         PR target/62098
14385         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
14386         Remove unnecessary attributes.
14388 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
14390         * internal-fn.c (init_internal_fns): Fix off-by-one.
14392 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14393             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14394             Anna Tikhonova  <anna.tikhonova@intel.com>
14395             Ilya Tocar  <ilya.tocar@intel.com>
14396             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14397             Ilya Verbin  <ilya.verbin@intel.com>
14398             Kirill Yukhin  <kirill.yukhin@intel.com>
14399             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14401         * config/i386/i386.c (standard_sse_constant_opcode): Use
14402         vpxord/vpternlog if avx512 is availible.
14404 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14406         PR middle-end/62103
14407         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
14408         bitfields, that is when size doesn't match the size of type or the
14409         size of the constructor.
14411 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
14413         * config/rs6000/constraints.md (wh constraint): New constraint,
14414         for FP registers if direct move is available.
14415         (wi constraint): New constraint, for VSX/FP registers that can
14416         handle 64-bit integers.
14417         (wj constraint): New constraint for VSX/FP registers that can
14418         handle 64-bit integers for direct moves.
14419         (wk constraint): New constraint for VSX/FP registers that can
14420         handle 64-bit doubles for direct moves.
14421         (wy constraint): Make documentation match implementation.
14423         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
14424         scalar_in_vmx_p field to simplify tests of whether SFmode or
14425         DFmode can go in the Altivec registers.
14426         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
14427         (rs6000_setup_reg_addr_masks): Likewise.
14428         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
14429         field, and wh/wi/wj/wk constraints.
14430         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
14431         the wh/wi/wj/wk constraints.
14432         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
14433         upper registers, prefer VSX registers unless the operation is a
14434         memory operation with REG+OFFSET addressing.
14436         * config/rs6000/vsx.md (VSr mode attribute): Add support for
14437         DImode.  Change SFmode to use ww constraint instead of d to allow
14438         SF registers in the upper registers.
14439         (VSr2): Likewise.
14440         (VSr3): Likewise.
14441         (VSr5): Fix thinko in comment.
14442         (VSa): New mode attribute that is an alternative to wa, that
14443         returns the VSX register class that a mode can go in, but may not
14444         be the preferred register class.
14445         (VS_64dm): New mode attribute for appropriate register classes for
14446         referencing 64-bit elements of vectors for direct moves and normal
14447         moves.
14448         (VS_64reg): Likewise.
14449         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
14450         register allocator to only registers the data type can handle.
14451         (vsx_le_perm_load_<mode>): Likewise.
14452         (vsx_le_perm_store_<mode>): Likewise.
14453         (vsx_xxpermdi2_le_<mode>): Likewise.
14454         (vsx_xxpermdi4_le_<mode>): Likewise.
14455         (vsx_lxvd2x2_le_<mode>): Likewise.
14456         (vsx_lxvd2x4_le_<mode>): Likewise.
14457         (vsx_stxvd2x2_le_<mode>): Likewise.
14458         (vsx_add<mode>3): Likewise.
14459         (vsx_sub<mode>3): Likewise.
14460         (vsx_mul<mode>3): Likewise.
14461         (vsx_div<mode>3): Likewise.
14462         (vsx_tdiv<mode>3_internal): Likewise.
14463         (vsx_fre<mode>2): Likewise.
14464         (vsx_neg<mode>2): Likewise.
14465         (vsx_abs<mode>2): Likewise.
14466         (vsx_nabs<mode>2): Likewise.
14467         (vsx_smax<mode>3): Likewise.
14468         (vsx_smin<mode>3): Likewise.
14469         (vsx_sqrt<mode>2): Likewise.
14470         (vsx_rsqrte<mode>2): Likewise.
14471         (vsx_tsqrt<mode>2_internal): Likewise.
14472         (vsx_fms<mode>4): Likewise.
14473         (vsx_nfma<mode>4): Likewise.
14474         (vsx_eq<mode>): Likewise.
14475         (vsx_gt<mode>): Likewise.
14476         (vsx_ge<mode>): Likewise.
14477         (vsx_eq<mode>_p): Likewise.
14478         (vsx_gt<mode>_p): Likewise.
14479         (vsx_ge<mode>_p): Likewise.
14480         (vsx_xxsel<mode>): Likewise.
14481         (vsx_xxsel<mode>_uns): Likewise.
14482         (vsx_copysign<mode>3): Likewise.
14483         (vsx_float<VSi><mode>2): Likewise.
14484         (vsx_floatuns<VSi><mode>2): Likewise.
14485         (vsx_fix_trunc<mode><VSi>2): Likewise.
14486         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
14487         (vsx_x<VSv>r<VSs>i): Likewise.
14488         (vsx_x<VSv>r<VSs>ic): Likewise.
14489         (vsx_btrunc<mode>2): Likewise.
14490         (vsx_b2trunc<mode>2): Likewise.
14491         (vsx_floor<mode>2): Likewise.
14492         (vsx_ceil<mode>2): Likewise.
14493         (vsx_<VS_spdp_insn>): Likewise.
14494         (vsx_xscvspdp): Likewise.
14495         (vsx_xvcvspuxds): Likewise.
14496         (vsx_float_fix_<mode>2): Likewise.
14497         (vsx_set_<mode>): Likewise.
14498         (vsx_extract_<mode>_internal1): Likewise.
14499         (vsx_extract_<mode>_internal2): Likewise.
14500         (vsx_extract_<mode>_load): Likewise.
14501         (vsx_extract_<mode>_store): Likewise.
14502         (vsx_splat_<mode>): Likewise.
14503         (vsx_xxspltw_<mode>): Likewise.
14504         (vsx_xxspltw_<mode>_direct): Likewise.
14505         (vsx_xxmrghw_<mode>): Likewise.
14506         (vsx_xxmrglw_<mode>): Likewise.
14507         (vsx_xxsldwi_<mode>): Likewise.
14508         (vsx_xscvdpspn): Tighten constraints to only use register classes
14509         the types use.
14510         (vsx_xscvspdpn): Likewise.
14511         (vsx_xscvdpspn_scalar): Likewise.
14513         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
14514         wj, and wk constraints.
14515         (GPR_REG_CLASS_P): New helper macro for register classes targeting
14516         general purpose registers.
14518         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
14519         direct moves.
14520         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
14521         DImode instead of wm.  Use wk constraint for direct move of DFmode
14522         instead of wm.
14523         (extendsidi2_lfiwax): Likewise.
14524         (lfiwax): Likewise.
14525         (lfiwzx): Likewise.
14526         (movdi_internal64): Likewise.
14528         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
14529         wk constraints. Make the wy constraint documentation match them
14530         implementation.
14532 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
14534         Replacement of isl_int by isl_val
14535         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
14536         (compute_bounds_for_param): use isl_val instead of isl_int
14537         (compute_bounds_for_loop): likewise
14538         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
14539         (build_linearized_memory_access): use isl_val instead of isl_int
14540         (pdr_stride_in_loop): likewise
14541         * graphite-optimize-isl.c:
14542         (getPrevectorMap): use isl_val instead of isl_int
14543         * graphite-poly.c:
14544         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
14545         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
14546         (extern the_isl_ctx): declare
14547         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
14548         (extract_affine_gmp): likewise
14549         (wrap): likewise
14550         (build_loop_iteration_domains): likewise
14551         (add_param_constraints): likewise
14553 2014-08-11  Richard Biener  <rguenther@suse.de>
14555         PR tree-optimization/62075
14556         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
14557         handle uses in patterns.
14559 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14560             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14561             Anna Tikhonova  <anna.tikhonova@intel.com>
14562             Ilya Tocar  <ilya.tocar@intel.com>
14563             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14564             Ilya Verbin  <ilya.verbin@intel.com>
14565             Kirill Yukhin  <kirill.yukhin@intel.com>
14566             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14568         * common/config/i386/i386-common.c
14569         (OPTION_MASK_ISA_AVX512VL_SET): Define.
14570         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
14571         (ix86_handle_option): Handle OPT_mavx512vl.
14572         * config/i386/cpuid.h (bit_AVX512VL): Define.
14573         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
14574         set -mavx512vl accordingly.
14575         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14576         OPTION_MASK_ISA_AVX512VL.
14577         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
14578         (ix86_option_override_internal): Define PTA_AVX512VL, handle
14579         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
14580         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
14581         * config/i386/i386.h (TARGET_AVX512VL): Define.
14582         (TARGET_AVX512VL_P(x)): Ditto.
14583         * config/i386/i386.opt: Add mavx512vl.
14585 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
14587         PR tree-optimization/62073
14588         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
14589         a basic block.
14591 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14592             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14593             Anna Tikhonova  <anna.tikhonova@intel.com>
14594             Ilya Tocar  <ilya.tocar@intel.com>
14595             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14596             Ilya Verbin  <ilya.verbin@intel.com>
14597             Kirill Yukhin  <kirill.yukhin@intel.com>
14598             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14600         * common/config/i386/i386-common.c
14601         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
14602         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
14603         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
14604         (ix86_handle_option): Handle OPT_mavx512bw.
14605         * config/i386/cpuid.h (bit_AVX512BW): Define.
14606         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
14607         set -mavx512bw accordingly.
14608         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14609         OPTION_MASK_ISA_AVX512BW.
14610         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
14611         (ix86_option_override_internal): Define PTA_AVX512BW, handle
14612         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
14613         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
14614         * config/i386/i386.h (TARGET_AVX512BW): Define.
14615         (TARGET_AVX512BW_P(x)): Ditto.
14616         * config/i386/i386.opt: Add mavx512bw.
14618 2014-08-11  Richard Biener  <rguenther@suse.de>
14620         PR tree-optimization/62070
14621         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
14622         Remove SSA checking.
14624 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
14626         * asan.c (asan_check_flags): New enum.
14627         (build_check_stmt_with_calls): Removed function.
14628         (build_check_stmt): Split inlining logic to
14629         asan_expand_check_ifn.
14630         (instrument_derefs): Rename parameter.
14631         (instrument_mem_region_access): Rename parameter.
14632         (instrument_strlen_call): Likewise.
14633         (asan_expand_check_ifn): New function.
14634         (asan_instrument): Remove old code.
14635         (pass_sanopt::execute): Change handling of
14636         asan-instrumentation-with-call-threshold.
14637         (asan_clear_shadow): Fix formatting.
14638         (asan_function_start): Likewise.
14639         (asan_emit_stack_protection): Likewise.
14640         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
14641         Update description.
14642         * internal-fn.c (expand_ASAN_CHECK): New function.
14643         * internal-fn.def (ASAN_CHECK): New internal function.
14644         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
14645         Update description.
14646         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
14647         * tree.c: Small comment fix.
14649 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
14651         * gimple.c (gimple_call_fnspec): Support internal functions.
14652         (gimple_call_return_flags): Use const.
14653         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
14654         * internal-fn.def: Add fnspec information.
14655         * internal-fn.h (internal_fn_fnspec): New function.
14656         (init_internal_fns): Declare new function.
14657         * internal-fn.c (internal_fn_fnspec_array): New global variable.
14658         (init_internal_fns): New function.
14659         * tree-core.h: Update macro call.
14660         * tree.c (build_common_builtin_nodes): Initialize internal fns.
14662 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
14664         * lto-streamer.h (struct output_block::symbol): Change from
14665         struct symtab_node to plain symtab_node.
14666         (referenced_from_this_partition_p): Change first parameter
14667         from struct symtab_node to plain symtab_node.
14669 2014-08-10  Marek Polacek  <polacek@redhat.com>
14671         PR c/51849
14672         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
14674 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
14676         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
14677         DECL correctly; do not give up on types in static storage.
14679 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
14681         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
14683 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
14685         * graphite-isl-ast-to-gimple.c:
14686         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
14688         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
14690 2014-08-08  Guozhi Wei  <carrot@google.com>
14692         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
14694 2014-08-08  Cary Coutant  <ccoutant@google.com>
14696         * dwarf2out.c (get_skeleton_type_unit): Remove.
14697         (output_skeleton_debug_sections): Remove skeleton type units.
14698         (output_comdat_type_unit): Likewise.
14699         (dwarf2out_finish): Likewise.
14701 2014-08-07  Yi Yang  <ahyangyi@google.com>
14703         * predict.c (expr_expected_value_1): Remove the redundant assignment.
14705 2014-08-08  Richard Biener  <rguenther@suse.de>
14707         * lto-streamer.h (struct lto_input_block): Make it a class
14708         with a constructor.
14709         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
14710         (struct lto_function_header, struct lto_simple_header,
14711         struct lto_simple_header_with_strings,
14712         struct lto_decl_header, struct lto_function_header): Make
14713         a simple inheritance hieararchy.  Remove unused fields.
14714         (struct lto_asm_header): Remove.
14715         * lto-streamer-out.c (produce_asm): Adjust.
14716         (lto_output_toplevel_asms): Likewise.
14717         (produce_asm_for_decls): Likewise.
14718         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
14719         * data-streamer-in.c (string_for_index): Likewise.
14720         * ipa-inline-analysis.c (inline_read_section): Likewise.
14721         * ipa-prop.c (ipa_prop_read_section): Likewise.
14722         (read_replacements_section): Likewise.
14723         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
14724         * lto-section-in.c (lto_create_simple_input_block): Likewise.
14725         (lto_destroy_simple_input_block): Likewise.
14726         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
14727         (lto_input_toplevel_asms): Likewise.
14729 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14730             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14731             Anna Tikhonova  <anna.tikhonova@intel.com>
14732             Ilya Tocar  <ilya.tocar@intel.com>
14733             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14734             Ilya Verbin  <ilya.verbin@intel.com>
14735             Kirill Yukhin  <kirill.yukhin@intel.com>
14736             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14738         * common/config/i386/i386-common.c
14739         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
14740         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
14741         (ix86_handle_option): Handle OPT_mavx512dq.
14742         * config/i386/cpuid.h (bit_AVX512DQ): Define.
14743         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
14744         set -mavx512dq accordingly.
14745         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14746         OPTION_MASK_ISA_AVX512DQ.
14747         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
14748         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
14749         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
14750         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
14751         * config/i386/i386.h (TARGET_AVX512DQ): Define.
14752         (TARGET_AVX512DQ_P(x)): Ditto.
14753         * config/i386/i386.opt: Add mavx512dq.
14755 2014-08-08  Richard Biener  <rguenther@suse.de>
14757         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
14758         target_percent, target_percent_s): Export.
14759         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
14760         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
14761         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
14762         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
14763         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
14764         Move to gimple-fold.c.
14765         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
14766         strcat and strcpy.
14767         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
14768         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
14769         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
14770         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
14771         (rewrite_call_expr_array): Remove.
14772         (fold_builtin_sprintf_chk): Likewise.
14773         (fold_builtin_snprintf_chk): Likewise.
14774         (fold_builtin_varargs): Remove handling of sprintf_chk,
14775         vsprintf_chk, snprintf_chk and vsnprintf_chk.
14776         (gimple_fold_builtin_sprintf_chk): Remove.
14777         (gimple_fold_builtin_snprintf_chk): Likewise.
14778         (gimple_fold_builtin_varargs): Likewise.
14779         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
14780         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
14781         * gimple.c (gimple_seq_add_seq_without_update): New function.
14782         * gimple.h (gimple_seq_add_seq_without_update): Declare.
14783         * gimple-fold.c: Include output.h.
14784         (gsi_replace_with_seq_vops): New function, split out from ...
14785         (gimplify_and_update_call_from_tree): ... here.
14786         (replace_call_with_value): New function.
14787         (replace_call_with_call_and_fold): Likewise.
14788         (var_decl_component_p): Moved from builtins.c.
14789         (gimple_fold_builtin_memory_op): Moved from builtins.c
14790         fold_builtin_memory_op and rewritten to GIMPLE.
14791         (gimple_fold_builtin_memset): Likewise.
14792         (gimple_fold_builtin_strcpy): Likewise.
14793         (gimple_fold_builtin_strncpy): Likewise.
14794         (gimple_fold_builtin_strcat): Likewise.
14795         (gimple_fold_builtin_fputs): Likewise.
14796         (gimple_fold_builtin_memory_chk): Likewise.
14797         (gimple_fold_builtin_stxcpy_chk): Likewise.
14798         (gimple_fold_builtin_stxncpy_chk): Likewise.
14799         (gimple_fold_builtin_snprintf_chk): Likewise.
14800         (gimple_fold_builtin_sprintf_chk): Likewise.
14801         (gimple_fold_builtin_strlen): New function.
14802         (gimple_fold_builtin_with_strlen): New function split out from
14803         gimple_fold_builtin.
14804         (gimple_fold_builtin): Change signature and handle
14805         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
14806         here.  Call gimple_fold_builtin_with_strlen.
14807         (gimple_fold_call): Adjust.
14809 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
14811         * calls.c (precompute_arguments): Check
14812          promoted_for_signed_and_unsigned_p and set the promoted mode.
14813         (promoted_for_signed_and_unsigned_p): New function.
14814         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
14815         and set the promoted mode.
14816         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
14817         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
14818         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
14821 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
14823         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
14824         instead of SUBREG_PROMOTED_UNSIGNED_SET.
14825         (expand_call): Likewise.
14826         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
14827         to get promoted mode.
14828         * combine.c (record_promoted_value): Skip > 0 comparison with
14829         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
14830         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
14831         of SUBREG_PROMOTED_UNSIGNED_P.
14832         (convert_modes): Likewise.
14833         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
14834         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
14835         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
14836         SUBREG_PROMOTED_UNSIGNED_SET.
14837         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
14838         instead of SUBREG_PROMOTED_UNSIGNED_SET.
14839         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
14840         SUBREG_PROMOTED_SET.
14841         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
14842         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
14843         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
14844         of SUBREG_PROMOTED_UNSIGNED_P.
14845         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
14846         (SUBREG_PROMOTED_SET): New define.
14847         (SUBREG_PROMOTED_GET): Likewise.
14848         (SUBREG_PROMOTED_SIGN): Likewise.
14849         (SUBREG_PROMOTED_SIGNED_P): Likewise.
14850         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
14851         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
14852         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
14853         instead of SUBREG_PROMOTED_UNSIGNED_GET.
14854         (nonzero_bits1): Skip > 0 comparison with the results as
14855         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
14856         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
14857         of !SUBREG_PROMOTED_UNSIGNED_P.
14858         * simplify-rtx.c (simplify_unary_operation_1): Use new
14859         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
14860         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
14861         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
14862         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
14864 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
14866         * ipa-devirt.c: Include gimple-pretty-print.h
14867         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
14868         further tests.
14869         (decl_maybe_in_construction_p): Fix conditional on cdtor check
14870         (get_polymorphic_call_info): Fix return value
14871         (type_change_info): New sturcture based on ipa-prop
14872         variant.
14873         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
14874         based on ipa-prop variant.
14875         (extr_type_from_vtbl_ptr_store): New function
14876         based on ipa-prop variant.
14877         (record_known_type): New function.
14878         (check_stmt_for_type_change): New function.
14879         (get_dynamic_type): New function.
14880         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
14881         * tree-ssa-pre.c: ipa-utils.h
14882         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
14883         machinery; sanity check with ipa-prop devirtualization.
14884         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
14885         polymorphic flag.
14887 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
14889         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
14890         * alias.c, cfgexpand.c, cgraphbuild.c,
14891         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
14892         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
14893         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
14894         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
14895         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
14896         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
14897         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
14898         dse.c, except.c, gengtype.c, gimple-expr.c,
14899         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
14900         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
14901         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
14902         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
14903         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
14904         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
14905         pointer-set.h.
14906         * pointer-set.c: Remove file.
14907         * pointer-set.h: Remove file.
14909 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14911         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
14912         * config/arm/types.md (f_sels, f_seld): Delete.
14914 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14916         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
14917         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
14918         (aarch64_movdi_<mode>high): Likewise.
14919         (aarch64_mov<mode>high_di): Likewise.
14920         (aarch64_movdi_<mode>low): Likewise.
14921         (aarch64_mov<mode>low_di): Likewise.
14922         (aarch64_movtilow_tilow): Likewise.
14923         Add comment explaining usage of fp,simd attributes and of
14924         TARGET_FLOAT and TARGET_SIMD.
14926 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
14927             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14929         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
14930         Use MOVN when one of the half-words is 0xffff.
14932 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
14934         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
14936 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14938         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
14939         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
14940         (rfs_str): String corresponding to RFS_* constants.
14941         (rank_for_schedule_stats_t): New typedef.
14942         (rank_for_schedule_stats): New static variable.
14943         (rfs_result): New static function.
14944         (rank_for_schedule): Track statistics for deciding heuristics.
14945         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
14946         static functions.
14947         (ready_sort): Use them for debug printouts.
14948         (schedule_block): Init statistics state.  Print statistics on
14949         rank_for_schedule decisions.
14951 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14953         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
14955 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
14957         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
14958         constraint.
14960 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
14962         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
14963         function to not conflict.
14964         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
14965         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
14966         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
14967         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
14968         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
14969         of pointer_map.
14971 2014-08-07  Marek Polacek  <polacek@redhat.com>
14973         * fold-const.c (fold_binary_loc): Add folding of
14974         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
14976 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
14978         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
14979         instead of type size.
14980         (ASM_FINISH_DECLARE_OBJECT): Likewise.
14982 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
14984         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
14985         (*thumb1_movqi_insn): Likewise.
14986         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
14988 2014-08-07  Tom de Vries  <tom@codesourcery.com>
14990         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
14991         (glibc_2_11_or_earlier): Remove effective-target keywords.
14993 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
14995         * config/arm/arm.c (bdesc_2arg): Fix typo.
14996         (arm_atomic_assign_expand_fenv): Remove The default implementation.
14998 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
15000         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
15002 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
15004         PR debug/61923
15005         * haifa-sched.c (advance_one_cycle): Fix dump.
15006         (schedule_block): Don't advance cycle if we are already at the
15007         beginning of the cycle.
15009 2014-08-06  Martin Jambor  <mjambor@suse.cz>
15011         PR ipa/61393
15012         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
15014 2014-08-06  Richard Biener  <rguenther@suse.de>
15016         PR lto/62034
15017         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
15018         SCCs here.
15019         (lto_input_tree): Pop SCCs here.
15021 2014-08-06  Richard Biener  <rguenther@suse.de>
15023         PR tree-optimization/61320
15024         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
15025         handle misaligned loads.
15027 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
15029         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
15030         (aarch64_expand_vec_perm_const): Check for dup before zip.
15032 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15034         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
15035         CONST_INT_P instead of GET_CODE and compare.
15036         (aarch64_select_cc_mode): Likewise.
15037         (aarch64_print_operand): Likewise.
15038         (aarch64_rtx_costs): Likewise.
15039         (aarch64_simd_valid_immediate): Likewise.
15040         (aarch64_simd_check_vect_par_cnst_half): Likewise.
15041         (aarch64_simd_emit_pair_result_insn): Likewise.
15043 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
15045         * gdbhooks.py (find_gcc_source_dir): New helper function.
15046         (class PassNames): New class, locating and parsing passes.def.
15047         (class BreakOnPass): New command "break-on-pass".
15049 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
15051         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
15052         getting olde.
15054 2014-08-05  Richard Biener  <rguenther@suse.de>
15056         PR rtl-optimization/61672
15057         * emit-rtl.h (mem_attrs_eq_p): Declare.
15058         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
15059         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
15060         * cfgcleanup.c (merge_memattrs): Likewise.
15061         Include emit-rtl.h.
15063 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15065         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
15066         rather than singleton vectors.
15067         (vqdmlsls_lane_s32): Likewise.
15069 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15071         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
15072         Use VSDQ_HSI mode iterator.
15073         (aarch64_sqrdmulh_laneq<mode>): Likewise.
15074         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
15075         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
15076         Use BUILTIN_VDQHS macro.
15077         (sqrdmulh_laneq): Likewise.
15078         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
15079         (vqdmlals_laneq_s32): Likewise.
15080         (vqdmlslh_laneq_s16): Likewise.
15081         (vqdmlsls_laneq_s32): Likewise.
15082         (vqdmulhh_laneq_s16): Likewise.
15083         (vqdmulhs_laneq_s32): Likewise.
15084         (vqrdmulhh_laneq_s16): Likewise.
15085         (vqrdmulhs_laneq_s32): Likewise.
15087 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15089         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
15090         (vmuld_laneq_f64): Likewise.
15091         (vmuls_laneq_f32): Likewise.
15092         (vmul_n_f64): Likewise.
15093         (vmuld_lane_f64): Reimplement in C.
15094         (vmuls_lane_f32): Likewise.
15096 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15098         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
15099         to reservation.
15100         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
15102 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15104         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
15105         (rbitsi2): Likewise.
15106         (*arm_rev): Set predicable and predicable_short_it attributes.
15108 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15110         * convert.c (convert_to_integer): Guard transformation to lrint by
15111         -fno-math-errno.
15113 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
15115         * config/aarch64/aarch64-builtins.c
15116         (aarch64_simd_builtin_type_mode): Delete.
15117         (v8qi_UP): Remap to V8QImode.
15118         (v4hi_UP): Remap to V4HImode.
15119         (v2si_UP): Remap to V2SImode.
15120         (v2sf_UP): Remap to V2SFmode.
15121         (v1df_UP): Remap to V1DFmode.
15122         (di_UP): Remap to DImode.
15123         (df_UP): Remap to DFmode.
15124         (v16qi_UP):V16QImode.
15125         (v8hi_UP): Remap to V8HImode.
15126         (v4si_UP): Remap to V4SImode.
15127         (v4sf_UP): Remap to V4SFmode.
15128         (v2di_UP): Remap to V2DImode.
15129         (v2df_UP): Remap to V2DFmode.
15130         (ti_UP): Remap to TImode.
15131         (ei_UP): Remap to EImode.
15132         (oi_UP): Remap to OImode.
15133         (ci_UP): Map to CImode.
15134         (xi_UP): Remap to XImode.
15135         (si_UP): Remap to SImode.
15136         (sf_UP): Remap to SFmode.
15137         (hi_UP): Remap to HImode.
15138         (qi_UP): Remap to QImode.
15139         (aarch64_simd_builtin_datum): Make mode a machine_mode.
15140         (VAR1): Build builtin name.
15141         (aarch64_init_simd_builtins): Remove dead code.
15143 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
15145         * graphite-isl-ast-to-gimple.c:
15146         (set_options): New function.
15147         (scop_to_isl_ast): Add calling of set_options.
15149 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
15151         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
15152         (analyze_iv_to_split_insn): Don't initialize them.
15153         (get_ivts_expr): Removed.
15154         (allocate_basic_variable, insert_base_initialization): Use
15155         SET_SRC instead of *get_ivts_expr.
15156         (split_iv): Use &SET_SRC instead of get_ivts_expr.
15158 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
15160         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
15161         (translate_isl_ast_for_loop): Add checking of the
15162         flag_loop_parallelize_all.
15163         (ast_build_before_for): New function.
15164         (scop_to_isl_ast): Add checking of the
15165         flag_loop_parallelize_all.
15166         * graphite-dependences.c: Move the defenition of the
15167         scop_get_dependences from graphite-optimize-isl.c to this file.
15168         (apply_schedule_on_deps): Add checking of the ux's emptiness.
15169         (carries_deps): Add checking of the x's value.
15170         * graphite-optimize-isl.c: Move the defenition of the
15171         scop_get_dependences to graphite-dependences.c.
15172         * graphite-poly.h: Add declarations of scop_get_dependences
15173         and carries_deps.
15175 2014-08-04  Rohit  <rohitarulraj@freescale.com>
15177         PR target/60102
15178         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
15179         names.
15180         (alt_reg_names): Likewise.
15181         (rs6000_dwarf_register_span): For SPE high registers, replace
15182         dwarf register numbers with GCC hard register numbers.
15183         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
15184         (rs6000_dbx_register_number): For SPE high registers, return dwarf
15185         register number for the corresponding GCC hard register number.
15186         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
15187         newly added GCC hard register numbers for SPE high registers.
15188         (DWARF_FRAME_REGISTERS):  Likewise.
15189         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
15190         (DWARF_FRAME_REGNUM): Likewise.
15191         (FIXED_REGISTERS): Likewise.
15192         (CALL_USED_REGISTERS): Likewise.
15193         (CALL_REALLY_USED_REGISTERS): Likewise.
15194         (REG_ALLOC_ORDER): Likewise.
15195         (enum reg_class): Likewise.
15196         (REG_CLASS_NAMES): Likewise.
15197         (REG_CLASS_CONTENTS): Likewise.
15198         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
15200 2014-08-04  Richard Biener  <rguenther@suse.de>
15202         * gimple-fold.h (gimple_fold_builtin): Remove.
15203         * gimple-fold.c (gimple_fold_builtin): Make static.
15204         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
15205         fold_stmt, not gimple_fold_builtin.
15207 2014-08-04  Martin Liska <mliska@suse.cz>
15209         * cgraph.h (csi_end_p): Removed.
15210         (csi_next): Likewise.
15211         (csi_node): Likewise.
15212         (csi_start): Likewise.
15213         (cgraph_node_in_set_p): Likewise.
15214         (cgraph_node_set_size): Likewise.
15215         (vsi_end_p): Likewise.
15216         (vsi_next): Likewise.
15217         (vsi_node): Likewise.
15218         (vsi_start): Likewise.
15219         (varpool_node_set_size): Likewise.
15220         (cgraph_node_set_nonempty_p): Likewise.
15221         (varpool_node_set_nonempty_p): Likewise.
15222         * cgraphunit.c (cgraph_process_new_functions): vec replaces
15223         cgraph_node_set.
15224         * ipa-inline-transform.c: Likewise.
15225         * ipa-utils.c (cgraph_node_set_new): Removed.
15226         (cgraph_node_set_add): Likewise.
15227         (cgraph_node_set_remove): Likewise.
15228         (cgraph_node_set_find): Likewise.
15229         (dump_cgraph_node_set): Likewise.
15230         (debug_cgraph_node_set): Likewise.
15231         (free_cgraph_node_set): Likewise.
15232         (varpool_node_set_new): Likewise.
15233         (varpool_node_set_add): Likewise.
15234         (varpool_node_set_remove): Likewise.
15235         (varpool_node_set_find): Likewise.
15236         (dump_varpool_node_set): Likewise.
15237         (free_varpool_node_set): Likewise.
15238         (debug_varpool_node_set): Likewise.
15239         * tree-emutls.c (struct tls_var_data):
15240         (emutls_index): Removed.
15241         (emutls_decl): Likewise.
15242         (gen_emutls_addr): Function implementation uses newly added
15243         hash_map<varpool_node *, tls_var_data>.
15244         (clear_access_vars): Likewise.
15245         (create_emultls_var): Likewise.
15246         (ipa_lower_emutls): Likewise.
15247         (reset_access): New function.
15249 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
15251         * config/i386/i386.c (ix86_option_override_internal): Add
15252         PTA_RDRND and PTA_MOVBE for bdver4.
15254 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15255             James Greenhalgh  <james.greenhalgh@arm.com>
15257         * doc/md.texi (clrsb): Document.
15258         (clz): Change reference to x into operand 1.
15259         (ctz): Likewise.
15260         (popcount): Likewise.
15262 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15264         PR target/61713
15265         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
15266         move to subtarget in serial version if result is ignored.
15268 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15269             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15271         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
15272         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
15273         (sched_analyze_insn): Update use of try_group_insn to
15274         sched_macro_fuse_insns.
15275         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
15276         arguments that are not conditional jumps.
15278 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
15280         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
15281         family information. Handle BTVER2 cpu with cpuid family value.
15283 2014-08-04  Tom de Vries  <tom@codesourcery.com>
15285         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
15286         (glibc_2_11_or_earlier): Document effective-target keywords.
15288 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
15290         * ipa-devirt.c (odr_type_warn_count): Add type.
15291         (possible_polymorphic_call_targets): Set it.
15292         (ipa_devirt): Use it.
15294 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
15296         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
15297         Document.
15298         * ipa-devirt.c: Include hash-map.h
15299         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
15300         (clear_speculation): Break out of ...
15301         (get_class_context): ... here; speed up handling obviously useless
15302         speculations.
15303         (odr_type_warn_count, decl_warn_count): New structures.
15304         (final_warning_record): New structure.
15305         (final_warning_records): New static variable.
15306         (possible_polymorphic_call_targets): Cleanup handling of
15307         speculative info; do not build speculation when user do not care;
15308         record info about warnings when asked for.
15309         (add_decl_warning): New function.
15310         (type_warning_cmp): New function.
15311         (decl_warning_cmp): New function.
15312         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
15313         (gate): Enable pass when warnings are requested.
15314         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
15315         options.
15317 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
15319         * hash-map.h (default_hashmap_traits::mark_key_deleted):
15320         Fix cast.
15321         (hash_map::remove): New method.
15322         (hash_map::traverse): New method.
15323         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
15324         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
15325         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
15326         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
15327         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
15328         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
15329         pointer_map.
15331 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
15333         * hash-set.h: new File.
15334         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
15335         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
15336         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
15337         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
15338         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
15339         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
15340         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
15341         varpool.c: Use hash_set instead of pointer_set.
15343 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
15345         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
15347 2014-08-01  Jiong Wang <jiong.wang@arm.com>
15349         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
15350         for frame access when strict_p is false.
15352 2014-08-01  Renlin Li <renlin.li@arm.com>
15353 2014-08-01  Jiong Wang <jiong.wang@arm.com>
15355         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
15356         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
15357         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
15358         Declaration.
15359         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
15360         predicate.
15361         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
15362         aarch64_mem_pair_offset.
15364 2014-08-01  Jiong Wang <jiong.wang@arm.com>
15366         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
15367         offset.
15368         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
15369         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
15371 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
15373         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
15375 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
15377         PR regression/61510
15378         * cgraphunit.c (analyze_functions): Use get_create rather than get
15379         for decls which are clones of abstract functions.
15381 2014-08-01  Martin Liska  <mliska@suse.cz>
15383         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
15384         * ipa-prop.h (count_formal_params): Global function created from static.
15385         * ipa-prop.c (count_formal_params): Likewise.
15386         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
15387         profiles for semantically equivalent functions.
15388         * passes.c (do_per_function): If we load body of a function
15389         during WPA, this condition should behave same.
15390         * varpool.c (ctor_for_folding): More tolerant assert for variable
15391         aliases created during WPA.
15393 2014-08-01  Martin Liska  <mliska@suse.cz>
15395         * doc/invoke.texi (Options That Control Optimization): Documentation
15396         for -foptimize-strlen introduced. Optimization levels default options
15397         fixed.
15399 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
15401         * opts.c (common_handle_option): Handle -fsanitize=alignment.
15402         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
15403         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
15404         type to bool.
15405         * stor-layout.h (min_align_of_type): New prototype.
15406         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
15407         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
15408         check.
15409         * ubsan.c: Include builtins.h.
15410         (ubsan_expand_bounds_ifn): Change return type to bool,
15411         always return true.
15412         (ubsan_expand_null_ifn): Change return type to bool, change
15413         argument to gimple_stmt_iterator *.  Handle both null and alignment
15414         sanitization, take type from ckind argument's type rather than
15415         first argument.
15416         (instrument_member_call): Removed.
15417         (instrument_mem_ref): Remove t argument, add mem and base arguments.
15418         Handle both null and alignment sanitization, don't say whole
15419         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
15420         call instead of 2 argument.
15421         (instrument_null): Adjust instrument_mem_ref caller.  Don't
15422         instrument calls here.
15423         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
15424         like SANITIZE_NULL.
15425         * stor-layout.c (min_align_of_type): New function.
15426         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
15427         Or it into SANITIZE_UNDEFINED.
15428         * doc/invoke.texi (-fsanitize=alignment): Document.
15430 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15432         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
15434 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15436         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
15437         inchash.
15438         (vn_reference_compute_hash): Dito.
15439         (vn_nary_op_compute_hash): Dito.
15440         (vn_phi_compute_hash): Dito.
15441         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
15443 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15445         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
15446         Rename to inchash:add_expr_commutative. Convert to inchash.
15447         (iterative_hash_hashable_expr): Rename to
15448         inchash:add_hashable_expr. Convert to inchash.
15449         (avail_expr_hash): Dito.
15451 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15453         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
15454         Convert to inchash.
15456 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15458         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
15460 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15462         * Makefile.in (OBJS): Add rtlhash.o
15463         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
15464         (loc_checksum): Dito.
15465         (loc_checksum_ordered): Dito.
15466         (hash_loc_operands): Dito.
15467         (hash_locs): Dito.
15468         (hash_loc_list): Dito.
15469         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
15470         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
15471         * rtlhash.c: New file.
15472         * rtlhash.h: New file.
15474 2014-07-31  Andi Kleen  <ak@linux.intel.com>
15476         * inchash.h (inchash): Change inchash class to namespace.
15477         (class hash): ... Rename from inchash.
15478         (add_object): Move from macro to class template.
15479         * lto-streamer-out.c (hash_tree): Change inchash
15480         to inchash::hash.
15481         * tree.c (build_type_attribute_qual_variant): Dito.
15482         (type_hash_list): Dito.
15483         (attribute_hash_list): Dito.
15484         (iterative_hstate_expr): Rename to inchash::add_expr
15485         (build_range_type_1): Change inchash to inchash::hash
15486         and use hash::add_expr.
15487         (build_array_type_1): Dito.
15488         (build_function_type): Dito
15489         (build_method_type_directly): Dito.
15490         (build_offset_type): Dito.
15491         (build_complex_type): Dito.
15492         (make_vector_type): Dito.
15493         * tree.h (iterative_hash_expr): Dito.
15495 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
15497         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
15499 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
15501         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
15502         correct alphabetical position.
15503         (vpaddd_f64): Rewrite using builtins.
15504         (vpaddd_s64): Move to correct alphabetical position.
15505         (vpaddd_u64): New.
15507 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
15509         PR target/61844
15510         * config/sh/sh.c (sh_legitimate_address_p,
15511         sh_legitimize_reload_address): Handle reg+reg address modes when
15512         ALLOW_INDEXED_ADDRESS is false.
15513         * config/sh/predicates.md (general_movsrc_operand,
15514         general_movdst_operand): Likewise.
15516 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
15518         * config/aarch64/aarch64-builtins.c
15519         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
15520         BYTES_BIG_ENDIAN.
15522 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
15524         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
15525         the generated mask based on BYTES_BIG_ENDIAN.
15526         (aarch64_simd_check_vect_par_cnst_half): New.
15527         * config/aarch64/aarch64-protos.h
15528         (aarch64_simd_check_vect_par_cnst_half): New.
15529         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
15530         the check out to aarch64_simd_check_vect_par_cnst_half.
15531         (vect_par_cnst_lo_half): Likewise.
15532         * config/aarch64/aarch64-simd.md
15533         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
15534         (move_hi_quad_<mode>): Always generate a low mask.
15536 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15538         * doc/invoke.texi (AVR Options): Add documentation about
15539         __AVR_DEVICE_NAME__ built-in macro.
15541 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
15543         PR target/61948
15544         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
15545         constraints are satisfied.
15546         (<shift>di3_neon): Likewise.
15548 2014-07-31  Richard Biener  <rguenther@suse.de>
15550         PR tree-optimization/61964
15551         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
15552         by structural equality.
15554 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
15556         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
15557         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
15558         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
15559         New enums.
15560         * gcc.c (sanitize_spec_function): Support new option.
15561         (SANITIZER_SPEC): Remove now redundant check.
15562         * opts.c (common_handle_option): Support new option.
15563         (finish_options): Check for incompatibilities.
15564         * toplev.c (process_options): Split userspace-specific checks.
15566 2014-07-31  Richard Biener  <rguenther@suse.de>
15568         * lto-streamer.h (struct output_block): Remove global.
15569         (struct data_in): Remove labels, num_named_labels and
15570         num_unnamed_labels.
15571         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
15572         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
15574 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
15576         PR c++/60517
15577         * common.opt (-Wreturn-local-addr): Moved from c.opt.
15578         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
15579         (isolate_path): New argument to avoid inserting a trap.
15580         (find_implicit_erroneous_behaviour): Handle returning the address
15581         of a local variable.
15582         (find_explicit_erroneous_behaviour): Likewise.
15584 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
15586         PR lto/61868
15587         * toplev.c (init_random_seed): Move piece of code never called to
15588         set_random_seed.
15589         (set_random_seed): see above.
15591 2014-07-31  Tom de Vries  <tom@codesourcery.com>
15593         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
15595 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
15597         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
15598         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
15600 2014-07-31  Richard Biener  <rguenther@suse.de>
15602         * data-streamer.h (streamer_write_data_stream): Declare here,
15603         renamed from ...
15604         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
15605         * lto-cgraph.c (lto_output_node): Adjust.
15606         (lto_output_varpool_node): Likewise.
15607         * data-streamer-out.c (streamer_string_index): Likewise.
15608         (streamer_write_data_stream, lto_append_block): Move from ...
15609         * lto-section-out.c (lto_output_data_stream,
15610         lto_append_block): ... here.
15612 2014-07-30  Mike Stump  <mikestump@comcast.net>
15614         * configure.ac: Also check for popen.
15615         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
15616         * configure: Regenerate.
15617         * config.in:  Regenerate.
15619 2014-07-30  Martin Jambor  <mjambor@suse.cz>
15621         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
15622         parameter to gimple.
15624 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15626         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
15627         address as second parameter to __tpf_eh_return routine.
15629 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
15631         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
15632         Thumb2.
15634 2014-07-30  Tom Tromey  <tromey@redhat.com>
15636         PR c/59855
15637         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
15638         * doc/extend.texi (Type Attributes): Document designated_init
15639         attribute.
15641 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
15643         * graphite-isl-ast-to-gimple.c:
15644         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
15645         (gcc_expression_from_isl_expression): Pass type to
15646         gcc_expression_from_isl_ast_expr_id.
15648 2014-07-30  Richard Biener  <rguenther@suse.de>
15650         * lto-streamer.h (lto_write_data): New function.
15651         * langhooks.c (lhd_append_data): Do not free block.
15652         * lto-section-out.c (lto_write_data): New function writing
15653         raw data to the current section.
15654         (lto_write_stream): Adjust for langhook semantic change.
15655         (lto_destroy_simple_output_block): Write header directly.
15656         * lto-opts.c (lto_write_options): Write options directly.
15657         * lto-streamer-out.c (produce_asm): Write heaeder directly.
15658         (lto_output_toplevel_asms): Likewise.
15659         (copy_function_or_variable): Copy data directly.
15660         (write_global_references): Output index table directly.
15661         (lto_output_decl_state_refs): Likewise.
15662         (write_symbol): Write data directly.
15663         (produce_symtab): Adjust.
15664         (produce_asm_for_decls): Output header and refs directly.
15666 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
15668         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
15669         to speculative_targets
15670         (get_class_context): Fix handling of contextes without outer type;
15671         avoid matching non-polymorphic types in LTO.
15672         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
15673         parameter to speculative_targetsp; handle speculation.
15674         (dump_possible_polymorphic_call_targets): Update dumping.
15676 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
15678         * common.opt (Wodr): Enable by default.
15680 2014-07-29  Olivier Hainque  <hainque@adacore.com>
15682         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
15684 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
15686         PR bootstrap/61914
15687         * gengtype.c (strtoken): New function.
15688         (create_user_defined_type): Replace strtok with strtoken.
15690 2014-07-29  Nathan Sidwell  <nathan@acm.org>
15692         * gcov-io.c (gcov_var): Make hidden.
15693         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
15694         (gcov_do_dump): Declare.
15695         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
15697 2014-07-29  Martin Jambor  <mjambor@suse.cz>
15699         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
15700         parameter to gimple.
15701         (sra_modify_assign): Likewise.
15703 2014-07-29  Richard Biener  <rguenther@suse.de>
15705         PR middle-end/52478
15706         * expr.c (expand_expr_real_2): Revert last change.
15708 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
15710         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
15711         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
15712         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
15713         call.
15714         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
15715         (contains_type_p): Forward declare.
15716         (polymorphic_call_target_hasher::hash): Hash speculative info.
15717         (polymorphic_call_target_hasher::equal): Compare speculative info.
15718         (get_class_context): Handle speuclation.
15719         (contains_type_p): Update.
15720         (get_polymorphic_call_info_for_decl): Update.
15721         (walk_ssa_copies): Break out from ...
15722         (get_polymorphic_call_info): ... here; set speculative context
15723         before giving up.
15724         * ipa-prop.c (ipa_write_indirect_edge_info,
15725         ipa_read_indirect_edge_info): Stream speculative context.
15726         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
15727         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
15728         SPECULATIVE_MAYBE_DERIVED_TYPE).
15729         (possible_polymorphic_call_targets overriders): Update.
15730         (dump_possible_polymorphic_call_targets overriders): Update.
15731         (dump_possible_polymorphic_call_target_p overriders): Update.
15733 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
15735         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
15736         ipa-devirt path; fix thinko there.
15738 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
15740         * config/i386/i386.c (ix86_return_in_memory): Replace one
15741         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
15743 2014-07-28  Marek Polacek  <polacek@redhat.com>
15745         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
15747 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
15749         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
15750         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
15751         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
15752         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
15753         (USE_LD_AS_NEEDED): Likewise.
15754         (ASM_APP_ON): Likewise.
15755         (ASM_APP_OFF): Likewise.
15756         (TARGET_POSIX_IO): Likewise.
15757         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
15758         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
15759         (USE_LD_AS_NEEDED): Likewise.
15760         (ASM_APP_ON): Likewise.
15761         (ASM_APP_OFF): Likewise.
15762         (TARGET_POSIX_IO): Likewise.
15764 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
15766         PR middle-end/61734
15767         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
15768         operators other than the equality operators.
15770 2014-07-28  Richard Biener  <rguenther@suse.de>
15772         PR middle-end/52478
15773         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
15774         sure to register SImode ones, not only >= word_mode ones.
15775         * expr.c (expand_expr_real_2): When expanding -ftrapv
15776         binops do not use OPTAB_LIB_WIDEN.
15778 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
15780         PR middle-end/61919
15781         * tree-outof-ssa.c (insert_partition_copy_on_edge)
15782         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
15783         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
15784         inserting them in the insn stream.
15786 2014-07-28  Marek Polacek  <polacek@redhat.com>
15788         PR middle-end/61913
15789         * common.opt (Wodr): Add Var.
15791 2014-07-28  Richard Biener  <rguenther@suse.de>
15793         PR tree-optimization/61921
15794         * tree-ssa-structalias.c (create_variable_info_for_1): Check
15795         if there is a varpool node before dereferencing it.
15797 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
15799         * graphite-sese-to-poly.c:
15800         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
15801         id of the pbb), which contains pointer to the pbb1.
15803         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
15805 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
15807         * graphite-isl-ast-to-gimple.c:
15808         (graphite_create_new_guard): New function.
15809         (translate_isl_ast_node_if): New function.
15810         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
15812         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
15814 2014-07-27  Anthony Green  <green@moxielogic.com>
15816         * config.gcc: Add moxie-*-moxiebox* configuration.
15817         * config/moxie/moxiebox.h: New file.
15819 2014-07-26  Andrew Pinski  <apinski@cavium.com>
15821         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
15822         from the read only register.
15824 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
15826         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
15827         as the allocation class if it isn't likely to be spilled.
15829 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
15831         * rtl.h (tls_referenced_p): Declare.
15832         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
15833         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
15834         (mips_cannot_force_const_mem): Use tls_referenced_p.
15835         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
15836         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
15837         instead of pa_tls_referenced_p.
15838         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
15839         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
15840         (pa_legitimate_constant_p): Likewise.
15841         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
15842         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
15843         (rs6000_cannot_force_const_mem, rs6000_emit_move)
15844         (rs6000_address_for_altivec): Use tls_referenced_p instead of
15845         rs6000_tls_referenced_p.
15846         (rs6000_tls_symbol_ref_1): Delete.
15848 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
15850         PR target/44551
15851         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
15852         Optimize inverse of a VEC_CONCAT.
15854 2014-07-25  Xinliang David Li  <davidxl@google.com>
15856         * params.def: New parameter.
15857         * coverage.c (get_coverage_counts): Check new flag.
15858         (coverage_compute_profile_id): Check new flag.
15859         (coverage_begin_function): Check new flag.
15860         (coverage_end_function): Check new flag.
15861         * value-prof.c (coverage_node_map_initialized_p): New function.
15862         (init_node_map): Populate map with all functions.
15863         * doc/invoke.texi: Document new parameter.
15865 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
15866             Richard Biener <rguenther@suse.de>
15868         * lto-streamer-out.c (struct sccs): Turn to ...
15869         (class DFS): ... this one; refactor the DFS walk so it can
15870         be re-done on per-SCC basis.
15871         (DFS::DFS): New constructor.
15872         (DFS::~DFS): New destructor.
15873         (hash_tree): Add new MAP argument holding in-SCC hash values;
15874         remove POINTER_TYPE hashing hack.
15875         (scc_entry_compare): Rename to ...
15876         (DFS::scc_entry_compare): ... this one.
15877         (hash_scc): Rename to ...
15878         (DFS::hash_scc): ... this one; pass output_block instead
15879         of streamer_cache; work harder to get unique and stable SCC
15880         hashes.
15881         (DFS_write_tree): Rename to ...
15882         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
15883         (lto_output_tree): Update.
15885 2014-07-25  Andi Kleen  <ak@linux.intel.com>
15887         * lto-streamer-out.c (hash_tree): Convert to inchash.
15889 2014-07-25  Andi Kleen  <ak@linux.intel.com>
15891         * tree.c (build_type_attribute_qual_variant): Use inchash.
15892         (type_hash_list): Dito.
15893         (attribute_hash_list): Dito
15894         (iterative_hstate_expr): Dito.
15895         (iterative_hash_expr): Dito.
15896         (build_range_type_1): Dito.
15897         (build_array_type_1): Dito.
15898         (build_function_type): Dito.
15899         (build_method_type_directly): Dito.
15900         (build_offset_type): Dito.
15901         (build_complex_type): Dito.
15902         (make_vector_type): Dito.
15903         * tree.h (iterative_hash_expr): Add compat wrapper.
15904         (iterative_hstate_expr): Add.
15906 2014-07-25  Andi Kleen  <ak@linux.intel.com>
15908         * Makefile.in (OBJS): Add inchash.o.
15909         (PLUGIN_HEADERS): Add inchash.h.
15910         * ipa-devirt.c: Include inchash.h.
15911         * lto-streamer-out.c: Dito.
15912         * tree-ssa-dom.c: Dito.
15913         * tree-ssa-pre.c: Dito.
15914         * tree-ssa-sccvn.c: Dito.
15915         * tree-ssa-tail-merge.c: Dito.
15916         * asan.c: Dito.
15917         * tree.c (iterative_hash_hashval_t): Move to ...
15918         (iterative_hash_host_wide_int): Move to ...
15919         * inchash.c: Here. New file.
15920         * tree.h (iterative_hash_hashval_t): Move to ...
15921         (iterative_hash_host_wide_int): Move to ...
15922         * inchash.h: Here. New file.
15924 2014-07-25  Richard Biener  <rguenther@suse.de>
15926         PR middle-end/61762
15927         PR middle-end/61894
15928         * fold-const.c (native_encode_int): Add and handle offset
15929         parameter to do partial encodings of expr.
15930         (native_encode_fixed): Likewise.
15931         (native_encode_real): Likewise.
15932         (native_encode_complex): Likewise.
15933         (native_encode_vector): Likewise.
15934         (native_encode_string): Likewise.
15935         (native_encode_expr): Likewise.
15936         * fold-const.c (native_encode_expr): Add offset parameter
15937         defaulting to -1.
15938         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
15939         (fold_ctor_reference): Handle all reads from tcc_constant
15940         ctors.
15942 2014-07-25  Richard Biener  <rguenther@suse.de>
15944         * tree-inline.c (estimate_move_cost): Mark speed_p argument
15945         as possibly unused.
15947 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15949         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
15951 2014-07-24  Kyle McMartin  <kyle@redhat.com>
15953         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
15955 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15957         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
15958         Add prototype.
15959         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
15960         function.
15961         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
15962         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
15963         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
15965 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15967         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
15968         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
15969         aggregate types.  Instead, *all* aggregate types, except for single-
15970         element or homogeneous float/vector aggregates, are quadword-aligned
15971         if required by their type alignment.  Issue -Wpsabi note when a type
15972         is now treated differently than before.
15974 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15976         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
15977         does not fit fully into floating-point registers, and there is still
15978         space in the register parameter area, use GPRs to pass those parts
15979         of the argument.  Issue -Wpsabi note if any parameter is now treated
15980         differently than before.
15981         (rs6000_arg_partial_bytes): Update.
15983 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
15985         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
15987 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
15989         * rtl.h (target_rtl): Remove lang_dependent_initialized.
15990         * toplev.c (initialize_rtl): Don't use it.  Move previously
15991         "language-dependent" calls to...
15992         (backend_init): ...here.
15993         (lang_dependent_init_target): Don't set lang_dependent_initialized.
15994         Assert that RTL initialization hasn't happend yet.
15996 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
15998         PR rtl-optimization/61629
15999         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
16000         they have already been initialized.
16002 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
16004         PR middle-end/61268
16005         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
16006         DECL_INCOMING_RTL and entry_parm.
16007         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
16008         * calls.c (load_register_parameters): Likewise argument values.
16009         (emit_library_call_value_1, store_one_arg): Likewise argument
16010         save areas.
16011         * config/i386/i386.c (assign_386_stack_local): Likewise the local
16012         stack slot.
16013         * explow.c (validize_mem): Modify the argument in-place.
16015 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
16017         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
16018         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
16020 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
16022         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
16023         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
16025 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
16027         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
16028         (aarch64_save_callee_saves): New parameter "skip_wb".
16029         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
16031 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
16033         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
16034         "wb_candidate2".
16035         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
16037 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
16039         * graphite-isl-ast-to-gimple.c:
16040         (graphite_create_new_loop): Add calling of isl_id_free to properly
16041         decrement reference counts.
16043         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
16045 2014-07-24  Martin Liska  <mliska@suse.cz>
16046         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
16047         function used.
16048         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
16049         (rs6000_code_end): Likewise.
16051 2014-07-24  Martin Liska  <mliska@suse.cz>
16053         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
16054         symtab_node funtion used.
16055         (rs6000_xcoff_declare_object_name): Likewise.
16057 2014-07-24  Martin Liska  <mliska@suse.cz>
16059         * cgraphunit.c (compile): Correct function used.
16061 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
16063         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
16064         as non-indexable.
16066 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
16068         PR lto/61802
16069         * varasm.c (bss_initializer_p): Handle offlined ctors.
16070         (align_variable, get_variable_align): Likewise.
16071         (make_decl_one_only): Likewise.
16072         (default_binds_local_p_1): Likewise.
16073         (decl_binds_to_current_def_p): Likewise.
16074         (get_variable_section): Get constructor if it is offlined.
16075         (assemble_variable_contents): Sanity check that the caller
16076         streamed in the ctor in LTO.
16078 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
16080         * graphite-isl-ast-to-gimple.c:
16081         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
16082         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
16083         isl_ast_op_pdiv_r to the different case.
16085         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
16087 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16089         PR middle-end/61876
16090         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
16091         when flag_errno_math is on.
16093 2014-07-24  Martin Liska  <mliska@suse.cz>
16095         * cgraph.h (varpool_node):
16096         (availability get_availability (void)):
16097         created from cgraph_variable_initializer_availability
16098         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
16099         created from: cgraph_variable_initializer_availability
16100         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
16101         (void finalize_named_section_flags (void)):
16102         created from varpool_finalize_named_section_flags
16103         (bool assemble_decl (void)): created from varpool_assemble_decl
16104         (void analyze (void)): created from varpool_analyze_node
16105         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
16106         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
16107         (void remove_initializer (void)): created from varpool_remove_initializer
16108         (tree get_constructor (void)): created from varpool_get_constructor
16109         (bool externally_visible_p (void)): created from varpool_externally_visible_p
16110         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
16111         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
16112         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
16113         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
16114         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
16115         (static bool output_variables (void)): created from varpool_output_variables
16116         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
16117         created from varpool_extra_name_alias
16118         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
16119         (static void dump_varpool (FILE *f)): created from dump_varpool
16120         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
16121         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
16122         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
16123         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
16124         (void assemble_aliases (void)): created from assemble_aliases
16126 2014-07-24  Martin Liska  <mliska@suse.cz>
16128         * cgraph.h (symtab_node):
16129         (void register_symbol (void)): created from symtab_register_node
16130         (void remove (void)): created from symtab_remove_node
16131         (void dump (FILE *f)): created from dump_symtab_node
16132         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
16133         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
16134         (struct ipa_ref *add_reference (symtab_node *referred_node,
16135         enum ipa_ref_use use_type)): created from add_reference
16136         (struct ipa_ref *add_reference (symtab_node *referred_node,
16137         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
16138         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
16139         gimple stmt)): created from maybe_add_reference
16140         (bool semantically_equivalent_p (symtab_node *target)): created from
16141         symtab_semantically_equivalent_p
16142         (void remove_from_same_comdat_group (void)): created from
16143         remove_from_same_comdat_group
16144         (void add_to_same_comdat_group (symtab_node *old_node)): created from
16145         symtab_add_to_same_comdat_group
16146         (void dissolve_same_comdat_group_list (void)): created from
16147         symtab_dissolve_same_comdat_group_list
16148         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
16149         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
16150         created from symtab_alias_ultimate_target
16151         (inline symtab_node *next_defined_symbol (void)): created from
16152         symtab_next_defined_symbol
16153         (bool resolve_alias (symtab_node *target)): created from
16154         symtab_resolve_alias
16155         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
16156         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
16157         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
16158         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
16159         (void set_section (const char *section)): created from set_section_1
16160         (enum availability get_availability (void)): created from symtab_node_availability
16161         (void make_decl_local (void)): created from symtab_make_decl_local
16162         (bool real_symbol_p (void)): created from symtab_read_node
16163         (can_be_discarded_p (void)): created from symtab_can_be_discarded
16164         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
16165         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
16166         symtab_in_same_comdat_p;
16167         (bool address_taken_from_non_vtable_p (void)): created from
16168         address_taken_from_non_vtable_p
16169         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
16170         (static void dump_table (FILE *)): created from dump_symtab
16171         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
16172         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
16173         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
16174         symtab_used_from_object_file_p
16175         (void dump_base (FILE *)): created from dump_symtab_base
16176         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
16177         (void unregister (void)): created from symtab_unregister_node
16178         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
16179         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
16180         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
16181         symtab_nonoverwritable_alias_1
16182         * cgraph.h (cgraph_node):
16183         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
16184         created from cgraph_remove_node_and_inline_clones
16185         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
16186         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
16187         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
16188         (cgraph_node *function_symbol (enum availability *avail = NULL)):
16189         created from cgraph_function_node
16190         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
16191         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
16192         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
16193         created from cgraph_create_clone
16194         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
16195         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
16196         created from cgraph_create_virtual_clone
16197         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
16198         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
16199         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
16200         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
16201         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
16202         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
16203         created from cgraph_function_version_info
16204         (struct cgraph_function_version_info *insert_new_function_version (void)):
16205         created from insert_new_cgraph_node_version
16206         (struct cgraph_function_version_info *function_version (void)): created from
16207         get_cgraph_node_version
16208         (void analyze (void)): created from analyze_function
16209         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
16210         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
16211         tree real_alias) cgraph_add_thunk
16212         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
16213         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
16214         created from cgraph_function_or_thunk_node
16215         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
16216         created from expand_thunk
16217         (void reset (void)): created from cgraph_reset_node
16218         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
16219         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
16220         (void remove (void)): created from cgraph_remove_node
16221         (void dump (FILE *f)): created from dump_cgraph_node
16222         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
16223         (bool get_body (void)): created from cgraph_get_body
16224         (void release_body (void)): created from cgraph_release_function_body
16225         (void unnest (void)): created from cgraph_unnest_node
16226         (void make_local (void)): created from cgraph_make_node_local
16227         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
16228         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
16229         gcov_type count, int freq)): created from cgraph_create_edge
16230         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
16231         gcov_type count, int freq)): created from cgraph_create_indirect_edge
16232         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
16233         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
16234         created from cgraph_create_edge_including_clones
16235         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
16236         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
16237         (void remove_callers (void)): created from cgraph_node_remove_callers
16238         (void remove_callees (void)): created from cgraph_node_remove_callees
16239         (enum availability get_availability (void)): created from cgraph_function_body_availability
16240         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
16241         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
16242         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
16243         (void call_duplication_hooks (cgraph_node *node2)): created from
16244         cgraph_call_node_duplication_hooks
16245         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
16246         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
16247         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
16248         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
16249         (void call_function_insertion_hooks (void)):
16250         created from cgraph_call_function_insertion_hooks
16251         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
16252         (bool local_p (void)): created from cgraph_local_node
16253         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
16254         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
16255         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
16256         (inline bool only_called_directly_or_aliased_p (void)):
16257         created from cgraph_only_called_directly_or_aliased_p
16258         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
16259         created from cgraph_will_be_removed_from_program_if_no_direct_calls
16260         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
16261         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
16262         (bool can_remove_if_no_direct_calls_p (void)):
16263         created from cgraph_can_remove_if_no_direct_calls_p
16264         (inline bool has_gimple_body_p (void)):
16265         created from cgraph_function_with_gimple_body_p
16266         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
16267         (static void dump_cgraph (FILE *f)): created from dump_cgraph
16268         (static inline void debug_cgraph (void)): created from debug_cgraph
16269         (static void record_function_versions (tree decl1, tree decl2)):
16270         created from record_function_versions
16271         (static void delete_function_version (tree decl)):
16272         created from delete_function_version
16273         (static void add_new_function (tree fndecl, bool lowered)):
16274         created from cgraph_add_new_function
16275         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
16276         (static cgraph_node * create (tree decl)): created from cgraph_create_node
16277         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
16278         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
16279         (static cgraph_node *get_for_asmname (tree asmname)):
16280         created from cgraph_node_for_asm
16281         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
16282         created from cgraph_same_body_alias
16283         (static bool used_from_object_file_p_worker (cgraph_node *node,
16284         void *): new function
16285         (static bool non_local_p (cgraph_node *node, void *)):
16286         created from cgraph_non_local_node_p_1
16287         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
16288         created from verify_cgraph
16289         (static bool make_local (cgraph_node *node, void *)):
16290         created from cgraph_make_node_local
16291         (static cgraph_node *create_alias (tree alias, tree target)):
16292         created from cgraph_create_function_alias
16293         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
16294         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
16295         created from cgraph_create_edge_1
16296         * cgraph.h (varpool_node):
16297         (void remove (void)): created from varpool_remove_node
16298         (void dump (FILE *f)): created from dump_varpool_node
16300 2014-07-24  Richard Biener  <rguenther@suse.de>
16302         PR ipa/61823
16303         * tree-ssa-structalias.c (create_variable_info_for_1):
16304         Use varpool_get_constructor.
16305         (create_variable_info_for): Likewise.
16307 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
16309         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
16310         subtract outgoing area size when restoring stack_pointer_rtx.
16312 2014-07-24  Nick Clifton  <nickc@redhat.com>
16314         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
16315         that operations are taking place in parallel.
16316         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
16318 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
16320         * omp-low.c (extract_omp_for_data): Add missing break statement.
16322 2014-07-24  Richard Biener  <rguenther@suse.de>
16324         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
16325         * tree-inline.c (estimate_move_cost): Add speed_p parameter
16326         and adjust MOVE_RATIO query accordingly.
16327         (estimate_num_insns): Adjust callers.
16328         * ipa-prop.c (ipa_populate_param_decls): Likewise.
16329         * ipa-cp.c (gather_context_independent_values,
16330         estimate_local_effects): Likewise.
16331         * ipa-split.c (consider_split): Likewise.
16333 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
16335         * config/i386/driver-i386.c: Remove names of unused arguments and
16336         unnecessary unused attributes.
16337         * config/i386/host-mingw32.c: Likewise.
16338         * config/i386/i386.c: Likewise.
16339         * config/i386/winnt-stubs.c: Likewise.
16340         * config/i386/winnt.c: Likewise.
16342 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16344         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
16345         (aarch64_gen_loadwb_pair): New helper function.
16346         (aarch64_expand_epilogue): Simplify code using new helper functions.
16347         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
16349 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16351         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
16352         (aarch64_gen_storewb_pair): New helper function.
16353         (aarch64_expand_prologue): Simplify code using new helper functions.
16354         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
16356 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16358         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
16359         Rename to aarch64_save_callee_saves, remove restore code.
16360         (aarch64_restore_callee_saves): New function.
16362 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16364         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
16365         (aarch64_save_callee_saves): New function to handle reg save
16366         for both core and vectore regs.
16368 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16370         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
16371         (aarch64_gen_store_pair): New helper function.
16372         (aarch64_save_or_restore_callee_save_registers)
16373         (aarch64_save_or_restore_fprs): Use new helper functions.
16375 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16377         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
16378         (aarch64_save_or_restore_callee_save_registers)
16379         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
16381 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16383         * config/aarch64/aarch64.c
16384         (aarch64_save_or_restore_callee_save_registers)
16385         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
16387 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16389         * config/aarch64/aarch64.c
16390         (aarch64_save_or_restore_callee_save_registers)
16391         (aarch64_save_or_restore_fprs): Remove 'increment'.
16393 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16395         * config/aarch64/aarch64.c
16396         (aarch64_save_or_restore_callee_save_registers)
16397         (aarch64_save_or_restore_fprs): Use register offset in
16398         cfun->machine->frame.reg_offset.
16400 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16402         * config/aarch64/aarch64.c
16403         (aarch64_save_or_restore_callee_save_registers)
16404         (aarch64_save_or_restore_fprs): Remove base_rtx.
16406 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16408         * config/aarch64/aarch64.c
16409         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
16410         to 'start_offset'.  Remove local variable 'start_offset'.
16412 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16414         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
16415         type to HOST_WIDE_INT.
16417 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16419         * config/aarch64/aarch64.c (aarch64_expand_prologue)
16420         (aarch64_save_or_restore_fprs)
16421         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
16423 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16425         * config/arm/t-rtems-eabi: Add
16426         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
16427         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
16428         mbig-endian/mthumb/march=armv7-r, and
16429         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
16430         multilibs.
16432 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16433             Chris Johns <chrisj@rtems.org>
16434             Joel Sherrill <joel.sherrill@oarcorp.com>
16436         * config.gcc: Add nios2-*-rtems*.
16437         * config/nios2/rtems.h: New file.
16438         * gcc/config/nios2/t-rtems: New file.
16440 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
16442         PR target/61396
16443         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
16444         constant numbers, not general constants.
16445         (rs6000_expand_vector_init): Ditto.
16447 2014-07-23  Nathan Sidwell  <nathan@acm.org>
16449         * gcov-tool.c (gcov_list): Declare here.
16450         (set_gcov_list): Remove.
16451         (gcov_output_files): Set gcov_list directly.
16453 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
16455         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
16457 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
16459         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
16460         callee-saved registers are available for padding purpose
16461         and r3 is not mandatory, then prefer use those callee-saved
16462         instead of r3.
16464 2014-07-23  Richard Biener  <rguenther@suse.de>
16466         * params.def (PARAM_MAX_COMBINE_INSNS): New.
16467         * combine.c: Include statistics.h and params.h.
16468         (combine_instructions): Guard three and four insn combines
16469         with max-combine-insns value.  Record statistics for combines
16470         performed.
16471         * doc/invoke.texi (max-combine-insns): Document new param.
16473 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
16475         * graphite-isl-ast-to-gimple.c:
16476         (translate_isl_ast_node_block): New function.
16477         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
16479         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
16480         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
16482 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
16484         * graphite-isl-ast-to-gimple.c:
16485         (get_max_schedule_dimensions): New function.
16486         (extend_schedule): Likewise.
16487         (generate_isl_schedule): Add calling of extend_schedule and
16488         get_max_schedule_dimensions.
16490 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16492         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
16493         (case UNSPEC): Handle UNSPEC_RBIT.
16495 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16497         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
16498         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
16500 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16502         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
16504 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
16506         * graphite-isl-ast-to-gimple.c:
16507         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
16508         (ivs_params_clear):
16509         (build_iv_mapping): New function.
16510         (translate_isl_ast_node_user): Likewise.
16511         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
16513         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
16514         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
16515         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
16517 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
16519         PR target/55701
16520         * config/arm/arm.md (setmem): New pattern.
16521         * config/arm/arm-protos.h (struct tune_params): New fields.
16522         (arm_gen_setmem): New prototype.
16523         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
16524         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
16525         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
16526         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
16527         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
16528         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
16529         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
16530         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
16531         (arm_const_inline_cost): New function.
16532         (arm_block_set_max_insns): New function.
16533         (arm_block_set_non_vect_profit_p): New function.
16534         (arm_block_set_vect_profit_p): New function.
16535         (arm_block_set_unaligned_vect): New function.
16536         (arm_block_set_aligned_vect): New function.
16537         (arm_block_set_unaligned_non_vect): New function.
16538         (arm_block_set_aligned_non_vect): New function.
16539         (arm_block_set_vect, arm_gen_setmem): New functions.
16541 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
16543         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
16545 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
16547         PR target/61855
16548         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
16549         out of #ifdef __OPTIMIZE__.
16551 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
16553         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
16554         different trapping status if -fnon-call-exceptions is enabled.
16556 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
16558         * expr.c (store_field): Handle VOIDmode for calls that return values
16559         in multiple locations.
16561 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16563         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
16564         (altivec_vsldoi_<mode>): Likewise.
16566 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
16568         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
16569         to the number of characters in the line.
16571 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
16573         * graphite-isl-ast-to-gimple.c: Add using of
16574         build_nonstandard_integer_type instead of int128_integer_type_node.
16576 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
16578         * toplev.c (output_stack_usage): Adjust the location of the warning.
16580 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
16582         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
16583         (*membar_storeload): Disable for LEON3.
16585 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16587         PR rtl-optimization/61461
16588         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
16590 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
16592         PR target/61794
16593         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
16594         Fix instruction constraint.
16595         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
16597 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
16599         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
16601 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
16603         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
16604         GNU coding standards.
16605         (nds32_register_move_cost): Likewise.
16606         (nds32_memory_move_cost): Likewise.
16607         (nds32_address_cost): Likewise.
16609 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16611         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
16613 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
16615         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
16616         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
16617         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
16618         (HAVE_sync_compare_and_swapqi): Define.
16619         (HAVE_sync_compare_and_swaphi): Likewise.
16620         (HAVE_sync_compare_and_swapsi): Likewise.
16622 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
16624         * config/mips/p5600.md: Add missing cpu tests.
16626 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16628         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
16629         (vmla_f64): Likewise.
16630         (vfms_f64): Likewise.
16631         (vmls_f64): Likewise.
16633 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16635         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
16636         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
16638 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16640         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
16641         (vmlal_high_lane_s32): Likewise.
16642         (vmlal_high_lane_u16): Likewise.
16643         (vmlal_high_lane_u32): Likewise.
16644         (vmlsl_high_lane_s16): Likewise.
16645         (vmlsl_high_lane_s32): Likewise.
16646         (vmlsl_high_lane_u16): Likewise.
16647         (vmlsl_high_lane_u32): Likewise.
16649 2014-07-17  Terry Guo  <terry.guo@arm.com>
16651         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
16652         (alus_reg): Renamed to alus_sreg.
16653         * config/arm/arm-fixed.md: Change type of non-dsp instructions
16654         from alu_reg to alu_sreg.  Change type of dsp instructions from
16655         alu_reg to alu_dsp_reg.
16656         * config/arm/thumb1.md: Likewise.
16657         * config/arm/thumb2.md: Likewise.
16658         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
16659         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
16660         with alu_sreg and alus_sreg.
16661         * config/arm/arm1026ejs.md (alu_op): Likewise.
16662         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
16663         * config/arm/arm926ejs.md (9_alu_op): Likewise.
16664         * config/arm/fa526.md (526_alu_op): Likewise.
16665         * config/arm/fa606te.md (606te_alu_op): Likewise.
16666         * config/arm/fa626te.md (626te_alu_op): Likewise.
16667         * config/arm/fa726te.md (726te_alu_op): Likewise.
16668         * config/arm/fmp626.md (mp626_alu_op): Likewise.
16669         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
16670         alu_sreg, alu_dsp_reg and alus_sreg.
16671         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
16672         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
16673         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
16674         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
16675         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
16676         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
16677         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
16678         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
16679         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
16680         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
16681         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
16682         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
16683         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
16684         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
16685         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
16686         alus_reg to alus_sreg.
16688 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
16690         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
16691         infinity format.
16693 2014-07-17  Richard Biener  <rguenther@suse.de>
16695         PR rtl-optimization/61801
16696         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
16697         don't set reg_pending_barrier if it appears in a debug-insn.
16699 2014-07-16  DJ Delorie  <dj@redhat.com>
16701         * config/rx/rx.c (rx_option_override): Fix alignment values.
16702         (rx_align_for_label): Likewise.
16704 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
16706         PR target/61737.
16707         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
16708         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
16709         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
16710         functions.
16711         (cris_print_index, cris_print_operand, cris_constant_index_p)
16712         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
16713         (cris_address_cost): Ditto last CONSTANT_P.
16714         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
16715         callers changed.  Yield cris_offsettable_symbol for non-PIC
16716         constant symbolic expressions including labels.  Yield cris_unspec
16717         for all unspecs.
16718         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
16719         target to pic_offset_table_rtx for calls that will likely go
16720         through PLT, const0_rtx when they can't.  All callers changed.
16721         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
16722         symbolic expressions to be PICified.  Remove second, redundant,
16723         assert on can_create_pseudo_p returning non-zero.  Use
16724         replace_equiv_address_nv, not replace_equiv_address, for final
16725         operand update.
16726         * config/cris/cris.md ("movsi"): Move variable t to pattern
16727         toplevel. Adjust assert for new cris_symbol_type member.  Use
16728         CONSTANT_P instead of CONSTANT_ADDRESS_P.
16729         ("*movsi_internal") <case 9>: Make check for valid unspec operands
16730         for lapc stricter.
16731         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
16732         ("call", "call_value"): Use second incoming operand as a marker
16733         for pic-offset-table-register being used.
16734         ("*expanded_call_non_v32", "*expanded_call_v32")
16735         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
16736         second incoming operand to CALL, match cris_call_type_marker.
16737         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
16738         ("*expanded_call_side"): Ditto.  Fix typo in comment.
16739         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
16740         CONSTANT_P.
16741         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
16742         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
16743         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
16744         users changed.  Add members cris_offsettable_symbol and cris_unspec.
16745         (cris_symbol_type): Rename from cris_pic_symbol_type.
16746         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
16747         just CONSTANT_P.
16748         * config/cris/cris-protos.h (cris_symbol_type_of,
16749         cris_expand_pic_call_address): Adjust prototypes.
16750         (cris_legitimate_constant_p): New prototype.
16752         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
16753         an existing tmake_file.  Don't add t-slibgcc and t-linux.
16755 2014-07-17  Jason Merrill  <jason@redhat.com>
16757         PR c++/61623
16758         * symtab.c (symtab_remove_from_same_comdat_group): Also
16759         set_comdat_group to NULL_TREE.
16760         (verify_symtab): Fix diagnostic.
16762 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
16764         PR target/61662
16765         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
16767 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
16769         Support location tracking for built-in macro tokens
16770         * input.h (is_location_from_builtin_token): New function declaration.
16771         * input.c (is_location_from_builtin_token): New function definition.
16772         * toplev.c (general_init): Tell libcpp what the pre-defined
16773         spelling location for built-in tokens is.
16775 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
16777         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
16778         on the FUNCTION_DECL.
16780 2014-07-16  Richard Biener  <rguenther@suse.de>
16782         PR other/61782
16783         * doc/extend.texi (always_inline): Clarify.
16785 2014-07-15  Eric Christopher  <echristo@gmail.com>
16787         * doc/invoke.texi (Link Options): Document -z option.
16789 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
16791         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
16792         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
16794 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
16796         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
16798 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
16800         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
16801         varpool_assemble_decl.
16802         * varpool.c (varpool_assemble_decl): Assert that node->definition is
16803         true.
16805 2014-07-15  Michael Matz  <matz@suse.de>
16807         PR rtl-optimization/61772
16808         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
16810 2014-07-15  Richard Biener  <rguenther@suse.de>
16812         * opts.c (default_options_table): Disable bit-ccp at -Og.
16814 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
16816         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
16818 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
16820         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
16821         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
16822         call langhook for unknown declaration.
16823         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
16824         * tree.h (DECL_ARGUMENTS): Update.
16825         * print-tree.c (print_node): Update.
16826         * tree-core.h (tree_decl_non_common): Remove arguments.
16827         (tree_function_decl): Add arguments.
16829 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
16831         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
16833 2014-07-14  Richard Biener  <rguenther@suse.de>
16835         PR tree-optimization/61779
16836         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
16837         simplifying a condition.
16839 2014-07-14  Richard Biener  <rguenther@suse.de>
16841         * builtins.c (c_strlen): Make only_value == 2 really only
16842         affect warning generation.
16844 2014-07-14  Richard Biener  <rguenther@suse.de>
16846         PR tree-optimization/61757
16847         PR tree-optimization/61783
16848         PR tree-optimization/61787
16849         * tree-ssa-dom.c (record_equality): Revert canonicalization
16850         change and add comment.
16851         (propagate_rhs_into_lhs): Revert previous fix, removing
16852         loop depth restriction again.
16854 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16856         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
16857         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
16858         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
16859         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
16860         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
16861         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
16862         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
16864 2014-07-14  Richard Biener  <rguenther@suse.de>
16866         * cgraph.h (decl_in_symtab_p): Make inline.
16868 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
16870         PR middle-end/61294
16871         * doc/invoke.texi (-Wmemset-transposed-args): Document.
16873         PR target/61656
16874         * config/i386/i386.c (classify_argument): Don't merge classes above
16875         number of words.
16877 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
16879         * cgraph.h (symtab_node): Add nonzero_address.
16880         (decl_in_symtab_p): Break out from ...
16881         (symtab_get_node): ... here.
16882         * fold-const.c: Include cgraph.h
16883         (tree_single_nonzero_warnv_p): Use symtab to determine
16884         if symbol is non-zero.
16885         * symtab.c (symtab_node::nonzero_address): New method.
16887 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
16889         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
16890         forgotten in previous commit.
16892 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
16894         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
16895         on builtin types.
16896         * ipa-devirt.c: Include stor-layout.h and intl.h
16897         (odr_subtypes_equivalent_p): New function.
16898         (warn_odr): New function.
16899         (warn_type_mismatch): New function.
16900         (odr_types_equivalent_p): New function.
16901         (add_type_duplicate): Use it.
16902         * common.opt (Wodr): New flag.
16903         * doc/invoke.texi (Wodr): Document new warning.
16905 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
16907         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
16908         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
16909         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
16910         (varpool_get_constructor): Push CTORS_IN timevar.
16911         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
16913 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
16915         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
16916         Remove VOID_FTYPE_PUSHORT.
16917         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
16918         Change code to USHORT_FTYPE_VOID.
16919         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
16920         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
16921         (ix86_atomic_assign_expand_fenv): Update for
16922         __builtin_ia32_fnstsw changes.
16923         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
16924         (fnstsw): Change operand 0 to nonimmediate operand.
16926 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
16928         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
16929         (varpool_get_constructor): New function.
16930         (varpool_ctor_useable_for_folding_p): Break out from ...
16931         (ctor_for_folding): ... here; use varpool_get_constructor.
16932         (varpool_assemble_decl): Likewise.
16933         * lto-streamer.h (struct output_block): Turn cgraph_node
16934         to symbol filed.
16935         (lto_input_variable_constructor): Declare.
16936         * ipa-visibility.c (function_and_variable_visibility): Use
16937         varpool_get_constructor.
16938         * cgraph.h (varpool_get_constructor): Declare.
16939         (varpool_ctor_useable_for_folding_p): New function.
16940         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
16941         parameter; return error_mark_node for non-trivial constructors.
16942         (lto_write_tree_1, DFS_write_tree): Update use of
16943         get_symbol_initial_value.
16944         (output_function): Update initialization of symbol.
16945         (output_constructor): New function.
16946         (copy_function): Rename to ..
16947         (copy_function_or_variable): ... this one; handle vars too.
16948         (lto_output): Output variable sections.
16949         * lto-streamer-in.c (input_constructor): New function.
16950         (lto_read_body): Rename from ...
16951         (lto_read_body_or_constructor): ... this one; handle vars too.
16952         (lto_input_variable_constructor): New function.
16953         * ipa-prop.c (ipa_prop_write_jump_functions,
16954         ipa_prop_write_all_agg_replacement): Update.
16955         * lto-cgraph.c (compute_ltrans_boundary): Use it.
16956         (output_cgraph_opt_summary): Set symbol to NULL.
16958 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
16960         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
16961         non-polymorphic types.
16962         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
16963         * ipa-devirt.c (types_same_for_odr): Do not explode when one
16964         of types is not polymorphic.
16966 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
16968         * lra-constraints.c (remove_inheritance_pseudos): Process
16969         destination pseudo too.
16971 2014-07-11  Rong Xu  <xur@google.com>
16973         * gcov-tool.c (gcov_output_files): Fix build error introduced in
16974         commit r212448.
16976 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
16978         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
16979         * config/avr/avr-devices.c (AVR_MCU): Same.
16980         (avr_mcu_types): add text start value to end of device list.
16981         * config/avr/avr-mcus.def: Add text section start for all devices.
16982         (ata5782): Add new avr5 device.
16983         (ata5831): Same.
16984         * config/avr/avr-tables.opt: Regenerate.
16985         * config/avr/avr.h: Add declaration for text section start handler.
16986         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
16987         SPEC functions.
16988         (LINK_SPEC): Include text section start handler to linker spec.
16989         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
16990         pass -Ttext option to linker if the text section start for the device
16991         is not zero.
16992         * config/avr/t-multilib: Regenerate.
16993         * doc/avr-mmcu.texi: Regenerate.
16995 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
16997         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
16998         * config/rs6000/aix52.h (LINK_SPEC): Same.
16999         * config/rs6000/aix53.h (LINK_SPEC): Same.
17000         * config/rs6000/aix61.h (LINK_SPEC): Same.
17001         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
17003 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
17005         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
17006         (graphite_verify): New function.
17007         (ivs_params_clear): New function.
17008         (gcc_expression_from_isl_ast_expr_id): New function.
17009         (gcc_expression_from_isl_expr_int): New function.
17010         (binary_op_to_tree): New function.
17011         (ternary_op_to_tree): New function.
17012         (unary_op_to_tree): New function.
17013         (nary_op_to_tree): New function.
17014         (gcc_expression_from_isl_expr_op): New function.
17015         (gcc_expression_from_isl_expression): New function.
17016         (graphite_create_new_loop): New function.
17017         (translate_isl_ast_for_loop): New function.
17018         (get_upper_bound): New function.
17019         (graphite_create_new_loop_guard): New function.
17020         (translate_isl_ast_node_for): New function.
17021         (translate_isl_ast): New function.
17022         (add_parameters_to_ivs_params): New function.
17023         (scop_to_isl_ast): New parameter ip.
17024         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
17026 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
17028         * config/xtensa/predicates.md (call expander): Update for
17029         DECL_SECTION_NAME being string.
17031 2014-07-11  Richard Biener  <rguenther@suse.de>
17033         PR middle-end/61473
17034         * builtins.c (fold_builtin_memory_op): Inline memory moves that
17035         can be implemented with a single load followed by a single store.
17036         (c_strlen): Only warn when only_value is not 2.
17038 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
17040         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
17042 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
17044         PR target/61561
17045         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
17046         (*movhi_bytes): Likewise.
17047         (*arm_movqi_insn): Likewise.
17049 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
17051         PR target/56858
17052         * config/alpha/alpha.c: Include tree-pass.h, context.h
17053         and pass_manager.h.
17054         (pass_data_handle_trap_shadows): New pass.
17055         (pass_handle_trap_shadows::gate): New pass gate function.
17056         (make_pass_handle_trap_shadows): New function.
17057         (rest_of_handle_trap_shadows): Ditto.
17059         (alpha_align_insns_1): Rename from alpha_align_insns.
17060         (pass_data_align_insns): New pass.
17061         (pass_align_insns::gate): New pass gate function.
17062         (make_pass_aling_insns): New function.
17063         (rest_of_align_insns): Ditto.
17064         (alpha_align_insns): Ditto.
17066         (alpha_option_override): Declare handle_trap_shadows info
17067         and align_insns_info.  Register handle_trap_shadows and align_insns
17068         passes here.
17069         (alpha_reorg): Do not call alpha_trap_shadows and
17070         alpha_align_insn from here.
17072         (alpha_pad_function_end): Do not skip BARRIERs.
17074 2014-07-10  Rong Xu  <xur@google.com>
17076         Add gcov-tool: an offline gcda profile processing tool support.
17077         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
17078         (gcov_is_error): Ditto.
17079         (gcov_read_string): Ditto.
17080         (gcov_read_sync): Ditto.
17081         * gcov-io.h: Move counter defines to gcov-counter.def.
17082         * gcov-dump.c (tag_counters): Use gcov-counter.def.
17083         * coverage.c: Ditto.
17084         * gcov-tool.c: Offline gcda profile processing tool.
17085         (unlink_gcda_file): Remove one gcda file.
17086         (unlink_profile_dir): Remove gcda files from the profile path.
17087         (gcov_output_files): Output gcda files to an output dir.
17088         (profile_merge): Merge two profiles in directory.
17089         (print_merge_usage_message): Print merge usage.
17090         (merge_usage): Print merge usage and exit.
17091         (do_merge): Driver for profile merge sub-command.
17092         (profile_rewrite): Rewrite profile.
17093         (print_rewrite_usage_message): Print rewrite usage.
17094         (rewrite_usage): Print rewrite usage and exit.
17095         (do_rewrite): Driver for profile rewrite sub-command.
17096         (print_usage): Print gcov-info usage and exit.
17097         (print_version): Print gcov-info version.
17098         (process_args): Process arguments.
17099         (main): Main routine for gcov-tool.
17100         * Makefile.in: Build and install gcov-tool.
17101         * gcov-counter.def: New file split from gcov-io.h.
17102         * doc/gcc.texi: Include gcov-tool.texi.
17103         * doc/gcov-tool.texi: Document for gcov-tool.
17105 2014-07-10  Richard Biener  <rguenther@suse.de>
17107         PR tree-optimization/61757
17108         * tree-ssa-dom.c (loop_depth_of_name): Restore.
17109         (propagate_rhs_into_lhs): Revert part of last change.
17111 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
17113         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
17114         FUNCTION_DECLs.
17116 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
17118         PR middle-end/53590
17119         * function.c (allocate_struct_function): Revert r188667 change.
17121         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
17123 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
17125         * doc/install.texi: Remove links to defunct package providers for
17126         Solaris.
17128 2014-07-09  Tom de Vries  <tom@codesourcery.com>
17130         * final.c (get_call_fndecl): Declare.
17131         (self_recursive_call_p): New function.
17132         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
17134 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17136         * ipa-devirt.c (record_node): Walk through aliases.
17138 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17140         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
17142 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17144         Revert:
17145         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
17147 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17149         * ipa-visibility.c (function_and_variable_visibility): Remove
17150         temporary hack disabling local aliases on AIX.
17152 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17154         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
17155         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
17157 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17159         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
17160         * rs6000/rs6000.c: Inline output of .set instruction.
17161         (declare_alias_data): New struct.
17162         (rs6000_declare_alias): New function.
17163         (rs6000_xcoff_declare_function_name): Use it.
17164         (rs6000_xcoff_declare_object_name): New function.
17165         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
17166         (ASM_OUTPUT_DEF): Turn to empty definition.
17168 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
17170         PR bootstrap/61679
17171         * hash-table.h: use hash_table::value_type instead of
17172         Descriptor::value_type in the return types of several methods.
17174 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
17176         * tree-pass.h (pass_data): Remove has_execute member.
17177         * passes.c (execute_one_pass): Don't check pass->has_execute.
17178         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
17179         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
17180         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
17181         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
17182         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
17183         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
17184         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
17185         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
17186         gimple-low.c, gimple-ssa-isolate-paths.c,
17187         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
17188         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
17189         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
17190         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
17191         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
17192         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
17193         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
17194         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
17195         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
17196         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
17197         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
17198         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
17199         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
17200         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17201         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
17202         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
17203         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
17204         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
17205         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
17206         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
17207         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
17208         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
17209         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
17210         web.c: Remove initializer for pass_data::has_execute.
17212 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
17214         * graphite-htab.h: Use hash_map instead of hash_table.
17215         * graphite-clast-to-gimple.c: Adjust.
17216         * passes.c: Use hash_map instead of hash_table.
17217         * sese.c: Likewise.
17218         * sese.h: Remove now unused code.
17220 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
17222         PR target/61599
17223         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
17224         than zero.
17226 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
17228         PR rtl-optimization/61673
17229         * combine.c (simplify_comparison): Test just mode's sign bit
17230         in tmode rather than the sign bit and any bits above it.
17232 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
17234         * graphite-isl-ast-to-gimple.c (generate_isl_context):
17235         Add __isl_give to the declaration.
17236         (generate_isl_schedule): Likewise.
17237         (scop_to_isl_ast): Likewise.
17239 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17241         * config/arm/arm.c (cortexa5_extra_costs): New table.
17242         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
17244 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
17246         PR tree-optimization/61725
17247         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
17248         range, use range_includes_zerop_p instead of integer_zerop on
17249         vr0->min, only use log2 of max if min is not negative.
17251 2014-07-08  Richard Biener  <rguenther@suse.de>
17253         * tree-ssa-dom.h (loop_depth_of_name): Remove.
17254         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
17255         restriction on loop depth difference.
17256         (record_equality): Likewise.
17257         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
17258         (loop_depth_of_name): Remove.
17259         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
17260         restriction on loop depth difference.
17261         (init_copy_prop): Likewise.
17263 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
17265         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
17266         parameter.
17267         (walk_aliased_vdefs): Likewise.
17268         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
17269         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
17270         (detect_type_change_from_memory_writes): Check if entry was reached.
17272 2014-07-08  Richard Biener  <rguenther@suse.de>
17274         PR tree-optimization/61681
17275         * tree-ssa-structalias.c (find_what_var_points_to): Expand
17276         NONLOCAL inside ESCAPED.
17278 2014-07-08  Richard Biener  <rguenther@suse.de>
17280         PR tree-optimization/61680
17281         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17282         Handle properly all read-write dependences with group accesses.
17284 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
17286         PR tree-optimization/61576
17287         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
17288         block containing reduction statement is predecessor of phi basi block.
17290 2014-07-08  Marek Polacek  <polacek@redhat.com>
17292         PR c/60226
17293         * fold-const.c (round_up_loc): Change the parameter type.
17294         Remove assert.
17295         * fold-const.h (round_up_loc): Adjust declaration.
17296         * stor-layout.c (finalize_record_size): Check for too large types.
17298 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
17300         * symtab.c: Include calls.h.
17301         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
17303 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
17305         * config/rs6000/rs6000.c (output_vec_const_move): Handle
17306         little-endian code generation.
17307         * config/rs6000/spe.md (spe_evmergehi): Rename to...
17308         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
17309         (spe_evmergehilo): Rename to...
17310         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
17311         (spe_evmergelo): Rename to...
17312         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
17313         (spe_evmergelohi): Rename to...
17314         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
17315         (spe_evmergehi, spe_evmergehilo): New expanders.
17316         (spe_evmergelo, spe_evmergelohi): Likewise.
17317         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
17318         (*frob_tf_ti): Likewise.
17319         (*frob_<mode>_di_2): Likewise.
17320         (*frob_tf_di_8_2): Likewise.
17321         (*frob_di_<mode>): Likewise.
17322         (*frob_ti_tf): Likewise.
17323         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
17324         (*frob_ti_<mode>_8_2): Likewise.
17325         (*frob_ti_tf_2): Likewise.
17326         (mov_si<mode>_e500_subreg0): Rename to...
17327         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
17328         endianness only.
17329         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
17330         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
17331         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
17332         the big endianness only.
17333         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
17334         (*mov_si<mode>_e500_subreg0_2): Rename to...
17335         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
17336         big big endianness only.
17337         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
17338         (*mov_si<mode>_e500_subreg4): Rename to...
17339         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
17340         endianness only.
17341         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
17342         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
17343         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
17344         the big endianness only.
17345         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
17346         pattern.
17347         (*mov_si<mode>_e500_subreg4_2): Rename to...
17348         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
17349         endianness only.
17350         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
17351         (*mov_sitf_e500_subreg8): Rename to...
17352         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
17353         endianness only.
17354         (*mov_sitf_e500_subreg8_le): New instruction pattern.
17355         (*mov_sitf_e500_subreg8_2): Rename to...
17356         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
17357         endianness only.
17358         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
17359         (*mov_sitf_e500_subreg12): Rename to...
17360         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
17361         endianness only.
17362         (*mov_sitf_e500_subreg12_le): New instruction pattern.
17363         (*mov_sitf_e500_subreg12_2): Rename to...
17364         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
17365         endianness only.
17366         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
17368 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
17370         * asan.c (instrument_strlen_call): Do not instrument first byte
17371         in strlen if already instrumented.
17373 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17375         * config/arm/arm.opt (mwords-little-endian): Delete.
17376         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
17377         of TARGET_LITTLE_WORDS.
17378         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
17379         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
17380         warning.
17381         * doc/invoke.texi: Remove references to -mwords-little-endian.
17383 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
17385         * expmed.c (struct init_expmed_rtl): Change all fields but
17386         pow2 and cint from struct rtx_def to rtx.
17387         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
17388         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
17389         at the end again.
17391 2014-07-06  Marek Polacek  <polacek@redhat.com>
17393         PR c/6940
17394         * doc/invoke.texi: Document -Wsizeof-array-argument.
17396 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
17398         * wide-int.h (wide_int_storage): Change declaration from struct
17399         to class.
17401 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
17403         * cgraph.c (cgraph_create_indirect_edge): Update call of
17404         get_polymorphic_call_info.
17405         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
17406         (possible_polymorphic_call_targets): Add parameter call.
17407         (decl_maybe_in_construction_p): New predicate.
17408         (get_polymorphic_call_info): Add parameter call;
17409         use decl_maybe_in_construction_p.
17410         * gimple-fold.c (fold_gimple_assign): Update use of
17411         possible_polymorphic_call_targets.
17412         (gimple_fold_call): Likewise.
17413         * ipa-prop.c: Inlcude calls.h
17414         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
17415         (param_type_may_change_p): New predicate.
17416         (detect_type_change_from_memory_writes): Break out from ...
17417         (detect_type_change): ... this one; use param_type_may_change_p.
17418         (detect_type_change_ssa): Use param_type_may_change_p.
17419         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
17421 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
17423         PR target/49423
17424         * config/arm/arm-protos.h (arm_legitimate_address_p,
17425         arm_is_constant_pool_ref): Add prototypes.
17426         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
17427         (arm_is_constant_pool_ref) New function.
17428         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
17429         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
17430         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
17431         operand. Remove pool_range and neg_pool_range attributes.
17432         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
17433         pool_range and neg_pool_range attributes.
17434         * config/arm/constraints.md (Uh): New constraint.
17435         (Uq): Don't allow constant pool references.
17437 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
17439         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
17440         (move_lo_quad_internal_be_<mode>): Likewise.
17441         (move_lo_quad_<mode>): Convert to define_expand.
17442         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
17443         (aarch64_simd_move_hi_quad_be_<mode>): New.
17444         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
17445         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
17446         (aarch64_combinez_be<mode>): New.
17447         (aarch64_combine<mode>): Convert to define_expand.
17448         (aarch64_combine_internal<mode>): New.
17449         (aarch64_simd_combine<mode>): Remove bogus RTL description.
17451 2014-07-04  Tom de Vries  <tom@codesourcery.com>
17453         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
17454         combination of earlyclobber and read/write modifiers.
17456 2014-07-04  Tom de Vries  <tom@codesourcery.com>
17458         * config/aarch64/aarch64-simd.md
17459         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
17461 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
17463         PR target/61714
17464         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
17466 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
17468         PR middle-end/61654
17469         * cgraphunit.c (expand_thunk): Call free_dominance_info.
17471         PR tree-optimization/61684
17472         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
17473         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
17475 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17476             Kito Cheng  <kito@0xlab.org>
17477             Monk Chiang  <sh.chiang04@gmail.com>
17479         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
17480         (nds32_symbol_load_store_p): Move to ...
17481         (nds32_fp_as_gp_check_available): Move to ...
17482         * config/nds32/nds32-fp-as-gp.c: ... here.
17483         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
17484         extern declaration.
17486 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17487             Kito Cheng  <kito@0xlab.org>
17488             Monk Chiang  <sh.chiang04@gmail.com>
17490         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
17491         (nds32_expand_store_multiple): Move to ...
17492         (nds32_expand_movmemqi): Move to ...
17493         * config/nds32/nds32-memory-manipulation.c: ... here.
17495 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17496             Kito Cheng  <kito@0xlab.org>
17497             Monk Chiang  <sh.chiang04@gmail.com>
17499         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
17500         (nds32_output_casesi_pc_relative): Move to ...
17501         (nds32_output_casesi): Move to ...
17502         (nds32_mem_format): Move to ...
17503         (nds32_output_16bit_store): Move to ...
17504         (nds32_output_16bit_load): Move to ...
17505         (nds32_output_32bit_store): Move to ...
17506         (nds32_output_32bit_load): Move to ...
17507         (nds32_output_32bit_load_s): Move to ...
17508         (nds32_output_stack_push): Move to ...
17509         (nds32_output_stack_pop): Move to ...
17510         * config/nds32/nds32-md-auxiliary.c: ... here.
17512 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17513             Ling-Hua Tseng  <uranus@tinlans.org>
17515         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
17516         the purpose of this file.
17518 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17519             Kito Cheng  <kito@0xlab.org>
17520             Monk Chiang  <sh.chiang04@gmail.com>
17522         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
17523         (nds32_address_cost): Move implementation to ...
17524         * config/nds32/nds32-cost.c: ... here.
17525         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
17526         (nds32_address_cost_impl): Declare.
17528 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17529             Kito Cheng  <kito@0xlab.org>
17530             Monk Chiang  <sh.chiang04@gmail.com>
17532         * config/nds32/nds32.c
17533         (nds32_consecutive_registers_load_store_p): Move to ...
17534         (nds32_valid_multiple_load_store): Move to ...
17535         (nds32_valid_stack_push_pop): Move to ...
17536         (nds32_can_use_bclr_p): Move to ...
17537         (nds32_can_use_bset_p): Move to ...
17538         (nds32_can_use_btgl_p): Move to ...
17539         (nds32_can_use_bitci_p): Move to ...
17540         * config/nds32/nds32-predicates.c: ... here.
17542 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17543             Kito Cheng  <kito@0xlab.org>
17544             Monk Chiang  <sh.chiang04@gmail.com>
17546         * config/nds32/nds32.c
17547         (nds32_expand_builtin_null_ftype_reg): Move to ...
17548         (nds32_expand_builtin_reg_ftype_imm): Move to ...
17549         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
17550         (nds32_init_builtins): Move implementation to ...
17551         (nds32_expand_builtin): Move implementation to ...
17552         * config/nds32/nds32-intrinsic.c: ... here.
17553         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
17554         (nds32_expand_builtin_impl): Declare.
17556 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17557             Kito Cheng  <kito@0xlab.org>
17558             Monk Chiang  <sh.chiang04@gmail.com>
17560         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
17561         (nds32_emit_section_tail_template): Move to ...
17562         (nds32_emit_isr_jmptbl_section): Move to ...
17563         (nds32_emit_isr_vector_section): Move to ...
17564         (nds32_emit_isr_reset_conten): Move to ...
17565         (nds32_check_isr_attrs_conflict): Move to ...
17566         (nds32_construct_isr_vectors_information): Move to ...
17567         (nds32_asm_file_start): Move implementation to ...
17568         (nds32_asm_file_end): Move implementation to ...
17569         * config/nds32/nds32-isr.c: ... here.
17570         * config/nds32/nds32-protos.h
17571         (nds32_check_isr_attrs_conflict): Declare.
17572         (nds32_construct_isr_vectors_information): Declare.
17573         (nds32_asm_file_start_for_isr): Declare.
17574         (nds32_asm_file_end_for_isr): Declare.
17576 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
17577             Kito Cheng  <kito@0xlab.org>
17578             Monk Chiang  <sh.chiang04@gmail.com>
17580         * config.gcc (nds32*): Add new modules to extra_objs.
17581         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
17582         (nds32be-*-*): Likewise.
17583         * config/nds32/nds32-cost.c: New file.
17584         * config/nds32/nds32-fp-as-gp.c: New file.
17585         * config/nds32/nds32-intrinsic.c: New file.
17586         * config/nds32/nds32-isr.c: New file.
17587         * config/nds32/nds32-md-auxiliary.c: New file.
17588         * config/nds32/nds32-memory-manipulation.c: New file.
17589         * config/nds32/nds32-pipelines-auxiliary.c: New file.
17590         * config/nds32/nds32-predicates.c: New file.
17591         * config/nds32/t-nds32: New file.
17593 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
17595         PR tree-optimization/61682
17596         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
17597         using cases and when one of the operands is equal to 1.
17599 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
17601         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
17602         ashr<mode>3): Correct mode of operands[2].
17603         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
17604         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
17605         Correct mode of operands[2].  Fix split condition.
17607 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
17609         * arm.md (arch): Add armv6_or_vfpv3.
17610         (arch_enabled): Add test for the above.
17611         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
17612         on VFP9.
17613         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
17615 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
17617         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
17618         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
17619         HWI 1 and negate the unsigned value.
17620         * expmed.c (expand_sdiv_pow2): For modes wider than word always
17621         use AND instead of shift.
17622         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
17624 2014-07-03  Marek Polacek  <polacek@redhat.com>
17626         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
17627         (-fsanitize=float-divide-by-zero): Move to the table with
17628         -fsanitize=undefined suboptions.
17629         (-fsanitize=float-cast-overflow): Likewise.
17631 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
17633         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
17634         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
17635         endianness.
17637 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17639         * loop-invariant.c (struct invariant): Add a new member: eqno;
17640         (find_identical_invariants): Update eqno;
17641         (create_new_invariant): Init eqno;
17642         (get_inv_cost): Compute comp_cost with eqno;
17644 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
17646         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
17647         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
17648         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
17649         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
17650         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
17652 2014-07-02  Christian Bruel  <christian.bruel@st.com>
17654         PR target/29349
17655         PR target/53513
17656         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
17657         (make_preds_opaque): Delete.
17658         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
17659         (commit_mode_sets): New function.
17660         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
17661         Process all modes at once.
17662         * basic-block.h (pre_edge_lcm_avs): Declare.
17663         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
17664         Call clear_aux_for_edges. Fix comments.
17665         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
17666         (pre_edge_rev_lcm): Idem.
17667         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
17668         parameter.
17669         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
17670         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
17671         Idem.
17672         * config/i386/i386.c (x96_emit_mode_set): Idem.
17673         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
17674         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
17675         (fpscr_toggle) Disallow from delay slot.
17676         * target.def (emit_mode_set): Add prev_mode parameter.
17677         * doc/tm.texi: Regenerate.
17679 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17681         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
17682         variable i.
17684 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
17686         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
17687         vtable_pointer_value_to_vtable): Constify.
17688         (contains_polymorphic_type_p): Declare.
17689         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
17690         vtable_pointer_value_to_vtable): Constify.
17691         (contains_polymorphic_type_p): New predicate.
17692         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
17693         polymorphic types.
17694         (ipa_set_ancestor_jf): Likewise.
17695         (detect_type_change): Return false in easy cases.
17696         (compute_complex_assign_jump_func): Require type to contain
17697         polymorphic type.
17698         (compute_known_type_jump_func): Likewise.
17700 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
17702         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
17703         Remove.
17704         (type_in_anonymous_namespace_p): Constify argument.
17705         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
17706         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
17707         (main_odr_variant): New function.
17708         (hash_type_name): Make static; update assert; do not ICE on
17709         non-records.
17710         (types_same_for_odr): Bring here from tree.c; simplify and remove
17711         old structural comparing code that doesn't work for templates.
17712         (odr_hasher::equal): Update assert.
17713         (add_type_duplicate): Return true when bases should be computed;
17714         replace incomplete loader by complete; do not output duplicated
17715         warnings; do not ICE on non-records; set odr_violated flag.
17716         (get_odr_type): Be ready to replace incomplete type by complete
17717         one; work on ODR variants instead of main variants; reorder item
17718         in array so bases have still smaller indexes.
17719         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
17720         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
17722 2014-07-01  Cary Coutant  <ccoutant@google.com>
17724         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
17725         lookup.
17726         (resolve_addr_in_expr): When replacing the rtx in a location list
17727         entry, get a new address table entry.
17728         (dwarf2out_finish): Call index_location_lists even if there are no
17729         addr_index_table entries yet.
17731 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
17733         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
17734         change for not being obvious.
17736 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
17738         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
17739         unused argument.
17741 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17743         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
17744         (vcagt_f64): Likewise.
17745         (vcale_f64): Likewise.
17746         (vcaled_f64): Likewise.
17747         (vcales_f32): Likewise.
17748         (vcalt_f64): Likewise.
17749         (vcaltd_f64): Likewise.
17750         (vcalts_f32): Likewise.
17752 2014-07-01  Marek Polacek  <polacek@redhat.com>
17754         * doc/invoke.texi: Document -Wint-conversion.
17756 2014-07-01  Marek Polacek  <polacek@redhat.com>
17758         PR c/58286
17759         * doc/invoke.texi: Document -Wincompatible-pointer-types.
17761 2014-07-01  Martin Liska  <mliska@suse.cz>
17763         IPA REF alias refactoring
17764         * cgraph.h (iterate_direct_aliases): New function.
17765         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
17766         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
17767         FOR_EACH_ALIAS added.
17768         (cgraph_for_node_and_aliases): Likewise.
17769         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
17770         * ipa-inline.c (reset_edge_caches): Likewise.
17771         (update_caller_keys): Likewise.
17772         * trans-mem.c (ipa_tm_execute): Likewise.
17773         *varpool.c (varpool_analyze_node): Likewise.
17774         (varpool_for_node_and_aliases): Likewise.
17775         * ipa-ref.h (first_alias): New function.
17776         (last_alias): Likewise.
17777         (has_aliases_p): Likewise.
17778         * ipa-ref.c (ipa_ref::remove_reference): Removal function
17779         is sensitive to IPA_REF_ALIASes.
17780         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
17781         are put at the beginning of the list.
17782         (symtab_node::iterate_direct_aliases): New function.
17784 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17786         Revert:
17787         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
17788         type is complete.
17789         (write_ts_type_common_tree_pointers): Do not stream fields not set
17790         for incomplete types; do not stream duplicated fields for variants;
17791         sanity check that variant and type match.
17792         (write_ts_type_non_common_tree_pointers): Likewise.
17793         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
17794         TYPE_SIZE whether type is complete.
17795         (lto_input_ts_type_common_tree_pointers): Do same changes as in
17796         write_ts_type_common_tree_pointers
17797         (lto_input_ts_type_non_common_tree_pointers): Likewise.
17799 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
17801         * var-tracking.c (add_stores): Return instead of asserting if old
17802         and new values for conditional store are the same.
17804 2014-06-30  Richard Henderson  <rth@redhat.com>
17806         PR rtl-opt/61608
17807         PR target/39284
17808         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
17809         the cfg if there were any changes.
17810         * passes.def: Revert move of peephole2 after reorder_blocks;
17811         move duplicate_computed_gotos before peephole2.
17813 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
17815         * except.c (emit_note_eh_region_end): New helper function.
17816         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
17817         emit EH_REGION_END note.
17818         * jump.c (cleanup_barriers): Do not split a call and its
17819         corresponding CALL_ARG_LOCATION note.
17821 2014-06-30  Jeff Law  <law@redhat.com>
17823         PR tree-optimization/61607
17824         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
17825         deeper into the SSA_NAME_VALUE chain.
17827 2014-06-30  Marek Polacek  <polacek@redhat.com>
17829         * convert.c (convert_to_integer): Don't instrument conversions if the
17830         function has no_sanitize_undefined attribute.
17831         * ubsan.c: Don't run the ubsan pass if the function has
17832         no_sanitize_undefined attribute.
17834 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
17836         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
17837         -fsanitize=undefined suboptions.
17839 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
17841         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
17842         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
17843         against bigendian and adjust indices.
17845 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
17847         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
17849 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17851         PR target/61633
17852         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
17853         Add alternative; make early clobber.  Adjust both split patterns
17854         to use operand 0 as the working register.
17856 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
17858         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
17859         as ira_object_id_map might be NULL, or 1.
17861 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17863         * loop-invariant.c (get_inv_cost): Handle register class.
17864         (gain_for_invariant): Check the register pressure of the inv
17865         and its overlapped register class, other than all.
17867 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
17869         * doc/invoke.texi (Optimize Options): Fix descriptions of
17870         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
17872 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
17874         * doc/extend.texi (Function Attributes): Update 'naked' attribute
17875         documentation.
17877 2014-06-29  Tobias Grosser <tobias@grosser.es>
17879         PR bootstrap/61650
17880         * graphite-isl-ast-to-gimple.c: Add missing guards.
17882 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
17884         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
17885         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
17886         * flag-types.h: Add new enum fgraphite_generator.
17887         * graphite-isl-ast-to-gimple.c: New.
17888         * graphite-isl-ast-to-gimple.h: New.
17889         * graphite.c (graphite_transform_loops): Add choice of Graphite
17890         code generator, which depends on flag_graphite_code_gen.
17892 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
17894         * graphite-dependences.c (subtract_commutative_associative_deps):
17895         Add NULL checking of the following variables: must_raw_no_source,
17896         may_raw_no_source, must_war_no_source, may_war_no_source,
17897         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
17898         must_war, may_war, must_waw, may_waw.
17900 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
17902         * graphite-clast-to-gimple.c: gloog is renamed to
17903         graphite_regenerate_ast_cloog.  gloog_error is renamed to
17904         graphite_regenerate_error.
17905         * graphite-clast-to-gimple.h: The definition of the struct
17906         bb_pbb_def is moved to graphite-htab.h.
17907         Add inclusion of the hash-table.h.
17908         * graphite-htab.h: The declaration of the function gloog is moved
17909         to graphite-clast-to-gimple.h and renamed to
17910         graphite_regenerate_ast_cloog.
17911         * graphite.c (graphite_transform_loops): gloog is renamed
17912         to graphite_regenerate_ast_cloog.
17914 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17916         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
17917         type is complete.
17918         (write_ts_type_common_tree_pointers): Do not stream fields not set
17919         for incomplete types; do not stream duplicated fields for variants;
17920         sanity check that variant and type match.
17921         (write_ts_type_non_common_tree_pointers): Likewise.
17922         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
17923         TYPE_SIZE whether type is complete.
17924         (lto_input_ts_type_common_tree_pointers): Do same changes as in
17925         write_ts_type_common_tree_pointers
17926         (lto_input_ts_type_non_common_tree_pointers): Likewise.
17928 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17930         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
17932 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17934         * tree-inline.c (remap_type_1): Do not duplicate fields
17935         that are shared in between type and its main variant.
17937 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17939         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
17940         of the type.
17941         (ipa_set_ancestor_jf) Likewise.
17942         (check_stmt_for_type_change): Check that we work on main variant.
17943         (detect_type_change): Look into main variant.
17944         (compute_known_type_jump_func): Check that main variant has BINFO.
17946 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17948         * ipa-devirt.c (set_type_binfo): New function.
17949         (add_type_duplicate): Use it.
17950         (get_odr_type): Sanity check that binfos points to main variants.
17951         (get_class_context): Be sure the context's outer_type is main variant.
17952         (contains_type_p): Walk main variant.
17953         (get_polymorphic_call_info_for_decl): Set outer_type to be
17954         main variant.
17955         (get_polymorphic_call_info): Likewise.
17956         (possible_polymorphic_call_targets): Sanity check that we operate
17957         on main variant.
17959 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
17961         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
17963 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17965         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
17966         accidental change due to wide-int branch merge.
17968 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17970         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
17971         compressed debug support.
17972         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
17973         * configure: Regenerate.
17974         * config.in: Regenerate.
17975         * common.opt (compressed_debug_sections): New enum.
17976         (gz, gz=): New options.
17977         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
17978         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
17979         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
17980         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
17981         LINK_COMPRESS_DEBUG_SPEC.
17982         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
17983         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
17984         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
17985         (Debugging Options): Document -gz[=type].
17987 2014-06-27  Martin Jambor  <mjambor@suse.cz>
17989         PR ipa/61160
17990         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
17991         args_to_skip, use those from node instead.  Copy args_to_skip and
17992         combined_args_to_skip from node to the new thunk.
17993         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
17994         (cgraph_create_virtual_clone): Moved computation of
17995         combined_args_to_skip...
17996         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
17998 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
18000         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
18001         redundant diagnostic machinary.
18003 2014-06-27  Richard Biener  <rguenther@suse.de>
18005         * tree-ssa-math-opts.c (bswap_replace): Fix
18006         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
18008 2014-06-27  Martin Liska  <mliska@suse.cz>
18010         * gimple.h (gimple_location_safe): New function introduced.
18011         * cgraphunit.c (walk_polymorphic_call_targets): Usage
18012         of gimple_location_safe replaces gimple_location.
18013         (gimple_fold_call): Likewise.
18014         * ipa-devirt.c (ipa_devirt): Likewise.
18015         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
18016         * ipa.c (walk_polymorphic_call_targets): Likewise.
18017         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
18019 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
18021         PR tree-optimization/57233
18022         PR tree-optimization/61299
18023         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
18024         functions.
18025         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
18026         would be lowered to scalar shifts, check if corresponding
18027         shifts and vector BIT_IOR_EXPR are supported and don't lower
18028         or lower just to narrower vector type in that case.
18029         * expmed.c (expand_shift_1): Fix up handling of vector
18030         shifts and rotates.
18032 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
18034         PR target/61586
18035         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
18037 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
18039         * doc/invoke.texi (-fsemantic-interposition): Document.
18040         * common.opt (fsemantic-interposition): New flag.
18041         * varasm.c (decl_replaceable_p): Use it.
18043 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18045         PR target/61542
18046         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
18047         extraction other than index 3.
18049 2014-06-26  Teresa Johnson  <tejohnson@google.com>
18051         * doc/invoke.texi: Fix typo.
18052         * dumpfile.c: Add support for documented -fdump-* options
18053         optimized/missed/note/optall.
18055 2014-06-26  Martin Jambor  <mjambor@suse.cz>
18057         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
18058         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
18059         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
18060         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
18061         * opts.c (default_options_optimization): Set
18062         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
18063         * doc/invoke.texi (allow-load-data-races)
18064         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
18065         (allow-store-data-races): Document the new default.
18067 2014-06-26  Martin Jambor  <mjambor@suse.cz>
18069         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
18070         renamed to ipa_impossible_devirt_target.  Fix typo.
18071         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
18072         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
18073         ipa_impossible_devirt_target.
18075 2014-06-26  Richard Biener  <rguenther@suse.de>
18077         PR tree-optimization/61607
18078         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
18079         explaining why we restrict copies on loop depth.
18080         * tree-ssa-dom.c (cprop_operand): Remove restriction on
18081         on loop depth.
18082         (record_equivalences_from_phis): Instead add it here.
18084 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
18086         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
18087         (LTO_WRAPPER_OBJS): New variable.
18088         (lto-wrapper$(exeext)): Use it.
18089         * collect2.c: Include "collect-utils.h".
18090         (verbose, debug): Remove variables.
18091         (at_file_supplied): No longer static.
18092         (tool_name): New variable.
18093         (do_wait, fork_execute, maybe_unlink): Don't declare.
18094         (tool_cleanup): No longer static.
18095         (notice): Remove function.
18096         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
18097         fork_execute calls.
18098         (collect_wait, do_wait, collect_execute): Remove functions.
18099         (maybe_unlink): No longer static.
18100         * collect2.h (verbose, debug): Don't declare.
18101         (at_file_supplied): Declare.
18102         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
18103         changed.
18104         (collect_execute): Replace with implementation from collect2, plus a
18105         new arg use_atfile.  All callers changed.
18106         (collect_wait): Replace with implementation from collect2.
18107         (maybe_unlink_file): Remove function.
18108         (fork_execute): Replace with implementation from collect2, plus a
18109         new arg use_atfile.  All callers changed.
18110         (do_wait): Add call to utils_cleanup to the error path.
18111         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
18112         (tool_cleanup): Adjust declarations.
18113         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
18114         * tlink.c: Include "collect-utils.h".
18115         (tlink_execute): New arg use_atfile.  All callers changed.
18116         (tlink_init, tlink_execute): Remove declarations.
18118         * collect-utils.c (save_temps): New variable.
18119         (do_wait): Use it instead of debug.  Use fatal_error.
18120         * collect-utils.h (save_temps): Declare.
18121         * collect2.c (verbose): Rename from vflag.  All uses changed.
18122         (tool_cleanup): New function, copied from collect_atexit.
18123         (collect_atexit, handler): Just call it.
18124         * collect2.h (verbose): Declaration renamed from vflag.
18125         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
18126         debug.
18128         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
18129         (lto-wrapper$(exeext)): Link with collect-utils.o.
18130         * collect-utils.c: New file.
18131         * collect-utils.h: New file.
18132         * lto-wrapper.c: Include "collect-utils.h".
18133         (args_name): Delete variable.
18134         (tool_name): New variable.
18135         (tool_cleanup): New function.
18136         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
18137         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
18138         (fork_execute): Remove functions.
18140 2014-06-26  Nick Clifton  <nickc@redhat.com>
18142         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
18144         * doc/extend.texi (Function Attributes): Fix typo in description
18145         of RX vector attribute.
18147 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
18149         * config.gcc (supported_defaults): Error when passing either
18150         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
18152 2014-06-26  Richard Biener  <rguenther@suse.de>
18154         * tree-ssa-dom.c (cprop_operand): Remove restriction on
18155         propagating volatile pointers.
18157 2014-06-26  Richard Biener  <rguenther@suse.de>
18159         PR tree-optimization/61607
18160         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
18161         loop if we redirected its latch edge.
18162         (thread_block_1): Do not cancel loops prematurely.
18164 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
18166         * toplev.c (backend_init_target): Move init_emit_regs and
18167         init_regs to...
18168         (backend_init) ... here; skip ira_init_once and backend_init_target.
18169         (target_reinit) ... and here; clear
18170         this_target_rtl->lang_dependent_initialized.
18171         (lang_dependent_init_target): Clear
18172         this_target_rtl->lang_dependent_initialized;
18173         break out rtl initialization to ...
18174         (initialize_rtl): ... here; call also backend_init_target
18175         and ira_init_once.
18176         * toplev.h (initialize_rtl): New function.
18177         * function.c: Include toplev.h
18178         (init_function_start): Call initialize_rtl.
18179         * rtl.h (target_rtl): Add target_specific_initialized,
18180         lang_dependent_initialized.
18182 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
18183             Jakub Jelinek  <jakub@redhat.com>
18185         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
18187 2014-06-25  Tom de Vries  <tom@codesourcery.com>
18189         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
18191 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18193         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
18194         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
18195         Issue a strict overflow warning if appropriate.
18197 2014-06-25  Martin Liska  <mliska@suse.cz>
18199         IPA REF refactoring
18200         * Makefile.in: Removed header file (ipa-ref-inline.h).
18201         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
18202         called.
18203         (cgraph_speculative_call_info): Likewise.
18204         (cgraph_for_node_thunks_and_aliases): Likewise.
18205         (cgraph_for_node_and_aliases): Likewise.
18206         (verify_cgraph_node): Likewise.
18207         * cgraph.h: Batch of IPA REF functions become member functions of
18208         symtab_node: add_reference, maybe_add_reference, clone_references,
18209         clone_referring, clone_reference, find_reference,
18210         remove_stmt_references, remove_all_references,
18211         remove_all_referring, dump_references, dump_referring,
18212         has_alias_p, iterate_reference, iterate_referring.
18213         * cgraphbuild.c (record_reference): New IPA REF function used.
18214         (record_type_list): Likewise.
18215         (record_eh_tables): Likewise.
18216         (mark_address): Likewise.
18217         (mark_load): Likewise.
18218         (mark_store): Likewise.
18219         (pass_build_cgraph_edges): Likewise.
18220         (rebuild_cgraph_edge): Likewise.
18221         (cgraph_rebuild_references): Likewise.
18222         (pass_remove_cgraph_callee_edges): Likewise.
18223         * cgraphclones.c (cgraph_clone_node): Likewise.
18224         (cgraph_create_virtual_clone): Likewise.
18225         (cgraph_materialize_clone): Likewise.
18226         (cgraph_materialize_all_clones): Likewise.
18227         * cgraphunit.c (cgraph_reset_node): Likewise.
18228         (cgraph_reset_node): Likewise.
18229         (analyze_function): Likewise.
18230         (assemble_thunks_and_aliases): Likewise.
18231         (expand_function): Likewise.
18232         * ipa-comdats.c (propagate_comdat_group): Likewise.
18233         (enqueue_references): Likewise.
18234         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
18235         (create_specialized_node): Likewise.
18236         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
18237         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
18238         * ipa-inline.c (reset_edge_caches): Likewise.
18239         (update_caller_keys): Likewise.
18240         (execute): Likewise.
18241         * ipa-prop.c (remove_described_reference): Likewise.
18242         (propagate_controlled_uses): Likewise.
18243         (ipa_edge_duplication_hook): Likewise.
18244         (ipa_modify_call_arguments): Likewise.
18245         * ipa-pure-const.c (propagate_pure_const): Likewise.
18246         * ipa-ref-inline.h: Header file removed, functions moved
18247         to symtab_node class.
18248         * ipa-ref.c (remove_reference): New class member function.
18249         (cannot_lead_to_return): New class member function.
18250         (referring_ref_list): Likewise.
18251         (referred_ref_list): Likewise.
18252         Rest of functions moved to symtab_node class.
18253         * ipa-ref.h: New member functions remove_reference,
18254         cannot_lead_to_return, referring_ref_list, referred_ref_list added
18255         to ipa_ref class.
18256         ipa_ref_list class has new member functions: first_reference,
18257         first_referring, clear, nreferences.
18258         * ipa-reference.c (analyze_function): New IPA REF function used.
18259         (write_node_summary_p): Likewise.
18260         (ipa_reference_write_optimization_summary): Likewise.
18261         * ipa-split.c (split_function): Likewise.
18262         * ipa-utils.c (ipa_reverse_postorder): Likewise.
18263         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
18264         (function_and_variable_visibility): Likewise.
18265         * ipa.c (has_addr_references_p): Likewise.
18266         (process_references): Argument type changed.
18267         (symtab_remove_unreachable_nodes): New IPA REF function used.
18268         (process_references): Likewise.
18269         (set_writeonly_bit): Likewise.
18270         * lto-cgraph.c: Implementation of new symtab_node member functions
18271         that uses new IPA REF functions.
18272         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
18273         function used.
18274         * lto-streamer-out.c (output_symbol_p): Likewise.
18275         * lto-streamer.h (referenced_from_this_partition_p): Argument type
18276         changed.
18277         * symtab.c: Implementation of new IPA REF API.
18278         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
18279         (ipa_tm_create_version): Likewise.
18280         (ipa_tm_execute): Likewise.
18281         * tree-emutls.c (gen_emutls_addr): Likewise.
18282         * tree-inline.c (copy_bb): Likewise.
18283         (delete_unreachable_blocks_update_callgraph): Likewise.
18284         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
18285         (varpool_for_node_and_aliases): Likewise.
18287 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
18289         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
18291 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
18293         PR bootstrap/61598
18294         * fold-const.c (fold_checksum_tree): Use a hash_table of const
18295         tree_node * instead of tree_node *.
18296         (fold): Adjust.
18297         (print_fold_checksum): Likewise.
18298         (fold_check_failed): Likewise.
18299         (debug_fold_checksum): Likewise.
18300         (fold_build1_stat_loc): Likewise.
18301         (fold_build2_stat_loc): Likewise.
18302         (fold_build3_stat_loc): Likewise.
18303         (fold_build_call_array_loc): Likewise.
18305 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
18307         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
18308         implementation with call to...
18309         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
18310         function.
18311         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
18312         Declare.
18314 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
18316         PR tree-optimization/57742
18317         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
18318         after replacing the statement.
18320 2014-06-25  Nick Clifton  <nickc@redhat.com>
18322         * config/v850/v850.c (GHS_default_section_names): Change to const
18323         char * type.
18324         (GHS_current_section_names): Likewise.
18325         (v850_insert_attributes): Do not build strings, just assign the
18326         names directly.  Change the type of 'chosen_section' to const
18327         char*.
18328         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
18329         directly to the array entry.
18330         * config/v850/v850.h (GHS_default_section_names): Change to const
18331         char * type.
18332         (GHS_current_section_names): Likewise.
18334 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
18336         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
18337         (LANG_HOOKS_DECLS): Add it.
18338         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
18339         has correct type.
18340         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
18341         * langhooks.h (struct lang_hooks_for_decls): Add
18342         omp_clause_linear_ctor hook.
18343         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
18344         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
18345         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
18346         combined simd loop use omp_clause_linear_ctor hook.
18348 2014-06-24  Cong Hou  <congh@google.com>
18350         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
18351         pattern recognition.
18352         (type_conversion_p): PROMOTION is true if it's a type promotion
18353         conversion, and false otherwise.  Return true if the given expression
18354         is a type conversion one.
18355         * tree-vectorizer.h: Adjust the number of patterns.
18356         * tree.def: Add SAD_EXPR.
18357         * optabs.def: Add sad_optab.
18358         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
18359         * expr.c (expand_expr_real_2): Likewise.
18360         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
18361         * gimple.c (get_gimple_rhs_num_ops): Likewise.
18362         * optabs.c (optab_for_tree_code): Likewise.
18363         * tree-cfg.c (estimate_operator_cost): Likewise.
18364         * tree-ssa-operands.c (get_expr_operands): Likewise.
18365         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
18366         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
18367         * doc/generic.texi: Add document for SAD_EXPR.
18368         * doc/md.texi: Add document for ssad and usad.
18370 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
18372         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
18373         qualification in cast.
18375 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
18377         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
18378         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
18379         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
18380         (tree_function_decl): ... here.
18381         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
18382         streaming of vindex to ...
18383         (write_ts_function_decl_tree_pointers): ... here.
18384         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
18385         Do not stream DECL_VINDEX.
18386         (lto_input_ts_function_decl_tree_pointers): Stream it here.
18388 2014-06-24  Catherine Moore  <clm@codesourcery.com>
18389             Sandra Loosemore  <sandra@codesourcery.com>
18391         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
18392         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
18393         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
18395 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
18397         * doc/invoke.texi (Warning Options): Remove duplicated
18398         -Wmaybe-uninitialized.
18400 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
18402         PR tree-optimization/57742
18403         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
18404         (handle_builtin_malloc, handle_builtin_memset): New functions.
18405         (strlen_optimize_stmt): Call them.
18406         * passes.def: Move strlen after loop+dom but before vrp.
18408 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
18410         PR target/61570
18411         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
18412         model family 6 CPU with has_longmode never use a CPU without
18413         64-bit support.
18415 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18417         PR target/61570
18418         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
18419         the last change.
18421 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
18423         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
18424         * dominance.c (iterate_fix_dominators): Use hash_map instead of
18425         pointer_map.
18426         * hash-map.h: New file.
18427         * ipa-comdats.c: Use hash_map instead of pointer_map.
18428         * ipa.c: Likewise.
18429         * lto-section-out.c: Adjust.
18430         * lto-streamer.h: Replace pointer_map with hash_map.
18431         * symtab.c (verify_symtab): Likewise.
18432         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
18433         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
18434         * tree-streamer.h: Likewise.
18435         * tree-streamer.c: Adjust.
18436         * pointer-set.h: Remove pointer_map.
18438 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
18440         * hash-table.h: Add a template arg to choose between storing values
18441         and storing pointers to values, and then provide partial
18442         specializations for both.
18443         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
18444         should store, not the type values should point to.
18445         * tree-into-ssa.c (var_info_hasher): Likewise.
18446         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
18447         * tree-complex.c: Adjust.
18448         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
18449         table instead of int_tree_map *.
18450         * tree-parloops.c: Adjust.
18451         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
18452         type is being stored.
18453         * tree-vectorizer.c: Adjust.
18455 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
18457         * hash-table.h: Remove a layer of indirection from hash_table so that
18458         it contains the hash table's data instead of a pointer to the data.
18459         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
18460         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
18461         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
18462         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
18463         fold-const.c, gcse.c, ggc-common.c,
18464         gimple-ssa-strength-reduction.c, gimplify.c,
18465         graphite-clast-to-gimple.c, graphite-dependences.c,
18466         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
18467         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
18468         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
18469         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
18470         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
18471         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
18472         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
18473         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
18474         tree-ssa-live.c, tree-ssa-loop-im.c,
18475         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
18476         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
18477         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
18478         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
18479         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
18480         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
18481         vtable-verify.c, vtable-verify.h: Adjust.
18483 2014-06-24  Richard Biener  <rguenther@suse.de>
18485         PR tree-optimization/61572
18486         * tree-ssa-sink.c (statement_sink_location): Do not sink
18487         loads from hard registers.
18489 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
18491         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
18492         not mentioned in clauses use private clause if the iterator is
18493         declared in #pragma omp for simd, and when adding lastprivate
18494         instead, add it to the outer #pragma omp for too.  Diagnose
18495         if the variable is private in outer context.  For simd collapse > 1
18496         loops, replace all iterators with temporaries.
18497         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
18498         same even in collapse > 1 loops.
18500         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
18501         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
18502         non-NULL.
18503         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
18504         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
18505         non-NULL.
18506         (gimplify_adjust_omp_clauses): Likewise.
18507         * omp-low.c (lower_rec_simd_input_clauses,
18508         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
18509         safelen the same as safelen(1).
18510         * tree-nested.c (convert_nonlocal_omp_clauses,
18511         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
18512         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
18513         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
18514         Fixup handling of GIMPLE_OMP_TARGET.
18515         (convert_tramp_reference_stmt, convert_gimple_call): Handle
18516         GIMPLE_OMP_TARGET.
18518 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
18520         PR tree-optimization/61554
18521         * tree-ssa-propagate.c: Include "bitmap.h".
18522         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
18523         properly update constructor/destructor.
18524         (substitute_and_fold_dom_walker::before_dom_children):
18525         Remove call to gimple_purge_dead_eh_edges, add bb->index to
18526         need_eh_cleaup instead.
18527         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
18528         need_eh_cleanup.
18530 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
18532         * varpool.c (dump_varpool_node): Dump used_by_single_function.
18533         * tree-pass.h (make_pass_ipa_single_use): New pass.
18534         * cgraph.h (used_by_single_function): New flag.
18535         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
18536         Stream it.
18537         * passes.def (pass_ipa_single_use): Scedule.
18538         * ipa.c (BOTTOM): New macro.
18539         (meet): New function
18540         (propagate_single_user): New function.
18541         (ipa_single_use): New function.
18542         (pass_data_ipa_single_use): New pass.
18543         (pass_ipa_single_use): New pass.
18544         (pass_ipa_single_use::gate): New gate.
18545         (make_pass_ipa_single_use): New function.
18547 2014-06-23  Kai Tietz  <ktietz@redhat.com>
18549         PR target/39284
18550         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
18551         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
18553 2014-06-23  Richard Biener  <rguenther@suse.de>
18555         * tree-ssa-loop.c (gate_loop): New function.
18556         (pass_tree_loop::gate): Call it.
18557         (pass_data_tree_no_loop, pass_tree_no_loop,
18558         make_pass_tree_no_loop): New.
18559         * tree-vectorizer.c: Include tree-scalar-evolution.c
18560         (pass_slp_vectorize::execute): Initialize loops and SCEV if
18561         required.
18562         (pass_slp_vectorize::clone): New method.
18563         * timevar.def (TV_TREE_NOLOOP): New.
18564         * tree-pass.h (make_pass_tree_no_loop): Declare.
18565         * passes.def (pass_tree_no_loop): New pass group with
18566         SLP vectorizer.
18568 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18570         PR target/61570
18571         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
18572         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
18574 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
18576         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
18577         "yes" where needed.
18579 2014-06-23  Alan Modra  <amodra@gmail.com>
18581         PR bootstrap/61583
18582         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
18583         to zero on debug statements.
18585 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
18587         PR target/60825
18588         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
18589         Ignore third operand if present by marking qualifier_internal.
18591         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
18593         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
18594         vector extension.
18595         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
18596         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
18597         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
18598         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
18599         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
18600         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
18601         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
18602         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
18603         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
18604         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
18605         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
18606         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
18607         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
18608         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
18609         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
18610         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
18611         logic in GCC vector extensions
18613         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
18614         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
18615         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
18616         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
18617         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
18618         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
18619         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
18620         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
18621         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
18622         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
18624         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
18626         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
18627         extensions.
18629         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
18630         (vget_low_s64): Use __GET_LOW macro.
18631         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
18632         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
18633         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
18634         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
18635         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
18637         (vcombine_s64): Use GCC vector extensions; remove cast.
18638         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
18639         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
18640         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
18641         Fix type signature; remove cast.
18643 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
18645         PR target/60825
18646         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
18647         V1DFmode.
18648         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
18649         add V1DFmode
18650         (BUILTIN_VD1): New.
18651         (BUILTIN_VD_RE): Remove.
18652         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
18653         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
18654         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
18655         variant but not df.
18656         (vreinterpretv1df*, vreinterpret*v1df): New.
18657         (vreinterpretdf*, vreinterpret*df): Remove.
18658         * config/aarch64/aarch64-simd.md (aarch64_create,
18659         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
18660         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
18661         (VD1): New.
18662         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
18663         (vcreate_f64): Remove cast, use v1df builtin.
18664         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
18665         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
18666         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
18667         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
18668         vmov_n_f64, vst1_f64): Use gcc vector extensions.
18669         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
18670         add range check using __builtin_aarch64_im_lane_boundsi.
18671         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
18672         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
18673         type signature, use gcc vector extensions.
18674         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
18675         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
18676         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
18677         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
18678         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
18679         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
18680         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
18681         vreinterpret_u64_f64): Use v1df builtin not df.
18683 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
18685         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
18686         vector registers.
18688 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
18690         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
18691         priority directly.
18693 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18695         * loop-invariant.c (pre_check_invariant_p): New function.
18696         (find_invariant_insn): Call pre_check_invariant_p.
18698 2014-06-22  Richard Henderson  <rth@redhat.com>
18700         PR target/61565
18701         * compare-elim.c (struct comparison): Add eh_note.
18702         (find_comparison_dom_walker::before_dom_children): Don't eliminate
18703         a redundant comparison in a different EH region.  Purge EH edges if
18704         necessary.
18706 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
18708         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
18709         (var_shift): Use it.
18710         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
18711         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18712         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18713         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18714         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18715         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
18716         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
18717         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
18718         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
18719         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
18720         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
18721         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
18722         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
18723         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
18724         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
18725         *rotldi3_internal15be): Use the new attribute.  Merge register and
18726         integer alternatives.
18728 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
18730         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
18731         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
18732         split, *ashrdi3_internal3 and split): Delete, merge into...
18733         (ashr<mode>3): New expander.
18734         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
18735         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
18737 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
18739         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
18740         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
18741         *rotldi3_internal3 and split): Delete, merge into...
18742         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
18743         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
18744         Use "rotlw" extended mnemonic.
18746 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
18748         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
18749         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
18750         and split, *ashldi3_internal3 and split): Delete, merge into...
18751         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
18752         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
18754 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
18756         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
18757         (lshrsi3, two anonymous define_insns and define_splits,
18758         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
18759         *lshrdi3_internal3 and split): Delete, merge into...
18760         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
18761         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
18763 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
18765         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
18766         Remove "O" alternative.
18768 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
18770         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
18771         (mips_move_from_gpr_cost): Likewise.
18772         (mips_register_move_cost): Update accordingly.
18773         (mips_secondary_reload_class): Remove name of in_p.
18775 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
18777         PR target/61503
18778         * config/i386/i386.md (x86_64_shrd, x86_shrd,
18779         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
18781 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18783         * config/nios2/nios2.c: Include "builtins.h".
18785 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
18787         * cgraph.h (tls_model_names): New variable.
18788         * print-tree.c (print_node): Simplify.
18789         * varpool.c (tls_model_names): New variable.
18790         (dump_varpool_node): Output tls model.
18792 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
18794         * ipa-visibility.c (function_and_variable_visibility): Disable
18795         temporarily local aliases for some targets.
18797 2014-06-20  Marek Polacek  <polacek@redhat.com>
18799         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
18800         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
18801         into SANITIZE_UNDEFINED.
18802         * doc/invoke.texi: Describe -fsanitize=bounds.
18803         * gimplify.c (gimplify_call_expr): Add gimplification of internal
18804         functions created in the FEs.
18805         * internal-fn.c: Move "internal-fn.h" after "tree.h".
18806         (expand_UBSAN_BOUNDS): New function.
18807         * internal-fn.def (UBSAN_BOUNDS): New internal function.
18808         * internal-fn.h: Don't define internal functions here.
18809         * opts.c (common_handle_option): Add -fsanitize=bounds.
18810         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
18811         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
18812         * tree-core.h: Define internal functions here.
18813         (struct tree_base): Add ifn field.
18814         * tree-pretty-print.c: Include "internal-fn.h".
18815         (dump_generic_node): Handle functions without CALL_EXPR_FN.
18816         * tree.c (get_callee_fndecl): Likewise.
18817         (build_call_expr_internal_loc): New function.
18818         * tree.def (CALL_EXPR): Update description.
18819         * tree.h (CALL_EXPR_IFN): Define.
18820         (build_call_expr_internal_loc): Declare.
18821         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
18822         types.
18823         (ubsan_type_descriptor): Change bool parameter to enum
18824         ubsan_print_style.  Adjust the code.  Add handling of
18825         UBSAN_PRINT_ARRAY.
18826         (ubsan_expand_bounds_ifn): New function.
18827         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
18828         (ubsan_build_overflow_builtin): Likewise.
18829         (instrument_bool_enum_load): Likewise.
18830         (ubsan_instrument_float_cast): Likewise.
18831         * ubsan.h (enum ubsan_print_style): New enum.
18832         (ubsan_expand_bounds_ifn): Declare.
18833         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
18835 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
18837         * config/rs6000/rs6000.md: Append `DONE' to preparation
18838         statements of `bswap' pattern splitters.
18840 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18842         * target.def (call_fusage_contains_non_callee_clobbers): Update
18843         definition.
18844         * doc/tm.texi: Regenerate.
18846 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
18847             Max Ostapenko  <m.ostapenko@partner.samsung.com>
18849         PR sanitizer/61547
18850         * asan.c (instrument_strlen_call): Fixed instrumentation of
18851         trailing byte.
18853 2014-06-20  Martin Jambor  <mjambor@suse.cz>
18855         PR ipa/61540
18856         * ipa-prop.c (impossible_devirt_target): New function.
18857         (try_make_edge_direct_virtual_call): Use it, also instead of
18858         asserting.
18860 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
18861             Max Ostapenko  <m.ostapenko@partner.samsung.com>
18863         PR sanitizer/61530
18864         * asan.c (build_check_stmt): Add condition.
18866 2014-06-20  Martin Jambor  <mjambor@suse.cz>
18868         PR ipa/61211
18869         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
18870         expanded clones.
18872 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18874         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
18875         Update comments.
18876         (VCONQ): Make comment more helpful.
18877         (VCON): Delete.
18878         * config/aarch64/aarch64-simd.md
18879         (aarch64_sqdmulh_lane<mode>):
18880         Use VCOND for operands 2.  Update lane checking and flipping logic.
18881         (aarch64_sqrdmulh_lane<mode>): Likewise.
18882         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
18883         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
18884         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
18885         attribute of operand 3 to VCOND.
18886         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
18887         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
18888         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
18889         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
18890         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
18891         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
18892         define_insn.
18893         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
18894         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
18895         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
18896         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
18897         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
18898         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
18899         operand to VCOND.  Update lane flipping and bounds checking logic.
18900         (aarch64_sqdmlal2_lane<mode>): Likewise.
18901         (aarch64_sqdmlsl_lane<mode>): Likewise.
18902         (aarch64_sqdmull_lane<mode>): Likewise.
18903         (aarch64_sqdmull2_lane<mode>): Likewise.
18904         (aarch64_sqdmlal_laneq<mode>):
18905         Replace VCON usage with VCONQ.
18906         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
18907         (aarch64_sqdmlal2_laneq<mode>): Emit
18908         aarch64_sqdmlal2_laneq<mode>_internal insn.
18909         Replace VCON with VCONQ.
18910         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
18911         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
18912         (aarch64_sqdmull_laneq<mode>): Emit
18913         aarch64_sqdmull_laneq<mode>_internal insn.
18914         Replace VCON with VCONQ.
18915         (aarch64_sqdmull2_laneq<mode>): Emit
18916         aarch64_sqdmull2_laneq<mode>_internal insn.
18917         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
18918         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
18919         of 3rd argument to int16x4_t.
18920         (vqdmlalh_lane_s16): Likewise.
18921         (vqdmlslh_lane_s16): Likewise.
18922         (vqdmull_high_lane_s16): Likewise.
18923         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
18924         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
18925         (vqdmlsl_lane_s16): Likewise.
18926         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
18927         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
18928         (vqdmlals_lane_s32): Likewise.
18929         (vqdmlsls_lane_s32): Likewise.
18930         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
18931         (vqdmulls_lane_s32): Likewise.
18932         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
18933         (vqdmlsl_lane_s32): Likewise.
18934         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
18935         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
18936         (vqrdmulhh_lane_s16): Likewise.
18937         (vqdmlsl_high_lane_s16): Likewise.
18938         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
18939         (vqdmlsl_high_lane_s32): Likewise.
18940         (vqrdmulhs_lane_s32): Likewise.
18942 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18944         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
18945         get_call_reg_set_usage.
18947 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18949         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
18950         it contains all call_used_regs.
18952 2014-06-20  Tom de Vries  <tom@codesourcery.com>
18954         * final.c (collect_fn_hard_reg_usage): Add and use variable
18955         function_used_regs.
18957 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
18959         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
18960         (set_init_priority, get_init_priority, set_fini_priority,
18961         get_fini_priority): New methods.
18962         * tree.c (init_priority_for_decl): Remove.
18963         (init_ttree): Do not initialize init priority.
18964         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
18965         (decl_priority_info): Remove.
18966         (decl_init_priority_insert): Rewrite.
18967         (decl_fini_priority_insert): Rewrite.
18968         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
18969         tree_priority_map_marked_p): Remove.
18970         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
18971         * lto-streamer-out.c (hash_tree): Do not hash priorities.
18972         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
18973         not output priorities.
18974         (pack_ts_function_decl_value_fields): Likewise.
18975         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
18976         not input priorities.
18977         (unpack_ts_function_decl_value_fields): Likewise.
18978         * symtab.c (symbol_priority_map): Declare.
18979         (init_priority_hash): Declare.
18980         (symtab_unregister_node): Unregister from priority hash, too.
18981         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
18982         New methods.
18983         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
18984         (symbol_priority_info): New function.
18985         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
18986         New methods.
18987         * tree-core.h (tree_priority_map): Remove.
18989 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
18991         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
18992         0xff to uint64_t before shifting it up.
18994 2014-06-20  Julian Brown  <julian@codesourcery.com>
18995             Chung-Lin Tang  <cltang@codesourcery.com>
18997         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
18998         TARGET_THUMB1_ONLY. Add comments.
19000 2014-06-19  Tom de Vries  <tom@codesourcery.com>
19002         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
19003         return type to void.
19004         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
19006 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19008         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
19009         as "move", from depends_on.
19011 2014-06-19  Terry Guo  <terry.guo@arm.com>
19013         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
19014         stage.
19016 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
19018         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
19019         Remove cr5.
19020         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
19022 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
19024         PR target/61550
19025         * config/sh/sh.c (prepare_move_operands): Don't process TLS
19026         addresses here if reload in progress or completed.
19028 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
19030         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
19031         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
19032         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
19033         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
19034         (mips_register_priority): New function that implements the target
19035         hook TARGET_REGISTER_PRIORITY.
19036         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
19037         (mips_lra_p): Likewise for TARGET_LRA_P.
19038         (TARGET_REGISTER_PRIORITY): Define macro.
19039         (TARGET_SPILL_CLASS): Likewise.
19040         (TARGET_LRA_P): Likewise.
19041         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
19042         classes.
19043         (REG_CLASS_NAMES): Likewise.
19044         (REG_CLASS_CONTENTS): Likewise.
19045         (BASE_REG_CLASS): Use M16_SP_REGS.
19046         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
19047         New set attribute to enable alternatives depending on the register
19048         allocator used.
19049         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
19050         (*lea64): Disable pattern for MIPS16.
19051         * config/mips/mips.opt (mlra): New option.
19053 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
19055         * lra-constraints.c (base_to_reg): New function.
19056         (process_address): Use new function.
19058 2014-06-18  Tom de Vries  <tom@codesourcery.com>
19060         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
19061         * config/aarch64/aarch64.c
19062         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
19063         (aarch64_emit_call_insn): New function.
19064         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
19065         of emit_call_insn.
19066         * config/aarch64/aarch64.md (define_expand "call_internal")
19067         (define_expand "call_value_internal", define_expand "sibcall_internal")
19068         (define_expand "sibcall_value_internal"): New.
19069         (define_expand "call", define_expand "call_value")
19070         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
19071         expand variant and aarch64_emit_call_insn.
19073 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
19074             Tom de Vries  <tom@codesourcery.com>
19076         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
19077         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
19078         Redefine to true.
19079         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
19080         clobbers to CALL_INSN_FUNCTION_USAGE.
19081         (define_expand "sibcall_internal")
19082         (define_expand "sibcall_value_internal"): New.
19083         (define_expand "call", define_expand "call_value"): Add argument to
19084         arm_emit_call_insn.
19085         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
19086         (define_expand "sibcall_value"): Use sibcall_value_internal and
19087         arm_emit_call_insn.
19089 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19091         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
19093 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19095         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
19096         __udivmoddi4.
19098 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19100         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
19101         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
19102         annotations. Fix DWARF information.
19104 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19106         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
19107         __udivmoddi4, and fixups for negative operands.
19109 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19111         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
19113 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19115         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
19116         to __udivmoddi4.
19118 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19120         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
19121         manipulation.
19123 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19125         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
19126         describing register usage on function entry and exit.
19128 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19130         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
19131         (__aeabi_ldivmod): Fix whitespace.
19133 2014-06-18  Andreas Schwab  <schwab@suse.de>
19135         * doc/md.texi (Standard Names): Use @itemx for grouped items.
19136         Remove blank line after @item.
19138 2014-06-18  Richard Henderson  <rth@redhat.com>
19140         PR target/61545
19141         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
19143 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
19145         * config/arm/arm.c (neon_vector_mem_operand): Allow register
19146         POST_MODIFY for neon loads and stores.
19147         (arm_print_operand): Output post-index register for neon loads and
19148         stores.
19150 2014-06-18  Richard Biener  <rguenther@suse.de>
19152         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
19154 2014-06-18  Richard Biener  <rguenther@suse.de>
19156         * tree-pass.h (make_pass_dce_loop): Remove.
19157         * passes.def: Replace pass_dce_loop with pass_dce.
19158         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
19159         changed free niter estimates and reset the scev cache.
19160         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
19161         make_pass_dce_loop): Remove.
19162         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
19163         (fini_copy_prop): Return whether something changed.  Always
19164         let substitute_and_fold perform DCE and free niter estimates
19165         and reset the scev cache if so.
19166         (execute_copy_prop): If sth changed schedule cleanup-cfg.
19167         (pass_data_copy_prop): Do not unconditionally schedule
19168         cleanup-cfg or update-ssa.
19170 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
19172         PR tree-optimization/61518
19173         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
19174         reduction var is used in reduction stmt or phi-function only.
19176 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19178         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
19180 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19182         PR tree-optimization/61517
19183         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
19184         whose rhs's first tree is the source expression instead of the
19185         expression itself.
19186         (find_bswap_or_nop): Likewise.
19187         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
19188         gimple stmt whose rhs's first tree is the source. In the memory source
19189         case, move the stmt to be replaced close to one of the original load to
19190         avoid the problem of a store between the load and the stmt's original
19191         location.
19192         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
19193         signature.
19195 2014-06-18  Andreas Schwab  <schwab@suse.de>
19197         PR rtl-optimization/54555
19198         * postreload.c (move2add_use_add2_insn): Substitute
19199         STRICT_LOW_PART only if it is cheaper.
19201 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
19203         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
19204         Do not use unspec as call operand.  Use memory_operand instead of
19205         memory_nox32_operand and add "m" operand constraint.  Disable
19206         pattern for TARGET_X32.
19207         (*sibcall_pop_memory): Ditto.
19208         (*sibcall_value_memory): Ditto.
19209         (*sibcall_value_pop_memory): Ditto.
19210         (sibcall peepholes): Merge SImode and DImode patterns using
19211         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
19212         Disable pattern for TARGET_X32.  Check if eliminated register is
19213         really dead after call insn.  Generate call RTX without unspec operand.
19214         (sibcall_value peepholes): Ditto.
19215         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
19216         instead of memory_nox32_operand.  Check if eliminated register is
19217         really dead after call insn. Generate call RTX without unspec operand.
19218         (sibcall_value_pop peepholes): Ditto.
19219         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
19221 2014-06-18  Terry Guo  <terry.guo@arm.com>
19223         PR target/61544
19224         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
19225         reach the head.
19227 2014-06-18  Olivier Hainque  <hainque@adacore.com>
19229         * tree-core.h (tree_block): Add an "end_locus" field, allowing
19230         memorization of the end of block source location.
19231         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
19232         * gimplify.c (gimplify_bind_expr): Propagate the block start and
19233         end source location info we have on the block entry/exit code we
19234         generate.
19236 2014-06-18  Richard Biener  <rguenther@suse.de>
19238         * common.opt (fssa-phiopt): New option.
19239         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
19240         but not with -Og.
19241         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
19242         * doc/invoke.texi (-fssa-phiopt): Document.
19244 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19246         * genattrtab.c (n_bypassed): New variable.
19247         (process_bypasses): Initialise n_bypassed.
19248         Count number of bypassed reservations.
19249         (make_automaton_attrs): Allocate space for bypassed reservations
19250         rather than number of bypasses.
19252 2014-06-18  Richard Biener  <rguenther@suse.de>
19254         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
19255         we propagated anything.
19256         (substitute_and_fold_dom_walker::before_dom_children): Something
19257         changed if we propagated into PHI arguments.
19258         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
19259         we removed a stmt.
19261 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
19263         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
19264         vector case.
19265         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
19266         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
19267         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
19268         Introduces alternative way of loads group permutaions.
19269         (vect_transform_grouped_load): Try alternative way of permutations.
19271 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
19273         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
19274         changed in ORT_TARGET region, don't jump to do_outer.
19275         (struct gimplify_adjust_omp_clauses_data): New type.
19276         (gimplify_adjust_omp_clauses_1): Adjust for data being
19277         a struct gimplify_adjust_omp_clauses_data pointer instead
19278         of tree *.  Pass pre_p as a new argument to
19279         lang_hooks.decls.omp_finish_clause hook.
19280         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
19281         splay_tree_foreach to pass both list_p and pre_p.
19282         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
19283         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
19284         gimplify_adjust_omp_clauses callers.
19285         * langhooks.c (lhd_omp_finish_clause): New function.
19286         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
19287         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
19288         * langhooks.h (struct lang_hooks_for_decls): Add a new
19289         gimple_seq * argument to omp_finish_clause hook.
19290         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
19291         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
19292         (scan_omp_parallel, lower_omp_for): When adding
19293         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
19294         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
19295         * tree-nested.c (convert_nonlocal_omp_clauses,
19296         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
19297         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
19299 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
19301         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
19302         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
19304 2014-06-17  Xinliang David Li  <davidxl@google.com>
19306         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
19307         * passes.c (pass_init_dump_file): Do not set initialize
19308         flag to false unconditionally.
19310 2014-06-17  Richard Biener  <rguenther@suse.de>
19312         * genopinit.c (main): Use vec<>::qsort method.
19313         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
19314         Likewise.
19315         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
19317 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
19319         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
19320         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
19321         (mips_move_to_gpr_cost): Remove ST_REGS case.
19322         (mips_move_from_gpr_cost): Likewise.
19323         (mips_register_move_cost): Likewise.
19324         (mips_secondary_reload_class): Likewise.
19326 2014-06-17  Richard Biener  <rguenther@suse.de>
19328         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
19329         (pass_all_optimizations): Move 3rd copy-prop pass from after
19330         fre to before ifcombine/phiopt.
19332 2014-06-17  Richard Biener  <rguenther@suse.de>
19334         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
19335         and allow all blocks to be forwarders.
19337 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
19339         PR target/61483
19340         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
19341         variable 'size'; calculate 'size' right in the front; use
19342         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
19343         pcum->aapcs_stack_words.
19345 2014-06-17  Nick Clifton  <nickc@redhat.com>
19347         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
19348         (umulhi3, mulsidi3, umulsidi3): Likewise.
19350 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
19352         PR middle-end/61508
19353         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
19354         check for section name.
19356 2014-06-17  Richard Biener  <rguenther@suse.de>
19358         * tree-ssa-propagate.c: Include domwalk.h.
19359         (substitute_and_fold): Outline main worker into a domwalker ...
19360         (substitute_and_fold_dom_walker::before_dom_children): ... here.
19361         Schedule stmts we can fully propagate for removal.  Remove
19362         poor-mans DCE.
19363         (substitute_and_fold): Apply a dominator walk to perform
19364         substitution.  Process stmts scheduled for removal here.
19366 2014-06-17  Richard Biener  <rguenther@suse.de>
19368         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
19369         of PHI node moving.
19371 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
19373         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
19374         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
19375         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
19376         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
19377         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
19378         TARGET_HARD_FLOAT.
19379         (get_fpscr) : Likewise.
19381 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
19383         PR rtl-optimization/61325
19384         * lra-constraints.c (valid_address_p): Add forward declaration.
19385         (simplify_operand_subreg): Check address validity before and after
19386         alter_reg of memory subreg.
19388 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
19390         * config/i386/i386.c (decide_alg): Correctly handle
19391         maximum size of stringop algorithm.
19393 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
19395         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
19397 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
19399         PR rtl-optimization/61522
19400         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
19402 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
19404         Revert:
19405         * symtab.c (symtab_node::reset_section): New method.
19406         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
19407         for localization.
19408         * cgraph.h (reset_section): Declare.
19409         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
19410         do not consider comdat locals.
19411         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
19412         for new symbol.
19413         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
19414         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
19415         reset sections of symbols dragged out of the comdats.
19416         (function_and_variable_visibility): Reset sections of
19417         localized symbols.
19419 2014-06-16  Richard Biener  <rguenther@suse.de>
19421         PR tree-optimization/61482
19422         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
19423         [-INF(OVF), +INF(OVF)] range.
19425 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
19427         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
19428         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
19429         handling 32-bit multiplication.
19431 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
19433         PR middle-end/61430
19434         * lra-lives.c (process_bb_lives): Skip creating copy during
19435         insn scan when src/dest has constrained to same regno.
19437 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
19439         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
19440         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
19442 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
19444         * asan.c (check_func): New function.
19445         (maybe_create_ssa_name): Likewise.
19446         (build_check_stmt_with_calls): Likewise.
19447         (use_calls_p): Likewise.
19448         (report_error_func): Change interface.
19449         (build_check_stmt): Allow non-integer lengths; add support
19450         for new parameter.
19451         (asan_instrument): Likewise.
19452         (instrument_mem_region_access): Moved code to build_check_stmt.
19453         (instrument_derefs): Likewise.
19454         (instrument_strlen_call): Likewise.
19455         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
19456         * doc/invoke.texi: Describe new parameter.
19457         * params.def: Define new parameter.
19458         * params.h: Likewise.
19459         * sanitizer.def: Describe new builtins.
19461 2014-06-16  Richard Biener  <rguenther@suse.de>
19463         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19464         Make all defs available at the end.
19465         (eliminate): If we remove a PHI node schedule cfg-cleanup.
19467 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
19469         PR plugins/45078
19470         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
19472 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
19474         PR bootstrap/61516
19475         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
19476         initialization.  Replace remaining use of uid.
19478 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
19480         * c-family/c-common.c (handle_tls_model_attribute): Use
19481         set_decl_tls_model.
19482         * c-family/c-common.c (handle_tls_model_attribute): Use
19483         set_decl_tls_model.
19484         * cgraph.h (struct varpool_node): Add tls_model.
19485         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
19486         * tree.h (DECL_TLS_MODEL): Update.
19487         (DECL_THREAD_LOCAL_P): Check that variable is static.
19488         (decl_tls_model): Declare.
19489         (set_decl_tls_model): Declare.
19490         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
19491         set symbol prorperties.
19492         (get_emutls_init_templ_addr): Cleanup.
19493         (new_emutls_decl): Update.
19494         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
19495         (lto_input_varpool_node): Likewise.
19496         * lto-streamer-out.c (hash_tree): Likewise.
19497         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
19498         not stream DECL_TLS_MODEL.
19499         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
19500         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
19502 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19504         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
19506 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19508         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
19509         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
19510         lists.
19511         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
19512         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
19513         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
19514         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
19515         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
19516         (df_get_artificial_defs, df_get_artificial_uses)
19517         (df_single_def, df_single_use): Update accordingly.
19518         (df_refs_chain_dump): Take the first element in a linked list as
19519         parameter, rather than a pointer to an array of pointers.
19520         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
19521         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
19522         (df_chain_create_bb_process_use): Likewise.
19523         (df_md_bb_local_compute_process_def): Likewise.
19524         * fwprop.c (process_defs, process_uses): Likewise.
19525         (register_active_defs, update_uses): Likewise.
19526         (forward_propagate_asm): Update for new df_ref linking.
19527         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
19528         (df_null_ref_rec, df_null_mw_rec): Likewise.
19529         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
19530         explicitly.
19531         (df_scan_free_bb_info): Remove check for null artificial_defs.
19532         (df_install_ref_incremental): Adjust for new df_ref linking.
19533         Use a single-element insertion rather than a full sort.
19534         (df_ref_chain_delete_du_chain): Take the first element
19535         in a linked list as parameter, rather than a pointer to an array of
19536         pointers.
19537         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
19538         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
19539         (df_insn_info_delete): Remove check for null defs and call to
19540         df_scan_free_mws_vec.
19541         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
19542         null rather than df_null_*_rec.
19543         (df_insn_rescan_debug_internal): Likewise, and update null
19544         checks in the same way.  Remove check for null defs.
19545         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
19546         Move a single element rather doing a full sort.
19547         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
19548         linking.
19549         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
19550         Initialize df_ref and df_mw_hardreg lists to null rather than
19551         df_null_*_rec.
19552         (df_ref_compare): Take df_refs as parameter, transferring the
19553         old interface to...
19554         (df_ref_ptr_compare): ...this new function.
19555         (df_sort_and_compress_refs): Update accordingly.
19556         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
19557         old interface to...
19558         (df_mw_ptr_compare): ...this new function.
19559         (df_sort_and_compress_mws): Update accordingly.
19560         (df_install_refs, df_install_mws): Return a linked list rather than
19561         an array of pointers.
19562         (df_refs_add_to_chains): Assert that old lists are empty rather
19563         than freeing them.
19564         (df_insn_refs_verify): Don't handle null defs speciailly.
19565         * web.c (union_match_dups): Update for new df_ref linking.
19567 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19569         * df.h (df_ref_create, df_ref_remove): Delete.
19570         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
19571         (df_ref_remove): Likewise.
19573 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19575         * df.h (df_single_def, df_single_use): New functions.
19576         * ira.c (find_moveable_pseudos): Use them.
19578 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19580         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
19581         * df-problems.c (df_note_bb_compute): Use it.
19582         * regstat.c (regstat_bb_compute_ri): Likewise.
19584 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19586         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
19587         * cse.c (cse_extended_basic_block): Use them.
19588         * dce.c (mark_artificial_use): Likewise.
19589         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
19590         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
19591         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
19592         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
19593         (df_simulate_initialize_backwards): Likewise.
19594         (df_simulate_finalize_backwards): Likewise.
19595         (df_simulate_initialize_forwards): Likewise.
19596         (df_md_simulate_artificial_defs_at_top): Likewise.
19597         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
19598         * regrename.c (init_rename_info): Likewise.
19599         * regstat.c (regstat_bb_compute_ri): Likewise.
19600         (regstat_bb_compute_calls_crossed): Likewise.
19602 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
19604         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
19605         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
19606         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
19607         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
19608         * combine.c (create_log_links): Likewise.
19609         * compare-elim.c (find_flags_uses_in_insn): Likewise.
19610         (try_eliminate_compare): Likewise.
19611         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
19612         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
19613         (remove_reg_equal_equiv_notes_for_defs): Likewise.
19614         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
19615         (word_dce_process_block, dce_process_block): Likewise.
19616         * ddg.c (def_has_ccmode_p): Likewise.
19617         * df-core.c (df_bb_regno_first_def_find): Likewise.
19618         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
19619         * df-problems.c (df_rd_simulate_one_insn): Likewise.
19620         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
19621         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
19622         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
19623         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
19624         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
19625         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
19626         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
19627         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
19628         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
19629         * fwprop.c (local_ref_killed_between_p): Likewise.
19630         (all_uses_available_at, free_load_extend): Likewise.
19631         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
19632         * hw-doloop.c (scan_loop): Likewise.
19633         * ifcvt.c (dead_or_predicable): Likewise.
19634         * init-regs.c (initialize_uninitialized_regs): Likewise.
19635         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
19636         (process_bb_node_lives): Likewise.
19637         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
19638         (find_moveable_pseudos): Likewise.
19639         * loop-invariant.c (check_dependencies, record_uses): Likewise.
19640         * recog.c (peep2_find_free_register): Likewise.
19641         * ree.c (get_defs): Likewise.
19642         * regstat.c (regstat_bb_compute_ri): Likewise.
19643         (regstat_bb_compute_calls_crossed): Likewise.
19644         * sched-deps.c (find_inc, find_mem): Likewise.
19645         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
19646         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
19647         * shrink-wrap.c (requires_stack_frame_p): Likewise.
19648         (prepare_shrink_wrap): Likewise.
19649         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
19650         * web.c (union_defs, pass_web::execute): Likewise.
19651         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
19652         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
19654 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
19656         * lra-assign.c (assign_by_spills): Add code to assign vector regs
19657         to inheritance pseudos.
19658         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
19660 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
19662         PR target/61415
19663         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
19664         (BU_MISC_2): Rename to ...
19665         (BU_LDBL128_2): ... this.
19666         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
19667         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
19668         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
19669         RS6000_BTM_LDBL128.
19670         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
19671         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
19672         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
19673         (unpacktf_1): Likewise.
19674         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
19675         (__builtin_longdouble_dw1): Likewise.
19676         * doc/sourcebuild.texi (longdouble128): Document.
19678 2014-06-13  Jeff Law  <law@redhat.com>
19680         PR rtl-optimization/61094
19681         PR rtl-optimization/61446
19682         * ree.c (combine_reaching_defs): Get the mode for the copy from
19683         the extension insn rather than the defining insn.
19685 2014-06-13  Dehao Chen  <dehao@google.com>
19687         * dwarf2out.c (add_linkage_name): Emit more linkage name.
19689 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
19691         * doc/install.texi (--enable-linker-plugin-configure-flags)
19692         (--enable-linker-plugin-flags): Document new flags.
19694 2014-06-13  Martin Jambor  <mjambor@suse.cz>
19696         PR ipa/61186
19697         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
19698         cache_token if returning early.
19700 2014-06-13  Nick Clifton  <nickc@redhat.com>
19702         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
19703         requested alignment is active.
19704         (LABEL_ALIGN): Likewise.
19705         (LOOP_ALIGN): Likewise.
19707 2014-06-13  Richard Biener  <rguenther@suse.de>
19709         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19710         Rewrite to propagate the VN result into all uses where
19711         possible and to remove stmts becoming dead because of that.
19712         (eliminate): Generalize stmt removal handling, remove in
19713         reverse dominator order to support proper debug stmt
19714         generation.  Update stmts before removing stmts.
19715         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
19717 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19719         PR tree-optimization/61375
19720         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
19721         symbolic number cannot be represented in an uint64_t.
19722         (find_bswap_or_nop_1): Likewise.
19724 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
19726         * symtab.c (symtab_node::reset_section): New method.
19727         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
19728         for localization.
19729         * cgraph.h (reset_section): Declare.
19730         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
19731         do not consider comdat locals.
19732         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
19733         for new symbol.
19734         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
19735         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
19736         reset sections of symbols dragged out of the comdats.
19737         (function_and_variable_visibility): Reset sections of
19738         localized symbols.
19740 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
19742         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
19743         to use symtab and decl_binds_to_current_def_p
19744         * tree-vectorizer.c (increase_alignment): Increase alignment
19745         of alias target, too.
19747 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
19749         PR middle-end/61486
19750         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
19751         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
19752         if outer combined construct is distribute.
19753         (gimplify_omp_for): For OMP_DISTRIBUTE set
19754         gimplify_omp_ctxp->distribute.
19755         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
19756         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
19757         mapping into decl map.
19759 2014-06-12  Jason Merrill  <jason@redhat.com>
19761         * common.opt (fabi-version): Change default to 0.
19763 2014-06-12  Jason Merrill  <jason@redhat.com>
19765         * toplev.c (process_options): Reject -fabi-version=1.
19767 2014-06-12  Jeff Law  <law@redhat.com>
19769         PR tree-optimization/61009
19770         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
19771         value when we stop processing a block due to problematic PHIs.
19773 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
19775         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
19776         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
19777         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
19778         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
19779         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
19780         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
19781         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
19782         are not in the spec.
19784 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
19786         PR target/59843
19787         * config/aarch64/aarch64-modes.def: Add V1DFmode.
19788         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
19789         Support V1DFmode.
19791 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
19793         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
19795 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
19797         PR target/61443
19798         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
19799         loading from address spaces.
19801 2014-06-12  Martin Liska  <mliska@suse.cz>
19803         PR ipa/61462
19804         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
19805         statement is reachable.
19807 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
19809         * symtab.c (section_hash): New hash.
19810         (symtab_unregister_node): Clear section before freeing.
19811         (hash_section_hash_entry): New haser.
19812         (eq_sections): New function.
19813         (symtab_node::set_section_for_node): New method.
19814         (set_section_1): Update.
19815         (symtab_node::set_section): Take string instead of tree as parameter.
19816         (symtab_resolve_alias): Update.
19817         * cgraph.h (section_hash_entry_d): New structure.
19818         (section_hash_entry): New typedef.
19819         (cgraph_node): Change comdat_group_ to x_comdat_group,
19820         change section_ to x_section and turn into section_hash_entry;
19821         update accestors; put set_section_for_node offline.
19822         * tree.c (decl_section_name): Turn into string.
19823         (set_decl_section_name): Change parameter to be string.
19824         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
19825         * sdbout.c (sdbout_one_type): Update.
19826         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
19827         * varasm.c (IN_NAMED_SECTION, get_named_section,
19828         resolve_unique_section, hot_function_section, get_named_text_section,
19829         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
19830         make_decl_rtl, default_unique_section): Update.
19831         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
19832         (c6x_elf_unique_section): Update.
19833         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
19834         * config/pa/pa.c (pa_function_section): Update.
19835         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
19836         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
19837         * config/arc/arc.c (arc_in_small_data_p): Update.
19838         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
19839         * config/mcore/mcore.c (mcore_unique_section): Update.
19840         * config/mips/mips.c (mips16_build_function_stub): Update.
19841         (mips16_build_call_stub): Update.
19842         (mips_function_rodata_section): Update.
19843         (mips_in_small_data_p): Update.
19844         * config/score/score.c (score_in_small_data_p): Update.
19845         * config/rx/rx.c (rx_in_small_data): Update.
19846         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
19847         (rs6000_xcoff_asm_named_section): Update.
19848         (rs6000_xcoff_unique_section): Update.
19849         * config/frv/frv.c (frv_string_begins_with): Update.
19850         (frv_in_small_data_p): Update.
19851         * config/v850/v850.c (v850_encode_data_area): Update.
19852         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
19853         (bfin_handle_l1_data_attribute): Update.
19854         (bfin_handle_l2_attribute): Update.
19855         * config/mep/mep.c (mep_unique_section): Update.
19856         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
19857         Update.
19858         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
19859         (h8300_handle_tiny_data_attribute): Update.
19860         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
19861         (m32r_in_small_data_p): Update.
19862         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
19863         * config/i386/i386.c (ix86_in_large_data_p): Update.
19864         * config/i386/winnt.c (i386_pe_unique_section): Update.
19865         * config/darwin.c (darwin_function_section): Update.
19866         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
19867         * tree-emutls.c (get_emutls_init_templ_addr): Update.
19868         (new_emutls_decl): Update.
19869         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
19870         input_varpool_node): Update.
19871         (ead_string_cst): Turn to ...
19872         (read_string): ... this one.
19873         * dwarf2out.c (secname_for_decl): Update.
19874         * asan.c (asan_protect_global): Update.
19876 2014-06-11  DJ Delorie  <dj@redhat.com>
19878         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
19879         cache lines.
19880         * config/rx/rx.c (rx_option_override): Likewise.
19881         (rx_align_for_label): Likewise.
19883         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
19885 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
19887         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
19888         prototype.
19890 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19892         * common.md: New file.
19893         * doc/md.texi: Update description of generic, machine-independent
19894         constraints.
19895         * config/s390/constraints.md (e): Delete.
19896         * Makefile.in (md_file): Include common.md.
19897         * config/m32c/t-m32c (md_file): Likewise.
19898         * genpreds.c (general_mem): New array.
19899         (generic_constraint_letters): Remove constraints now defined by
19900         common.md.
19901         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
19902         Allow the first character to be '<' or '>' as well.
19903         * genoutput.c (general_mem): New array.
19904         (indep_constraints): Remove constraints now defined by common.md.
19905         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
19906         Remove special handling of 'm'.
19907         * ira-costs.c (record_reg_classes): Remove special handling of
19908         constraints now defined by common.md.
19909         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19910         * ira-lives.c (single_reg_class): Likewise.
19911         (ira_implicitly_set_insn_hard_regs): Likewise.
19912         * lra-constraints.c (reg_class_from_constraints): Likewise.
19913         (process_alt_operands, process_address, curr_insn_transform): Likewise.
19914         * postreload.c (reload_cse_simplify_operands): Likewise.
19915         * reload.c (push_secondary_reload, scratch_reload_class)
19916         (find_reloads, alternative_allows_const_pool_ref): Likewise.
19917         * reload1.c (maybe_fix_stack_asms): Likewise.
19918         * targhooks.c (default_secondary_reload): Likewise.
19919         * stmt.c (parse_output_constraint): Likewise.
19920         * recog.c (preprocess_constraints): Likewise.
19921         (constrain_operands, peep2_find_free_register): Likewise.
19922         (asm_operand_ok): Likewise, but add a comment saying why 'o'
19923         must be handled specially.
19925 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19927         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
19928         * genpreds.c (have_const_dbl_constraints): Delete.
19929         (add_constraint): Don't set it.
19930         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
19931         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
19932         constraints using the lookup_constraint logic.
19933         * ira-lives.c (single_reg_class): Likewise.
19934         * ira.c (ira_setup_alts): Likewise.
19935         * lra-constraints.c (process_alt_operands): Likewise.
19936         * recog.c (asm_operand_ok, constrain_operands): Likewise.
19937         * reload.c (find_reloads): Likewise.
19939 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19941         * genpreds.c (const_int_start, const_int_end): New variables.
19942         (choose_enum_order): Output CONST_INT constraints before memory
19943         constraints.
19944         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
19945         Add CT_CONST_INT.
19946         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
19947         * ira.c (ira_setup_alts): Likewise.
19948         * lra-constraints.c (process_alt_operands): Likewise.
19949         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
19950         * reload.c (find_reloads): Likewise.
19952 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19954         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
19955         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
19956         * recog.c (preprocess_constraints): Update accordingly.
19958 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19960         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
19961         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
19962         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
19963         * genpreds.c (print_type_tree): New function.
19964         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
19965         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
19966         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
19967         Write out enum constraint_type and get_constraint_type.
19968         * lra-constraints.c (satisfies_memory_constraint_p): Take a
19969         constraint_num rather than a constraint string.
19970         (satisfies_address_constraint_p): Likewise.
19971         (reg_class_from_constraints): Avoid old constraint macros.
19972         (process_alt_operands, process_address_1): Likewise.
19973         (curr_insn_transform): Likewise.
19974         * ira-costs.c (record_reg_classes): Likewise.
19975         (record_operand_costs): Likewise.
19976         * ira-lives.c (single_reg_class): Likewise.
19977         (ira_implicitly_set_insn_hard_regs): Likewise.
19978         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19979         * postreload.c (reload_cse_simplify_operands): Likewise.
19980         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
19981         (constrain_operands, peep2_find_free_register): Likewise.
19982         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
19983         (find_reloads, alternative_allows_const_pool_ref): Likewise.
19984         * reload1.c (maybe_fix_stack_asms): Likewise.
19985         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
19986         * targhooks.c (default_secondary_reload): Likewise.
19987         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
19988         to EXTRA_CONSTRAINT_STR.
19989         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
19991 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
19993         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
19994         (write_constraint_satisfied_p_array): ...this new function.
19995         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
19996         an array.
19997         (write_insn_preds_c): Update accordingly.
19999 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
20001         * genpreds.c (write_lookup_constraint): Rename to...
20002         (write_lookup_constraint_1): ...this.
20003         (write_lookup_constraint_array): New function.
20004         (write_tm_preds_h): Define lookup_constraint as an inline function
20005         that uses write_lookup_constraint_array where possible.
20006         (write_insn_preds_c): Update for the changes above.
20008 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
20010         * doc/md.texi (regclass_for_constraint): Rename to...
20011         (reg_class_for_constraint): ...this.
20012         * genpreds.c (num_constraints, enum_order, register_start)
20013         (register_end, satisfied_start, memory_start, memory_end)
20014         (address_start, address_end): New variables.
20015         (add_constraint): Count the number of constraints.
20016         (choose_enum_order): New function.
20017         (write_enum_constraint_num): Iterate over enum_order.
20018         (write_regclass_for_constraint): Rename to...
20019         (write_reg_class_for_constraint_1): ...this and update output
20020         accordingly.
20021         (write_constraint_satisfied_p): Rename to...
20022         (write_constraint_satisfied_p_1): ...this and update output
20023         accordingly.  Do nothing if all extra constraints are register
20024         constraints.
20025         (write_insn_extra_memory_constraint): Delete.
20026         (write_insn_extra_address_constraint): Delete.
20027         (write_range_function): New function.
20028         (write_tm_preds_h): Define constraint_satisfied_p and
20029         reg_class_for_constraint as inline functions that do a range check
20030         before calling the out-of-line function.  Use write_range_function
20031         to implement insn_extra_{register,memory,address}_constraint,
20032         the first of which is new.
20033         (write_insn_preds_c): Update after above changes to write_* functions.
20034         (main): Call choose_enum_order.
20036 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20038         PR tree-optimization/61306
20039         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
20040         expression instead of its size.
20041         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
20042         false to prevent optimization when the result is unpredictable due to
20043         arithmetic right shift of signed type with highest byte is set.
20044         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
20045         (init_symbolic_number): Likewise.
20046         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
20047         when the result is unpredictable due to sign extension.
20049 2014-06-11  Terry Guo  <terry.guo@arm.com>
20051         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
20052         (*thumb1_addsi3): Ditto.
20053         (*thumb_subdi3): Ditto.
20054         (thumb1_subsi3_insn): Ditto.
20055         (*thumb_mulsi3): Ditto.
20056         (*thumb_mulsi3_v6): Ditto.
20057         (*thumb1_andsi3_insn): Ditto.
20058         (thumb1_bicsi3): Ditto.
20059         (*thumb1_iorsi3_insn): Ditto.
20060         (*thumb1_xorsi3_insn): Ditto.
20061         (*thumb1_ashlsi3): Ditto.
20062         (*thumb1_ashrsi3): Ditto.
20063         (*thumb1_lshrsi3): Ditto.
20064         (*thumb1_rotrsi3): Ditto.
20065         (*thumb1_negdi2): Ditto.
20066         (*thumb1_negsi2): Ditto.
20067         (*thumb1_abssi2): Ditto.
20068         (*thumb1_neg_abssi2): Ditto.
20069         (*thumb1_one_cmplsi2): Ditto.
20070         (*thumb1_zero_extendhisi2): Ditto.
20071         (*thumb1_zero_extendqisi2): Ditto.
20072         (*thumb1_zero_extendqisi2_v6): Ditto.
20073         (thumb1_extendhisi2): Ditto.
20074         (thumb1_extendqisi2): Ditto.
20075         (*thumb1_movdi_insn): Ditto.
20076         (*thumb1_movsi_insn): Ditto.
20077         (*thumb1_movhi_insn): Ditto.
20078         (thumb_movhi_clobber): Ditto.
20079         (*thumb1_movqi_insn): Ditto.
20080         (*thumb1_movhf): Ditto.
20081         (*thumb1_movsf_insn): Ditto.
20082         (*thumb_movdf_insn): Ditto.
20083         (movmem12b): Ditto.
20084         (movmem8b): Ditto.
20085         (cbranchqi4): Ditto.
20086         (cbranchsi4_insn): Ditto.
20087         (cbranchsi4_scratch): Ditto.
20088         (*negated_cbranchsi4): Ditto.
20089         (*tbit_cbranch): Ditto.
20090         (*tlobits_cbranch): Ditto.
20091         (*tstsi3_cbranch): Ditto.
20092         (*cbranchne_decr1): Ditto.
20093         (*addsi3_cbranch): Ditto.
20094         (*addsi3_cbranch_scratch): Ditto.
20095         (*thumb_cmpdi_zero): Ditto.
20096         (cstoresi_eq0_thumb1): Ditto.
20097         (cstoresi_ne0_thumb1): Ditto.
20098         (*cstoresi_eq0_thumb1_insn): Ditto.
20099         (*cstoresi_ne0_thumb1_insn): Ditto.
20100         (cstoresi_nltu_thumb1): Ditto.
20101         (cstoresi_ltu_thumb1): Ditto.
20102         (thumb1_addsi3_addgeu): Ditto.
20103         (*thumb_jump): Ditto.
20104         (*call_reg_thumb1_v5): Ditto.
20105         (*call_reg_thumb1): Ditto.
20106         (*call_value_reg_thumb1_v5): Ditto.
20107         (*call_value_reg_thumb1): Ditto.
20108         (*call_insn): Ditto.
20109         (*call_value_insn): Ditto.
20110         (thumb1_casesi_internal_pic): Ditto.
20111         (thumb1_casesi_dispatch): Ditto.
20112         (*thumb1_indirect_jump): Ditto.
20113         (prologue_thumb1_interwork): Ditto.
20114         (*epilogue_insns): Ditto.
20115         (consttable_1): Ditto.
20116         (consttable_2): Ditto.
20117         (tablejump): Ditto.
20118         (*thumb1_tablejump): Ditto.
20119         (thumb_eh_return): Ditto.
20120         (define_peephole2): Two of them are thumb1 only and got moved into
20121         new file thumb1.md.
20122         (define_split): Six of them are thumb1 only and got moved into new
20123         file thumb1.md.
20124         * config/arm/thumb1.md: New file comprised of above thumb1 only
20125         patterns.
20127 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20129         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
20130         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
20131         dependencies.
20132         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
20133         (aarch64_crc_builtin_datum): New struct.
20134         (aarch64_crc_builtin_data): New.
20135         (aarch64_init_crc32_builtins): New function.
20136         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
20137         (aarch64_crc32_expand_builtin): New.
20138         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
20139         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
20140         __ARM_FEATURE_CRC32 when appropriate.
20141         (TARGET_CRC32): Define.
20142         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
20143         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
20144         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
20145         (aarch64_<crc_variant>): New pattern.
20146         * config/aarch64/arm_acle.h: New file.
20147         * config/aarch64/iterators.md (CRC): New int iterator.
20148         (crc_variant, crc_mode): New int attributes.
20149         * doc/aarch64-acle-intrinsics.texi: New file.
20150         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
20151         Include aarch64-acle-intrinsics.texi.
20153 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
20155         * tree-vect-data-refs.c (vect_grouped_store_supported): New
20156         check for stores group of length 3.
20157         (vect_permute_store_chain): New permutations for stores group of
20158         length 3.
20159         * tree-vect-stmts.c (vect_model_store_cost): Change cost
20160         of vec_perm_shuffle for the new permutations.
20162 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
20164         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
20165         table rewriting temporarily on targets not supporting ONE_ONLY.
20167 2014-06-11  Richard Biener  <rguenther@suse.de>
20169         PR middle-end/61437
20170         Revert
20171         2014-06-04  Richard Biener  <rguenther@suse.de>
20173         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
20174         TREE_PUBLIC and DECL_EXTERNAL decls.
20176 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
20178         * varasm.c (set_implicit_section): New function.
20179         (resolve_unique_section): Use it to set implicit section
20180         for aliases, too.
20181         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
20182         (default_function_section): Likewise.
20183         (decl_binds_to_current_def_p): Constify argument.
20184         * varasm.h (decl_binds_to_current_def_p): Update prototype.
20185         * asan.c (asan_protect_global): Use
20186         symtab_get_node (decl)->implicit_section.
20187         * symtab.c (dump_symtab_base): Dump implicit sections.
20188         (verify_symtab_base): Verify sanity of sectoins and comdats.
20189         (symtab_resolve_alias): Alias share the section of its target.
20190         (set_section_1): New function.
20191         (symtab_node::set_section): Move here, recurse to aliases.
20192         (verify_symtab): Check for duplicated symtab lists.
20193         * tree-core.h (implicit_section_name_p): Remove.
20194         * tree-vect-data-refs.c: Include varasm.h.
20195         (vect_can_force_dr_alignment_p): Fix conditional on when
20196         decl bints to current definition; use
20197         symtab_get_node (decl)->implicit_section.
20198         * cgraph.c (cgraph_make_node_local_1): Fix section set.
20199         * cgraph.h (struct symtab_node): Add implicit_section.
20200         (set_section): Rename to ...
20201         (set_section_for_node): ... this one.
20202         (set_section): Declare.
20203         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
20204         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
20205         input_overwrite_node, input_varpool_node): Stream implicit_section.
20206         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
20207         removal; it will fail in LTO.
20209 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20211         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
20212         Change second alternative type to f_mcr.
20213         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
20214         and 12th alternatives' types to f_mcr and f_mrc.
20215         (*movdi_aarch64): Same for 12th and 13th alternatives.
20216         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
20217         (aarch64_movtilow_tilow): Change type to fmov.
20219 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
20221         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
20222         (aarch64_save_or_restore_callee_save_registers): Fix layout.
20224 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20226         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
20227         New expander.
20228         (aarch64_sqrdmulh_lane<mode>): Likewise.
20229         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
20230         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
20231         (aarch64_sqdmulh_laneq<mode>): New expander.
20232         (aarch64_sqrdmulh_laneq<mode>): Likewise.
20233         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
20234         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
20235         (aarch64_sqdmulh_lane<mode>): New expander.
20236         (aarch64_sqrdmulh_lane<mode>): Likewise.
20237         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
20238         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
20239         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
20240         (aarch64_sqdmlal_laneq<mode>): Likewise.
20241         (aarch64_sqdmlsl_lane<mode>): Likewise.
20242         (aarch64_sqdmlsl_laneq<mode>): Likewise.
20243         (aarch64_sqdmlal2_lane<mode>): Likewise.
20244         (aarch64_sqdmlal2_laneq<mode>): Likewise.
20245         (aarch64_sqdmlsl2_lane<mode>): Likewise.
20246         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20247         (aarch64_sqdmull_lane<mode>): Likewise.
20248         (aarch64_sqdmull_laneq<mode>): Likewise.
20249         (aarch64_sqdmull2_lane<mode>): Likewise.
20250         (aarch64_sqdmull2_laneq<mode>): Likewise.
20252 2014-06-10  Richard Biener  <rguenther@suse.de>
20254         PR tree-optimization/61438
20255         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
20256         (eliminate_dom_walker::before_dom_children): Only try to inhibit
20257         insertion of IVs if running PRE.
20258         (eliminate): Adjust.
20259         (pass_pre::execute): Likewise.
20260         (pass_fre::execute): Likewise.
20262 2014-06-10  Richard Biener  <rguenther@suse.de>
20264         PR middle-end/61456
20265         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
20266         Do not use the main variant for the type comparison.
20267         (ncr_compar): Likewise.
20268         (nonoverlapping_component_refs_p): Likewise.
20270 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20272         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
20273         REG_CFA_RESTORE mode.
20275 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
20277         * config/i386/i386.c (expand_vec_perm_pblendv): New.
20278         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
20279         expand_vec_perm_pblendv.
20281 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20283         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
20284         available.
20285         Simplify description of __crc32d and __crc32cd intrinsics.
20286         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
20287         availability.
20289 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
20291         PR lto/61334
20292         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
20293         * config.in: Regenerate.
20294         * configure: Likewise.
20296 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
20298         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
20299         and public vars.
20300         (intersect_static_var_sets): Remove.
20301         (propagate): Do not prune local statics.
20303 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
20305         PR fortran/60928
20306         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
20307         Set lastprivate_firstprivate even if omp_private_outer_ref
20308         langhook returns true.
20309         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
20310         langhook, call unshare_expr on new_var and call
20311         build_outer_var_ref to get the last argument.
20313 2014-06-10  Marek Polacek  <polacek@redhat.com>
20315         PR c/60988
20316         * doc/extend.texi: Add cindex for transparent_union.
20318 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20320         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
20321         init_symbolic_number ().
20323 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
20325         PR middle-end/61141
20326         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
20327         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
20328         (verify_rtl_sharing): Likewise.
20330 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
20332         PR c++/54442
20333         * tree.c (build_qualified_type): Use a canonical type for
20334         TYPE_CANONICAL.
20336 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20338         * config/arm/arm-modes.def: Remove XFmode.
20340 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
20342         PR target/61062
20343         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
20344         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
20345         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
20346         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
20347         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
20348         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
20349         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
20350         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
20351         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
20353 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
20355         * tree-core.h (tree_decl_with_vis): Remove section_name.
20357 2014-06-09  Kito Cheng  <kito@0xlab.org>
20359         * ira.c (ira): Don't call init_caller_save if LRA enabled
20360         since LRA use its own infrastructure to handle that.
20362 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
20364         * symtab.c (dump_symtab_base): Update dumping.
20365         (symtab_make_decl_local): Clear only DECL_COMDAT.
20366         * tree-vect-data-refs.c (Check that variable is static before
20367         tampering with sections.
20368         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
20369         (cgraph_create_virtual_clone): Likewise.
20370         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
20371         (decl_section_name, set_decl_section_name): New accessors.
20372         (find_decls_types_r): Do not walk section name
20373         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
20374         (decl_comdat_group, decl_comdat_group_id): Constify.
20375         (decl_section_name, set_decl_section_name): Update.
20376         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
20377         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
20378         (cgraph_make_node_local_1): Clear section and comdat group.
20379         * cgraph.h (set_comdat_group): Sanity check.
20380         (get_section, set_section): New.
20381         * ipa-comdats.c (ipa_comdats): Use get_section.
20382         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
20383         * lto-streamer-out.c: Do not follow section names.
20384         * c-family/c-common.c (handle_section_attribute): Update.
20385         * lto-cgraph.c (lto_output_node): Output section.
20386         (lto_output_varpool_node): Likewise.
20387         (read_comdat_group): Rename to ...
20388         (read_identifier): ... this one.
20389         (read_string_cst): New function.
20390         (input_node, input_varpool_node): Input section names.
20391         * tree-emutls.c (get_emutls_init_templ_addr): Update.
20392         (new_emutls_decl): Update.
20393         (secname_for_decl): Check section names only of static vars.
20394         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
20395         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
20396         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
20397         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
20398         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
20399         * config/mcore/mcore.c (mcore_unique_section): Likewise.
20400         * config/mips/mips.c (mips16_build_function_stub): Likewise.
20401         * config/v850/v850.c (v850_insert_attributes): Likewise.
20402         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
20403         Likewise.
20404         (h8300_handle_tiny_data_attribute): Likewise.
20405         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
20406         (bfin_handle_l2_attribute): Likewise.
20408 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
20410         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
20411         remove static initializer.
20413 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
20415         * varasm.c (use_blocks_for_decl_p): Check symbol table
20416         instead of alias attribute.
20417         (place_block_symbol): Recurse on aliases.
20419 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
20421         * ipa-visibility.c: Include varasm.h
20422         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
20424 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
20426         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
20427         outputting aliases.
20429 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
20431         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
20432         from test_insn into GGC space escape via SET_SRC.
20434 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
20436         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
20437         call statement, if any.
20438         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
20439         statements, if any.  Tidy up.
20441 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
20443         PR target/61431
20444         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
20445         iterators, VSX_D that handles 64-bit types, and VSX_LE that
20446         handles swapping the two 64-bit double words on little endian
20447         systems.  Include V1TImode and optionally TImode in VSX_LE so that
20448         these types are properly swapped.  Change all of the insns and
20449         splits that do the 64-bit swaps to use VSX_LE.
20450         (vsx_le_perm_load_<mode>): Likewise.
20451         (vsx_le_perm_store_<mode>): Likewise.
20452         (splitters for little endian memory operations): Likewise.
20453         (vsx_xxpermdi2_le_<mode>): Likewise.
20454         (vsx_lxvd2x2_le_<mode>): Likewise.
20455         (vsx_stxvd2x2_le_<mode>): Likewise.
20457 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
20459         PR target/61423
20460         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
20461         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
20462         and corresponding splitters.  Zero extend general register
20463         or memory input operand to XMM temporary.  Enable for
20464         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
20465         (floatunssi<mode>2): Update expander predicate.
20467 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
20469         PR rtl-optimization/61325
20470         * lra-constraints.c (process_address_1): Check scale equal to one
20471         to prevent transformation: base + scale * index => base + new_reg.
20473 2014-06-06  Richard Biener  <rguenther@suse.de>
20475         PR tree-optimization/59299
20476         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
20477         a def operand.
20478         (nearest_common_dominator_of_uses): Likewise.
20479         (statement_sink_location): Adjust.  Support sinking loads.
20481 2014-06-06  Martin Jambor  <mjambor@suse.cz>
20483         * ipa-prop.c (get_place_in_agg_contents_list): New function.
20484         (build_agg_jump_func_from_list): Likewise.
20485         (determine_known_aggregate_parts): Renamed to
20486         determine_locally_known_aggregate_parts.  Moved some functionality
20487         to the two functions above, removed bound checks.
20489 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
20491         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
20492         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
20493         (aarch64_progress_pointer): Likewise.
20494         (aarch64_copy_one_part_and_move_pointers): Likewise.
20495         (aarch64_expand_movmen): Likewise.
20496         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
20497         * config/aarch64/aarch64.md (movmem<mode>): New.
20499 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
20501         * targhooks.c (default_add_stmt_cost): Call target specific
20502         hook instead of default one.
20504 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20506         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
20507         endianness instead of host endianness.
20508         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
20509         comments.
20511 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
20513         PR debug/53927
20514         * function.c (instantiate_decls): Process the saved static chain.
20515         (expand_function_start): If not optimizing, save the static chain
20516         onto the stack.
20517         * tree-nested.c (convert_all_function_calls): Always create the static
20518         chain for nested functions if not optimizing.
20520 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
20522         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
20524 2014-06-06  Richard Biener  <rguenther@suse.de>
20526         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
20527         (construct_init_block): Likewise.
20528         (construct_exit_block): Likewise.
20529         (pass_expand::execute): Likewise.
20530         * graphite.c (graphite_transforms): Replace check for current_loops
20531         with a check for > 1 loops.
20532         (pass_graphite_transforms::execute): Adjust.
20533         * ipa-split.c (split_function): Remove check for current_loops.
20534         * omp-low.c (expand_parallel_call): Likewise.
20535         (expand_omp_for_init_counts): Likewise.
20536         (extract_omp_for_update_vars): Likewise.
20537         (expand_omp_for_generic): Likewise.
20538         (expand_omp_sections): Likewise.
20539         (expand_omp_target): Likewise.
20540         * tracer.c (tail_duplicate): Likewise.
20541         (pass_tracer::execute): Likewise.
20542         * trans-mem.c (expand_transaction): Likewise.
20543         * tree-complex.c (expand_complex_div_wide): Likewise.
20544         * tree-eh.c (lower_resx): Likewise.
20545         (cleanup_empty_eh_merge_phis): Likewise.
20546         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
20547         current_loops with a check for > 1 loops.
20548         (pass_predcom::execute): Adjust.
20549         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
20550         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
20551         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
20552         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
20553         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
20554         * tree-switch-conversion.c (process_switch): Likewise.
20555         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
20556         * tree-vrp.c (vrp_visit_phi_node): Likewise.
20557         (execute_vrp): Likewise.
20558         * ubsan.c (ubsan_expand_null_ifn): Likewise.
20560 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
20562         * rtl.h (insn_location): Declare.
20563         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
20564         with UNKNOWN_LOCATION.
20565         * emit-rtl.c (insn_location): New function.
20566         * final.c (notice_source_line): Check that the instruction has a
20567         location before retrieving it and use insn_location.
20568         * modulo-sched.c (loop_single_full_bb_p): Likewise.
20569         * print-rtl.c (print_rtx): Likewise.
20571 2014-06-06  Richard Biener  <rguenther@suse.de>
20573         * passes.def: Move 2nd VRP pass before phi-only-cprop.
20575 2014-06-06  Christian Bruel  <christian.bruel@st.com>
20577         PR tree-optimization/43934
20578         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
20579         cost.
20581 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
20583         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
20584         return NO_REGS for extra address and memory constraints.  Handle
20585         operands that match (or are equivalent to something that matches)
20586         extra constant constraints.  Ignore other non-register operands.
20588 2014-06-06  Alan Modra  <amodra@gmail.com>
20590         PR target/61300
20591         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
20592         * doc/tm.texi: Regenerate.
20593         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
20594         Use throughout in place of REG_PARM_STACK_SPACE.
20595         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
20596         "incoming" param.  Pass to rs6000_function_parms_need_stack.
20597         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
20598         prototype_p when incoming.  Use function decl when incoming
20599         to handle K&R style functions.
20600         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
20601         (INCOMING_REG_PARM_STACK_SPACE): Define.
20603 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
20605         PR target/52472
20606         * cfgexpand.c (expand_debug_expr): Use address space of nested
20607         TREE_TYPE for ADDR_EXPR and MEM_REF.
20609 2014-06-05  Jeff Law  <law@redhat.com>
20611         PR tree-optimization/61289
20612         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
20613         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
20614         looking for those which match LHS.  All callers changed.
20615         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
20616         parameters and code which manipulated them.  All callers changed.
20617         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
20618         and DST_MAP parameters.  Simplify invalidation code by just calling
20619         invalidate_equivalences.  All callers changed.
20620         (thread_across_edge): Simplify now that we don't need to maintain
20621         the map of equivalences to invalidate.
20623 2014-06-05  Kai Tietz  <ktietz@redhat.com>
20624             Richard Henderson  <rth@redhat.com>
20626         PR target/46219
20627         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
20628         checking for !TARGET_X32.
20629         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
20630         (sibcall_intern): New define_insn, plus required peepholes.
20631         (sibcall_pop_intern): Likewise.
20632         (sibcall_value_intern): Likewise.
20633         (sibcall_value_pop_intern): Likewise.
20635 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
20637         * tree-inline.c (tree_function_versioning): Check DF info existence
20638         before accessing it.
20640 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20642         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
20643         frame_size.
20644         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
20645         aarch64_frame hard_fp_offset and frame_size.
20646         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
20647         frame_size; remove original_frame_size.
20648         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
20649         (aarch64_initial_elimination_offset): Remove frame_size and
20650         offset.  Use aarch64_frame frame_size.
20652 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20653             Jiong Wang  <jiong.wang@arm.com>
20654             Renlin  <renlin.li@arm.com>
20656         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
20657         initialization of R30 offset.  Update offset.  Iterate core
20658         regisers upto X30.  Remove X29, X30 specific code.
20660 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20661             Jiong Wang  <jiong.wang@arm.com>
20663         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
20664         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
20665         (aarch64_register_saved_on_entry): Adjust test.
20667 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20669         * config/aarch64/aarch64.h (machine_function): Move
20670         saved_varargs_size from here...
20671         (aarch64_frame): ... to here.
20673         * config/aarch64/aarch64.c (aarch64_expand_prologue)
20674         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
20675         (aarch64_initial_elimination_offset)
20676         (aarch64_setup_incoming_varargs): Adjust location of
20677         saved_varargs_size.
20679 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20681         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
20682         layout comment.
20684 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
20685             Prachi Godbole  <Prachi.Godbole@imgtec.com>
20687         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
20688         mips32r5 entry to use PROCESSOR_P5600.
20689         * config/mips/mips-tables.opt: Regenerate.
20690         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
20691         * config/mips/mips.c (mips_fmadd_bypass): New function.
20692         (mips_rtx_cost_data): Add costs for p5600.
20693         (mips_issue_rate): Add support for p5600.
20694         (mips_multipass_dfa_lookahead): Likewise.
20695         * config/mips/mips.h (TUNE_P5600): New define.
20696         (TUNE_MACC_CHAINS): Add TUNE_P5600.
20697         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
20698         * config/mips/mips.md: Include p5600.md.
20699         (processor): Add p5600.
20700         * config/mips/p5600.md: New file.
20702 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
20704         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
20705         * config/i386/predicates.md (palignr_operand): New.
20706         Indicates if permutation is suitable for palignr instruction.
20708 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
20710         PR tree-optimization/61319
20711         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20712         stmt belongs to loop.
20714 2014-06-05  Richard Biener  <rguenther@suse.de>
20716         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
20717         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
20718         (lookup_tmp_var): Adjust.
20719         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
20721 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20723         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
20725 2014-06-05  Marek Polacek  <polacek@redhat.com>
20727         PR c/49706
20728         * doc/invoke.texi: Document -Wlogical-not-parentheses.
20730 2014-06-04  Tom de Vries  <tom@codesourcery.com>
20732         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
20733         CONST_INT.
20735 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
20737         PR tree-optimization/61385
20738         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
20740 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
20742         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
20743         changed to use fatal_error.
20744         (main): Ensure lto_wrapper_cleanup is run atexit.
20746 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20748         * lra-constraints.c (valid_address_p): Move earlier in file.
20749         (address_eliminator): New structure.
20750         (satisfies_memory_constraint_p): New function.
20751         (satisfies_address_constraint_p): Likewise.
20752         (process_alt_operands, process_address, curr_insn_transform): Use them.
20754 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20756         * lra-int.h (lra_static_insn_data): Make operand_alternative a
20757         const pointer.
20758         (target_lra_int, default_target_lra_int, this_target_lra_int)
20759         (op_alt_data): Delete.
20760         * lra.h (lra_init): Delete.
20761         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
20762         (init_insn_code_data_once): Remove op_alt_data handling.
20763         (finish_insn_code_data_once): Likewise.
20764         (init_op_alt_data): Delete.
20765         (get_static_insn_data): Initialize operand_alternative to null.
20766         (free_insn_recog_data): Cast operand_alternative before freeing it.
20767         (setup_operand_alternative): Take the operand_alternative as
20768         parameter and assume it isn't already cached in the static
20769         insn data.
20770         (lra_set_insn_recog_data): Update accordingly.
20771         (lra_init): Delete.
20772         * ira.c (ira_init): Don't call lra_init.
20773         * target-globals.h (this_target_lra_int): Declare.
20774         (target_globals): Remove lra_int.
20775         (restore_target_globals): Update accordingly.
20776         * target-globals.c: Don't include lra-int.h.
20777         (default_target_globals, save_target_globals): Remove lra_int.
20779 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20781         * recog.h (operand_alternative): Convert reg_class, reject,
20782         matched and matches into bitfields.
20783         (preprocess_constraints): New overload.
20784         (preprocess_insn_constraints): New function.
20785         (preprocess_constraints): Take the insn as parameter.
20786         (recog_op_alt): Change into a pointer.
20787         (target_recog): Add x_op_alt.
20788         * recog.c (asm_op_alt): New variable.
20789         (recog_op_alt): Change into a pointer.
20790         (preprocess_constraints): New overload, replacing the old function
20791         definition with one that doesn't use global state.
20792         (preprocess_insn_constraints): New function.
20793         (preprocess_constraints): Use them.  Take the insn as parameter.
20794         Use asm_op_alt for asms.
20795         (recog_init): Free existing x_op_alt entries.
20796         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
20797         pointer const.
20798         (make_early_clobber_and_input_conflicts): Likewise.
20799         (process_bb_node_lives): Pass the insn to process_constraints.
20800         * reg-stack.c (check_asm_stack_operands): Likewise.
20801         (subst_asm_stack_regs): Likewise.
20802         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
20803         * regrename.c (build_def_use): Likewise.
20804         * sched-deps.c (sched_analyze_insn): Likewise.
20805         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
20806         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
20807         (note_invalid_constants): Likewise.
20808         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20809         (ix86_legitimate_combined_insn): Make operand_alternative pointer
20810         const.
20812 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20814         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
20815         * ira-lives.c (check_and_make_def_conflict): Check for disabled
20816         alternatives.
20817         (make_early_clobber_and_input_conflicts): Likewise.
20818         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20820 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20822         * recog.h (alternative_class): New function.
20823         (which_op_alt): Return a const recog_op_alt.
20824         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
20825         (subst_asm_stack_regs): Likewise.
20826         * config/arm/arm.c (note_invalid_constants): Likewise.
20827         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
20828         the operand_alternative; use alternative class instead.
20829         * sel-sched.c (get_reg_class): Likewise.
20830         * regrename.c (build_def_use): Likewise.
20831         (hide_operands, restore_operands, record_out_operands): Update type
20832         accordingly.
20834 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
20836         * recog.h (recog_op_alt): Convert to a flat array.
20837         (which_op_alt): New function.
20838         * recog.c (recog_op_alt): Convert to a flat array.
20839         (preprocess_constraints): Update accordingly, grouping all
20840         operands of the same alternative together, rather than the
20841         other way around.
20842         * ira-lives.c (check_and_make_def_conflict): Likewise.
20843         (make_early_clobber_and_input_conflicts): Likewise.
20844         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
20845         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
20846         (subst_asm_stack_regs): Likewise.
20847         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
20848         * regrename.c (hide_operands, record_out_operands): Likewise.
20849         (build_def_use): Likewise.
20850         * sel-sched.c (get_reg_class): Likewise.
20851         * config/arm/arm.c (note_invalid_constants): Likewise.
20853 2014-06-04  Jason Merrill  <jason@redhat.com>
20855         PR c++/51253
20856         PR c++/61382
20857         * gimplify.c (gimplify_arg): Non-static.
20858         * gimplify.h: Declare it.
20860 2014-06-04  Richard Biener  <rguenther@suse.de>
20862         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
20863         TREE_PUBLIC and DECL_EXTERNAL decls.
20865 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
20867         * regcprop.c (copyprop_hardreg_forward_1): Account for
20868         HARD_REGNO_CALL_PART_CLOBBERED.
20870 2014-06-04  Richard Biener  <rguenther@suse.de>
20872         * configure.ac: Check whether the underlying type of int64_t
20873         is long or long long.
20874         * configure: Regenerate.
20875         * config.in: Likewise.
20876         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
20877         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
20879 2014-06-04  Richard Biener  <rguenther@suse.de>
20881         PR tree-optimization/60098
20882         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
20883         we hit a kill.
20884         (dse_optimize_stmt): Simplify, now that we found a kill
20885         earlier.
20887 2014-06-04  Richard Biener  <rguenther@suse.de>
20889         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
20890         of accesses with non-invariant address.
20892 2014-06-04  Martin Liska  <mliska@suse.cz>
20894         * cgraph.h (cgraph_make_wrapper): New function introduced.
20895         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
20896         * ipa-inline.h (inline_analyze_function): The function is global.
20897         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
20899 2014-06-04  Martin Liska  <mliska@suse.cz>
20901         * tree.h (private_lookup_attribute_starting): New function.
20902         (lookup_attribute_starting): Likewise.
20903         * tree.c (private_lookup_attribute_starting): Likewise.
20905 2014-06-04  Martin Liska  <mliska@suse.cz>
20907         * cgraph.h (expand_thunk): New argument added.
20908         (address_taken_from_non_vtable_p): New global function.
20909         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
20910         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
20911         * cgraphunit.c (analyze_function): Likewise.
20912         (assemble_thunks_and_aliases): Argument added to call.
20913         (expand_thunk): New argument forces to produce GIMPLE thunk.
20915 2014-06-04  Martin Liska  <mliska@suse.cz>
20917         * coverage.h (coverage_compute_cfg_checksum): Argument added.
20918         * coverage.c (coverage_compute_cfg_checksum): Likewise.
20919         * profile.c (branch_prob): Likewise.
20921 2014-06-04  Martin Jambor  <mjambor@suse.cz>
20923         PR ipa/61340
20924         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
20925         handler for switch on an ipa_ref_use enum.
20926         * ipa-reference.c (analyze_function): Likewise.
20928 2014-06-04  Kai Tietz  <ktietz@redhat.com>
20930         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
20931         from old call-instruction.
20933 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
20935         * config/aarch64/aarch64.c (aarch64_classify_address)
20936         (aarch64_legitimize_reload_address): Support full addressing modes
20937         for vector modes.
20938         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
20939         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
20941 2014-06-03  Andrew Pinski  <apinski@cavium.com>
20943         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
20944         for OP0.
20946 2014-06-03  Andrew Pinski  <apinski@cavium.com>
20948         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
20949         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
20951 2014-06-03  Kai Tietz  <ktietz@redhat.com>
20953         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
20954         for 64-bit ms-abi.
20956 2014-06-03  Dehao Chen  <dehao@google.com>
20958         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
20959         the same loop.
20961 2014-06-03  Marek Polacek  <polacek@redhat.com>
20963         PR c/60439
20964         * doc/invoke.texi: Document -Wswitch-bool.
20965         * function.c (stack_protect_epilogue): Cast controlling expression of
20966         the switch to int.
20967         * gengtype.c (walk_type): Generate switch expression with its
20968         controlling expression cast to int.
20970 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
20972         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
20973         and attiny841.
20974         * config/avr/avr-tables.opt: Regenerate.
20975         * config/avr/t-multilib: Regenerate.
20976         * doc/avr-mmcu.texi: Regenerate.
20978 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
20979             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
20981         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
20982         (ata6617c, ata664251): Add new avr35 devices.
20983         (ata6612c): Add new avr4 device.
20984         (ata6613c, ata6614q): Add new avr5 devices.
20985         * config/avr/avr-tables.opt: Regenerate.
20986         * config/avr/t-multilib: Regenerate.
20987         * doc/avr-mmcu.texi: Regenerate.
20989 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
20991         * gcc/config/aarch64/aarch64-builtins.c
20992         (aarch64_types_binop_ssu_qualifiers): New static data.
20993         (TYPES_BINOP_SSU): Define.
20994         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
20995         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
20996         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
20997         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
20998         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
20999         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
21000         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
21001         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
21002         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
21003         suffix to builtin function name, remove cast.
21004         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
21005         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
21006         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
21008 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
21010         * gcc/config/aarch64/aarch64-builtins.c
21011         (aarch64_types_binop_uus_qualifiers,
21012         aarch64_types_shift_to_unsigned_qualifiers,
21013         aarch64_types_unsigned_shiftacc_qualifiers): Define.
21014         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
21015         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
21016         sqshlu_n, uqshl_n): Update qualifiers.
21017         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
21018         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
21019         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
21020         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
21021         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
21022         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
21023         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
21024         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
21025         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
21026         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
21027         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
21028         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
21029         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
21030         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
21031         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
21032         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
21033         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
21034         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
21035         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
21036         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
21037         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
21038         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
21039         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
21040         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
21041         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
21042         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
21043         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
21045 2014-06-03  Teresa Johnson  <tejohnson@google.com>
21047         * tree-sra.c (modify_function): Record caller nodes after rebuild.
21049 2014-06-02  Jason Merrill  <jason@redhat.com>
21051         PR c++/61020
21052         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
21054 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
21056         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
21057         location == 0.
21059 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
21061         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
21062         New pattern.
21063         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
21064         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
21065         * config/aarch64/iterators.md (REVERSE): New iterator.
21066         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
21067         (rev_op): New int_attribute.
21068         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
21069         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
21070         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
21071         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
21072         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
21073         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
21074         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
21075         Replace temporary __asm__ with __builtin_shuffle.
21077 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
21079         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
21080         mips64r5.
21081         * config/mips/mips-tables.opt: Regenerate.
21082         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
21083         to use mips_isa_rev rather than ISA_MIPS32R2.
21084         * config/mips/mips.h (ISA_MIPS32R3): New define.
21085         (ISA_MIPS32R5): New define.
21086         (ISA_MIPS64R3): New define.
21087         (ISA_MIPS64R5): New define.
21088         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
21089         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
21090         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
21091         and mips64r5.
21092         (MIPS_ISA_SYNCI_SPEC): Likewise.
21093         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
21094         (LINK_SPEC): Added mips32r3 and mips32r5.
21095         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
21096         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
21097         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
21098         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
21099         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
21100         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
21101         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
21103 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
21105         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
21106         options.
21107         * config/mips/mips.opt (mxpa): New option.
21108         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
21109         assembler.
21111 2014-06-03  Martin Jambor  <mjambor@suse.cz>
21113         PR ipa/61160
21114         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
21115         thunks.
21117 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21119         PR tree-optimization/61328
21120         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
21121         initialization from find_bswap_or_nop_1.
21122         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
21123         in source_expr2 before using the size value the function sets. Also
21124         make use of init_symbolic_number () in both the old place and
21125         find_bswap_or_nop_load () to avoid reading uninitialized memory when
21126         doing recursion in the GIMPLE_BINARY_RHS case.
21128 2014-06-03  Richard Biener  <rguenther@suse.de>
21130         PR tree-optimization/61383
21131         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
21132         stmts can't trap.
21134 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
21136         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
21137         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
21138         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
21139         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
21140         in this file.
21141         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
21142         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
21143         * system.h: ...here and make it unconditional.
21144         * target.def (conditional_register_usage): Mention
21145         define_register_constraint instead of old-style constraint macros.
21146         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
21147         * doc/tm.texi: Regenerate.
21148         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
21149         protected by !USE_MD_CONSTRAINTS.
21150         * config/frv/frv.md: Remove quote from old version of documentation.
21151         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
21152         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
21153         CONST_DOUBLE_OK_FOR_LETTER.
21154         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
21156 2014-06-02  Andrew Pinski  <apinski@cavium.com>
21158         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
21159         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
21160         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
21161         file whose name depends on -mabi= and -mbig-endian.
21162         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
21163         Handle LP64 better and handle ilp32 too.
21164         (MULTILIB_OPTIONS): Delete.
21165         (MULTILIB_DIRNAMES): Delete.
21167 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
21169         * expr.h: Remove prototypes of functions defined in builtins.c.
21170         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
21171         Remove prototypes of functions defined in builtins.c.
21172         * builtins.h: Update prototype list to include all exported functions.
21173         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
21174         no_c99_libc_has_function): Move to targhooks.c
21175         (build_string_literal, build_call_expr_loc_array,
21176         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
21177         to tree.c.
21178         (expand_builtin_object_size, fold_builtin_object_size): Make static.
21179         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
21180         no_c99_libc_has_function): Relocate from builtins.c.
21181         * tree.c: Include builtins.h.
21182         (build_call_expr_loc_array, build_call_expr_loc_vec,
21183         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
21184         from builtins.c.
21185         * fold-const.h (fold_fma): Move prototype to builtins.h.
21186         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
21187         * asan.c: Include builtins.h.
21188         * cfgexpand.c: Likewise.
21189         * convert.c: Likewise.
21190         * emit-rtl.c: Likewise.
21191         * except.c: Likewise.
21192         * expr.c: Likewise.
21193         * fold-const.c: Likewise.
21194         * gimple-fold.c: Likewise.
21195         * gimple-ssa-strength-reduction.c: Likewise.
21196         * gimplify.c: Likewise.
21197         * ipa-inline.c: Likewise.
21198         * ipa-prop.c: Likewise.
21199         * lto-streamer-out.c: Likewise.
21200         * stmt.c: Likewise.
21201         * tree-inline.c: Likewise.
21202         * tree-object-size.c: Likewise.
21203         * tree-sra.c: Likewise.
21204         * tree-ssa-ccp.c: Likewise.
21205         * tree-ssa-forwprop.c: Likewise.
21206         * tree-ssa-loop-ivcanon.c: Likewise.
21207         * tree-ssa-loop-ivopts.c: Likewise.
21208         * tree-ssa-math-opts.c: Likewise.
21209         * tree-ssa-reassoc.c: Likewise.
21210         * tree-ssa-threadedge.c: Likewise.
21211         * tree-streamer-in.c: Likewise.
21212         * tree-vect-data-refs.c: Likewise.
21213         * tree-vect-patterns.c: Likewise.
21214         * tree-vect-stmts.c: Likewise.
21215         * config/aarch64/aarch64.c: Likewise.
21216         * config/alpha/alpha.c: Likewise.
21217         * config/arc/arc.c: Likewise.
21218         * config/arm/arm.c: Likewise.
21219         * config/avr/avr.c: Likewise.
21220         * config/bfin/bfin.c: Likewise.
21221         * config/c6x/c6x.c: Likewise.
21222         * config/cr16/cr16.c: Likewise.
21223         * config/cris/cris.c: Likewise.
21224         * config/epiphany/epiphany.c: Likewise.
21225         * config/fr30/fr30.c: Likewise.
21226         * config/frv/frv.c: Likewise.
21227         * config/h8300/h8300.c: Likewise.
21228         * config/i386/i386.c: Likewise.
21229         * config/i386/winnt.c: Likewise.
21230         * config/ia64/ia64.c: Likewise.
21231         * config/iq2000/iq2000.c: Likewise.
21232         * config/lm32/lm32.c: Likewise.
21233         * config/m32c/m32c.c: Likewise.
21234         * config/m32r/m32r.c: Likewise.
21235         * config/m68k/m68k.c: Likewise.
21236         * config/mcore/mcore.c: Likewise.
21237         * config/mep/mep.c: Likewise.
21238         * config/microblaze/microblaze.c: Likewise.
21239         * config/mips/mips.c: Likewise.
21240         * config/mmix/mmix.c: Likewise.
21241         * config/mn10300/mn10300.c: Likewise.
21242         * config/moxie/moxie.c: Likewise.
21243         * config/msp430/msp430.c: Likewise.
21244         * config/nds32/nds32.c: Likewise.
21245         * config/pa/pa.c: Likewise.
21246         * config/pdp11/pdp11.c: Likewise.
21247         * config/picochip/picochip.c: Likewise.
21248         * config/rl78/rl78.c: Likewise.
21249         * config/rs6000/rs6000.c: Likewise.
21250         * config/rx/rx.c: Likewise.
21251         * config/s390/s390.c: Likewise.
21252         * config/score/score.c: Likewise.
21253         * config/sh/sh.c: Likewise.
21254         * config/sparc/sparc.c: Likewise.
21255         * config/spu/spu.c: Likewise.
21256         * config/stormy16/stormy16.c: Likewise.
21257         * config/tilegx/tilegx.c: Likewise.
21258         * config/tilepro/tilepro.c: Likewise.
21259         * config/v850/v850.c: Likewise.
21260         * config/vax/vax.c: Likewise.
21261         * config/xtensa/xtensa.c: Likewise.
21263 2014-06-02  Jeff Law  <law@redhat.com>
21265         PR rtl-optimization/61094
21266         * ree.c (combine_reaching_defs): Do not reextend an insn if it
21267         was marked as do_no_reextend.  If a copy is needed to eliminate
21268         an extension, then mark it as do_not_reextend.
21270 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21272         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
21274 2014-06-02  Richard Henderson  <rth@redhat.com>
21276         PR target/61336
21277         * config/alpha/alpha.c (print_operand_address): Allow symbolic
21278         addresses inside asms.  Use output_operand_lossage instead of
21279         gcc_unreachable.
21281 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
21283         PR target/61239
21284         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
21285         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
21287 2014-06-02  Tom de Vries  <tom@codesourcery.com>
21289         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
21290         case that x has VOIDmode.
21292 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
21294         * varasm.c (copy_constant): Delete function.
21295         (build_constant_desc): Don't call it.
21297 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21299         PR target/61154
21300         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
21301         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
21302         with immediate_operand.
21304 2014-06-02  Andreas Schwab  <schwab@suse.de>
21306         * config/ia64/ia64.c
21307         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
21308         pending_data_specs first.
21310 2014-06-02  Richard Biener  <rguenther@suse.de>
21312         PR tree-optimization/61378
21313         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
21314         valueized_anything.
21316 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
21318         * config/i386/constraints.md (Bw): Rename from 'w'.
21319         (Bz): Rename from 'z'.
21320         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
21322 2014-06-01  Kai Tietz  <ktietz@redhat.com>
21324         PR target/61377
21325         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
21326         * config/i386/i386.md (sibcall_insn_operand): Use Bs
21327         instead of m constraint.
21329 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
21331         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
21332         a separate alternative where the scratch operand 2 is marked as
21333         early clobber.
21335 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
21337         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
21338         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
21339         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
21340         and __builtins_arm_get_fpscr.
21341         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
21342         __builtins_arm_get_fpscr.
21343         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
21344         __builtins_arm_ldfpscr.
21345         (arm_atomic_assign_expand_fenv): New function.
21346         * config/arm/vfp.md (set_fpscr): New pattern.
21347         (get_fpscr) : Likewise.
21348         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
21349         VUNSPEC_SET_FPSCR.
21350         * doc/extend.texi (AARCH64 Built-in Functions) : Document
21351         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
21353 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
21355         * asan.c (report_error_func): Add SLOW_P argument, use
21356         BUILT_IN_ASAN_*_N if set.
21357         (build_check_stmt): Likewise.
21358         (instrument_derefs): If T has insufficient alignment,
21359         force same handling as for odd sizes.
21361         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
21362         BUILT_IN_ASAN_REPORT_STORE_N): New.
21363         * asan.c (struct asan_mem_ref): Change access_size type to
21364         HOST_WIDE_INT.
21365         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
21366         update_mem_ref_hash_table): Likewise.
21367         (asan_mem_ref_hasher::hash): Hash in a HWI.
21368         (report_error_func): Change size_in_bytes argument to HWI.
21369         Use *_N builtins if size_in_bytes is larger than 16 or not power of
21370         two.
21371         (build_shadow_mem_access): New function.
21372         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
21373         Handle size_in_bytes not power of two or larger than 16.
21374         (instrument_derefs): Don't give up if size_in_bytes is not
21375         power of two or is larger than 16.
21377 2014-05-30  Kai Tietz  <ktietz@redhat.com>
21379         PR target/60104
21380         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
21381         for sibling-tail-calls.
21382         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
21383         to its use.
21384         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
21385         (sibcall_insn_operand): Add check for sibcall_memory_operand.
21387 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21389         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
21390         * config/avr/avr-tables.opt: Regenerate.
21391         * config/avr/t-multilib: Regenerate.
21392         * doc/avr-mmcu.texi: Regenerate.
21394 2014-05-30  Ian Lance Taylor  <iant@google.com>
21396         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
21397         target("sse").
21399 2014-05-30  Tom de Vries  <tom@codesourcery.com>
21401         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
21402         Redefine as true.
21404 2014-05-30  Tom de Vries  <tom@codesourcery.com>
21406         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
21407         * lra.c (initialize_lra_reg_info_element): Add init of
21408         actual_call_used_reg_set field.
21409         (lra): Call lra_create_live_ranges before lra_inheritance for
21410         -fuse-caller-save.
21411         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
21412         -fuse-caller-save.
21413         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
21414         instead of call_used_reg_set for -fuse-caller-save.
21415         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
21417 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21419         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
21420         to mov_imm.
21421         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
21423 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
21425         * ira.c (ira_get_dup_out_num): Check for output operands at
21426         the start of the loop.  Handle cases where an included alternative
21427         follows an excluded one.
21429 2014-05-29  Mike Stump  <mikestump@comcast.net>
21431         PR debug/61352
21432         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
21433         post ld passes when lto is used.
21435 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
21437         PR rtl-optimization/61325
21438         * lra-constraints.c (process_address): Rename to process_address_1.
21439         (process_address): New function.
21441 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
21443         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
21444         TYPES_BINOPV): New static data.
21445         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
21446         New builtin.
21447         * config/aarch64/aarch64-simd.md (aarch64_ext,
21448         aarch64_im_lane_boundsi): New patterns.
21449         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
21450         patterns for EXT.
21451         (aarch64_evpc_ext): New function.
21453         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
21455         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
21456         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
21457         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
21458         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
21459         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
21461 2014-05-29  Tom de Vries  <tom@codesourcery.com>
21463         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
21465 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
21466             Richard Sandiford  <rdsandiford@googlemail.com>
21468         * arm/iterators.md (shiftable_ops): New code iterator.
21469         (t2_binop0, arith_shift_insn): New code attributes.
21470         * arm/predicates.md (shift_nomul_operator): New predicate.
21471         * arm/arm.md (insn_enabled): Delete.
21472         (enabled): Remove insn_enabled test.
21473         (*arith_shiftsi): Delete.  Replace with ...
21474         (*<arith_shift_insn>_multsi): ... new pattern.
21475         (*<arith_shift_insn>_shiftsi): ... new pattern.
21476         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
21478 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
21479             Tom de Vries  <tom@codesourcery.com>
21481         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
21482         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
21483         clobber.
21484         (mips_split_call): Use POST_CALL_TMP_REG.
21485         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
21487 2014-05-29  Tom de Vries  <tom@codesourcery.com>
21489         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
21490         with #ifdef STACK_REGS.
21492 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
21494         * varasm.c (get_variable_section): Walk aliases.
21495         (place_block_symbol): Walk aliases.
21497 2014-05-28  Tom de Vries  <tom@codesourcery.com>
21499         Revert:
21500         2014-05-28  Tom de Vries  <tom@codesourcery.com>
21502         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
21503         * lra.c (initialize_lra_reg_info_element): Add init of
21504         actual_call_used_reg_set field.
21505         (lra): Call lra_create_live_ranges before lra_inheritance for
21506         -fuse-caller-save.
21507         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
21508         -fuse-caller-save.
21509         * lra-constraints.c (need_for_call_save_p): Use
21510         actual_call_used_reg_set instead of call_used_reg_set for
21511         -fuse-caller-save.
21512         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
21514 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21516         * doc/md.texi: Document that the % constraint character must
21517         be at the beginning of the string.
21518         * genoutput.c (validate_insn_alternatives): Check that '=',
21519         '+' and '%' only appear at the beginning of a constraint.
21520         * ira.c (commutative_constraint_p): Delete.
21521         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
21522         at the start of the string.
21523         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
21524         duplicate '='s.
21525         * config/arm/neon.md (bicdi3_neon): Likewise.
21526         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
21527         (slt_si, sltu_si): Likewise.
21528         * config/vax/vax.md (sbcdi3): Likewise.
21529         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
21530         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
21531         (mul64): Move '%' to beginning of constraint.
21532         * config/arm/arm.md (*xordi3_insn): Likewise.
21533         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
21534         (xorsi3): Likewise.
21536 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21538         * doc/md.texi: Document the restrictions on the "enabled" attribute.
21540 2014-05-28  Jason Merrill  <jason@redhat.com>
21542         PR c++/47202
21543         * cgraph.h (symtab_node::get_comdat_group_id): New.
21544         * cgraphunit.c (analyze_functions): Call it.
21545         * symtab.c (dump_symtab_node): Likewise.
21546         * tree.c (decl_comdat_group_id): New.
21547         * tree.h: Declare it.
21548         * lto-streamer-out.c (write_symbol): Use it.
21549         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
21551 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
21553         PR bootstrap/PR61146
21554         * wide-int.cc: Do not include longlong.h when compiling with clang.
21556 2014-05-28  Richard Biener  <rguenther@suse.de>
21558         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
21559         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
21560         (vrp_visit_assignment_or_call): Print less vertical space.
21561         (vrp_visit_stmt): Likewise.
21562         (vrp_visit_phi_node): Likewise.  For a PHI argument with
21563         VR_VARYING range consider recording it as copy.
21565 2014-05-28  Richard Biener  <rguenther@suse.de>
21567         Revert
21568         2014-05-28  Richard Biener  <rguenther@suse.de>
21570         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
21572 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21574         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
21575         sufficiently aligned and an offset is used at the same time.
21576         (expand_expr_real_1): Likewise.
21578 2014-05-28  Richard Biener  <rguenther@suse.de>
21580         PR middle-end/61045
21581         * fold-const.c (fold_comparison): When folding
21582         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
21583         the sign of the remaining constant operand stays the same.
21585 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
21587         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
21588         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
21589         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
21590         to the assembler.
21591         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
21592         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
21593         (m32bit-doubles) Likewise.
21594         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
21595         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
21596         option for RL78.
21598 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21600         * configure.ac ($gcc_cv_ld_clearcap): New test.
21601         * configure: Regenerate.
21602         * config.in: Regenerate.
21603         * config/sol2.opt (mclear-hwcap): New option.
21604         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
21605         * config/sol2-clearcap.map: Moved here from
21606         testsuite/gcc.target/i386/clearcap.map.
21607         * config/sol2-clearcapv2.map: Move here from
21608         gcc.target/i386/clearcapv2.map.
21609         * config/t-sol2 (install): Depend on install-clearcap-map.
21610         (install-clearcap-map): New target.
21611         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
21612         -mclear-hwcap.
21614 2014-05-28  Richard Biener  <rguenther@suse.de>
21616         * hwint.h (*_HALF_WIDE_INT*): Move to ...
21617         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
21618         ... here and remove the rest.
21619         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
21621 2014-05-28  Richard Biener  <rguenther@suse.de>
21623         PR tree-optimization/61335
21624         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
21625         new range fails, drop to varying.
21627 2014-05-28  Olivier Hainque  <hainque@adacore.com>
21629         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
21630         (CPP_SPEC): Add entry for -mcpu=8548.
21631         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
21632         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
21634 2014-05-28  Tom de Vries  <tom@codesourcery.com>
21636         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
21637         * lra.c (initialize_lra_reg_info_element): Add init of
21638         actual_call_used_reg_set field.
21639         (lra): Call lra_create_live_ranges before lra_inheritance for
21640         -fuse-caller-save.
21641         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
21642         -fuse-caller-save.
21643         * lra-constraints.c (need_for_call_save_p): Use
21644         actual_call_used_reg_set instead of call_used_reg_set for
21645         -fuse-caller-save.
21646         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
21648 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
21649             Tom de Vries  <tom@codesourcery.com>
21651         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
21652         to gccoptlist.
21653         (@item -fuse-caller-save): New item.
21655 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
21656             Tom de Vries  <tom@codesourcery.com>
21658         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
21659         OPT_fuse_caller_save.
21661 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
21662             Tom de Vries  <tom@codesourcery.com>
21664         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
21665         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
21666         get_call_reg_set_usage.
21667         * resource.c (mark_set_resources, mark_target_live_regs): Use
21668         get_call_reg_set_usage.
21669         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
21670         field.
21671         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
21672         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
21673         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
21674         * ira-build.c (ira_create_allocno): Init
21675         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
21676         (create_cap_allocno, propagate_allocno_info)
21677         (propagate_some_info_from_allocno)
21678         (copy_info_to_removed_store_destinations): Handle
21679         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
21680         * ira-costs.c (ira_tune_allocno_costs): Use
21681         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
21683 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
21684             Tom de Vries  <tom@codesourcery.com>
21686         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
21687         and function_used_regs_valid fields.
21688         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
21689         find_all_hard_reg_sets.
21690         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
21691         (get_call_reg_set_usage): New function.
21692         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
21693         * regs.h (get_call_reg_set_usage): Declare.
21695 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
21697         PR libgcc/61152
21698         * config/dbx.h (License): Add Runtime Library Exception.
21699         * config/newlib-stdint.h (License): Same.
21700         * config/rtems.h (License): Same
21701         * config/initfini-array.h (License): Same
21702         * config/v850/v850.h (License): Same.
21703         * config/v850/v850-opts.h (License): Same
21704         * config/v850/rtems.h (License): Same.
21706 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
21708         PR target/61044
21709         * doc/extend.texi (Local Labels): Note that label differences are
21710         not supported for AVR.
21712 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
21713             Olivier Hainque  <hainque@adacore.com>
21715         * rtl.h (set_for_reg_notes): Declare.
21716         * emit-rtl.c (set_for_reg_notes): New function.
21717         (set_unique_reg_note): Use it.
21718         * optabs.c (add_equal_note): Likewise
21720 2014-05-27  Andrew Pinski  <apinski@cavium.com>
21722         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
21723         Use <w> for the register in assembly template.
21724         (stack_protect_test): Use the mode of operands[0] for the result.
21725         (stack_protect_test_<mode>): Use <w> for the register
21726         in assembly template.
21728 2014-05-27  DJ Delorie  <dj@redhat.com>
21730         * config/rx/rx.c (add_vector_labels): New.
21731         (rx_output_function_prologue): Call it.
21732         (rx_handle_func_attribute): Don't require empty arguments.
21733         (rx_handle_vector_attribute): New.
21734         (rx_attribute_table): Add "vector" attribute.
21735         * doc/extend.texi (interrupt, vector): Document new/changed
21736         RX-specific attributes.
21738         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
21740 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
21742         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
21743         predicate to detect a negative quotient.
21745 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
21747         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
21748         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
21749         Add X - Y CMP 0 to X CMP Y transformation.
21750         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
21752 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
21754         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
21755         before printing.
21757 2014-05-27  Steve Ellcey  <sellcey@mips.com>
21759         * config/mips/mips.c: Add include of cgraph.h.
21761 2014-05-27  Richard Biener  <rguenther@suse.de>
21763         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
21765 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
21767         PR libgcc/61152
21768         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
21769         * config/arm/arm-cores.def (License): Same.
21770         * config/arm/arm-opts.h (License): Same.
21771         * config/arm/aout.h (License): Same.
21772         * config/arm/bpabi.h (License): Same.
21773         * config/arm/elf.h (License): Same.
21774         * config/arm/linux-elf.h (License): Same.
21775         * config/arm/linux-gas.h (License): Same.
21776         * config/arm/netbsd-elf.h (License): Same.
21777         * config/arm/uclinux-eabi.h (License): Same.
21778         * config/arm/uclinux-elf.h (License): Same.
21779         * config/arm/vxworks.h (License): Same.
21781 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21783         * config/arm/neon.md (neon_bswap<mode>): New pattern.
21784         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
21785         (arm_init_neon_builtins): Handle NEON_BSWAP.
21786         Define required type nodes.
21787         (arm_expand_neon_builtin): Handle NEON_BSWAP.
21788         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
21789         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
21790         * config/arm/iterators.md (VDQHSD): New mode iterator.
21792 2014-05-27  Richard Biener  <rguenther@suse.de>
21794         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
21795         Try using literal operands when comparing value-ranges failed.
21797 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
21799         * ira.c (commutative_operand): Adjust for change to recog_data.
21800         [Missing from previous commit.]
21802 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
21804         * system.h (TEST_BIT): New macro.
21805         * recog.h (alternative_mask): New type.
21806         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
21807         (recog_data_d): Replace alternative_enabled_p array with
21808         enabled_alternatives.
21809         (target_recog): New structure.
21810         (default_target_recog, this_target_recog): Declare.
21811         (get_enabled_alternatives, recog_init): Likewise.
21812         * recog.c (default_target_recog, this_target_recog): New variables.
21813         (get_enabled_alternatives): New function.
21814         (extract_insn): Use it.
21815         (recog_init): New function.
21816         (preprocess_constraints, constrain_operands): Adjust for change to
21817         recog_data.
21818         * postreload.c (reload_cse_simplify_operands): Likewise.
21819         * reload.c (find_reloads): Likewise.
21820         * ira-costs.c (record_reg_classes): Likewise.
21821         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
21822         all alternatives after a disabled one would be skipped.
21823         (ira_implicitly_set_insn_hard_regs): Likewise.
21824         * ira.c (ira_setup_alts): Adjust for change to recog_data.
21825         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
21826         with enabled_alternatives.
21827         * lra.c (free_insn_recog_data): Update accordingly.
21828         (lra_update_insn_recog_data): Likewise.
21829         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
21830         * lra-constraints.c (process_alt_operands): Likewise.  Handle
21831         only_alternative as part of the enabled mask.
21832         * target-globals.h (this_target_recog): Declare.
21833         (target_globals): Add a recog field.
21834         (restore_target_globals): Restore this_target_recog.
21835         * target-globals.c: Include recog.h.
21836         (default_target_globals): Initialize recog field.
21837         (save_target_globals): Likewise.
21838         * reginfo.c (reinit_regs): Call recog_init.
21839         * toplev.c (backend_init_target): Likewise.
21841 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
21843         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
21844         rather than any named insn's code.
21846 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
21848         PR libgcc/61152
21849         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
21850         * config/arm/arm-cores.def (License): Same.
21852 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
21854         * tree.h (decl_comdat_group): Declare.
21855         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
21856         * tree.c (decl_comdat_group): Here.
21858 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
21860         PR rtl-optimization/61222
21861         * combine.c (simplify_shift_const_1): When moving a PLUS outside
21862         the shift, truncate the PLUS operand to the result mode.
21864 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
21866         PR target/61271
21867         * config/i386/i386.c (ix86_rtx_costs)
21868         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
21869         Fix condition.
21871 2014-05-26  Martin Jambor  <mjambor@suse.cz>
21873         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
21874         subreg uses.
21876 2014-05-26  Richard Biener  <rguenther@suse.de>
21878         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
21879         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
21880         Provide specializations.
21881         (wi::int_traits <HOST_WIDE_INT>,
21882         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
21884 2014-05-26  Alan Modra  <amodra@gmail.com>
21886         PR target/61098
21887         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
21888         params and return a bool.  Remove dead code.  Update comment.
21889         Assert we have a const_int source.  Remove bogus code from
21890         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
21891         handling of constants > 2G and reg_equal note, from..
21892         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
21893         return value.  Update comment.  If we can, use a new pseudo
21894         for intermediate calculations.
21895         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
21896         prototype.
21897         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
21898         call to rs6000_emit_set_const in splitter.
21899         (movdi_internal64+2, +3): Likewise.
21901 2014-05-26  Richard Biener  <rguenther@suse.de>
21903         * system.h: Define __STDC_FORMAT_MACROS before
21904         including inttypes.h.
21905         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
21906         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
21907         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
21908         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
21909         HOST_WIDEST_INT_C): Remove.
21910         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
21911         if C99 inttypes.h is not available.
21912         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
21913         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
21914         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
21915         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
21916         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
21917         (struct output_info): Likewise.
21918         (print_statistics): Adjust.
21919         (dump_bitmap_statistics): Likewise.
21920         * bt-load.c (migrate_btr_defs): Print with PRId64.
21921         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
21922         (MAX_SAFE_MULTIPLIER): Adjust.
21923         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
21924         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
21925         dump_cgraph_node): Likewise.
21926         * final.c (dump_basic_block_info): Likewise.
21927         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
21928         * gcov.c (format_gcov): Likewise.
21929         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
21930         for calculation.
21931         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
21932         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
21933         (inline_small_functions, dump_overall_stats, dump_inline_stats):
21934         Use PRId64 for dumping.
21935         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
21936         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
21937         (add_allocno_hard_regs): Adjust.
21938         * loop-doloop.c (doloop_modify): Print using PRId64.
21939         * loop-iv.c (inverse): Compute in uint64_t.
21940         (determine_max_iter, iv_number_of_iterations): Likewise.
21941         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
21942         Print using PRId64.
21943         * lto-streamer-out.c (write_symbol): Use uint64_t.
21944         * mcf.c (CAP_INFINITY): Use int64_t maximum.
21945         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
21946         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
21947         * modulo-sched.c (const_iteration_count): Use int64_t.
21948         (sms_schedule): Dump using PRId64.
21949         * predict.c (dump_prediction): Likewise.
21950         * pretty-print.h (pp_widest_integer): Remove.
21951         * profile.c (get_working_sets, is_edge_inconsistent,
21952         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
21953         * tree-pretty-print.c (pp_double_int): Remove case handling
21954         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
21955         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
21956         and adjust users.
21957         (pass_optimize_bswap::execute): Remove restriction on hosts.
21958         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
21959         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
21960         * tree.c (widest_int_cst_value): Remove.
21961         * tree.h (widest_int_cst_value): Likewise.
21962         * value-prof.c (dump_histogram_value): Print using PRId64.
21963         * gengtype.c (main): Also inject int64_t.
21964         * ggc-page.c (struct max_alignment): Use int64_t.
21965         * alloc-pool.c (struct allocation_object_def): Likewise.
21966         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
21967         for computation.
21968         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
21969         * doc/tm.texi: Regenerated.
21970         * gengtype-lex.l (IWORD): Handle [u]int64_t.
21971         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
21972         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
21973         mmix_output_register_setting): Use [u]int64_t in prototypes.
21974         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
21975         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
21976         mmix_output_octa, mmix_output_shifted_value): Adjust.
21977         (mmix_intval): Adjust.  Remove unreachable case.
21978         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
21980 2014-05-26  Richard Biener  <rguenther@suse.de>
21982         * configure.ac: Drop __int64 type check.  Insist that we
21983         found uint64_t and int64_t.
21984         * hwint.h (HOST_BITS_PER___INT64): Remove.
21985         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
21986         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
21987         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
21988         (HOST_WIDEST_FAST_INT): Remove __int64 case.
21989         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
21990         for dst_q_src_df_rms_cdt.
21991         * configure: Regenerate.
21992         * config.in: Likewise.
21994 2014-05-26  Michael Tautschnig  <mt@debian.org>
21996         PR target/61249
21997         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
21998         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
22000 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22002         PR rtl-optimization/61278
22003         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
22005 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22007         PR rtl-optimization/61220
22008         Part of PR rtl-optimization/61225
22009         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
22010         insn; skip split_edge for a block with only one successor.
22012 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22014         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
22015         for variables.
22017 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22019         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
22020         (update_vtable_references): New function.
22021         (function_and_variable_visibility): Rewrite also vtable initializers.
22022         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
22024 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22026         * ggc.h (ggc_grow): New function.
22027         * ggc-none.c (ggc_grow): New function.
22028         * ggc-page.c (ggc_grow): Likewise.
22030 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22032         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
22033         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
22034         comdat_can_be_unshared_p, cgraph_externally_visible_p,
22035         varpool_externally_visible_p, can_replace_by_local_alias,
22036         update_visibility_by_resolution_info, function_and_variable_visibility,
22037         pass_data_ipa_function_and_variable_visibility,
22038         make_pass_ipa_function_and_variable_visibility,
22039         whole_program_function_and_variable_visibility,
22040         pass_data_ipa_whole_program_visibility,
22041         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
22042         * cgraph.h (cgraph_local_node_p): Declare.
22043         * ipa-visibility.c: New file.
22044         * Makefile.in (OBJS): Add ipa-visiblity.o
22046 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22048         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
22049         that var decl is available.
22051 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22053         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
22054         symtab_node pointer.
22055         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
22056         (find_decls_types_r): Do not walk COMDAT_GROUP.
22057         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
22058         * varasm.c (make_decl_one_only): Use set_comdat_group;
22059         create node if needed.
22060         * ipa-inline-transform.c (save_inline_function_body): Update
22061         way we decl->symtab mapping.
22062         * symtab.c (symtab_hash, hash_node, eq_node
22063         symtab_insert_node_to_hashtable): Remove.
22064         (symtab_register_node): Update.
22065         (symtab_unregister_node): Update.
22066         (symtab_get_node): Reimplement as inline function.
22067         (symtab_add_to_same_comdat_group): Update.
22068         (symtab_dissolve_same_comdat_group_list): Update.
22069         (dump_symtab_base): Update.
22070         (verify_symtab_base): Update.
22071         (symtab_make_decl_local): Update.
22072         (fixup_same_cpp_alias_visibility): Update.
22073         (symtab_nonoverwritable_alias): Update.
22074         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
22075         * ipa.c (update_visibility_by_resolution_info): UPdate.
22076         * bb-reorder.c: Include cgraph.h
22077         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
22078         with comdat groups.
22079         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
22080         * cgraph.c (cgraph_get_create_node): Update.
22081         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
22082         and comdat_group_.
22083         (symtab_get_node): Make inline.
22084         (symtab_insert_node_to_hashtable): Remove.
22085         (symtab_can_be_discarded): Update.
22086         (decl_comdat_group): New function.
22087         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
22088         Update.
22089         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
22090         comdat group name.
22091         (read_comdat_group): New function.
22092         (input_node, input_varpool_node): Use it.
22093         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
22094         comdat groups.
22095         * mips.c (mips_start_unique_function): Likewise.
22096         (ix86_code_end): Likewise.
22097         (rs6000_code_end): Likweise.
22098         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
22100 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22102         * gengtype-state.c (fatal_reading_state): Bring offline.
22103         * optabs.c (widening_optab_handler): Bring offline.
22104         * optabs.h (widening_optab_handler): Likewise.
22105         * final.c (get_attr_length_1): Likewise.
22107 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
22109         * sched-int.h (sd_iterator_cond): Manually tail recurse.
22111 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22113         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
22114         (ppc440-compare): Include shift with dot.
22115         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
22116         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
22117         without dot.
22118         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
22119         without dot.
22120         (e6500_sfx2): Include it.
22121         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
22122         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
22123         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
22124         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
22125         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
22126         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
22127         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
22128         *lshiftrt_internal1le, *lshiftrt_internal1be,
22129         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
22130         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
22131         *rotldi3_internal10le, *rotldi3_internal10be,
22132         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
22133         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
22134         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
22135         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
22136         define_insns): Use type "shift" in the appropriate alternatives.
22138 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22140         * config/rs6000/rs6000.md (type): Add "logical".  Delete
22141         "fast_compare".
22142         (dot): Adjust comment.
22143         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
22144         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
22145         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
22146         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
22147         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
22148         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
22149         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
22150         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
22152         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22153         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
22154         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22155         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22156         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22157         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22158         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22159         * config/rs6000/8540.md (ppc8540_su): Adjust.
22160         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22161         cell-cmp-microcoded): Adjust.
22162         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
22163         * config/rs6000/e500mc.md (e500mc_su): Adjust.
22164         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
22165         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
22166         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
22167         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22168         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
22169         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
22170         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
22171         Adjust.
22172         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
22173         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
22174         Adjust.  Adjust comment.
22175         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22176         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
22178 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22180         * config/rs6000/rs6000.md (type): Add "add".
22181         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
22182         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
22183         define_insns): Use it.
22184         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
22186         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22187         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
22188         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22189         * config/rs6000/601.md (ppc601-integer): Adjust.
22190         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22191         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22192         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22193         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22194         * config/rs6000/8540.md (ppc8540_su): Adjust.
22195         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22196         cell-cmp-microcoded): Adjust.
22197         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
22198         * config/rs6000/e500mc.md (e500mc_su): Adjust.
22199         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
22200         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
22201         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
22202         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22203         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
22204         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
22205         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
22206         Adjust.
22207         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
22208         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
22209         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22210         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
22212 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22214         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
22215         "delayed_compare", "var_delayed_compare".
22216         (var_shift): New attribute.
22217         (cell_micro): Adjust.
22218         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
22219         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
22220         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
22221         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
22222         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
22223         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
22224         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
22225         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
22226         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
22227         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22228         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
22229         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
22230         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
22231         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
22232         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
22233         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
22234         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
22235         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
22236         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
22237         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
22238         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
22239         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
22240         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
22241         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22242         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22244         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
22245         * config/rs6000/440.md (ppc440-integer): Adjust.
22246         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
22247         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
22248         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
22249         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
22250         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
22251         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
22252         * config/rs6000/8540.md (ppc8540_su): Adjust.
22253         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
22254         cell-cmp-microcoded): Adjust.
22255         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
22256         * config/rs6000/e500mc.md (e500mc_su): Adjust.
22257         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
22258         e500mc64_delayed): Adjust.
22259         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
22260         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
22261         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
22262         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
22263         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
22264         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
22265         power6-delayed-compare, power6-var-delayed-compare): Adjust.
22266         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
22267         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
22268         Adjust comment.
22269         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
22270         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
22272 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22274         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
22275         (bits): New mode_attr.
22276         (idiv_ldiv): Delete mode_attr.
22277         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
22278         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22279         rs6000_adjust_priority, is_nonpipeline_insn,
22280         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22282         * config/rs6000/40x.md (ppc403-idiv): Adjust.
22283         * config/rs6000/440.md (ppc440-idiv): Adjust.
22284         * config/rs6000/476.md (ppc476-idiv): Adjust.
22285         * config/rs6000/601.md (ppc601-idiv): Adjust.
22286         * config/rs6000/603.md (ppc603-idiv): Adjust.
22287         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
22288         ppc620-ldiv): Adjust.
22289         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
22290         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
22291         * config/rs6000/8540.md (ppc8540_divide): Adjust.
22292         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
22293         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
22294         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
22295         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
22296         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
22297         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
22298         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
22299         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
22300         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
22301         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
22302         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
22303         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
22304         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
22305         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
22306         * config/rs6000/titan.md (titan_fxu_div): Adjust.
22308 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22310         * config/rs6000/rs6000.md (type): Delete "insert_word",
22311         "insert_dword".  Add "insert".
22312         (size): Update comment.
22313         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22314         insn_must_be_first_in_group): Adjust.
22315         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
22316         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
22317         *insvsi_internal6, insvdi_internal): Adjust.
22319         * config/rs6000/40x.md (ppc403-integer): Adjust.
22320         * config/rs6000/440.md (ppc440-integer): Adjust.
22321         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
22322         * config/rs6000/601.md (ppc601-integer): Adjust.
22323         * config/rs6000/603.md (ppc603-integer): Adjust.
22324         * config/rs6000/6xx.md (ppc604-integer): Adjust.
22325         * config/rs6000/7450.md (ppc7450-integer): Adjust.
22326         * config/rs6000/7xx.md (ppc750-integer): Adjust.
22327         * config/rs6000/8540.md (ppc8540_su): Adjust.
22328         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
22329         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
22330         * config/rs6000/e500mc.md (e500mc_su): Adjust.
22331         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
22332         * config/rs6000/e5500.md (e5500_sfx): Adjust.
22333         * config/rs6000/e6500.md (e6500_sfx): Adjust.
22334         * config/rs6000/mpc.md (mpccore-integer): Adjust.
22335         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
22336         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
22337         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
22338         * config/rs6000/power7.md (power7-integer): Adjust.
22339         * config/rs6000/power8.md (power8-1cyc): Adjust.
22340         * config/rs6000/rs64.md (rs64a-integer): Adjust.
22341         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
22343 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22345         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
22346         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
22347         (size): New attribute.
22348         (dot): New attribute.
22349         (cell_micro): Adjust.
22350         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
22351         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
22352         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
22353         umuldi3_highpart): Adjust.
22354         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
22355         rs6000_adjust_priority, is_nonpipeline_insn,
22356         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
22358         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
22359         ppc405-imul3): Adjust.
22360         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
22361         * config/rs6000/476.md (ppc476-imul): Adjust.
22362         * config/rs6000/601.md (ppc601-imul): Adjust.
22363         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
22364         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
22365         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
22366         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
22367         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
22368         Adjust.
22369         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
22370         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
22371         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
22372         cell-imul): Adjust.
22373         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
22374         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
22375         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
22376         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
22377         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
22378         * config/rs6000/mpc.md (mpccore-imul): Adjust.
22379         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
22380         power4-lmul, power4-imul, power4-imul3): Adjust.
22381         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
22382         power5-lmul, power5-imul, power5-imul3): Adjust.
22383         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
22384         power6-lmul, power6-imul, power6-imul3): Adjust.
22385         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
22386         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
22388         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
22389         rs64a-lmul): Adjust.
22390         * config/rs6000/titan.md (titan_imul): Adjust.
22392 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22394         * config/rs6000/rs6000.md (type): Add new value "halfmul".
22395         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
22396         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
22397         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
22398         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
22399         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
22400         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
22401         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
22402         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
22403         * config/rs6000/titan.md: Delete nonsensical comment.
22404         (titan_imul): Add type imul3.
22405         (titan_mulhw): Remove type imul3; add type halfmul.
22407 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
22409         * config/rs6000/rs6000.md (type): Reorder, reformat.
22411 2014-05-23  Martin Jambor  <mjambor@suse.cz>
22413         PR tree-optimization/53787
22414         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
22415         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
22416         analysis_done, update all uses.
22417         * ipa-prop.c: Include domwalk.h
22418         (param_analysis_info): Removed.
22419         (param_aa_status): New type.
22420         (ipa_bb_info): Likewise.
22421         (func_body_info): Likewise.
22422         (ipa_get_bb_info): New function.
22423         (aa_overwalked): Likewise.
22424         (find_dominating_aa_status): Likewise.
22425         (parm_bb_aa_status_for_bb): Likewise.
22426         (parm_preserved_before_stmt_p): Changed to use new param AA info.
22427         (load_from_unmodified_param): Accept func_body_info as a parameter
22428         instead of parms_ainfo.
22429         (parm_ref_data_preserved_p): Changed to use new param AA info.
22430         (parm_ref_data_pass_through_p): Likewise.
22431         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
22432         (compute_complex_assign_jump_func): Changed to use new param AA info.
22433         (compute_complex_ancestor_jump_func): Likewise.
22434         (ipa_compute_jump_functions_for_edge): Likewise.
22435         (ipa_compute_jump_functions): Removed.
22436         (ipa_compute_jump_functions_for_bb): New function.
22437         (ipa_analyze_indirect_call_uses): Likewise, moved variable
22438         declarations down.
22439         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
22440         and info, moved variable declarations down.
22441         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
22442         node and info.
22443         (ipa_analyze_stmt_uses): Likewise.
22444         (ipa_analyze_params_uses): Removed.
22445         (ipa_analyze_params_uses_in_bb): New function.
22446         (ipa_analyze_controlled_uses): Likewise.
22447         (free_ipa_bb_info): Likewise.
22448         (analysis_dom_walker): New class.
22449         (ipa_analyze_node): Handle node-specific forbidden analysis,
22450         initialize and free func_body_info, use dominator walker.
22451         (ipcp_modif_dom_walker): New class.
22452         (ipcp_transform_function): Create and free func_body_info, use
22453         ipcp_modif_dom_walker, moved a lot of functionality there.
22455 2014-05-23  Marek Polacek  <polacek@redhat.com>
22456             Jakub Jelinek  <jakub@redhat.com>
22458         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
22459         * gcc.c (sanitize_spec_function): Likewise.
22460         * convert.c (convert_to_integer): Include "ubsan.h".  Add
22461         floating-point to integer instrumentation.
22462         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
22463         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
22464         SANITIZE_NONDEFAULT.
22465         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
22466         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
22467         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
22468         * ubsan.c: Include "realmpfr.h" and "dfp.h".
22469         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
22470         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
22471         float/double/long double.
22472         (ubsan_instrument_float_cast): New function.
22473         * ubsan.h (ubsan_instrument_float_cast): Declare.
22475 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
22477         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
22478         predicate.
22479         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
22480         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
22481         Adjust for tailcalling through registers.
22482         * config/aarch64/aarch64.h (enum reg_class): New caller save
22483         register class.
22484         (REG_CLASS_NAMES): Likewise.
22485         (REG_CLASS_CONTENTS): Likewise.
22486         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
22487         Allow tailcalling without decls.
22489 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
22491         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
22492         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
22494         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
22495         gsi, and variables v_* to v*.
22497 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
22499         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
22501 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
22503         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
22504         * omp-low.c: Update accordingly.
22506         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
22507         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
22508         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
22509         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
22510         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
22511         GF_OMP_TARGET_KIND_UPDATE.
22513         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
22514         Explicitly enumerate the expected region types.
22516 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
22518         PR other/56955
22519         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
22520         documentation; the old documentation didn't clearly state the
22521         constraints on the contents of the pointed-to storage.
22523 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22525         Fix bootstrap error on ia64
22526         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
22527         Return default value.
22529 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22531         PR tree-optimization/54733
22532         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
22533         (CMPNOP): Define.
22534         (find_bswap_or_nop_load): New.
22535         (find_bswap_1): Renamed to ...
22536         (find_bswap_or_nop_1): This. Also add support for memory source.
22537         (find_bswap): Renamed to ...
22538         (find_bswap_or_nop): This. Also add support for memory source and
22539         detection of bitwise operations equivalent to load in target
22540         endianness.
22541         (execute_optimize_bswap): Likewise. Also move its leading comment back
22542         in place and split statement transformation into ...
22543         (bswap_replace): This.
22545 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
22547         PR rtl-optimization/61215
22548         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
22549         simplify_gen_subreg until final substitution.
22551 2014-05-23  Alan Modra  <amodra@gmail.com>
22553         PR target/61231
22554         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
22555         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
22556         Use "Y" constraint rather than "m".
22558 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
22560         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
22561         define.
22562         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
22563         New function declaration.
22564         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
22565         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
22566         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
22567         (aarch64_init_builtins) : Initialize builtins
22568         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
22569         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
22570         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
22571         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
22572         and __builtins_aarch64_set_fpsr.
22573         (aarch64_atomic_assign_expand_fenv): New function.
22574         * config/aarch64/aarch64.md (set_fpcr): New pattern.
22575         (get_fpcr) : Likewise.
22576         (set_fpsr) : Likewise.
22577         (get_fpsr) : Likewise.
22578         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
22579          and UNSPECV_SET_FPSR.
22580         * doc/extend.texi (AARCH64 Built-in Functions) : Document
22581         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
22582         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
22584 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
22586         PR rtl-optimization/60969
22587         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
22588         constraints.  Set up mem cost for NO_REGS case.
22590 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
22592         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
22594 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
22596         * config/darwin.c: Include "lto-section-names.h".
22597         (LTO_SEGMENT_NAME): Don't define.
22598         * config/i386/winnt.c: Include "lto-section-names.h".
22599         * lto-streamer.c: Include "lto-section-names.h".
22600         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
22601         * lto-wrapper.c: Include "lto-section-names.h".
22602         (LTO_SECTION_NAME_PREFIX): Don't define.
22603         * lto-section-names.h: New file.
22604         * cgraphunit.c: Include "lto-section-names.h".
22606 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
22608         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
22610 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
22612         PR target/61208
22613         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
22615 2014-05-22  Nick Clifton  <nickc@redhat.com>
22617         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
22619 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
22621         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
22622         -> (T)A transformation to integer types.
22624 2014-05-22  Teresa Johnson  <tejohnson@google.com>
22626         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
22627         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
22628         (gcov_rewrite): Use gcov_nonruntime_assert.
22629         (gcov_open): Ditto.
22630         (gcov_write_words): Ditto.
22631         (gcov_write_length): Ditto.
22632         (gcov_read_words): Use gcov_nonruntime_assert, and remove
22633         gcc_assert from IN_LIBGCOV code.
22634         (gcov_read_summary): Use gcov_error to flag profile corruption.
22635         (gcov_sync): Use gcov_nonruntime_assert.
22636         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
22637         (gcov_histo_index): Use gcov_nonruntime_assert.
22638         (static void gcov_histogram_merge): Ditto.
22639         (compute_working_sets): Ditto.
22640         * gcov-io.h (gcov_nonruntime_assert): Define.
22641         (gcov_error): Define for !IN_LIBGCOV
22643 2014-05-22  Richard Biener  <rguenther@suse.de>
22645         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22646         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
22647         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
22648         and deallocation site.
22649         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22650         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
22651         passing through the incoming points-to set.
22652         (handle_lhs_call): Use flags argument instead of recomputing it.
22653         (find_func_aliases_for_call): Call handle_lhs_call with proper
22654         call return flags.
22656 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
22658         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
22659         all padding bits in REAL_VALUE_TYPE are cleared.
22661 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22663         Cleanup and improve multipass_dfa_lookahead_guard
22664         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
22665         (core2i7_first_cycle_multipass_begin,)
22666         (core2i7_first_cycle_multipass_issue,)
22667         (core2i7_first_cycle_multipass_backtrack): Update signature.
22668         * config/ia64/ia64.c
22669         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
22670         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
22671         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
22672         hook definition.
22673         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
22674         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
22675         values.
22676         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
22677         return values.
22678         * doc/tm.texi: Regenerate.
22679         * doc/tm.texi.in
22680         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
22681         * haifa-sched.c (ready_try): Make signed to allow negative values.
22682         (rebug_ready_list_1): Update.
22683         (choose_ready): Simplify.
22684         (sched_extend_ready_list): Update.
22686 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22688         Remove IA64 speculation tweaking flags
22689         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
22690         speculation tuning flags.
22691         (msched-prefer-non-data-spec-insns,)
22692         (msched-prefer-non-control-spec-insns): Obsolete options.
22693         * haifa-sched.c (choose_ready): Remove handling of
22694         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
22695         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
22696         and PREFER_NON_DATA_SPEC.
22697         * sel-sched.c (process_spec_exprs): Remove handling of
22698         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
22700 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22702         Improve scheduling debug output
22703         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
22704         (advance_one_cycle): Update.
22705         (schedule_insn, queue_to_ready): Add debug printouts.
22706         (debug_ready_list_1): New static function.
22707         (debug_ready_list): Update.
22708         (max_issue): Add debug printouts.
22709         (dump_insn_stream): New static function.
22710         (schedule_block): Use it.  Also better indent printouts.
22712 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22714         Fix sched_insn debug counter
22715         * haifa-sched.c (schedule_insn): Update.
22716         (struct haifa_saved_data): Add nonscheduled_insns_begin.
22717         (save_backtrack_point, restore_backtrack_point): Update.
22718         (first_nonscheduled_insn): New static function.
22719         (queue_to_ready, choose_ready): Use it.
22720         (schedule_block): Init nonscheduled_insns_begin.
22721         (sched_emit_insn): Update.
22724 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
22726         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
22727         to GENERAL_REGS.
22728         (aarch64_secondary_reload) : LikeWise.
22729         (aarch64_class_max_nregs) : Remove CORE_REGS.
22730         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
22731         (REG_CLASS_NAMES) : Likewise.
22732         (REG_CLASS_CONTENTS) : LikeWise.
22733         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
22735 2014-05-21  Guozhi Wei  <carrot@google.com>
22737         PR target/61202
22738         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
22739         constraint.
22740         (vqdmulhq_n_s16): Likewise.
22742 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
22744         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
22746 2014-05-21  Marek Polacek  <polacek@redhat.com>
22748         PR sanitizer/61272
22749         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
22751 2014-05-21  Martin Jambor  <mjambor@suse.cz>
22753         * doc/invoke.texi (Optimize Options): Document parameters
22754         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
22755         ipa-cp-array-index-hint-bonus.
22757 2014-05-21  Mark Wielaard  <mjw@redhat.com>
22759         PR debug/16063
22760         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
22761         version >= 3 or not strict DWARF.
22762         * langhooks.h (struct lang_hooks_for_types): Add
22763         enum_underlying_base_type.
22764         * langhooks.c (lhd_enum_underlying_base_type): New function.
22765         * gcc/langhooks.h (struct lang_hooks_for_types): Add
22766         enum_underlying_base_type.
22767         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
22768         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
22769         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
22771 2014-05-21  Richard Biener  <rguenther@suse.de>
22773         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
22775 2014-05-21  John Marino  <gnugcc@marino.st>
22777         * config.gcc (*-*-dragonfly*): New target.
22778         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
22779         * configure: Regenerate.
22780         * config/dragonfly-stdint.h: New.
22781         * config/dragonfly.h: New.
22782         * config/dragonfly.opt: New.
22783         * config/i386/dragonfly.h: New.
22784         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
22786 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
22788         * tree.def (VOID_CST): New.
22789         * tree-core.h (TI_VOID): New.
22790         * tree.h (void_node): New.
22791         * tree.c (tree_node_structure_for_code, tree_code_size)
22792         (iterative_hash_expr): Handle VOID_CST.
22793         (build_common_tree_nodes): Initialize void_node.
22795 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
22797         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
22798         functions.
22799         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
22801         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
22802         more places.
22804         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
22805         flag_reorder_blocks_and_partition.
22806         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
22808 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
22810         PR target/54236
22811         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
22812         constraints.
22813         (*addc_r_t): Add new insn_and_split.
22815 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
22817         PR middle-end/61252
22818         * omp-low.c (handle_simd_reference): New function.
22819         (lower_rec_input_clauses): Use it.  Defer adding reference
22820         initialization even for reduction without placeholder if in simd,
22821         handle it properly later on.
22823 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22825         PR tree-optimization/60899
22826         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
22827         assume all static symbols will have definition wile parsing and
22828         check the do have definition later in compilation; check that
22829         variable referring symbol will be output before concluding that
22830         reference is safe; be conservative for referring local statics;
22831         be more precise about when comdat is output in other partition.
22833 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22835         PR bootstrap/60984
22836         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
22837         parameter.
22838         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
22839         (ipa_inline): Loop inline_to_all_callers until no more aliases
22840         are removed.
22842 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22844         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
22845         set writeonly flag only for vars actually written to.
22847 2014-05-20  Dehao Chen  <dehao@google.com>
22849         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
22850         and callee count to get clone count.
22851         * tree-inline.c (expand_call_inline): Use callee count instead of bb
22852         count in copy_body.
22854 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
22856         PR rtl-optimization/61243
22857         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
22859 2014-05-20  Xinliang David Li  <davidxl@google.com>
22861         * cgraphunit.c (walk_polymorphic_call_targets): Add
22862         dbgcnt and fopt-info support.
22863         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
22864         * ipa-devirt.c (ipa_devirt): Ditto.
22865         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
22866         * ipa.c (walk_polymorphic_call_targets): Ditto.
22867         * gimple-fold.c (fold_gimple_assign): Ditto.
22868         (gimple_fold_call): Ditto.
22869         * dbgcnt.def: New counter.
22871 2014-05-20  DJ Delorie  <dj@redhat.com>
22873         * config/msp430/msp430.md (split): Don't allow subregs when
22874         splitting SImode adds.
22875         (andneghi): Fix subtraction logic.
22876         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
22878 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
22880         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
22881         symbols.
22882         * except.c (switch_to_exception_section, resolve_unique_section,
22883         get_named_text_section, default_function_rodata_section,
22884         align_variable, get_block_for_decl, default_section_type_flags):
22885         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
22886         * symtab.c (symtab_add_to_same_comdat_group,
22887         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
22888         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
22889         Likewise.
22890         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
22891         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
22892         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
22893         (c6x_function_in_section_p): Likewise.
22894         * config/darwin.c (machopic_select_section): Likewise.
22895         * config/arm/arm.c (arm_function_in_section_p): Likewise.
22896         * config/mips/mips.c (mips_function_rodata_section): Likewise.
22897         * config/mep/mep.c (mep_select_section): LIkewise.
22898         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
22900 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
22902         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
22903         EH region of calls to pure functions that can throw an exception.
22904         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
22905         (copy_reference_ops_from_call): Also copy the EH region of the call if
22906         it can throw an exception.
22908 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22910         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
22911         nested VEC_SELECTs that are inverses of each other.
22913 2014-05-20  Richard Biener  <rguenther@suse.de>
22915         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
22916         (extract_and_process_scc_for_name): not here.
22917         (cond_dom_walker::before_dom_children): Only process
22918         stmts that end the BB in interesting ways.
22919         (run_scc_vn): Mark param uses as visited.
22921 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22923         * config/arm/arm.md (arith_shiftsi): Do not predicate for
22924         arm_restrict_it.
22926 2014-05-20  Nick Clifton  <nickc@redhat.com>
22928         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
22929         (msp430_gimplify_va_arg_expr): New function.
22930         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
22932         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
22933         operand 0 in order to prevent confusion about the number of
22934         registers involved.
22936 2014-05-20  Richard Biener  <rguenther@suse.de>
22938         PR tree-optimization/61221
22939         * tree-ssa-pre.c (el_to_update): Remove.
22940         (eliminate_dom_walker::before_dom_children): Handle released
22941         VDEFs by value-numbering them to the associated VUSE.  Update
22942         stmt immediately for substituted call address.
22943         (eliminate): Remove delayed stmt updating code.
22944         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
22945         possibly late re-numbered vuses.
22946         (vn_reference_lookup_2): Adjust.
22947         (vn_reference_lookup_pieces): Likewise.
22948         (vn_reference_lookup): Likewise.
22950 2014-05-20  Richard Biener  <rguenther@suse.de>
22952         * config.gcc: Remove need_64bit_hwint.
22953         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
22954         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
22955         it to be true.
22956         * config.in: Regenerate.
22957         * configure: Likewise.
22959 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
22961         * doc/extend.texi: Create Label Attributes section,
22962         move all label attributes into it and reference it.
22964 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
22966         * arm.c (thumb1_reorg): When scanning backwards skip anything
22967         that's not a proper insn.
22969 2014-05-19  Richard Biener  <rguenther@suse.de>
22971         PR tree-optimization/61221
22972         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22973         Do nothing for unreachable blocks.
22974         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
22975         Improve unreachability detection.
22977 2014-05-19  Richard Biener  <rguenther@suse.de>
22979         PR tree-optimization/61209
22980         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
22982 2014-05-19  Nick Clifton  <nickc@redhat.com>
22984         * except.c (init_eh): Fix computation of builtin setjmp buffer
22985         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
22987 2014-05-19  Richard Biener  <rguenther@suse.de>
22989         PR tree-optimization/61184
22990         * tree-vrp.c (is_negative_overflow_infinity): Use
22991         TREE_OVERFLOW_P and do that check first.
22992         (is_positive_overflow_infinity): Likewise.
22993         (is_overflow_infinity): Likewise.
22994         (vrp_operand_equal_p): Properly treat operands with
22995         differing overflow as not equal.
22997 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
22999         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
23000         shift simplification where it was intended.
23002 2014-05-19  Christian Bruel  <christian.bruel@st.com>
23004         PR target/61195
23005         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
23007 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
23009         PR target/61084
23010         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
23011         than wide_int.
23013 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
23015         * reg-notes.def (CROSSING_JUMP): Likewise.
23016         * rtl.h (rtx_def): Update comment for jump flag.
23017         (CROSSING_JUMP_P): Define.
23018         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
23019         of a REG_CROSSING_JUMP note.
23020         * cfghooks.c (tidy_fallthru_edges): Likewise.
23021         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
23022         * emit-rtl.c (try_split): Likewise.
23023         * haifa-sched.c (sched_create_recovery_edges): Likewise.
23024         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
23025         * jump.c (redirect_jump_2): Likewise.
23026         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
23027         (relax_delay_slots): Likewise.
23028         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
23029         (bbit_di): Likewise.
23030         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
23031         * config/sh/sh.md (jump_compact): Likewise.
23032         * bb-reorder.c (rotate_loop): Likewise.
23033         (pass_duplicate_computed_gotos::execute): Likewise.
23034         (add_reg_crossing_jump_notes): Rename to...
23035         (update_crossing_jump_flags): ...this.
23036         (pass_partition_blocks::execute): Update accordingly.
23038 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
23040         * tree.h: Remove extraneous template <>.
23042 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
23044         * ipa.c (symtab_remove_unreachable_nodes): Remove
23045         symbol from comdat group if its body was eliminated.
23046         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
23047         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
23048         (symtab_unregister_node): ... this one.
23049         (verify_symtab_base): More strict checking of comdats.
23050         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
23052 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
23054         * tree-pass.h (make_pass_ipa_comdats): New pass.
23055         * timevar.def (TV_IPA_COMDATS): New timevar.
23056         * passes.def (pass_ipa_comdats): Add.
23057         * Makefile.in (OBJS): Add ipa-comdats.o
23058         * ipa-comdats.c: New file.
23060 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
23062         * ipa.c (update_visibility_by_resolution_info): New function.
23063         (function_and_variable_visibility): Use it.
23065 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
23067         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
23068         New functions.
23069         (FOR_EACH_DEFINED_SYMBOL): New macro.
23070         (varpool_first_static_initializer, varpool_next_static_initializer,
23071         varpool_first_defined_variable, varpool_next_defined_variable):
23072         Fix comments.
23073         (symtab_in_same_comdat_p): Correctly deal with inline functions.
23075 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
23077         * ggc-page.c (ggc_handle_finalizers): Add comment.
23079 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
23081         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
23082         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
23083         (ggc_internal_cleared_alloc): Likewise.
23084         * ggc-page.c (finalizer): New class.
23085         (vec_finalizer): Likewise.
23086         (globals::finalizers): New member.
23087         (globals::vec_finalizers): Likewise.
23088         (ggc_internal_alloc): Record the finalizer if any for the block being
23089         allocated.
23090         (ggc_handle_finalizers): New function.
23091         (ggc_collect): Call ggc_handle_finalizers.
23092         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
23093         finalizer.
23094         (ggc_internal_cleared_alloc): Likewise.
23095         (finalize): New function.
23096         (need_finalization_p): Likewise.
23097         (ggc_alloc): Install the type's destructor as the finalizer if it
23098         might do something.
23099         (ggc_cleared_alloc): Likewise.
23100         (ggc_vec_alloc): Likewise.
23101         (ggc_cleared_vec_alloc): Likewise.
23103 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
23105         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
23107 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
23109         * alias.c (record_alias_subset): Adjust.
23110         * bitmap.c (bitmap_element_allocate): Likewise.
23111         (bitmap_gc_alloc_stat): Likewise.
23112         * cfg.c (init_flow): Likewise.
23113         (alloc_block): Likewise.
23114         (unchecked_make_edge): Likewise.
23115         * cfgloop.c (alloc_loop): Likewise.
23116         (flow_loops_find): Likewise.
23117         (rescan_loop_exit): Likewise.
23118         * cfgrtl.c (init_rtl_bb_info): Likewise.
23119         * cgraph.c (insert_new_cgraph_node_version): Likewise.
23120         (cgraph_allocate_node): Likewise.
23121         (cgraph_create_edge_1): Likewise.
23122         (cgraph_allocate_init_indirect_info): Likewise.
23123         * cgraphclones.c (cgraph_clone_edge): Likewise.
23124         * cgraphunit.c (add_asm_node): Likewise.
23125         (init_lowered_empty_function): Likewise.
23126         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
23127         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
23128         (alpha_use_linkage): Likewise.
23129         * config/arc/arc.c (arc_init_machine_status): Likewise.
23130         * config/arm/arm.c (arm_init_machine_status): Likewise.
23131         * config/avr/avr.c (avr_init_machine_status): Likewise.
23132         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
23133         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
23134         * config/cris/cris.c (cris_init_machine_status): Likewise.
23135         * config/darwin.c (machopic_indirection_name): Likewise.
23136         (darwin_build_constant_cfstring): Likewise.
23137         (darwin_enter_string_into_cfstring_table): Likewise.
23138         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
23139         * config/frv/frv.c (frv_init_machine_status): Likewise.
23140         * config/i386/i386.c (get_dllimport_decl): Likewise.
23141         (ix86_init_machine_status): Likewise.
23142         (assign_386_stack_local): Likewise.
23143         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
23144         (i386_pe_maybe_record_exported_symbol): Likewise.
23145         (i386_pe_record_stub): Likewise.
23146         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
23147         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
23148         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
23149         (m32c_note_pragma_address): Likewise.
23150         * config/mep/mep.c (mep_init_machine_status): Likewise.
23151         (mep_note_pragma_flag): Likewise.
23152         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
23153         (mips16_local_alias): Likewise.
23154         (mips_init_machine_status): Likewise.
23155         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
23156         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
23157         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
23158         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
23159         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
23160         * config/pa/pa.c (pa_init_machine_status): Likewise.
23161         (pa_get_deferred_plabel): Likewise.
23162         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
23163         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
23164         (rs6000_init_machine_status): Likewise.
23165         (output_toc): Likewise.
23166         * config/s390/s390.c (s390_init_machine_status): Likewise.
23167         * config/score/score.c (score_output_external): Likewise.
23168         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
23169         * config/spu/spu.c (spu_init_machine_status): Likewise.
23170         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
23171         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
23172         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
23173         * coverage.c (coverage_end_function): Likewise.
23174         * dbxout.c (dbxout_init): Likewise.
23175         * doc/gty.texi: Don't mention variable_size attribute.
23176         * dwarf2cfi.c (new_cfi): Adjust.
23177         (new_cfi_row): Likewise.
23178         (copy_cfi_row): Likewise.
23179         (create_cie_data): Likewise.
23180         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
23181         (new_loc_descr): Likewise.
23182         (find_AT_string_in_table): Likewise.
23183         (add_addr_table_entry): Likewise.
23184         (new_die): Likewise.
23185         (add_var_loc_to_decl): Likewise.
23186         (clone_die): Likewise.
23187         (clone_as_declaration): Likewise.
23188         (break_out_comdat_types): Likewise.
23189         (new_loc_list): Likewise.
23190         (add_loc_descr_to_each): Likewise.
23191         (add_location_or_const_value_attribute): Likewise.
23192         (add_linkage_name): Likewise.
23193         (lookup_filename): Likewise.
23194         (dwarf2out_var_location): Likewise.
23195         (new_line_info_table): Likewise.
23196         (dwarf2out_init): Likewise.
23197         (mem_loc_descriptor): Likewise.
23198         (loc_descriptor): Likewise.
23199         (add_const_value_attribute): Likewise.
23200         (tree_add_const_value_attribute): Likewise.
23201         (comp_dir_string): Likewise.
23202         (dwarf2out_vms_debug_main_pointer): Likewise.
23203         (string_cst_pool_decl): Likewise.
23204         * emit-rtl.c (set_mem_attrs): Likewise.
23205         (get_reg_attrs): Likewise.
23206         (start_sequence): Likewise.
23207         (init_emit): Likewise.
23208         (init_emit_regs): Likewise.
23209         * except.c (init_eh_for_function): Likewise.
23210         (gen_eh_region): Likewise.
23211         (gen_eh_region_catch): Likewise.
23212         (gen_eh_landing_pad): Likewise.
23213         (add_call_site): Likewise.
23214         * function.c (add_frame_space): Likewise.
23215         (insert_temp_slot_address): Likewise.
23216         (assign_stack_temp_for_type): Likewise.
23217         (get_hard_reg_initial_val): Likewise.
23218         (allocate_struct_function): Likewise.
23219         (prepare_function_start): Likewise.
23220         (types_used_by_var_decl_insert): Likewise.
23221         * gengtype.c (variable_size_p): Remove function.
23222         (enum alloc_quantity): Remove enum.
23223         (write_typed_alloc_def): Remove function.
23224         (write_typed_struct_alloc_def): Likewise.
23225         (write_typed_typedef_alloc_def): Likewise.
23226         (write_typed_alloc_defns): Likewise.
23227         (main): Adjust.
23228         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
23229         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
23230         * ggc.h (ggc_alloc): new function.
23231         (ggc_cleared_alloc): Likewise.
23232         (ggc_vec_alloc): Template on type of vector element, and remove
23233         element size argument.
23234         (ggc_cleared_vec_alloc): Likewise.
23235         * gimple.c (gimple_build_omp_for): Adjust.
23236         (gimple_copy): Likewise.
23237         * ipa-cp.c (get_replacement_map): Likewise.
23238         (find_aggregate_values_for_callers_subset): Likewise.
23239         (known_aggs_to_agg_replacement_list): Likewise.
23240         * ipa-devirt.c (get_odr_type): Likewise.
23241         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
23242         (read_agg_replacement_chain): Likewise.
23243         * loop-iv.c (get_simple_loop_desc): Likewise.
23244         * lto-cgraph.c (input_node_opt_summary): Likewise.
23245         * lto-section-in.c (lto_new_in_decl_state): Likewise.
23246         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
23247         (input_eh_region): Likewise.
23248         (input_eh_lp): Likewise.
23249         (input_cfg): Likewise.
23250         * optabs.c (set_optab_libfunc): Likewise.
23251         (init_tree_optimization_optabs): Likewise.
23252         (set_conv_libfunc): Likewise.
23253         * passes.c (do_per_function_toporder): Likewise.
23254         * rtl.h: Don't use variable_size gty attribute.
23255         * sese.c (if_region_set_false_region): Adjust.
23256         * stringpool.c (gt_pch_save_stringpool): Likewise.
23257         * target-globals.c (save_target_globals): Likewise.
23258         * toplev.c (general_init): Likewise.
23259         * trans-mem.c (record_tm_replacement): Likewise.
23260         (split_bb_make_tm_edge): Likewise.
23261         * tree-cfg.c (move_sese_region_to_fn): Likewise.
23262         * tree-data-ref.h (lambda_vector_new): Likewise.
23263         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
23264         * tree-iterator.c (tsi_link_before): Likewise.
23265         (tsi_link_after): Likewise.
23266         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
23267         * tree-ssa-loop-niter.c (record_estimate): Likewise.
23268         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
23269         * tree-ssa-operands.h: Don't use variable_size gty attribute.
23270         * tree-ssa.c (init_tree_ssa): Adjust.
23271         * tree-ssanames.c (set_range_info): Likewise.
23272         (get_ptr_info): Likewise.
23273         (duplicate_ssa_name_ptr_info): Likewise.
23274         (duplicate_ssa_name_range_info): Likewise.
23275         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
23276         (unpack_ts_fixed_cst_value_fields): Likewise.
23277         * tree.c (build_fixed): Likewise.
23278         (build_real): Likewise.
23279         (build_string): Likewise.
23280         (decl_priority_info): Likewise.
23281         (decl_debug_expr_insert): Likewise.
23282         (decl_value_expr_insert): Likewise.
23283         (decl_debug_args_insert): Likewise.
23284         (type_hash_add): Likewise.
23285         (build_omp_clause): Likewise.
23286         * ubsan.c (decl_for_type_insert): Likewise.
23287         * varasm.c (get_unnamed_section): Likewise.
23288         (get_noswitch_section): Likewise.
23289         (get_section): Likewise.
23290         (get_block_for_section): Likewise.
23291         (create_block_symbol): Likewise.
23292         (build_constant_desc): Likewise.
23293         (create_constant_pool): Likewise.
23294         (force_const_mem): Likewise.
23295         (record_tm_clone_pair): Likewise.
23296         * varpool.c (varpool_create_empty_node): Likewise.
23298 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
23300         * dwarf2out.c (tree_add_const_value_attribute): Call
23301         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
23302         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
23303         instead of ggc_internal_<x>alloc_stat.
23304         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
23305         (ggc_realloc): Likewise.
23306         * ggc-none.c (ggc_internal_alloc): Likewise.
23307         (ggc_internal_cleared_alloc): Likewise.
23308         * ggc-page.c: Likewise.
23309         * ggc.h (ggc_internal_alloc_stat): Likewise.
23310         (ggc_internal_alloc): Remove macro.
23311         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
23312         (ggc_internal_cleared_alloc): Remove macro.
23313         (GGC_RESIZEVEC): Adjust.
23314         (ggc_resizevar): Remove macro.
23315         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
23316         (ggc_internal_cleared_vec_alloc_stat): Likewise.
23317         (ggc_internal_vec_cleared_alloc): Remove macro.
23318         (ggc_alloc_atomic_stat): Drop _stat suffix.
23319         (ggc_alloc_atomic): Remove macro.
23320         (ggc_alloc_cleared_atomic): Remove macro.
23321         (ggc_alloc_string_stat): Drop _stat suffix.
23322         (ggc_alloc_string): Remove macro.
23323         (ggc_alloc_rtx_def_stat): Adjust.
23324         (ggc_alloc_tree_node_stat): Likewise.
23325         (ggc_alloc_cleared_tree_node_stat): Likewise.
23326         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
23327         (ggc_alloc_cleared_simd_clone_stat): Likewise.
23328         * gimple.c (gimple_build_omp_for): Likewise.
23329         (gimple_copy): Likewise.
23330         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
23331         * toplev.c (realloc_for_line_map): Adjust.
23332         * tree-data-ref.h (lambda_vector_new): Likewise.
23333         * tree-phinodes.c (allocate_phi_node): Likewise.
23334         * tree.c (grow_tree_vec_stat): Likewise.
23335         * vec.h (va_gc::reserve): Adjust.
23337 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
23339         * config/microblaze/microblaze.c (break_handler): New Declaration.
23340         (microblaze_break_function_p,microblaze_is_break_handler): New.
23341         (compute_frame_size): Use microblaze_break_function_p.
23342         Add the test of break_handler.
23343         (microblaze_function_prologue) : Add the test of variable
23344         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
23345         (microblaze_function_epilogue) : Add the test of break_handler.
23346         (microblaze_globalize_label) : Add the test of break_handler.
23347         Check the name by BREAK_HANDLER_NAME.
23349         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
23351         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
23352         microblaze_is_break_handler test.
23353         (call_internal1,call_value_intern): Use microblaze_break_function_p.
23354         Use SYMBOL_REF_DECL.
23356         * config/microblaze/microblaze-protos.h
23357         (microblaze_break_function_p,microblaze_is_break_handler):
23358         New Declaration.
23360         * doc/extend.texi (MicroBlaze break_handler Functions): Document
23361         new MicroBlaze break_handler functions.
23363 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
23365         * doc/extend.texi (Size of an asm): Move node text according
23366         to its @menu entry position.
23368 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
23370         PR tree-optimization/61140
23371         PR tree-optimization/61150
23372         PR tree-optimization/61197
23373         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
23375 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
23377         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
23379 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
23381         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
23382         __SIZEOF_INT128__ is defined.
23384 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
23386         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
23387         (rs6000_delegitimize_address): Use it.
23389 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
23391         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
23392         inplace argument.  Store the new address in the original MEM when true.
23393         * emit-rtl.c (change_address_1): Likewise.
23394         (adjust_address_1, adjust_automodify_address_1, offset_address):
23395         Update accordingly.
23396         * rtl.h (plus_constant): Add an inplace argument.
23397         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
23398         when true.  Avoid generating (plus X (const_int 0)).
23399         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
23400         in-place.  Pass true to plus_constant.
23401         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
23403 2014-05-16  Dehao Chen  <dehao@google.com>
23405         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
23407 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
23409         PR target/54089
23410         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
23411         patterns.
23412         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
23414 2014-05-16  Dehao Chen  <dehao@google.com>
23416         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
23417         optimize_function_for_size_p.
23418         * regs.h (REG_FREQ_FROM_BB): Likewise.
23420 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
23422         PR target/51244
23423         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
23424         negt_reg_operand cases.
23425         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
23426         predicate.
23427         * config/sh/predicates.md (cbranch_treg_value): Simplify.
23429 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
23431         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
23432         target variants.
23434 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
23436         Revert:
23437         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
23439         * tree-cfg.c (dump_function_to_file): Dump the return type of
23440         functions, in a line to itself before the function body, mimicking
23441         the layout of a C function.
23443 2014-05-16  Dehao Chen  <dehao@google.com>
23445         * cfghooks.c (make_forwarder_block): Use direct computation to
23446         get fall-through edge's count and frequency.
23448 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
23450         * config/arc/arc.c (arc_init): Fix typo in error message.
23451         * config/i386/i386.c (ix86_expand_builtin): Likewise.
23452         (split_stack_prologue_scratch_regno): Likewise.
23453         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
23454         word from error message.
23456 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23458         * ira-costs.c: Fix typo in comment.
23460 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
23462         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
23464 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
23466         * varpool.c (dump_varpool_node): Dump write-only flag.
23467         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
23468         write-only flag.
23469         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
23470         write-only variables.
23471         * ipa.c (process_references): New function.
23472         (set_readonly_bit): New function.
23473         (set_writeonly_bit): New function.
23474         (clear_addressable_bit): New function.
23475         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
23476         fix handling of aliases.
23477         * cgraph.h (struct varpool_node): Add writeonly flag.
23479 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
23481         PR rtl-optimization/60969
23482         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
23483         Calculate costs for this case.
23485 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
23487         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
23488         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
23490 2014-05-16  Richard Biener  <rguenther@suse.de>
23492         PR tree-optimization/61194
23493         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
23494         bool patterns ending in a COND_EXPR.
23496 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23498         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
23500 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23502         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
23503         where we were unable to cost an RTX.
23505 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23507         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
23508         HIGH, LO_SUM.
23510 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23511             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23513         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
23515 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23516             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23518         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
23519         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
23521 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23522             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23524         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
23525         operators.
23527 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23528             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23530         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
23531         DIV/MOD.
23533 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23534             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23536         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
23537         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
23539 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23540             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23542         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
23543         rotates and shifts.
23545 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23546             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23548         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
23549         ZERO_EXTEND and SIGN_EXTEND better.
23551 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23552             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23554         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
23555         logical operations.
23557 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23558             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23560         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
23561         costs when costing loads and stores to memory.
23563 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23564             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
23566         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
23567         for SET RTX.
23569 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23571         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
23573 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23574             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23576         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
23577         to...
23578         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
23579         well formed.
23580         (aarch64_rtx_mult_cost): New.
23581         (aarch64_rtx_costs): Use it, refactor as appropriate.
23583 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23584             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23586         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
23587         emit instructions, return number of instructions which would
23588         be emitted.
23589         (aarch64_add_constant): Update call to aarch64_build_constant.
23590         (aarch64_output_mi_thunk): Likewise.
23591         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
23592         a CONST_DOUBLE.
23594 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23596         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
23597         (TARGET_RTX_COSTS): Call it.
23599 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23601         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
23602         (cortexa57_vector_cost): Likewise.
23603         (cortexa57_tunings): Use them.
23605 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
23607         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
23608         (cpu_addrcost_table): Use it.
23609         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
23610         (aarch64_address_cost): Rewrite using aarch64_classify_address,
23611         move it.
23613 2014-05-16  Richard Biener  <rguenther@suse.de>
23615         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
23616         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
23617         (visit_phi): Ignore edges marked as not executable.
23618         (class cond_dom_walker): New.
23619         (cond_dom_walker::before_dom_children): Value-number
23620         control statements and mark successor edges as not
23621         executable if possible.
23622         (run_scc_vn): First walk all control statements in
23623         dominator order, marking edges as not executable.
23624         * tree-inline.c (copy_edges_for_bb): Be not confused
23625         about random edge flags.
23627 2014-05-16  Richard Biener  <rguenther@suse.de>
23629         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
23631 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
23633         PR target/61193
23634         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
23635         (__TM_simple_begin): Use it.
23636         (__TM_begin): Likewise.
23638 2014-05-15  Martin Jambor  <mjambor@suse.cz>
23640         PR ipa/61085
23641         * ipa-prop.c (update_indirect_edges_after_inlining): Check
23642         type_preserved flag when the indirect edge is polymorphic.
23644 2014-05-15  Martin Jambor  <mjambor@suse.cz>
23646         PR tree-optimization/61090
23647         * tree-sra.c (sra_modify_expr): Pass the current gsi to
23648         build_ref_for_model.
23650 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23652         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
23653         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
23655 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
23657         PR tree-optimization/61158
23658         * fold-const.c (fold_binary_loc): If X is zero-extended and
23659         shiftc >= prec, make sure zerobits is all ones instead of
23660         invoking undefined behavior.
23662 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23664         * regcprop.h: New file.
23665         * regcprop.c (skip_debug_insn_p): New decl.
23666         (replace_oldest_value_reg): Check skip_debug_insn_p.
23667         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
23668         * shrink-wrap.c: Include regcprop.h.
23669         (prepare_shrink_wrap): Call
23670         copyprop_hardreg_forward_bb_without_debug_insn.
23672 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23674         * shrink-wrap.h: Update comment.
23675         * shrink-wrap.c: Update comment.
23676         (next_block_for_reg): Rename to live_edge_for_reg.
23677         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
23678         (move_insn_for_shrink_wrap): Split live_edge.
23679         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
23681 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
23683         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
23684         Delete.
23685         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
23686         * config/sparc/sparc.md (fptype_ut699): New attribute.
23687         (in_branch_delay): Return false if -mfix-ut699 is specified and
23688         fptype_ut699 is set to single.
23689         (truncdfsf2): Add fptype_ut699 attribute.
23690         (fix_truncdfsi2): Likewise.
23691         (floatsisf2): Change fptype attribute.
23692         (fix_truncsfsi2): Likewise.
23693         (negtf2_notv9): Delete.
23694         (negtf2_v9): Likewise.
23695         (negtf2_hq): New instruction.
23696         (negtf2): New instruction and splitter.
23697         (negdf2_notv9): Rewrite.
23698         (abstf2_notv9): Delete.
23699         (abstf2_hq_v9): Likewise.
23700         (abstf2_v9): Likewise.
23701         (abstf2_hq): New instruction.
23702         (abstf2): New instruction and splitter.
23703         (absdf2_notv9): Rewrite.
23705 2014-05-14  Cary Coutant  <ccoutant@google.com>
23707         PR debug/61013
23708         * opts.c (common_handle_option): Don't special-case "-g".
23709         (set_debug_level): Default to at least level 2 with "-g".
23711 2014-05-14  DJ Delorie  <dj@redhat.com>
23713         * config/msp430/msp430.c (msp430_builtin): Add
23714         MSP430_BUILTIN_DELAY_CYCLES.
23715         (msp430_init_builtins): Register void __delay_cycles(long long).
23716         (msp430_builtin_decl): Add it.
23717         (cg_magic_constant): New.
23718         (msp430_expand_delay_cycles): New.
23719         (msp430_expand_builtin): Call it.
23720         (msp430_print_operand_raw): Change integer printing from "int" to
23721         HOST_WIDE_INT.
23722         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
23723         (delay_cycles_start): New.
23724         (delay_cycles_end): New.
23725         (delay_cycles_32): New.
23726         (delay_cycles_32x): New.
23727         (delay_cycles_16): New.
23728         (delay_cycles_16x): New.
23729         (delay_cycles_2): New.
23730         (delay_cycles_1): New.
23731         * doc/extend.texi: Document __delay_cycles().
23733 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
23735         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
23736         length attribute computation.
23738 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
23740         PR debug/61188
23741         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
23743 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
23745         PR target/61084
23746         * config/sparc/sparc.md: Fix types of low and high in DI constant
23747         splitter.  Use gen_int_mode in some other splitters.
23749 2014-05-14  Martin Jambor  <mjambor@suse.cz>
23751         PR ipa/60897
23752         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
23754 2014-05-14  James Norris  <jnorris@codesourcery.com>
23756         * omp-low.c (expand_parallel_call): Remove shadow variable.
23757         (expand_omp_taskreg): Likewise.
23759 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
23761         * common/config/i386/i386-common.c
23762         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
23763         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
23764         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
23765         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
23766         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
23767         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
23768         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
23769         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
23770         xsavecintrin.h, xsavesintrin.h.
23771         (x86_64-*-*): Ditto.
23772         * config/i386/clflushoptintrin.h: New.
23773         * config/i386/xsavecintrin.h: Ditto.
23774         * config/i386/xsavesintrin.h: Ditto.
23775         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
23776         (bit_XSAVES): Ditto.
23777         (bit_XSAVES): Ditto.
23778         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
23779         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
23780         -mno-clflushopt.
23781         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23782         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
23783         OPTION_MASK_ISA_XSAVES.
23784         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
23785         -mxsavec, -mxsaves.
23786         (PTA_CLFLUSHOPT) Define.
23787         (PTA_XSAVEC): Ditto.
23788         (PTA_XSAVES): Ditto.
23789         (ix86_option_override_internal): Handle new options.
23790         (ix86_valid_target_attribute_inner_p): Ditto.
23791         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
23792         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
23793         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
23794         (bdesc_special_args): Add __builtin_ia32_xsaves,
23795         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
23796         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
23797         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
23798         (ix86_expand_builtin): Handle new builtins.
23799         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
23800         (TARGET_CLFLUSHOPT_P): Ditto.
23801         (TARGET_XSAVEC): Ditto.
23802         (TARGET_XSAVEC_P): Ditto.
23803         (TARGET_XSAVES): Ditto.
23804         (TARGET_XSAVES_P): Ditto.
23805         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
23806         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
23807         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
23808         (ANY_XRSTOR): New.
23809         (ANY_XRSTOR64): Ditto.
23810         (xrstor): Ditto.
23811         (xrstor): Change into <xrstor>.
23812         (xrstor_rex64): Change into <xrstor>_rex64.
23813         (xrstor64): Change into <xrstor>64
23814         (clflushopt): New.
23815         * config/i386/i386.opt (mclflushopt): New.
23816         (mxsavec): Ditto.
23817         (mxsaves): Ditto.
23818         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
23819         xsavecintrin.h.
23820         * doc/invoke.texi: Document new options.
23822 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
23824         PR rtl-optimization/60866
23825         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
23826         Default it to -1.  Pass it down to init_simplejump_data.
23827         (init_simplejump_data): New parameter old_seqno.  Pass it down
23828         to get_seqno_for_a_jump.
23829         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
23830         initializing new jump seqno as a last resort.  Add comment.
23831         (sel_redirect_edge_and_branch): Save old seqno of the conditional
23832         jump and pass it down to sel_init_new_insn.
23833         (sel_redirect_edge_and_branch_force): Likewise.
23835 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
23837         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
23838         shifted values to avoid build warning.
23840 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
23842         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
23843         * cfgrtl.c (rtl_merge_blocks): Fix comment.
23844         (cfg_layout_merge_blocks): Likewise.
23845         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
23847 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
23849         PR rtl-optimization/60901
23850         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
23851         bb predecessor belongs to the same scheduling region.  Adjust comment.
23853 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
23855         * doc/sourcebuild.texi: (dfp_hw): Document.
23856         (p8vector_hw): Likewise.
23857         (powerpc_eabi_ok): Likewise.
23858         (powerpc_elfv2): Likewise.
23859         (powerpc_htm_ok): Likewise.
23860         (ppc_recip_hw): Likewise.
23861         (vsx_hw): Likewise.
23863 2014-05-13  Cary Coutant  <ccoutant@google.com>
23865         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
23867 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
23869         * gengtype-parse.c (require3): Eliminate in favor of...
23870         (require4): New.
23871         (require_template_declaration): Update to support optional single *
23872         on a type.
23874         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
23875         (create_user_defined_type): Handle a single level of explicit
23876         pointerness within template arguments.
23877         (struct write_types_data): Add field "kind".
23878         (filter_type_name): Handle "*" character.
23879         (write_user_func_for_structure_ptr): Require a write_types_data
23880         rather than just a prefix string, so that we can look up the kind
23881         of the wtd and use it as an index into wrote_user_func_for_ptr,
23882         ensuring that such functions are written at most once.  Support
23883         subclasses by invoking the marking function of the ultimate base class.
23884         (write_user_func_for_structure_body): Require a write_types_data
23885         rather than just a prefix string, so that we can pass this to
23886         write_user_func_for_structure_ptr.
23887         (write_func_for_structure): Likewise.
23888         (ggc_wtd): Add initializer of new "kind" field.
23889         (pch_wtd): Likewise.
23891         * gengtype.h (enum write_types_kinds): New.
23892         (struct type): Add field wrote_user_func_for_ptr to the "s"
23893         union member.
23895 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
23897         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
23898         instead of const_binop.
23899         (fold_binary_loc): Likewise.
23901 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
23903         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
23904         calculation to match get_ref_base_and_extent.
23906 2014-05-13  Catherine Moore  <clm@codesourcery.com>
23907             Sandra Loosemore  <sandra@codesourcery.com>
23909         * configure.ac: Fix assembly for explicit JALR relocation check.
23910         * configure: Regenerate.
23912 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23914         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
23915         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
23916         Remove associated type declarations and initialisations.
23917         (arm_expand_neon_builtin): Likewise.
23918         (neon_emit_pair_result_insn): Delete.
23919         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
23920         * config/arm/neon.md (neon_vtrn<mode>): Delete.
23921         (neon_vzip<mode>): Likewise.
23922         (neon_vuzp<mode>): Likewise.
23924 2014-05-13  Richard Biener  <rguenther@suse.de>
23926         PR ipa/60973
23927         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
23928         it needs revisiting whether the call still may be tail-called.
23930 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23932         * rtl.def (SYMBOL_REF): Remove middle "0" field.
23933         * rtl.h (block_symbol): Reduce number of fields to 2.
23934         (rtx_def): Add u2.symbol_ref_flags.
23935         (SYMBOL_REF_FLAGS): Use it.
23936         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
23937         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
23938         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
23939         Lower index of SYMBOL_REF_DATA.
23940         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
23941         Print SYMBOL_REF_FLAGS at the same time.
23942         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
23944 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23946         * rtl.def (VAR_LOCATION): Remove "i" field.
23947         * rtl.h (rtx_def): Add u2.var_location_status.
23948         (PAT_VAR_LOCATION_STATUS): Use it.
23949         (gen_rtx_VAR_LOCATION): Declare.
23950         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
23951         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
23952         * var-tracking.c (emit_note_insn_var_location): Remove casts.
23954 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23956         * rtl.def (scratch): Fix outdated comment and remove "0" field.
23957         * gengtype.c (adjust_field_rtx_def): Update accordingly.
23959 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23961         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
23962         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
23963         * rtl.h (rtx_def): Add insn_uid to u2 field.
23964         (RTX_FLAG_CHECK8): Delete in favor of...
23965         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
23966         (INSN_DELETED_P): Update accordingly.
23967         (INSN_UID): Use u2.insn_uid.
23968         (INSN_CHAIN_CODE_P): Define.
23969         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
23970         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
23971         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
23972         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
23973         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
23974         indices accordingly.
23975         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
23976         Update indices for insn-chain rtxes.
23977         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
23978         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
23979         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
23980         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
23981         * combine.c (try_combine): Likewise.
23982         * ira.c (setup_prohibited_mode_move_regs): Likewise.
23984 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23986         * rtl.def (REG): Remove middle field.
23987         * rtl.h (rtx_def): Add orignal_regno to u2.
23988         (ORIGINAL_REGNO): Use it instead of field 1.
23989         (REG_ATTRS): Lower field index accordingly.
23990         * gengtype.c (adjust_field_rtx_def): Remove handling of
23991         ORIGINAL_REGNO.  Move REG_ATTRS index down.
23992         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
23993         code that prints the REGNO.
23995 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
23997         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
23998         GENERATOR_FILE.
24000 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
24002         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
24004 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
24006         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
24007         (alloc_iv): Lower base expressions containing ADDR_EXPR.
24009 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
24011         * config/aarch64/aarch64-protos.h
24012         (aarch64_hard_regno_caller_save_mode): New prototype.
24013         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
24014         New function.
24015         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
24017 2014-05-13  Christian Bruel  <christian.bruel@st.com>
24019         * target.def (mode_switching): New hook vector.
24020         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
24021         (mode_exit, modepriority_to_mode): Likewise.
24022         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
24023         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24024         * target.h: Include tm.h and hard-reg-set.h.
24025         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
24026         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
24027         * doc/tm.texi Regenerate.
24028         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
24029         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24030         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
24031         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
24032         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
24033         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24034         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
24035         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
24036         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
24037         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
24038         (ix86_emit_mode_set): Hookify.
24039         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
24040         Delete.
24041         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
24042         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
24043         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
24044         (epiphany_mode_priority_to_mode): Remove declaration.
24045         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
24046         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
24047         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
24048         Likewise.
24049         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
24050         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
24051         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
24053 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
24055         PR target/61060
24056         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
24057         is const0_rtx, return immediately.  Don't test count == 0 when
24058         it is always true.
24060 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24062         * Makefile.in: add shrink-wrap.o.
24063         * config/i386/i386.c: include "shrink-wrap.h"
24064         * function.c: Likewise.
24065         (requires_stack_frame_p, next_block_for_reg,
24066         move_insn_for_shrink_wrap, prepare_shrink_wrap,
24067         dup_block_and_redirect): Move to shrink-wrap.c
24068         (thread_prologue_and_epilogue_insns): Extract three code segments
24069         as functions in shrink-wrap.c
24070         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
24071         shrink-wrap.h
24072         * shrink-wrap.c: New file.
24073         * shrink-wrap.h: New file.
24075 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
24077         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
24078         reference to Solaris.
24080 2014-05-12  Mike Stump  <mikestump@comcast.net>
24082         PR other/31778
24083         * genattrtab.c (filename): Add.
24084         (convert_set_attr_alternative): Improve error message.
24085         (check_defs): Restore read_md_filename for error messages.
24086         (gen_insn): Save filename.
24088 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
24090         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
24091         -fno-local-ivars and -fivar-visibility.
24092         * c-family/c.opt: Make -Wshadow also implicitly enable
24093         -Wshadow-ivar.
24095 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
24097         * doc/tm.texi: Remove reference to deleted macro.
24098         * doc/tm.texi.in: Likewise.
24100 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
24102         PR target/60991
24103         * config/avr/avr.c (avr_out_store_psi): Use correct constant
24104         to restore Y.
24106 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
24108         PR libgcc/61152
24109         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
24110         * config/arm/aout.h (License): Same.
24111         * config/arm/bpabi.h (License): Same.
24112         * config/arm/elf.h (License): Same.
24113         * config/arm/linux-elf.h (License): Same.
24114         * config/arm/linux-gas.h (License): Same.
24115         * config/arm/netbsd-elf.h (License): Same.
24116         * config/arm/uclinux-eabi.h (License): Same.
24117         * config/arm/uclinux-elf.h (License): Same.
24118         * config/arm/vxworks.h (License): Same.
24120 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
24122         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
24123         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
24124         number of operands to 3.
24125         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
24126         * tree-nested.c (convert_nonlocal_omp_clauses,
24127         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
24128         * gimplify.c (gimplify_scan_omp_clauses): Handle
24129         OMP_CLAUSE_LINEAR_STMT.
24130         * omp-low.c (lower_rec_input_clauses): Fix typo.
24131         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
24132         cast between Fortran boolean_type_node and C _Bool if
24133         needed.
24135 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
24137         PR tree-optimization/61136
24138         * wide-int.h (multiple_of_p): Define a version that doesn't return
24139         the quotient.
24140         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
24141         integer_zerop/const_binop pair.
24142         (multiple_of_p): Likewise, converting both operands to widest_int
24143         precision.
24145 2014-05-09  Teresa Johnson  <tejohnson@google.com>
24147         * cgraphunit.c (analyze_functions): Use correct dump file.
24149 2014-05-09  Florian Weimer  <fweimer@redhat.com>
24151         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
24152         expand_used_vars.
24153         (stack_protect_return_slot_p): New function.
24154         (expand_used_vars): Call stack_protect_decl_p and
24155         stack_protect_return_slot_p for -fstack-protector-strong.
24157 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
24158         Andrew Haley <aph@redhat.com>
24159         Richard Sandiford <rdsandiford@googlemail.com>
24161         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
24162         pages.
24164 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
24166         PR middle-end/61111
24167         * fold-const.c (fold_binary_loc): Changed width of mask.
24169 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
24171         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
24172         unsigned int initializers for regno_in, regno_out.
24174 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
24176         PR target/61055
24177         * config/avr/avr.md (cc): Add new attribute set_vzn.
24178         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
24179         Set cc insn attribute to set_vzn instead of set_zn for alternatives
24180         with INC, DEC or NEG.
24181         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
24182         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
24183         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
24185 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24187         Revert:
24188         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24190         * wide-int.cc (UTItype): Define.
24191         (UDWtype): Define for appropriate W_TYPE_SIZE.
24193 2014-05-09  Richard Biener  <rguenther@suse.de>
24195         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
24196         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
24197         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
24198         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
24199         ssa_propagate): Adjust.
24201 2014-05-08  Jeff Law  <law@redhat.com>
24203         PR tree-optimization/61009
24204         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
24205         tri-state rather than a boolean.  When a block is too big to
24206         thread through, inform caller via negative return value.
24207         (thread_across_edge): If a block was too big for normal threading,
24208         then it's too big for a joiner too, so remove temporary equivalences
24209         and return immediately.
24211 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24212             Matthias Klose  <doko@ubuntu.com>
24214         PR driver/61106
24215         * optc-gen.awk: Fix option handling for -Wunused-parameter.
24217 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
24219         PR target/59952
24220         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
24222 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
24224         PR target/61092
24225         * config/alpha/alpha.c: Include gimple-iterator.h.
24226         (alpha_gimple_fold_builtin): New function.  Move
24227         ALPHA_BUILTIN_UMULH folding from ...
24228         (alpha_fold_builtin): ... here.
24229         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
24231 2014-05-08  Wei Mi  <wmi@google.com>
24233         PR target/58066
24234         * config/i386/i386.c (ix86_compute_frame_layout): Update
24235         preferred_stack_boundary for call, expanded from tls descriptor.
24236         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
24237         to depend on SP register.
24238         (*tls_local_dynamic_base_32_gnu): Ditto.
24239         (*tls_local_dynamic_32_once): Ditto.
24240         (tls_global_dynamic_64_<mode>): Set
24241         ix86_tls_descriptor_calls_expanded_in_cfun.
24242         (tls_local_dynamic_base_64_<mode>): Ditto.
24243         (tls_global_dynamic_32): Set
24244         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
24245         to depend on SP register.
24246         (tls_local_dynamic_base_32): Ditto.
24248 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24250         * config/arm/arm_neon.h: Update comment.
24251         * config/arm/neon-docgen.ml: Delete.
24252         * config/arm/neon-gen.ml: Delete.
24253         * doc/arm-neon-intrinsics.texi: Update comment.
24255 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24257         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
24258         and v4sf versions.
24259         (vand, vorr, veor, vorn, vbic): Remove.
24260         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
24261         iterator.
24262         (neon_vsub_unspec): Likewise.
24263         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
24265 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24267         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
24268         (vadd_s16): Likewise.
24269         (vadd_s32): Likewise.
24270         (vadd_f32): Likewise.
24271         (vadd_u8): Likewise.
24272         (vadd_u16): Likewise.
24273         (vadd_u32): Likewise.
24274         (vadd_s64): Likewise.
24275         (vadd_u64): Likewise.
24276         (vaddq_s8): Likewise.
24277         (vaddq_s16): Likewise.
24278         (vaddq_s32): Likewise.
24279         (vaddq_s64): Likewise.
24280         (vaddq_f32): Likewise.
24281         (vaddq_u8): Likewise.
24282         (vaddq_u16): Likewise.
24283         (vaddq_u32): Likewise.
24284         (vaddq_u64): Likewise.
24285         (vmul_s8): Likewise.
24286         (vmul_s16): Likewise.
24287         (vmul_s32): Likewise.
24288         (vmul_f32): Likewise.
24289         (vmul_u8): Likewise.
24290         (vmul_u16): Likewise.
24291         (vmul_u32): Likewise.
24292         (vmul_p8): Likewise.
24293         (vmulq_s8): Likewise.
24294         (vmulq_s16): Likewise.
24295         (vmulq_s32): Likewise.
24296         (vmulq_f32): Likewise.
24297         (vmulq_u8): Likewise.
24298         (vmulq_u16): Likewise.
24299         (vmulq_u32): Likewise.
24300         (vsub_s8): Likewise.
24301         (vsub_s16): Likewise.
24302         (vsub_s32): Likewise.
24303         (vsub_f32): Likewise.
24304         (vsub_u8): Likewise.
24305         (vsub_u16): Likewise.
24306         (vsub_u32): Likewise.
24307         (vsub_s64): Likewise.
24308         (vsub_u64): Likewise.
24309         (vsubq_s8): Likewise.
24310         (vsubq_s16): Likewise.
24311         (vsubq_s32): Likewise.
24312         (vsubq_s64): Likewise.
24313         (vsubq_f32): Likewise.
24314         (vsubq_u8): Likewise.
24315         (vsubq_u16): Likewise.
24316         (vsubq_u32): Likewise.
24317         (vsubq_u64): Likewise.
24318         (vand_s8): Likewise.
24319         (vand_s16): Likewise.
24320         (vand_s32): Likewise.
24321         (vand_u8): Likewise.
24322         (vand_u16): Likewise.
24323         (vand_u32): Likewise.
24324         (vand_s64): Likewise.
24325         (vand_u64): Likewise.
24326         (vandq_s8): Likewise.
24327         (vandq_s16): Likewise.
24328         (vandq_s32): Likewise.
24329         (vandq_s64): Likewise.
24330         (vandq_u8): Likewise.
24331         (vandq_u16): Likewise.
24332         (vandq_u32): Likewise.
24333         (vandq_u64): Likewise.
24334         (vorr_s8): Likewise.
24335         (vorr_s16): Likewise.
24336         (vorr_s32): Likewise.
24337         (vorr_u8): Likewise.
24338         (vorr_u16): Likewise.
24339         (vorr_u32): Likewise.
24340         (vorr_s64): Likewise.
24341         (vorr_u64): Likewise.
24342         (vorrq_s8): Likewise.
24343         (vorrq_s16): Likewise.
24344         (vorrq_s32): Likewise.
24345         (vorrq_s64): Likewise.
24346         (vorrq_u8): Likewise.
24347         (vorrq_u16): Likewise.
24348         (vorrq_u32): Likewise.
24349         (vorrq_u64): Likewise.
24350         (veor_s8): Likewise.
24351         (veor_s16): Likewise.
24352         (veor_s32): Likewise.
24353         (veor_u8): Likewise.
24354         (veor_u16): Likewise.
24355         (veor_u32): Likewise.
24356         (veor_s64): Likewise.
24357         (veor_u64): Likewise.
24358         (veorq_s8): Likewise.
24359         (veorq_s16): Likewise.
24360         (veorq_s32): Likewise.
24361         (veorq_s64): Likewise.
24362         (veorq_u8): Likewise.
24363         (veorq_u16): Likewise.
24364         (veorq_u32): Likewise.
24365         (veorq_u64): Likewise.
24366         (vbic_s8): Likewise.
24367         (vbic_s16): Likewise.
24368         (vbic_s32): Likewise.
24369         (vbic_u8): Likewise.
24370         (vbic_u16): Likewise.
24371         (vbic_u32): Likewise.
24372         (vbic_s64): Likewise.
24373         (vbic_u64): Likewise.
24374         (vbicq_s8): Likewise.
24375         (vbicq_s16): Likewise.
24376         (vbicq_s32): Likewise.
24377         (vbicq_s64): Likewise.
24378         (vbicq_u8): Likewise.
24379         (vbicq_u16): Likewise.
24380         (vbicq_u32): Likewise.
24381         (vbicq_u64): Likewise.
24382         (vorn_s8): Likewise.
24383         (vorn_s16): Likewise.
24384         (vorn_s32): Likewise.
24385         (vorn_u8): Likewise.
24386         (vorn_u16): Likewise.
24387         (vorn_u32): Likewise.
24388         (vorn_s64): Likewise.
24389         (vorn_u64): Likewise.
24390         (vornq_s8): Likewise.
24391         (vornq_s16): Likewise.
24392         (vornq_s32): Likewise.
24393         (vornq_s64): Likewise.
24394         (vornq_u8): Likewise.
24395         (vornq_u16): Likewise.
24396         (vornq_u32): Likewise.
24397         (vornq_u64): Likewise.
24399 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24401         * wide-int.cc (UTItype): Define.
24402         (UDWtype): Define for appropriate W_TYPE_SIZE.
24404 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
24406         PR tree-optimization/59100
24407         * tree-ssa-phiopt.c: Include tree-inline.h.
24408         (neutral_element_p, absorbing_element_p): New functions.
24409         (value_replacement): Handle conditional binary operations with a
24410         neutral or absorbing element.
24412 2014-05-08  Richard Biener  <rguenther@suse.de>
24414         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
24415         folding the expression.
24416         (valueize_expr): Remove.
24417         (visit_reference_op_load): Do not valueize the result of
24418         vn_get_expr_for.
24419         (simplify_binary_expression): Likewise.
24420         (simplify_unary_expression): Likewise.
24422 2014-05-08  Richard Biener  <rguenther@suse.de>
24424         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
24425         looking at TYPE_ARG_TYPES.
24427 2014-05-08  Richard Biener  <rguenther@suse.de>
24429         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
24430         pointer propagation special-case.
24432 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
24434         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
24435         core part of address expressions.
24437 2014-05-08  Alan Modra  <amodra@gmail.com>
24439         PR target/60737
24440         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
24441         loads and stores when -mno-strict-align at any alignment.
24442         (expand_block_clear): Similarly.  Also correct calculation of
24443         instruction count.
24445 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24447         PR middle-end/39246
24448         * tree-complex.c (expand_complex_move): Keep line info when expanding
24449         complex move.
24450         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
24451         of complex expression. Use new argument to display correct location
24452         for values coming from phi statement.
24453         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
24454         (warn_uninitialized_phi): Pass location of phi argument to
24455         warn_uninit.
24456         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
24457         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
24459 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
24461         * config/rs6000/predicates.md (indexed_address_mem): New.
24462         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
24463         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
24464         fpstore_ux, fpstore_u.
24465         (sign_extend, indexed, update): New.
24466         (cell_micro): Adjust.
24467         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
24468         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
24469         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
24470         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
24471         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
24472         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
24473         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
24474         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
24475         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
24476         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
24477         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
24478         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
24479         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
24480         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
24481         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
24483         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
24484         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
24485         *vsx_extract_<mode>_store): Adjust.
24486         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
24487         is_cracked_insn, insn_must_be_first_in_group,
24488         insn_must_be_last_in_group): Adjust.
24490         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
24491         Adjust.
24492         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
24493         ppc440-fpstore): Adjust.
24494         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
24495         ppc476-fpstore): Adjust.
24496         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
24497         ppc601-fpstore): Adjust.
24498         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
24499         Adjust.
24500         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
24501         Adjust.
24502         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
24503         ppc7450-fpstore): Adjust.
24504         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
24505         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
24506         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
24507         Adjust.
24508         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
24509         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
24510         cell-fpstore, cell-fpstore-update): Adjust.
24511         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
24512         ppce300c3_store, ppce300c3_fpstore): Adjust.
24513         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
24514         e500mc_fpstore): Adjust.
24515         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
24516         e500mc64_store, e500mc64_fpstore): Adjust.
24517         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
24518         e5500_fpstore): Adjust.
24519         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
24520         e6500_fpstore): Adjust.
24521         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
24522         Adjust.
24523         * config/rs6000/power4.md (power4-load, power4-load-ext,
24524         power4-load-ext-update, power4-load-ext-update-indexed,
24525         power4-load-update-indexed, power4-load-update, power4-fpload,
24526         power4-fpload-update, power4-store, power4-store-update,
24527         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
24528         Adjust.
24529         * config/rs6000/power5.md (power5-load, power5-load-ext,
24530         power5-load-ext-update, power5-load-ext-update-indexed,
24531         power5-load-update-indexed, power5-load-update, power5-fpload,
24532         power5-fpload-update, power5-store, power5-store-update,
24533         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
24534         Adjust.
24535         * config/rs6000/power6.md (power6-load, power6-load-ext,
24536         power6-load-update, power6-load-update-indexed,
24537         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
24538         power6-fpload-update, power6-store, power6-store-update,
24539         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
24540         Adjust.
24541         * config/rs6000/power7.md (power7-load, power7-load-ext,
24542         power7-load-update, power7-load-update-indexed,
24543         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
24544         power7-fpload-update, power7-store, power7-store-update,
24545         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
24546         Adjust.
24547         * config/rs6000/power8.md (power8-load, power8-load-update,
24548         power8-load-ext, power8-load-ext-update, power8-fpload,
24549         power8-fpload-update, power8-store, power8-store-update-indexed,
24550         power8-fpstore, power8-fpstore-update): Adjust.
24551         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
24552         Adjust.
24553         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
24554         titan_lsu_store, titan_lsu_fpstore): Adjust.
24555         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
24557 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
24559         PR target/60884
24560         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
24561         unrolled byte insns.  Emit address increments after move insns.
24563 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
24565         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
24566         const_gimple, rather than a gimple.
24567         (gimple_call_builtin_p): Likewise, for the three variants.
24569         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
24570         (gimple_call_builtin_p): Likewise, for the three variants.
24572 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24574         PR tree-optimization/61095
24575         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
24577 2014-05-07  Richard Biener  <rguenther@suse.de>
24579         PR tree-optimization/61034
24580         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
24581         (maybe_skip_until): Use translate to take into account
24582         lattices when trying to do disambiguations.
24583         (get_continuation_for_phi_1): Likewise.
24584         (get_continuation_for_phi): Adjust for added translate arguments.
24585         (walk_non_aliased_vuses): Likewise.
24586         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
24587         (walk_non_aliased_vuses): Likewise.
24588         (call_may_clobber_ref_p_1): Declare.
24589         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
24590         calls.  Stop early if we are only supposed to disambiguate.
24591         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
24593 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
24595         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
24596         Emit an error when the function has arguments.
24598 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
24600         * cfgloop.h (unswitch_loops): Remove.
24601         * doc/passes.texi: Remove references to loop-unswitch.c
24602         * timevar.def (TV_LOOP_UNSWITCH): Remove.
24604 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
24606         * tree-vect-data-refs.c (vect_grouped_load_supported): New
24607         check for loads group of length 3.
24608         (vect_permute_load_chain): New permutations for loads group of
24609         length 3.
24610         * tree-vect-stmts.c (vect_model_load_cost): Change cost
24611         of vec_perm_shuffle for the new permutations.
24613 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
24615         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
24616         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
24617         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
24618         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
24619         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
24620         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
24621         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
24622         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
24624 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
24626         * loop-unswitch.c: Delete.
24628 2014-05-07  Richard Biener  <rguenther@suse.de>
24630         * config.gcc: Always set need_64bit_hwint to yes.
24632 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
24634         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
24635         of using optimize_size.
24637 2014-05-06  Mike Stump  <mikestump@comcast.net>
24639         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
24641 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
24643         * config/i386/sse.md (*mov<mode>_internal)
24644         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
24645         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
24646         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
24647         (*<code><mode>3, *andnot<mode>3<mask_name>)
24648         (<mask_codefor><code><mode>3<mask_name>): Only consider
24649         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
24651 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
24653         Revert:
24654         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
24656         * lra-constraints.c (valid_address_p): Move earlier in file.
24657         Add a constraint argument to the address_info version.
24658         (satisfies_memory_constraint_p): New function.
24659         (satisfies_address_constraint_p): Likewise.
24660         (process_alt_operands, curr_insn_transform): Use them.
24661         (process_address): Pass the constraint to valid_address_p when
24662         checking address operands.
24664 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
24666         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
24667         to their respective blocks.  Fix inadvertent use of "node".
24669 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
24671         * emit-rtl.c (init_derived_machine_modes): New functionm, split
24672         out from...
24673         (init_emit_once): ...here.
24674         * rtl.h (init_derived_machine_modes): Declare.
24675         * toplev.c (do_compile): Call it even if no_backend.
24677 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
24678             Mike Stump  <mikestump@comcast.net>
24679             Richard Sandiford  <rdsandiford@googlemail.com>
24680             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24682         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
24683         (rtx_equal_for_memref_p): Update comment.
24684         (adjust_offset_for_component_ref): Use wide-int interfaces.
24685         * builtins.c (get_object_alignment_2): Likewise.
24686         (c_readstr): Likewise.
24687         (target_char_cast): Add comment.
24688         (determine_block_size): Use wide-int interfaces.
24689         (expand_builtin_signbit): Likewise.
24690         (fold_builtin_int_roundingfn): Likewise.
24691         (fold_builtin_bitop): Likewise.
24692         (fold_builtin_bswap): Likewise.
24693         (fold_builtin_logarithm): Use signop.
24694         (fold_builtin_pow): Likewise.
24695         (fold_builtin_memory_op): Use wide-int interfaces.
24696         (fold_builtin_object_size): Likewise.
24697         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
24698         nb_iterations_estimate.
24699         (record_niter_bound): Use wide-int interfaces.
24700         (get_estimated_loop_iterations_int): Likewise.
24701         (get_estimated_loop_iterations): Likewise.
24702         (get_max_loop_iterations): Likewise.
24703         * cfgloop.h: Include wide-int.h.
24704         (struct nb_iter_bound): Change bound to widest_int.
24705         (struct loop): Change nb_iterations_upper_bound and
24706         nb_iterations_estimate to widest_int.
24707         (record_niter_bound): Switch to use widest_int.
24708         (get_estimated_loop_iterations): Likewise.
24709         (get_max_loop_iterations): Likewise.
24710         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
24711         update for wide-int.
24712         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
24713         * combine.c (try_combine): Likewise.
24714         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
24715         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
24716         interfaces.
24717         (aarch64_float_const_representable_p): Likewise.
24718         * config/arc/arc.c: Include wide-int.h.
24719         (arc_can_use_doloop_p): Use wide-int interfaces.
24720         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
24721         (vfp3_const_double_index): Likewise.
24722         * config/avr/avr.c (avr_out_round): Likewise.
24723         (avr_fold_builtin): Likewise.
24724         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
24725         (bfin_can_use_doloop_p): Likewise.
24726         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
24727         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
24728         * config/i386/i386.c: Include wide-int.h.
24729         (ix86_data_alignment): Use wide-int interfaces.
24730         (ix86_local_alignment): Likewise.
24731         (ix86_emit_swsqrtsf): Update real_from_integer.
24732         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
24733         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
24734         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
24735         (zero_constant): Likewise.
24736         (input_operand): Likewise.
24737         (splat_input_operand): Likewise.
24738         (non_logical_cint_operand): Change const_double to const_wide_int.
24739         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
24740         (easy_altivec_constant): Remove comment.
24741         (paired_expand_vector_init): Use CONSTANT_P.
24742         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
24743         (rs6000_emit_move): Update checks.
24744         (rs6000_aggregate_candidate): Use wide-int interfaces.
24745         (rs6000_expand_ternop_builtin): Likewise.
24746         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
24747         (rs6000_assemble_integer): Likewise.
24748         (rs6000_hash_constant): Likewise.
24749         (output_toc): Likewise.
24750         (rs6000_rtx_costs): Likewise.
24751         (rs6000_emit_swrsqrt); Update call to real_from_integer.
24752         * config/rs6000/rs6000-c.c: Include wide-int.h.
24753         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
24754         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
24755         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
24756         Handle CONST_WIDE_INT.
24757         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
24758         Use tree_fits_uhwi_p.
24759         * config/sparc/sparc.c: Include wide-int.h.
24760         (sparc_fold_builtin): Use wide-int interfaces.
24761         * config/vax/vax.c: Include wide-int.h.
24762         (vax_float_literal): Use real_from_integer.
24763         * coretypes.h (struct hwivec_def): New.
24764         (hwivec): New.
24765         (const_hwivec): New.
24766         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
24767         (equiv_constant): Handle CONST_WIDE_INT.
24768         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
24769         (cselib_hash_rtx): Handle CONST_WIDE_INT.
24770         * dbxout.c (stabstr_U): Use wide-int interfaces.
24771         (dbxout_type): Update to use cst_fits_shwi_p.
24772         * defaults.h (LOG2_BITS_PER_UNIT): Define.
24773         (TARGET_SUPPORTS_WIDE_INT): Add default.
24774         * dfp.c: Include wide-int.h.
24775         (decimal_real_to_integer2): Use wide-int interfaces and rename to
24776         decimal_real_to_integer.
24777         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
24778         decimal_real_to_integer.
24779         * doc/generic.texi (Constant expressions): Update for wide_int.
24780         * doc/rtl.texi (const_double): Likewise.
24781         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
24782         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
24783         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
24784         (REAL_VALUE_FROM_INT): Remove.
24785         (TARGET_SUPPORTS_WIDE_INT): New.
24786         * doc/tm.texi: Regenerate.
24787         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
24788         * double-int.h: Include wide-int.h.
24789         (struct wi::int_traits): New.
24790         * dwarf2out.c (get_full_len): New.
24791         (dw_val_equal_p): Add case dw_val_class_wide_int.
24792         (size_of_loc_descr): Likewise.
24793         (output_loc_operands): Likewise.
24794         (insert_double): Remove.
24795         (insert_wide_int): New.
24796         (add_AT_wide): New.
24797         (print_die): Add case dw_val_class_wide_int.
24798         (attr_checksum): Likewise.
24799         (attr_checksum_ordered): Likewise.
24800         (same_dw_val_p): Likewise.
24801         (size_of_die): Likewise.
24802         (value_format): Likewise.
24803         (output_die): Likewise.
24804         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
24805         Use wide-int.
24806         (clz_loc_descriptor): Use wide-int interfaces.
24807         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
24808         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
24809         (round_up_to_align): Use wide-int interfaces.
24810         (field_byte_offset): Likewise.
24811         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
24812         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
24813         CONST_DOUBLE handling.  Use wide-int interfaces.
24814         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
24815         (gen_enumeration_type_die): Use add_AT_wide.
24816         (hash_loc_operands): Add case dw_val_class_wide_int.
24817         (compare_loc_operands): Likewise.
24818         * dwarf2out.h: Include wide-int.h.
24819         (wide_int_ptr): New.
24820         (enum dw_val_class): Add dw_val_class_wide_int.
24821         (struct dw_val_struct): Add val_wide.
24822         * emit-rtl.c (const_wide_int_htab): New.
24823         (const_wide_int_htab_hash): New.
24824         (const_wide_int_htab_eq): New.
24825         (lookup_const_wide_int): New.
24826         (const_double_htab_hash): Use wide-int interfaces.
24827         (const_double_htab_eq): Likewise.
24828         (rtx_to_double_int): Conditionally compile for wide-int.
24829         (immed_double_int_const): Rename to immed_wide_int_const and
24830         update for wide-int.
24831         (immed_double_const): Conditionally compile for wide-int.
24832         (init_emit_once): Use wide-int interfaces.
24833         * explow.c (plus_constant): Likewise.
24834         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
24835         (lshift_value): Use wide-int interfaces.
24836         (expand_mult): Likewise.
24837         (choose_multiplier): Likewise.
24838         (expand_smod_pow2): Likewise.
24839         (make_tree): Likewise.
24840         * expr.c (convert_modes): Consolidate handling of constants.
24841         Use wide-int interfaces.
24842         (emit_group_load_1): Add note.
24843         (store_expr): Update comment.
24844         (get_inner_reference): Use wide-int interfaces.
24845         (expand_constructor): Update comment.
24846         (expand_expr_real_2): Use wide-int interfaces.
24847         (expand_expr_real_1): Likewise.
24848         (reduce_to_bit_field_precision): Likewise.
24849         (const_vector_from_tree): Likewise.
24850         * final.c: Include wide-int-print.h.
24851         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
24852         * fixed-value.c: Include wide-int.h.
24853         (fixed_from_string): Use wide-int interfaces.
24854         (fixed_to_decimal): Likewise.
24855         (fixed_convert_from_real): Likewise.
24856         (real_convert_from_fixed): Likewise.
24857         * fold-const.h (mem_ref_offset): Return an offset_int.
24858         (div_if_zero_remainder): Remove code parameter.
24859         * fold-const.c (div_if_zero_remainder): Remove code parameter.
24860         Use wide-int interfaces.
24861         (may_negate_without_overflow_p): Use wide-int interfaces.
24862         (negate_expr_p): Likewise.
24863         (fold_negate_expr): Likewise.
24864         (int_const_binop_1): Likewise.
24865         (const_binop): Likewise.
24866         (fold_convert_const_int_from_int): Likewise.
24867         (fold_convert_const_int_from_real): Likewise.
24868         (fold_convert_const_int_from_fixed): Likewise.
24869         (fold_convert_const_fixed_from_int): Likewise.
24870         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
24871         (sign_bit_p): Use wide-int interfaces.
24872         (make_range_step): Likewise.
24873         (build_range_check): Likewise.  Pass an integer of the correct type
24874         instead of using integer_one_node.
24875         (range_predecessor): Pass an integer of the correct type instead
24876         of using integer_one_node.
24877         (range_successor): Likewise.
24878         (merge_ranges): Likewise.
24879         (unextend): Use wide-int interfaces.
24880         (extract_muldiv_1): Likewise.
24881         (fold_div_compare): Likewise.
24882         (fold_single_bit_test): Likewise.
24883         (fold_sign_changed_comparison): Likewise.
24884         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
24885         (fold_plusminus_mult_expr): Use wide-int interfaces.
24886         (native_encode_int): Likewise.
24887         (native_interpret_int): Likewise.
24888         (fold_unary_loc): Likewise.
24889         (pointer_may_wrap_p): Likewise.
24890         (size_low_cst): Likewise.
24891         (mask_with_tz): Likewise.
24892         (fold_binary_loc): Likewise.
24893         (fold_ternary_loc): Likewise.
24894         (multiple_of_p): Likewise.
24895         (tree_call_nonnegative_warnv_p): Update calls to
24896         tree_int_cst_min_precision and real_from_integer.
24897         (fold_negate_const): Use wide-int interfaces.
24898         (fold_abs_const): Likewise.
24899         (fold_relational_const): Use tree_int_cst_lt.
24900         (round_up_loc): Use wide-int interfaces.
24901         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
24902         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
24903         * gengtype.c: Remove include of double-int.h.
24904         (do_typedef): Use wide-int interfaces.
24905         (open_base_files): Add wide-int.h.
24906         (main): Add offset_int and widest_int typedefs.
24907         * gengtype-lex.l: Handle "^".
24908         (CXX_KEYWORD): Add "static".
24909         * gengtype-parse.c (require3): New.
24910         (require_template_declaration): Handle constant template arguments
24911         and nested templates.
24912         * gengtype-state.c: Don't include "double-int.h".
24913         * genpreds.c (write_one_predicate_function): Update comment.
24914         (write_tm_constrs_h): Add check for hval and lval use in
24915         CONST_WIDE_INT.
24916         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
24917         (add_to_sequence): Likewise.
24918         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
24919         and const_double_operand.
24920         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
24921         interfaces.
24922         * gimple-fold.c (get_base_constructor): Likewise.
24923         (fold_array_ctor_reference): Likewise.
24924         (fold_nonarray_ctor_reference): Likewise.
24925         (fold_const_aggregate_ref_1): Likewise.
24926         (gimple_val_nonnegative_real_p): Likewise.
24927         (gimple_fold_indirect_ref): Likewise.
24928         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
24929         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
24930         (struct slsr_cand_d): Change index to be widest_int.
24931         (struct incr_info_d): Change incr to be widest_int.
24932         (alloc_cand_and_find_basis): Use wide-int interfaces.
24933         (slsr_process_phi): Likewise.
24934         (backtrace_base_for_ref): Likewise.  Return a widest_int.
24935         (restructure_reference): Take a widest_int instead of a double_int.
24936         (slsr_process_ref): Use wide-int interfaces.
24937         (create_mul_ssa_cand): Likewise.
24938         (create_mul_imm_cand): Likewise.
24939         (create_add_ssa_cand): Likewise.
24940         (create_add_imm_cand): Take a widest_int instead of a double_int.
24941         (slsr_process_add): Use wide-int interfaces.
24942         (slsr_process_cast): Likewise.
24943         (slsr_process_copy): Likewise.
24944         (dump_candidate): Likewise.
24945         (dump_incr_vec): Likewise.
24946         (replace_ref): Likewise.
24947         (cand_increment): Likewise.  Return a widest_int.
24948         (cand_abs_increment): Likewise.
24949         (replace_mult_candidate): Take a widest_int instead of a double_int.
24950         (replace_unconditional_candidate): Use wide-int interfaces.
24951         (incr_vec_index): Take a widest_int instead of a double_int.
24952         (create_add_on_incoming_edge): Likewise.
24953         (create_phi_basis): Use wide-int interfaces.
24954         (replace_conditional_candidate): Likewise.
24955         (record_increment): Take a widest_int instead of a double_int.
24956         (record_phi_increments): Use wide-int interfaces.
24957         (phi_incr_cost): Take a widest_int instead of a double_int.
24958         (lowest_cost_path): Likewise.
24959         (total_savings): Likewise.
24960         (analyze_increments): Use wide-int interfaces.
24961         (ncd_with_phi): Take a widest_int instead of a double_int.
24962         (ncd_of_cand_and_phis): Likewise.
24963         (nearest_common_dominator_for_cands): Likewise.
24964         (insert_initializers): Use wide-int interfaces.
24965         (all_phi_incrs_profitable): Likewise.
24966         (replace_one_candidate): Likewise.
24967         (replace_profitable_candidates): Likewise.
24968         * godump.c: Include wide-int-print.h.
24969         (go_output_typedef): Use wide-int interfaces.
24970         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
24971         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
24972         (build_loop_iteration_domains): Likewise.
24973         * hooks.h: Include wide-int.h rather than double-int.h.
24974         (hook_bool_dint_dint_uint_bool_true): Delete.
24975         (hook_bool_wint_wint_uint_bool_true): Declare.
24976         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
24977         (hook_bool_wint_wint_uint_bool_true): New.
24978         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
24979         interfaces.
24980         (ubsan_expand_si_overflow_mul_check): Likewise.
24981         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
24982         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
24983         (get_ancestor_addr_info): Likewise.
24984         (ipa_modify_call_arguments): Likewise.
24985         * loop-doloop.c (doloop_modify): Likewise.
24986         (doloop_optimize): Likewise.
24987         * loop-iv.c (iv_number_of_iterations): Likewise.
24988         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
24989         (unroll_loop_constant_iterations): Likewise.
24990         (decide_unroll_runtime_iterations): Likewise.
24991         (unroll_loop_runtime_iterations): Likewise.
24992         (decide_peel_simple): Likewise.
24993         (decide_unroll_stupid): Likewise.
24994         * lto-streamer-in.c (streamer_read_wi): Add.
24995         (input_cfg): Use wide-int interfaces.
24996         (lto_input_tree_1): Likewise.
24997         * lto-streamer-out.c (streamer_write_wi): Add.
24998         (hash_tree): Use wide-int interfaces.
24999         (output_cfg): Likewise.
25000         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
25001         (GTFILES): Add wide-int.h and signop.h.
25002         (TAGS): Look for .cc files too.
25003         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
25004         * optabs.c (expand_subword_shift): Likewise.
25005         (expand_doubleword_shift): Likewise.
25006         (expand_absneg_bit): Likewise.
25007         (expand_copysign_absneg): Likewise.
25008         (expand_copysign_bit): Likewise.
25009         * postreload.c (reload_cse_simplify_set): Likewise.
25010         * predict.c (predict_iv_comparison): Likewise.
25011         * pretty-print.h: Include wide-int-print.h.
25012         (pp_wide_int) New.
25013         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
25014         * print-tree.c: Include wide-int-print.h.
25015         (print_node_brief): Use wide-int interfaces.
25016         (print_node): Likewise.
25017         * read-rtl.c (validate_const_wide_int): New.
25018         (read_rtx_code): Add CONST_WIDE_INT case.
25019         * real.c: Include wide-int.h.
25020         (real_to_integer2): Delete.
25021         (real_to_integer): New function, returning a wide_int.
25022         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
25023         (ten_to_ptwo): Update call to real_from_integer.
25024         (real_digit): Likewise.
25025         * real.h: Include signop.h, wide-int.h and insn-modes.h.
25026         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
25027         (REAL_VALUE_TO_INT): Delete.
25028         (real_to_integer): Declare a wide-int form.
25029         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
25030         * recog.c (const_int_operand): Improve comment.
25031         (const_scalar_int_operand): New.
25032         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
25033         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
25034         (split_double): Likewise.
25035         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
25036         (rtx_size): Likewise.
25037         (rtx_alloc_stat_v): New.
25038         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
25039         (cwi_output_hex): New.
25040         (iterative_hash_rtx): Handle CONST_WIDE_INT.
25041         (cwi_check_failed_bounds): New.
25042         * rtl.def (CONST_WIDE_INT): New.
25043         * rtl.h: Include <utility> and wide-int.h.
25044         (struct hwivec_def): New.
25045         (CWI_GET_NUM_ELEM): New.
25046         (CWI_PUT_NUM_ELEM): New.
25047         (struct rtx_def): Add num_elem and hwiv.
25048         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
25049         (CASE_CONST_UNIQUE): Likewise.
25050         (CASE_CONST_ANY): Likewise.
25051         (CONST_SCALAR_INT_P): Likewise.
25052         (CONST_WIDE_INT_P): New.
25053         (CWI_ELT): New.
25054         (HWIVEC_CHECK): New.
25055         (cwi_check_failed_bounds): New.
25056         (CWI_ELT): New.
25057         (HWIVEC_CHECK): New.
25058         (CONST_WIDE_INT_VEC) New.
25059         (CONST_WIDE_INT_NUNITS) New.
25060         (CONST_WIDE_INT_ELT) New.
25061         (rtx_mode_t): New type.
25062         (wi::int_traits <rtx_mode_t>): New.
25063         (wi::shwi): New.
25064         (wi::min_value): New.
25065         (wi::max_value): New.
25066         (rtx_alloc_v) New.
25067         (const_wide_int_alloc): New.
25068         (immed_wide_int_const): New.
25069         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
25070         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
25071         * signop.h: New file.
25072         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
25073         (simplify_const_unary_operation): Use wide-int interfaces.
25074         (simplify_binary_operation_1): Likewise.
25075         (simplify_const_binary_operation): Likewise.
25076         (simplify_const_relational_operation): Likewise.
25077         (simplify_immed_subreg): Likewise.
25078         * stmt.c (expand_case): Likewise.
25079         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
25080         signop rather than a bool.
25081         * stor-layout.c (layout_type): Use wide-int interfaces.
25082         (initialize_sizetypes): Update calls to
25083         set_min_and_max_values_for_integral_type.
25084         (set_min_and_max_values_for_integral_type): Take a signop rather
25085         than a bool.  Use wide-int interfaces.
25086         (fixup_signed_type): Update accordingly.  Remove
25087         HOST_BITS_PER_DOUBLE_INT limit.
25088         (fixup_unsigned_type): Likewise.
25089         * system.h (STATIC_CONSTANT_P): New.
25090         (STATIC_ASSERT): New.
25091         * target.def (can_use_doloop_p): Take widest_ints rather than
25092         double_ints.
25093         * target.h: Include wide-int.h rather than double-int.h.
25094         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
25095         than double_ints.
25096         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
25097         rather than INT_CST_LT_UNSIGNED.
25098         (can_use_doloop_if_innermost): Take widest_ints rather than
25099         double_ints.
25100         * tree-affine.c: Include wide-int-print.h.
25101         (double_int_ext_for_comb): Delete.
25102         (wide_int_ext_for_comb): New.
25103         (aff_combination_zero): Use wide-int interfaces.
25104         (aff_combination_const): Take a widest_int instead of a double_int.
25105         (aff_combination_elt): Use wide-int interfaces.
25106         (aff_combination_scale): Take a widest_int instead of a double_int.
25107         (aff_combination_add_elt): Likewise.
25108         (aff_combination_add_cst): Likewise.
25109         (aff_combination_add): Use wide-int interfaces.
25110         (aff_combination_convert): Likewise.
25111         (tree_to_aff_combination): Likewise.
25112         (add_elt_to_tree): Take a widest_int instead of a double_int.
25113         (aff_combination_to_tree): Use wide-int interfaces.
25114         (aff_combination_remove_elt): Likewise.
25115         (aff_combination_add_product): Take a widest_int instead of
25116         a double_int.
25117         (aff_combination_mult): Use wide-int interfaces.
25118         (aff_combination_expand): Likewise.
25119         (double_int_constant_multiple_p): Delete.
25120         (wide_int_constant_multiple_p): New.
25121         (aff_combination_constant_multiple_p): Take a widest_int pointer
25122         instead of a double_int pointer.
25123         (print_aff): Use wide-int interfaces.
25124         (get_inner_reference_aff): Take a widest_int pointer
25125         instead of a double_int pointer.
25126         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
25127         * tree-affine.h: Include wide-int.h.
25128         (struct aff_comb_elt): Change type of coef to widest_int.
25129         (struct affine_tree_combination): Change type of offset to widest_int.
25130         (double_int_ext_for_comb): Delete.
25131         (wide_int_ext_for_comb): New.
25132         (aff_combination_const): Use widest_int instead of double_int.
25133         (aff_combination_scale): Likewise.
25134         (aff_combination_add_elt): Likewise.
25135         (aff_combination_constant_multiple_p): Likewise.
25136         (get_inner_reference_aff): Likewise.
25137         (aff_comb_cannot_overlap_p): Likewise.
25138         (aff_combination_zero_p): Use wide-int interfaces.
25139         * tree.c: Include tree.h.
25140         (init_ttree): Use make_int_cst.
25141         (tree_code_size): Removed code for INTEGER_CST case.
25142         (tree_size): Add INTEGER_CST case.
25143         (make_node_stat): Update comment.
25144         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
25145         (build_int_cst_type): Use wide-int interfaces.
25146         (double_int_to_tree): Likewise.
25147         (double_int_fits_to_tree_p): Delete.
25148         (force_fit_type_double): Delete.
25149         (force_fit_type): New.
25150         (int_cst_hash_hash): Use wide-int interfaces.
25151         (int_cst_hash_eq): Likewise.
25152         (build_int_cst_wide): Delete.
25153         (wide_int_to_tree): New.
25154         (cache_integer_cst): Use wide-int interfaces.
25155         (build_low_bits_mask): Likewise.
25156         (cst_and_fits_in_hwi): Likewise.
25157         (real_value_from_int_cst): Likewise.
25158         (make_int_cst_stat): New.
25159         (integer_zerop): Use wide_int interfaces.
25160         (integer_onep): Likewise.
25161         (integer_all_onesp): Likewise.
25162         (integer_pow2p): Likewise.
25163         (integer_nonzerop): Likewise.
25164         (tree_log2): Likewise.
25165         (tree_floor_log2): Likewise.
25166         (tree_ctz): Likewise.
25167         (int_size_in_bytes): Likewise.
25168         (mem_ref_offset): Return an offset_int rather than a double_int.
25169         (build_type_attribute_qual_variant): Use wide_int interfaces.
25170         (type_hash_eq): Likewise
25171         (tree_int_cst_equal): Likewise.
25172         (tree_int_cst_lt): Delete.
25173         (tree_int_cst_compare): Likewise.
25174         (tree_fits_shwi_p): Use wide_int interfaces.
25175         (tree_fits_uhwi_p): Likewise.
25176         (tree_int_cst_sign_bit): Likewise.
25177         (tree_int_cst_sgn): Likewise.
25178         (tree_int_cst_min_precision): Take a signop rather than a bool.
25179         (simple_cst_equal): Use wide_int interfaces.
25180         (compare_tree_int): Likewise.
25181         (iterative_hash_expr): Likewise.
25182         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
25183         INT_CST_LT.
25184         (get_type_static_bounds): Use wide_int interfaces.
25185         (tree_int_cst_elt_check_failed): New.
25186         (build_common_tree_nodes): Reordered to set prec before filling in
25187         value.
25188         (int_cst_value): Check cst_and_fits_in_hwi.
25189         (widest_int_cst_value): Use wide_int interfaces.
25190         (upper_bound_in_type): Likewise.
25191         (lower_bound_in_type): Likewise.
25192         (num_ending_zeros): Likewise.
25193         (drop_tree_overflow): Likewise.
25194         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
25195         (gen_conditions_for_pow_cst_base): Likewise.
25196         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
25197         (group_case_labels_stmt): Use wide-int interfaces.
25198         (verify_gimple_assign_binary): Likewise.
25199         (print_loop): Likewise.
25200         * tree-chrec.c (tree_fold_binomial): Likewise.
25201         * tree-core.h (struct tree_base): Add int_length.
25202         (struct tree_int_cst): Change rep of value.
25203         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
25204         (dr_may_alias_p): Likewise.
25205         (max_stmt_executions_tree): Likewise.
25206         * tree.def (INTEGER_CST): Update comment.
25207         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
25208         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
25209         * tree-dump.c: Include wide-int.h and wide-int-print.h.
25210         (dequeue_and_dump): Use wide-int interfaces.
25211         * tree.h: Include wide-int.h.
25212         (NULL_TREE): Moved to earlier loc in file.
25213         (TREE_INT_CST_ELT_CHECK): New.
25214         (tree_int_cst_elt_check_failed): New.
25215         (TYPE_SIGN): New.
25216         (TREE_INT_CST): Delete.
25217         (TREE_INT_CST_LOW): Use wide-int interfaces.
25218         (TREE_INT_CST_HIGH): Delete.
25219         (TREE_INT_CST_NUNITS): New.
25220         (TREE_INT_CST_EXT_NUNITS): Likewise.
25221         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
25222         (TREE_INT_CST_ELT): Likewise.
25223         (INT_CST_LT): Delete.
25224         (tree_int_cst_elt_check): New (two forms).
25225         (type_code_size): Update comment.
25226         (make_int_cst_stat, make_int_cst): New.
25227         (tree_to_double_int): Delete.
25228         (double_int_fits_to_tree_p): Delete.
25229         (force_fit_type_double): Delete.
25230         (build_int_cstu): Replace with out-of-line function.
25231         (build_int_cst_wide): Delete.
25232         (tree_int_cst_lt): Define inline.
25233         (tree_int_cst_le): New.
25234         (tree_int_cst_compare): Define inline.
25235         (tree_int_cst_min_precision): Take a signop rather than a bool.
25236         (wi::int_traits <const_tree>): New.
25237         (wi::int_traits <tree>): New.
25238         (wi::extended_tree): New.
25239         (wi::int_traits <wi::extended_tree>): New.
25240         (wi::to_widest): New.
25241         (wi::to_offset): New.
25242         (wi::fits_to_tree_p): New.
25243         (wi::min_value): New.
25244         (wi::max_value): New.
25245         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
25246         (copy_tree_body_r): Likewise.
25247         * tree-object-size.c (compute_object_offset): Likewise.
25248         (addr_object_size): Likewise.
25249         * tree-predcom.c: Include wide-int-print.h.
25250         (struct dref_d): Change type of offset to widest_int.
25251         (dump_dref): Call wide-int printer.
25252         (aff_combination_dr_offset): Use wide-int interfaces.
25253         (determine_offset): Take a widest_int pointer rather than a
25254         double_int pointer.
25255         (split_data_refs_to_components): Use wide-int interfaces.
25256         (suitable_component_p): Likewise.
25257         (order_drefs): Likewise.
25258         (add_ref_to_chain): Likewise.
25259         (valid_initializer_p): Likewise.
25260         (determine_roots_comp): Likewise.
25261         * tree-pretty-print.c: Include wide-int-print.h.
25262         (dump_generic_node): Use wide-int interfaces.
25263         * tree-sra.c (sra_ipa_modify_expr): Likewise.
25264         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
25265         (move_fixed_address_to_symbol): Likewise.
25266         (move_hint_to_base): Likewise.
25267         (move_pointer_to_base): Likewise.
25268         (move_variant_to_index): Likewise.
25269         (most_expensive_mult_to_index): Likewise.
25270         (addr_to_parts): Likewise.
25271         (copy_ref_info): Likewise.
25272         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25273         (indirect_refs_may_alias_p): Likewise.
25274         (stmt_kills_ref_p_1): Likewise.
25275         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
25276         * tree-ssa-ccp.c: Update comment at top of file.  Include
25277         wide-int-print.h.
25278         (struct prop_value_d): Change type of mask to widest_int.
25279         (extend_mask): New function.
25280         (dump_lattice_value): Use wide-int interfaces.
25281         (get_default_value): Likewise.
25282         (set_constant_value): Likewise.
25283         (set_value_varying): Likewise.
25284         (valid_lattice_transition): Likewise.
25285         (set_lattice_value): Likewise.
25286         (value_to_double_int): Delete.
25287         (value_to_wide_int): New.
25288         (get_value_from_alignment): Use wide-int interfaces.
25289         (get_value_for_expr): Likewise.
25290         (do_dbg_cnt): Likewise.
25291         (ccp_finalize): Likewise.
25292         (ccp_lattice_meet): Likewise.
25293         (bit_value_unop_1): Use widest_ints rather than double_ints.
25294         (bit_value_binop_1): Likewise.
25295         (bit_value_unop): Use wide-int interfaces.
25296         (bit_value_binop): Likewise.
25297         (bit_value_assume_aligned): Likewise.
25298         (evaluate_stmt): Likewise.
25299         (ccp_fold_stmt): Likewise.
25300         (visit_cond_stmt): Likewise.
25301         (ccp_visit_stmt): Likewise.
25302         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
25303         (constant_pointer_difference): Likewise.
25304         (associate_pointerplus): Likewise.
25305         (combine_conversions): Likewise.
25306         * tree-ssa-loop.h: Include wide-int.h.
25307         (struct tree_niter_desc): Change type of max to widest_int.
25308         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
25309         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
25310         (remove_redundant_iv_tests): Likewise.
25311         (canonicalize_loop_induction_variables): Likewise.
25312         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
25313         (constant_multiple_of): Take a widest_int pointer instead of
25314         a double_int pointer.
25315         (get_computation_aff): Use wide-int interfaces.
25316         (ptr_difference_cost): Likewise.
25317         (difference_cost): Likewise.
25318         (get_loop_invariant_expr_id): Likewise.
25319         (get_computation_cost_at): Likewise.
25320         (iv_elimination_compare_lt): Likewise.
25321         (may_eliminate_iv): Likewise.
25322         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
25323         instead of double_int.
25324         (max_loop_iterations): Likewise.
25325         (max_stmt_executions): Likewise.
25326         (estimated_stmt_executions): Likewise.
25327         * tree-ssa-loop-niter.c: Include wide-int-print.h.
25328         (split_to_var_and_offset): Use wide-int interfaces.
25329         (determine_value_range): Likewise.
25330         (bound_difference_of_offsetted_base): Likewise.
25331         (bounds_add): Take a widest_int instead of a double_int.
25332         (number_of_iterations_ne_max): Use wide-int interfaces.
25333         (number_of_iterations_ne): Likewise.
25334         (number_of_iterations_lt_to_ne): Likewise.
25335         (assert_loop_rolls_lt): Likewise.
25336         (number_of_iterations_lt): Likewise.
25337         (number_of_iterations_le): Likewise.
25338         (number_of_iterations_cond): Likewise.
25339         (number_of_iterations_exit): Likewise.
25340         (finite_loop_p): Likewise.
25341         (derive_constant_upper_bound_assign): Likewise.
25342         (derive_constant_upper_bound): Return a widest_int.
25343         (derive_constant_upper_bound_ops): Likewise.
25344         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
25345         (record_estimate): Take a widest_int rather than a double_int.
25346         (record_nonwrapping_iv): Use wide-int interfaces.
25347         (double_int_cmp): Delete.
25348         (wide_int_cmp): New.
25349         (bound_index): Take a widest_int rather than a double_int.
25350         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
25351         (maybe_lower_iteration_bound): Likewise.
25352         (estimate_numbers_of_iterations_loop): Likewise.
25353         (estimated_loop_iterations): Take a widest_int pointer than than
25354         a double_int pointer.
25355         (estimated_loop_iterations_int): Use wide-int interfaces.
25356         (max_loop_iterations): Take a widest_int pointer than than
25357         a double_int pointer.
25358         (max_loop_iterations_int): Use wide-int interfaces.
25359         (max_stmt_executions): Take a widest_int pointer than than
25360         a double_int pointer.
25361         (estimated_stmt_executions): Likewise.
25362         (n_of_executions_at_most): Use wide-int interfaces.
25363         (scev_probably_wraps_p): Likewise.
25364         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
25365         to real_to_integer.
25366         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
25367         interfaces.
25368         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
25369         double_ints.  Adjust for trailing_wide_ints <3> representation.
25370         (set_nonzero_bits): Likewise.
25371         (get_range_info): Return wide_ints rather than double_ints.
25372         Adjust for trailing_wide_ints <3> representation.
25373         (get_nonzero_bits): Likewise.
25374         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
25375         representation.
25376         * tree-ssanames.h (struct range_info_def): Replace min, max and
25377         nonzero_bits with a trailing_wide_ints <3>.
25378         (set_range_info): Use wide_int_refs rather than double_ints.
25379         (set_nonzero_bits): Likewise.
25380         (get_range_info): Return wide_ints rather than double_ints.
25381         (get_nonzero_bits): Likewise.
25382         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
25383         * tree-ssa-pre.c (phi_translate_1): Likewise.
25384         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
25385         (acceptable_pow_call): Likewise.
25386         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
25387         interfaces.
25388         (vn_reference_fold_indirect): Likewise.
25389         (vn_reference_maybe_forwprop_address): Likewise.
25390         (valueize_refs_1): Likewise.
25391         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
25392         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
25393         tree_int_cst_lt and tree_int_cst_le.
25394         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
25395         interfaces.
25396         (streamer_alloc_tree): Likewise.
25397         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
25398         (streamer_write_tree_header): Likewise.
25399         (streamer_write_integer_cst): Likewise.
25400         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
25401         (build_constructors): Likewise.
25402         (array_value_type): Likewise.
25403         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
25404         (vect_check_gather): Likewise.
25405         * tree-vect-generic.c (build_replicated_const): Likewise.
25406         (expand_vector_divmod): Likewise.
25407         * tree-vect-loop.c (vect_transform_loop): Likewise.
25408         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
25409         (vect_do_peeling_for_alignment): Likewise.
25410         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
25411         * tree-vrp.c: Include wide-int.h.
25412         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
25413         (extract_range_from_assert): Use wide-int interfaces.
25414         (vrp_int_const_binop): Likewise.
25415         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
25416         double_int pointers.
25417         (ranges_from_anti_range): Use wide-int interfaces.
25418         (quad_int_cmp): Delete.
25419         (quad_int_pair_sort): Likewise.
25420         (extract_range_from_binary_expr_1): Use wide-int interfaces.
25421         (extract_range_from_unary_expr_1): Likewise.
25422         (adjust_range_with_scev): Likewise.
25423         (masked_increment): Take and return wide_ints rather than double_ints.
25424         (register_edge_assert_for_2): Use wide-int interfaces.
25425         (check_array_ref): Likewise.
25426         (search_for_addr_array): Likewise.
25427         (maybe_set_nonzero_bits): Likewise.
25428         (union_ranges): Pass an integer of the correct type instead of
25429         using integer_one_node.
25430         (intersect_ranges): Likewise.
25431         (simplify_truth_ops_using_ranges): Likewise.
25432         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
25433         (range_fits_type_p): Likewise.
25434         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
25435         a bool.
25436         (simplify_conversion_using_ranges): Use wide-int interfaces.
25437         (simplify_float_conversion_using_ranges): Likewise.
25438         (vrp_finalize): Likewise.
25439         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
25440         (gimple_stringops_transform): Likewise.
25441         * varasm.c (decode_addr_const): Likewise.
25442         (const_hash_1): Likewise.
25443         (const_rtx_hash_1): Likewise
25444         (output_constant): Likewise.
25445         (array_size_for_constructor): Likewise.
25446         (output_constructor_regular_field): Likewise.
25447         (output_constructor_bitfield): Likewise.
25448         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
25449         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
25450         GENERATOR_FILEs.
25451         * gencheck.c: Define BITS_PER_UNIT.
25452         * wide-int.cc: New.
25453         * wide-int.h: New.
25454         * wide-int-print.cc: New.
25455         * wide-int-print.h: New.
25457 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25459         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
25461 2014-05-06  Richard Biener  <rguenther@suse.de>
25463         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
25464         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
25465         (TODO_verify_all): Adjust.
25466         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
25467         TODO_verify_stmts and TODO_verify_rtl_sharing.
25468         * bb-reorder.c: Likewise.
25469         * cfgexpand.c: Likewise.
25470         * cprop.c: Likewise.
25471         * cse.c: Likewise.
25472         * function.c: Likewise.
25473         * fwprop.c: Likewise.
25474         * gcse.c: Likewise.
25475         * gimple-ssa-isolate-paths.c: Likewise.
25476         * gimple-ssa-strength-reduction.c: Likewise.
25477         * ipa-split.c: Likewise.
25478         * loop-init.c: Likewise.
25479         * loop-unroll.c: Likewise.
25480         * lower-subreg.c: Likewise.
25481         * modulo-sched.c: Likewise.
25482         * postreload-gcse.c: Likewise.
25483         * predict.c: Likewise.
25484         * recog.c: Likewise.
25485         * sched-rgn.c: Likewise.
25486         * store-motion.c: Likewise.
25487         * tracer.c: Likewise.
25488         * trans-mem.c: Likewise.
25489         * tree-call-cdce.c: Likewise.
25490         * tree-cfg.c: Likewise.
25491         * tree-cfgcleanup.c: Likewise.
25492         * tree-complex.c: Likewise.
25493         * tree-eh.c: Likewise.
25494         * tree-emutls.c: Likewise.
25495         * tree-if-conv.c: Likewise.
25496         * tree-into-ssa.c: Likewise.
25497         * tree-loop-distribution.c: Likewise.
25498         * tree-object-size.c: Likewise.
25499         * tree-parloops.c: Likewise.
25500         * tree-pass.h: Likewise.
25501         * tree-sra.c: Likewise.
25502         * tree-ssa-ccp.c: Likewise.
25503         * tree-ssa-copy.c: Likewise.
25504         * tree-ssa-copyrename.c: Likewise.
25505         * tree-ssa-dce.c: Likewise.
25506         * tree-ssa-dom.c: Likewise.
25507         * tree-ssa-dse.c: Likewise.
25508         * tree-ssa-forwprop.c: Likewise.
25509         * tree-ssa-ifcombine.c: Likewise.
25510         * tree-ssa-loop-ch.c: Likewise.
25511         * tree-ssa-loop-ivcanon.c: Likewise.
25512         * tree-ssa-loop.c: Likewise.
25513         * tree-ssa-math-opts.c: Likewise.
25514         * tree-ssa-phiopt.c: Likewise.
25515         * tree-ssa-phiprop.c: Likewise.
25516         * tree-ssa-pre.c: Likewise.
25517         * tree-ssa-reassoc.c: Likewise.
25518         * tree-ssa-sink.c: Likewise.
25519         * tree-ssa-strlen.c: Likewise.
25520         * tree-ssa-tail-merge.c: Likewise.
25521         * tree-ssa-uncprop.c: Likewise.
25522         * tree-switch-conversion.c: Likewise.
25523         * tree-tailcall.c: Likewise.
25524         * tree-vect-generic.c: Likewise.
25525         * tree-vectorizer.c: Likewise.
25526         * tree-vrp.c: Likewise.
25527         * tsan.c: Likewise.
25528         * var-tracking.c: Likewise.
25529         * bt-load.c: Likewise.
25530         * cfgcleanup.c: Likewise.
25531         * combine-stack-adj.c: Likewise.
25532         * combine.c: Likewise.
25533         * compare-elim.c: Likewise.
25534         * config/epiphany/resolve-sw-modes.c: Likewise.
25535         * config/i386/i386.c: Likewise.
25536         * config/mips/mips.c: Likewise.
25537         * config/s390/s390.c: Likewise.
25538         * config/sh/sh_treg_combine.cc: Likewise.
25539         * config/sparc/sparc.c: Likewise.
25540         * dce.c: Likewise.
25541         * dse.c: Likewise.
25542         * final.c: Likewise.
25543         * ifcvt.c: Likewise.
25544         * mode-switching.c: Likewise.
25545         * passes.c: Likewise.
25546         * postreload.c: Likewise.
25547         * ree.c: Likewise.
25548         * reg-stack.c: Likewise.
25549         * regcprop.c: Likewise.
25550         * regrename.c: Likewise.
25551         * web.c: Likewise.
25553 2014-05-06  Richard Biener  <rguenther@suse.de>
25555         PR middle-end/61070
25556         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
25557         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
25559 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
25561         PR ipa/60965
25562         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
25564 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
25565             Tom de Vries  <tom@codesourcery.com>
25567         * target.def (call_fusage_contains_non_callee_clobbers): New
25568         DEFHOOKPOD.
25569         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
25570         Hooks to @menu.
25571         (@node Miscellaneous Register Hooks): New node.
25572         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
25573         * doc/tm.texi: Regenerate.
25575 2014-05-05  Marek Polacek  <polacek@redhat.com>
25577         PR driver/61065
25578         * opts.c (common_handle_option): Call error_at instead of warning_at.
25580 2014-05-05  Richard Biener  <rguenther@suse.de>
25582         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
25583         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
25584         under the TODO_verify_il umbrella.
25586 2014-05-05  Richard Biener  <rguenther@suse.de>
25588         * passes.c (execute_function_todo): Move TODO_verify_flow under
25589         the TODO_verify_ul umbrella.
25591 2014-05-05  Richard Biener  <rguenther@suse.de>
25593         PR middle-end/61010
25594         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
25595         X & CST away from a CST that is the mask of a mode.
25597 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25599         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
25600         int argument to enum machine_mode.
25601         (picochip_class_max_nregs): Ditto.
25602         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
25603         (picochip_class_max_nregs): Ditto.
25605 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25607         * target.def: Add new target hook.
25608         * doc/tm.texi: Regenerate.
25609         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
25610         * targhooks.c (default_keep_leaf_when_profiled): New function.
25612         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
25613         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
25615 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
25617         PR tree-optimization/60363
25618         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
25619         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
25620         (update_destination_phis): New parameter.
25621         (create_edge_and_update_destination_phis): Ditto.
25622         (ssa_fix_duplicate_block_edges): Pass new arguments.
25623         (thread_single_edge): Ditto.
25625 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
25627         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
25628         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
25629         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
25630         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
25631         Use RS6000_BTM_HARD_FLOAT.
25632         (BU_MISC_2): Likewise.
25633         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
25634         RS6000_BTM_HARD_FLOAT.
25635         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
25636         is explicitly used.
25637         (rs6000_invalid_builtin): Add hard floating builtin support.
25638         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
25639         hard float builtins.
25640         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
25642 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
25644         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
25645         Add missing function* argument.
25647 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
25649         * lra-constraints.c (valid_address_p): Move earlier in file.
25650         Add a constraint argument to the address_info version.
25651         (satisfies_memory_constraint_p): New function.
25652         (satisfies_address_constraint_p): Likewise.
25653         (process_alt_operands, curr_insn_transform): Use them.
25654         (process_address): Pass the constraint to valid_address_p when
25655         checking address operands.
25657 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
25659         * config/mips/mips.c (mips_isa_rev): New variable.
25660         (mips_set_architecture): Set it.
25661         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
25662         from mips_isa_rev.
25663         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
25664         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
25665         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
25666         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
25667         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
25668         conditions in terms of mips_isa_rev.
25669         (mips_isa_rev): Declare.
25671 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
25673         * config/sh/sh-mem.cc: Use tabs instead of spaces.
25674         (prob_unlikely, prob_likely): Make variables const.
25676 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
25678         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
25680 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
25682         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
25684 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
25686         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
25687         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
25688         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
25689         functions.
25690         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
25691         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
25692         sh_pass_in_reg_p.
25693         Replace usage of ROUND_REG with sh_round_reg.
25694         Use CEIL instead of ROUND_ADVANCE.
25696 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
25698         PR target/61026
25699         * config/sh/sh.c: Include stdlib headers before everything else.
25701 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
25703         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
25704         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
25705         (gimplify_adjust_omp_clauses): Simd region is never
25706         directly nested in combined parallel.  Instead, for linear
25707         with copyin/copyout, if in combined for simd loop, make decl
25708         firstprivate/lastprivate on OMP_FOR.
25709         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
25710         expand_omp_for_static_chunk): When setting endvar, also set
25711         fd->loop.v to the same value.
25713 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25715         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
25717 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
25719         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
25720         expression.
25722 2014-05-02  Marek Polacek  <polacek@redhat.com>
25724         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
25726 2014-05-02  Kito Cheng  <kito@0xlab.org>
25728         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
25729         to a C expression marco.
25730         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
25731         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
25732         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
25733         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
25734         HONOR_REG_ALLOC_ORDER.
25735         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
25737 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25739         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
25741 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25743         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
25745 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
25747         * tree-if-conv.c (is_cond_scalar_reduction): New function.
25748         (convert_scalar_cond_reduction): Likewise.
25749         (predicate_scalar_phi): Add recognition and transformation
25750         of simple conditioanl reduction to be vectorizable.
25752 2014-05-01  Marek Polacek  <polacek@redhat.com>
25754         PR c/43245
25755         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
25757 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
25759         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
25760         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
25761         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
25762         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
25763         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
25764         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
25765         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
25766         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
25768 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
25770         * config/arc/arc.opt (mlra): Move comment above option name
25771         to avoid mis-parsing as language options.
25773 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25775         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
25776         * config/sol2.h: ... here.
25777         * config/sol2-10.h: Remove.
25779         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
25780         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
25781         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
25782         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
25783         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
25784         * config/sol2.h: ... here.
25785         (SECTION_NAME_FORMAT): Don't redefine.
25786         (STARTFILE_ARCH32_SPEC): Rename to ...
25787         (STARTFILE_ARCH_SPEC): ... this.
25788         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
25789         * config/sparc/sol2.h: ... here.
25790         (SECTION_NAME_FORMAT): Don't undef.
25791         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
25792         (SUBTARGET_EXTRA_SPECS): Remove.
25793         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
25795         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
25796         (MD_STARTFILE_PREFIX): Remove.
25797         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
25798         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
25799         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
25800         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
25801         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
25802         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
25803         * config/i386/sol2.h: ... here.
25804         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
25805         * config/i386/sol2-bi.h: Remove.
25806         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
25807         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
25809         * config/i386/t-sol2-64: Rename to ...
25810         * config/i386/t-sol2: ... this.
25811         * config/sparc/t-sol2-64: Rename to ...
25812         * config/sparc/t-sol2: ... this.
25814         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
25815         sol2_tm_file_head, sol2_tm_file_tail.
25816         Include ${cpu_type}/sol2.h before sol2.h.
25817         Remove sol2-10.h.
25818         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
25819         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
25820         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
25821         Reflect i386/t-sol2-64 renaming.
25822         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
25823         Reflect sparc/t-sol2-64 renaming.
25825 2014-04-30  Richard Biener  <rguenther@suse.de>
25827         * passes.c (execute_function_todo): Move TODO_verify_stmts
25828         and TODO_verify_ssa under the TODO_verify_il umbrella.
25829         * tree-ssa.h (verify_ssa): Adjust prototype.
25830         * tree-ssa.c (verify_ssa): Add parameter to tell whether
25831         we should verify SSA operands.
25832         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
25833         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
25834         whether we should verify whether not throwing stmts have EH info.
25835         * graphite-scop-detection.c (create_sese_edges): Adjust.
25836         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
25837         * tree-eh.c (lower_try_finally_switch): Do not add the
25838         default case label twice.
25840 2014-04-30  Marek Polacek  <polacek@redhat.com>
25842         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
25843         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
25844         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
25845         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
25847 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
25849         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
25850         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
25851         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
25852         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
25853         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
25854         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
25855         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
25856         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
25858 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
25860         * tree-cfg.c (dump_function_to_file): Dump the return type of
25861         functions, in a line to itself before the function body, mimicking
25862         the layout of a C function.
25864 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
25866         PR tree-optimization/60971
25867         * tree-tailcall.c (process_assignment): Reject conversions which
25868         reduce precision.
25870 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
25872         * calls.c (initialize_argument_information): Always treat
25873         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
25874         (expand_call): Likewise.
25875         (emit_library_call_calue_1): Likewise.
25876         * expr.c (PUSH_ARGS_REVERSED): Do not define.
25877         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
25878         code accordingly.
25880 2014-04-29  Nick Clifton  <nickc@redhat.com>
25882         * config/msp430/msp430.md (umulsidi): Fix typo.
25883         (mulhisi3): Enable even inside interrupt handlers.
25884         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
25885         bigger return address pushed in large mode.
25887 2014-04-29  Nick Clifton  <nickc@redhat.com>
25889         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
25890         (arc_init_reg_tables): Use a machine_mode enum to iterate over
25891         available modes.
25892         * config/m32r/m32r.c (init_reg_tables): Likewise.
25893         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
25894         enum to hold the modes.
25896 2014-04-29  Richard Biener  <rguenther@suse.de>
25898         * dominance.c (free_dominance_info): Add overload with
25899         function parameter.
25900         (dom_info_state): Likewise.
25901         (dom_info_available_p): Likewise.
25902         * basic-block.h (free_dominance_info, dom_info_state,
25903         dom_info_available_p): Declare overloads.
25904         * passes.c (execute_function_todo): Verify that verifiers
25905         don't change dominator info state.  Drop dominator info
25906         for IPA pass invocations.
25907         * cgraph.c (release_function_body): Restore asserts that
25908         dominator information is released.
25910 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
25912         * doc/invoke.texi: Fix typo.
25913         * tree-vrp.c: Fix typos.
25914         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
25916 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25918         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
25920 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
25922         * config/aarch64/aarch64-builtins.c
25923         (aarch64_types_storestruct_lane_qualifiers): New.
25924         (TYPES_STORESTRUCT_LANE): Likewise.
25925         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
25926         (st3_lane): Likewise.
25927         (st4_lane): Likewise.
25928         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
25929         (vec_store_lanesci_lane<mode>): Likewise.
25930         (vec_store_lanesxi_lane<mode>): Likewise.
25931         (aarch64_st2_lane<VQ:mode>): Likewise.
25932         (aarch64_st3_lane<VQ:mode>): Likewise.
25933         (aarch64_st4_lane<VQ:mode>): Likewise.
25934         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
25935         * config/aarch64/arm_neon.h
25936         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
25937         use new macro arguments.
25938         (__ST3_LANE_FUNC): Likewise.
25939         (__ST4_LANE_FUNC): Likewise.
25940         * config/aarch64/iterators.md (V_TWO_ELEM): New.
25941         (V_THREE_ELEM): Likewise.
25942         (V_FOUR_ELEM): Likewise.
25944 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
25946         * doc/gimple.texi: Replace the description of the now-defunct
25947         union gimple_statement_d with a diagram showing the
25948         gimple_statement_base class hierarchy and its relationships to
25949         the GSS_ and GIMPLE_ enums.
25951 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
25953         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
25954         * config/aarch64/aarch64.c
25955         (aarch64_cannot_change_mode_class): Weaken conditions.
25956         (aarch64_modes_tieable_p): New.
25957         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
25959 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
25961         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
25962         (loadsync_<mode>): Change mode.
25963         (load_quadpti, store_quadpti): New.
25964         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
25965         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
25967 2014-04-28  Martin Jambor  <mjambor@suse.cz>
25969         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
25970         same alias type as the original statement.
25971         (subreplacement_assignment_data): New type.
25972         (handle_unscalarized_data_in_subtree): New type of parameter,
25973         generate new memory accesses with same alias type as the original
25974         statement.
25975         (load_assign_lhs_subreplacements): Likewise.
25976         (sra_modify_constructor_assign): Generate new memory accesses with
25977         same alias type as the original statement.
25979 2014-04-28  Richard Biener  <rguenther@suse.de>
25981         * tree-pass.h (TODO_verify_il): Define.
25982         (TODO_verify_all): Complete properly.
25983         * passes.c (execute_function_todo): Move existing loop-closed
25984         SSA verification under TODO_verify_il.
25985         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
25986         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
25987         Fix tree sharing issue.
25989 2014-04-28  Richard Biener  <rguenther@suse.de>
25991         PR middle-end/60092
25992         * builtins.def (DEF_C11_BUILTIN): Add.
25993         (BUILT_IN_ALIGNED_ALLOC): Likewise.
25994         * coretypes.h (enum function_class): Add function_c11_misc.
25995         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
25996         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
25997         (call_may_clobber_ref_p_1): Likewise.
25998         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
25999         (mark_all_reaching_defs_necessary_1): Likewise.
26000         (propagate_necessity): Likewise.
26001         (eliminate_unnecessary_stmts): Likewise.
26002         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
26004 2014-04-28  Richard Biener  <rguenther@suse.de>
26006         * tree-vrp.c (vrp_var_may_overflow): Remove.
26007         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
26008         with overflow immediately bump to one before that value and
26009         let iteration figure out overflow status.
26011 2014-04-28  Richard Biener  <rguenther@suse.de>
26013         * configure.ac: Do valgrind header checks unconditionally.
26014         Add --enable-valgrind-annotations.
26015         * system.h: Guard valgrind header inclusion with
26016         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
26017         * alloc-pool.c (pool_alloc, pool_free): Use
26018         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
26019         to guard possibly dead code.
26020         * config.in: Regenerated.
26021         * configure: Likewise.
26023 2014-04-28  Jeff Law  <law@redhat.com>
26025         PR tree-optimization/60902
26026         * tree-ssa-threadedge.c
26027         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
26028         over real defs when invalidating outputs from statements that do not
26029         produce useful outputs for threading.
26031 2014-04-28  Richard Biener  <rguenther@suse.de>
26033         PR tree-optimization/60979
26034         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
26035         SCOPs that end in a block with a successor with abnormal
26036         predecessors.
26038 2014-04-28  Richard Biener  <rguenther@suse.de>
26040         * tree-pass.h (execute_pass_list): Adjust prototype.
26041         * passes.c (pass_manager::execute_early_local_passes): Adjust.
26042         (do_per_function): Change callback signature, push all actual
26043         work to the callbals.
26044         (do_per_function_toporder): Likewise.
26045         (execute_function_dump): Adjust.
26046         (execute_function_todo): Likewise.
26047         (clear_last_verified): Likewise.
26048         (verify_curr_properties): Likewise.
26049         (update_properties_after_pass): Likewise.
26050         (execute_pass_list_1): Split out from ...
26051         (execute_pass_list): ... here.  Adjust.
26052         (execute_ipa_pass_list): Likewise.
26053         * cgraphunit.c (cgraph_add_new_function): Adjust.
26054         (analyze_function): Likewise.
26055         (expand_function): Likewise.
26056         * cgraph.c (release_function_body): Free dominance info
26057         here instead of asserting it was magically freed elsewhere.
26059 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
26061         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
26062         * configure: Regenerate.
26063         * config/sparc/sparc.opt (muser-mode): New option.
26064         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
26065         for LEON3.
26066         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
26067         * doc/invoke.texi (SPARC options): Document -muser-mode.
26069 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
26071         * cselib.c (find_slot_memmode): Delete.
26072         (cselib_hasher): Change compare_type to a struct.
26073         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
26074         constants.
26075         (preserve_constants_and_equivs): Adjust for new compare_type.
26076         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
26077         (wrap_constant): Delete.
26078         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
26080 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
26082         * doc/install.texi (Building with profile feedback): Remove
26083         outdated sentence.
26085 2014-04-26  Tom de Vries  <tom@codesourcery.com>
26087         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
26088         array accesses.
26090 2014-04-25  Cary Coutant  <ccoutant@google.com>
26092         PR debug/60929
26093         * dwarf2out.c (should_move_die_to_comdat): A type definition
26094         can contain a subprogram definition, but don't move it to a
26095         comdat unit.
26096         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
26097         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
26098         from original DIE.
26099         (clone_tree_hash): Rename to...
26100         (clone_tree_partial): ...this; change callers.  Copy
26101         DW_TAG_subprogram DIEs as declarations.
26102         (copy_decls_walk): Don't copy children of a declaration into a
26103         type unit.
26105 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
26107         PR target/60969
26108         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
26109         alternative 12.
26111 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
26113         * config/arm/predicates.md (call_insn_operand): Add long_call check.
26114         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
26115         reg for long_call.
26116         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
26117         restriction.
26119 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26121         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
26123 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26125         PR tree-optimization/60930
26126         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
26127         creating a multiply candidate by folding two constant
26128         multiplicands when the result overflows.
26130 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
26132         PR tree-optimization/60960
26133         * tree-vect-generic.c (expand_vector_operation): Only call
26134         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
26136 2014-04-25  Tom de Vries  <tom@codesourcery.com>
26138         * expr.c (clobber_reg_mode): New function.
26139         * expr.h (clobber_reg): New function.
26141 2014-04-25  Tom de Vries  <tom@codesourcery.com>
26143         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
26144         clobbers.
26146 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
26147             Tom de Vries  <tom@codesourcery.com>
26149         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
26150         handle.
26151         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
26152         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
26153         new argument to find_all_hard_reg_sets call.
26155 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26157         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
26158         Use HOST_WIDE_INT_C for mask literal.
26159         (aarch_rev16_shleft_mask_imm_p): Likewise.
26161 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
26163         PR target/60941
26164         * config/sparc/sparc.md (ashlsi3_extend): Delete.
26166 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
26168         PR preprocessor/56540
26169         * config/i386/i386-c.c (ix86_target_macros): Define
26170         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
26172 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26174         * configure.ac (tga_func): Remove.
26175         (LIB_TLS_SPEC): Remove.
26176         * configure: Regenerate.
26177         * config.in: Regenerate.
26178         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
26180 2014-04-25  Richard Biener  <rguenther@suse.de>
26182         PR ipa/60912
26183         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
26184         call stmt use/clobber sets during stmt walk instead of
26185         walking the possibly incomplete set of caller edges.
26187 2014-04-25  Richard Biener  <rguenther@suse.de>
26189         PR ipa/60911
26190         * passes.c (apply_ipa_transforms): Inline into only caller ...
26191         (execute_one_pass): ... here.  Properly bring in function
26192         bodies for nodes we want to apply IPA transforms to.
26194 2014-04-24  Cong Hou  <congh@google.com>
26196         PR tree-optimization/60896
26197         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
26198         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
26199         (vect_mark_pattern_stmts): Set the def type of all statements in
26200         PATTERN_DEF_SEQ as vect_internal_def.
26202 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
26204         * doc/extend.texi (PowerPC Built-in Functions): Document new
26205         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
26206         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
26208         * config/rs6000/predicates.md (const_0_to_3_operand): New
26209         predicate to match 0..3 integer constants.
26211         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
26212         to support adding miscellaneous builtin functions.
26213         (BU_DFP_MISC_2): Likewise.
26214         (BU_P7_MISC_1): Likewise.
26215         (BU_P7_MISC_2): Likewise.
26216         (BU_P8V_MISC_3): Likewise.
26217         (BU_MISC_1): Likewise.
26218         (BU_MISC_2): Likewise.
26219         (DIVWE): Add extended divide builtin functions.
26220         (DIVWEO): Likewise.
26221         (DIVWEU): Likewise.
26222         (DIVWEUO): Likewise.
26223         (DIVDE): Likewise.
26224         (DIVDEO): Likewise.
26225         (DIVDEU): Likewise.
26226         (DIVDEUO): Likewise.
26227         (DXEX): Add decimal floating-point builtin functions.
26228         (DXEXQ): Likewise.
26229         (DDEDPD): Likewise.
26230         (DDEDPDQ): Likewise.
26231         (DENBCD): Likewise.
26232         (DENBCDQ): Likewise.
26233         (DIEX): Likewise.
26234         (DIEXQ): Likewise.
26235         (DSCLI): Likewise.
26236         (DSCLIQ): Likewise.
26237         (DSCRI): Likewise.
26238         (DSCRIQ): Likewise.
26239         (CDTBCD): Add new BCD builtin functions.
26240         (CBCDTD): Likewise.
26241         (ADDG6S): Likewise.
26242         (BCDADD): Likewise.
26243         (BCDADD_LT): Likewise.
26244         (BCDADD_EQ): Likewise.
26245         (BCDADD_GT): Likewise.
26246         (BCDADD_OV): Likewise.
26247         (BCDSUB): Likewise.
26248         (BCDSUB_LT): Likewise.
26249         (BCDSUB_EQ): Likewise.
26250         (BCDSUB_GT): Likewise.
26251         (BCDSUB_OV): Likewise.
26252         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
26253         (UNPACK_TD): Likewise.
26254         (PACK_TF): Likewise.
26255         (UNPACK_TF): Likewise.
26256         (UNPACK_TF_0): Likewise.
26257         (UNPACK_TF_1): Likewise.
26258         (PACK_V1TI): Likewise.
26259         (UNPACK_V1TI): Likewise.
26261         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
26262         support for decimal floating point builtin functions.
26263         (rs6000_expand_ternop_builtin): Add checks for the new builtin
26264         functions that take constant arguments.
26265         (rs6000_invalid_builtin): Add decimal floating point builtin support.
26266         (rs6000_init_builtins): Setup long double, _Decimal64, and
26267         _Decimal128 types for new builtin functions.
26268         (builtin_function_type): Set the unsigned flags appropriately for
26269         the new builtin functions.
26270         (rs6000_opt_masks): Add support for decimal floating point builtin
26271         functions.
26273         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
26274         floating point builtin functions.
26275         (RS6000_BTM_COMMON): Likewise.
26276         (RS6000_BTI_long_double): Likewise.
26277         (RS6000_BTI_dfloat64): Likewise.
26278         (RS6000_BTI_dfloat128): Likewise.
26279         (long_double_type_internal_node): Likewise.
26280         (dfloat64_type_internal_node): Likewise.
26281         (dfloat128_type_internal_node): Likewise.
26283         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
26284         2.07 bcd arithmetic instructions.
26285         (UNSPEC_BCDSUB): Likewise.
26286         (UNSPEC_BCD_OVERFLOW): Likewise.
26287         (UNSPEC_BCD_ADD_SUB): Likewise.
26288         (bcd_add_sub): Likewise.
26289         (BCD_TEST): Likewise.
26290         (bcd<bcd_add_sub>): Likewise.
26291         (bcd<bcd_add_sub>_test): Likewise.
26292         (bcd<bcd_add_sub>_test2): Likewise.
26293         (bcd<bcd_add_sub>_<code>): Likewise.
26294         (peephole2 for combined bcd ops): Likewise.
26296         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
26297         decimal floating point builtin functions.
26298         (UNSPEC_DENBCD): Likewise.
26299         (UNSPEC_DXEX): Likewise.
26300         (UNSPEC_DIEX): Likewise.
26301         (UNSPEC_DSCLI): Likewise.
26302         (UNSPEC_DSCRI): Likewise.
26303         (D64_D128): Likewise.
26304         (dfp_suffix): Likewise.
26305         (dfp_ddedpd_<mode>): Likewise.
26306         (dfp_denbcd_<mode>): Likewise.
26307         (dfp_dxex_<mode>): Likewise.
26308         (dfp_diex_<mode>): Likewise.
26309         (dfp_dscli_<mode>): Likewise.
26310         (dfp_dscri_<mode>): Likewise.
26312         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
26313         builtin functions.
26314         (UNSPEC_CDTBCD): Likewise.
26315         (UNSPEC_CBCDTD): Likewise.
26316         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
26317         (UNSPEC_DIVEO): Likewise.
26318         (UNSPEC_DIVEU): Likewise.
26319         (UNSPEC_DIVEUO): Likewise.
26320         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
26321         pack/unpack 128-bit types.
26322         (UNSPEC_PACK_128BIT): Likewise.
26323         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
26324         (udiv<mode>3): Use idiv_ldiv mode attribute.
26325         (div<mode>3): Likewise.
26326         (addg6s): Add new BCD builtin functions.
26327         (cdtbcd): Likewise.
26328         (cbcdtd): Likewise.
26329         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
26330         (div_extend): Likewise.
26331         (div<div_extend>_<mode>"): Likewise.
26332         (FP128_64): Add support for new builtin functions to pack/unpack
26333         128-bit types.
26334         (unpack<mode>): Likewise.
26335         (unpacktf_0): Likewise.
26336         (unpacktf_1): Likewise.
26337         (unpack<mode>_dm): Likewise.
26338         (unpack<mode>_nodm): Likewise.
26339         (pack<mode>): Likewise.
26340         (unpackv1ti): Likewise.
26341         (packv1ti): Likewise.
26343 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
26345         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
26346         is disabled.
26348 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
26350         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
26351         * gimplify.c (omp_is_private): Change last argument's type to int.
26352         Only diagnose lastprivate if the simd argument is 1, only diagnose
26353         linear if the simd argument is 2.
26354         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
26355         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
26356         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
26357         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
26358         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
26359         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
26360         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
26361         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
26362         * tree-nested.c (convert_nonlocal_omp_clauses,
26363         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
26365 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
26367         PR target/60822
26368         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
26369         operand 1.
26371 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
26373         * flag-types.h (enum ivar_visibility): Add.
26375 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
26377         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
26378         function * argument.
26380 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
26382         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
26384 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
26385             Tom de Vries  <tom@codesourcery.com>
26387         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
26388         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
26389         reg-note.
26390         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
26391         * emit-rtl.c (try_split): Same.
26393 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
26394             Tom de Vries  <tom@codesourcery.com>
26396         * common.opt (fuse-caller-save): New option.
26398 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
26400         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
26401         elements for big-endian.
26403 2014-04-24  Richard Biener  <rguenther@suse.de>
26405         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
26406         during TER and instead use the sepops interface for expanding
26407         non-GIMPLE_SINGLE_RHS.
26409 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26411         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
26412         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
26414 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26416         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
26417         assembler 64-bit option.
26418         * configure: Regenerate.
26420 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26422         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
26423         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
26424         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
26425         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
26426         (TARGET_CRYPTO): Take TARGET_SIMD into account.
26428 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26430         * config/aarch64/aarch64-builtins.c
26431         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
26432         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
26433         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
26434         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
26435         builtins.
26436         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
26437         (Vrevsuff): New mode attribute.
26439 2014-04-24  Terry Guo  <terry.guo@arm.com>
26441         * config/arm/arm.h (machine_function): Define variable
26442         after_arm_reorg here.
26443         * config/arm/arm.c (after_arm_reorg): Remove the definition.
26444         (arm_split_constant): Update the way to access variable
26445         after_arm_reorg.
26446         (arm_reorg): Ditto.
26447         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
26449 2014-04-23  Tom de Vries  <tom@codesourcery.com>
26451         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
26453 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
26455         * is-a.h: Update comments to reflect the following changes to the
26456         "pointerness" of the API, making the template parameter match the
26457         return type, allowing use of is-a.h with typedefs of pointers.
26458         (is_a_helper::cast): Return a T rather then a pointer to a T, so
26459         that the return type matches the parameter to the is_a_helper.
26460         (as_a): Likewise.
26461         (dyn_cast): Likewise.
26463         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
26464         pointer from the is-a.h API.
26466         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
26467         (is_a_helper <cgraph_node *>::test): ...this, matching change to
26468         is-a.h API.
26469         (is_a_helper <varpool_node>::test): Likewise, convert to...
26470         (is_a_helper <varpool_node *>::test): ...this.
26472         (varpool_first_variable): Update for removal of implicit pointer
26473         from the is-a.h API.
26474         (varpool_next_variable): Likewise.
26475         (varpool_first_static_initializer): Likewise.
26476         (varpool_next_static_initializer): Likewise.
26477         (varpool_first_defined_variable): Likewise.
26478         (varpool_next_defined_variable): Likewise.
26479         (cgraph_first_defined_function): Likewise.
26480         (cgraph_next_defined_function): Likewise.
26481         (cgraph_first_function): Likewise.
26482         (cgraph_next_function): Likewise.
26483         (cgraph_first_function_with_gimple_body): Likewise.
26484         (cgraph_next_function_with_gimple_body): Likewise.
26485         (cgraph_alias_target): Likewise.
26486         (varpool_alias_target): Likewise.
26487         (cgraph_function_or_thunk_node): Likewise.
26488         (varpool_variable_node): Likewise.
26489         (symtab_real_symbol_p): Likewise.
26490         * cgraphunit.c (referred_to_p): Likewise.
26491         (analyze_functions): Likewise.
26492         (handle_alias_pairs): Likewise.
26493         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
26494         * gimple-ssa.h (gimple_vuse_op): Likewise.
26495         (gimple_vdef_op): Likewise.
26496         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
26497         * gimple.c (gimple_build_asm_1): Likewise.
26498         (gimple_build_try): Likewise.
26499         (gimple_build_resx): Likewise.
26500         (gimple_build_eh_dispatch): Likewise.
26501         (gimple_build_omp_for): Likewise.
26502         (gimple_omp_for_set_clauses): Likewise.
26504         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
26505         (is_a_helper <gimple_statement_asm *>::test): ...this.
26506         (is_a_helper <gimple_statement_bind>::test): Convert to...
26507         (is_a_helper <gimple_statement_bind *>::test): ...this.
26508         (is_a_helper <gimple_statement_call>::test): Convert to...
26509         (is_a_helper <gimple_statement_call *>::test): ...this.
26510         (is_a_helper <gimple_statement_catch>::test): Convert to...
26511         (is_a_helper <gimple_statement_catch *>::test): ...this.
26512         (is_a_helper <gimple_statement_resx>::test): Convert to...
26513         (is_a_helper <gimple_statement_resx *>::test): ...this.
26514         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
26515         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
26516         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
26517         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
26518         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
26519         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
26520         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
26521         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
26522         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
26523         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
26524         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
26525         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
26526         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
26527         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
26528         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
26529         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
26530         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
26531         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
26532         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
26533         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
26534         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
26535         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
26536         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
26537         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
26538         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
26539         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
26540         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
26541         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
26542         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
26543         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
26544         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
26545         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
26546         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
26547         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
26548         (is_a_helper <gimple_statement_phi>::test): Convert to...
26549         (is_a_helper <gimple_statement_phi *>::test): ...this.
26550         (is_a_helper <gimple_statement_transaction>::test): Convert to...
26551         (is_a_helper <gimple_statement_transaction *>::test): ...this.
26552         (is_a_helper <gimple_statement_try>::test): Convert to...
26553         (is_a_helper <gimple_statement_try *>::test): ...this.
26554         (is_a_helper <gimple_statement_wce>::test): Convert to...
26555         (is_a_helper <gimple_statement_wce *>::test): ...this.
26556         (is_a_helper <const gimple_statement_asm>::test): Convert to...
26557         (is_a_helper <const gimple_statement_asm *>::test): ...this.
26558         (is_a_helper <const gimple_statement_bind>::test): Convert to...
26559         (is_a_helper <const gimple_statement_bind *>::test): ...this.
26560         (is_a_helper <const gimple_statement_call>::test): Convert to...
26561         (is_a_helper <const gimple_statement_call *>::test): ...this.
26562         (is_a_helper <const gimple_statement_catch>::test): Convert to...
26563         (is_a_helper <const gimple_statement_catch *>::test): ...this.
26564         (is_a_helper <const gimple_statement_resx>::test): Convert to...
26565         (is_a_helper <const gimple_statement_resx *>::test): ...this.
26566         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
26567         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
26568         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
26569         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
26570         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
26571         Convert to...
26572         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
26573         ...this.
26574         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
26575         Convert to...
26576         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
26577         ...this.
26578         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
26579         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
26580         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
26581         to...
26582         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
26583         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
26584         to...
26585         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
26586         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
26587         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
26588         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
26589         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
26590         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
26591         to...
26592         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
26593         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
26594         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
26595         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
26596         to...
26597         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
26598         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
26599         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
26600         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
26601         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
26602         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
26603         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
26604         (is_a_helper <const gimple_statement_phi>::test): Convert to...
26605         (is_a_helper <const gimple_statement_phi *>::test): ...this.
26606         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
26607         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
26608         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
26609         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
26610         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
26611         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
26612         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
26613         to...
26614         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
26615         ...this.
26616         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
26617         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
26619         (gimple_use_ops): Update for removal of implicit pointer from the
26620         is-a.h API.
26621         (gimple_set_use_ops): Likewise.
26622         (gimple_vuse): Likewise.
26623         (gimple_vdef): Likewise.
26624         (gimple_vuse_ptr): Likewise.
26625         (gimple_vdef_ptr): Likewise.
26626         (gimple_set_vuse): Likewise.
26627         (gimple_set_vdef): Likewise.
26628         (gimple_omp_return_set_lhs): Likewise.
26629         (gimple_omp_return_lhs): Likewise.
26630         (gimple_omp_return_lhs_ptr): Likewise.
26631         (gimple_call_fntype): Likewise.
26632         (gimple_call_set_fntype): Likewise.
26633         (gimple_call_set_internal_fn): Likewise.
26634         (gimple_call_use_set): Likewise.
26635         (gimple_call_clobber_set): Likewise.
26636         (gimple_bind_vars): Likewise.
26637         (gimple_bind_set_vars): Likewise.
26638         (gimple_bind_body_ptr): Likewise.
26639         (gimple_bind_set_body): Likewise.
26640         (gimple_bind_add_stmt): Likewise.
26641         (gimple_bind_block): Likewise.
26642         (gimple_bind_set_block): Likewise.
26643         (gimple_asm_ninputs): Likewise.
26644         (gimple_asm_noutputs): Likewise.
26645         (gimple_asm_nclobbers): Likewise.
26646         (gimple_asm_nlabels): Likewise.
26647         (gimple_asm_input_op): Likewise.
26648         (gimple_asm_input_op_ptr): Likewise.
26649         (gimple_asm_output_op): Likewise.
26650         (gimple_asm_output_op_ptr): Likewise.
26651         (gimple_asm_set_output_op): Likewise.
26652         (gimple_asm_clobber_op): Likewise.
26653         (gimple_asm_set_clobber_op): Likewise.
26654         (gimple_asm_label_op): Likewise.
26655         (gimple_asm_set_label_op): Likewise.
26656         (gimple_asm_string): Likewise.
26657         (gimple_catch_types): Likewise.
26658         (gimple_catch_types_ptr): Likewise.
26659         (gimple_catch_handler_ptr): Likewise.
26660         (gimple_catch_set_types): Likewise.
26661         (gimple_catch_set_handler): Likewise.
26662         (gimple_eh_filter_types): Likewise.
26663         (gimple_eh_filter_types_ptr): Likewise.
26664         (gimple_eh_filter_failure_ptr): Likewise.
26665         (gimple_eh_filter_set_types): Likewise.
26666         (gimple_eh_filter_set_failure): Likewise.
26667         (gimple_eh_must_not_throw_fndecl): Likewise.
26668         (gimple_eh_must_not_throw_set_fndecl): Likewise.
26669         (gimple_eh_else_n_body_ptr): Likewise.
26670         (gimple_eh_else_e_body_ptr): Likewise.
26671         (gimple_eh_else_set_n_body): Likewise.
26672         (gimple_eh_else_set_e_body): Likewise.
26673         (gimple_try_eval_ptr): Likewise.
26674         (gimple_try_cleanup_ptr): Likewise.
26675         (gimple_try_set_eval): Likewise.
26676         (gimple_try_set_cleanup): Likewise.
26677         (gimple_wce_cleanup_ptr): Likewise.
26678         (gimple_wce_set_cleanup): Likewise.
26679         (gimple_phi_capacity): Likewise.
26680         (gimple_phi_num_args): Likewise.
26681         (gimple_phi_result): Likewise.
26682         (gimple_phi_result_ptr): Likewise.
26683         (gimple_phi_set_result): Likewise.
26684         (gimple_phi_arg): Likewise.
26685         (gimple_phi_set_arg): Likewise.
26686         (gimple_resx_region): Likewise.
26687         (gimple_resx_set_region): Likewise.
26688         (gimple_eh_dispatch_region): Likewise.
26689         (gimple_eh_dispatch_set_region): Likewise.
26690         (gimple_omp_critical_name): Likewise.
26691         (gimple_omp_critical_name_ptr): Likewise.
26692         (gimple_omp_critical_set_name): Likewise.
26693         (gimple_omp_for_clauses): Likewise.
26694         (gimple_omp_for_clauses_ptr): Likewise.
26695         (gimple_omp_for_set_clauses): Likewise.
26696         (gimple_omp_for_collapse): Likewise.
26697         (gimple_omp_for_index): Likewise.
26698         (gimple_omp_for_index_ptr): Likewise.
26699         (gimple_omp_for_set_index): Likewise.
26700         (gimple_omp_for_initial): Likewise.
26701         (gimple_omp_for_initial_ptr): Likewise.
26702         (gimple_omp_for_set_initial): Likewise.
26703         (gimple_omp_for_final): Likewise.
26704         (gimple_omp_for_final_ptr): Likewise.
26705         (gimple_omp_for_set_final): Likewise.
26706         (gimple_omp_for_incr): Likewise.
26707         (gimple_omp_for_incr_ptr): Likewise.
26708         (gimple_omp_for_set_incr): Likewise.
26709         (gimple_omp_for_pre_body_ptr): Likewise.
26710         (gimple_omp_for_set_pre_body): Likewise.
26711         (gimple_omp_parallel_clauses): Likewise.
26712         (gimple_omp_parallel_clauses_ptr): Likewise.
26713         (gimple_omp_parallel_set_clauses): Likewise.
26714         (gimple_omp_parallel_child_fn): Likewise.
26715         (gimple_omp_parallel_child_fn_ptr): Likewise.
26716         (gimple_omp_parallel_set_child_fn): Likewise.
26717         (gimple_omp_parallel_data_arg): Likewise.
26718         (gimple_omp_parallel_data_arg_ptr): Likewise.
26719         (gimple_omp_parallel_set_data_arg): Likewise.
26720         (gimple_omp_task_clauses): Likewise.
26721         (gimple_omp_task_clauses_ptr): Likewise.
26722         (gimple_omp_task_set_clauses): Likewise.
26723         (gimple_omp_task_child_fn): Likewise.
26724         (gimple_omp_task_child_fn_ptr): Likewise.
26725         (gimple_omp_task_set_child_fn): Likewise.
26726         (gimple_omp_task_data_arg): Likewise.
26727         (gimple_omp_task_data_arg_ptr): Likewise.
26728         (gimple_omp_task_set_data_arg): Likewise.
26729         (gimple_omp_taskreg_clauses): Likewise.
26730         (gimple_omp_taskreg_clauses_ptr): Likewise.
26731         (gimple_omp_taskreg_set_clauses): Likewise.
26732         (gimple_omp_taskreg_child_fn): Likewise.
26733         (gimple_omp_taskreg_child_fn_ptr): Likewise.
26734         (gimple_omp_taskreg_set_child_fn): Likewise.
26735         (gimple_omp_taskreg_data_arg): Likewise.
26736         (gimple_omp_taskreg_data_arg_ptr): Likewise.
26737         (gimple_omp_taskreg_set_data_arg): Likewise.
26738         (gimple_omp_task_copy_fn): Likewise.
26739         (gimple_omp_task_copy_fn_ptr): Likewise.
26740         (gimple_omp_task_set_copy_fn): Likewise.
26741         (gimple_omp_task_arg_size): Likewise.
26742         (gimple_omp_task_arg_size_ptr): Likewise.
26743         (gimple_omp_task_set_arg_size): Likewise.
26744         (gimple_omp_task_arg_align): Likewise.
26745         (gimple_omp_task_arg_align_ptr): Likewise.
26746         (gimple_omp_task_set_arg_align): Likewise.
26747         (gimple_omp_single_clauses): Likewise.
26748         (gimple_omp_single_clauses_ptr): Likewise.
26749         (gimple_omp_single_set_clauses): Likewise.
26750         (gimple_omp_target_clauses): Likewise.
26751         (gimple_omp_target_clauses_ptr): Likewise.
26752         (gimple_omp_target_set_clauses): Likewise.
26753         (gimple_omp_target_child_fn): Likewise.
26754         (gimple_omp_target_child_fn_ptr): Likewise.
26755         (gimple_omp_target_set_child_fn): Likewise.
26756         (gimple_omp_target_data_arg): Likewise.
26757         (gimple_omp_target_data_arg_ptr): Likewise.
26758         (gimple_omp_target_set_data_arg): Likewise.
26759         (gimple_omp_teams_clauses): Likewise.
26760         (gimple_omp_teams_clauses_ptr): Likewise.
26761         (gimple_omp_teams_set_clauses): Likewise.
26762         (gimple_omp_sections_clauses): Likewise.
26763         (gimple_omp_sections_clauses_ptr): Likewise.
26764         (gimple_omp_sections_set_clauses): Likewise.
26765         (gimple_omp_sections_control): Likewise.
26766         (gimple_omp_sections_control_ptr): Likewise.
26767         (gimple_omp_sections_set_control): Likewise.
26768         (gimple_omp_for_set_cond): Likewise.
26769         (gimple_omp_for_cond): Likewise.
26770         (gimple_omp_atomic_store_set_val): Likewise.
26771         (gimple_omp_atomic_store_val): Likewise.
26772         (gimple_omp_atomic_store_val_ptr): Likewise.
26773         (gimple_omp_atomic_load_set_lhs): Likewise.
26774         (gimple_omp_atomic_load_lhs): Likewise.
26775         (gimple_omp_atomic_load_lhs_ptr): Likewise.
26776         (gimple_omp_atomic_load_set_rhs): Likewise.
26777         (gimple_omp_atomic_load_rhs): Likewise.
26778         (gimple_omp_atomic_load_rhs_ptr): Likewise.
26779         (gimple_omp_continue_control_def): Likewise.
26780         (gimple_omp_continue_control_def_ptr): Likewise.
26781         (gimple_omp_continue_set_control_def): Likewise.
26782         (gimple_omp_continue_control_use): Likewise.
26783         (gimple_omp_continue_control_use_ptr): Likewise.
26784         (gimple_omp_continue_set_control_use): Likewise.
26785         (gimple_transaction_body_ptr): Likewise.
26786         (gimple_transaction_label): Likewise.
26787         (gimple_transaction_label_ptr): Likewise.
26788         (gimple_transaction_set_body): Likewise.
26789         (gimple_transaction_set_label): Likewise.
26791         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
26792         * ipa-inline-analysis.c (inline_write_summary): Likewise.
26793         * ipa-ref.c (ipa_record_reference): Likewise.
26794         * ipa-reference.c (analyze_function): Likewise.
26795         (ipa_reference_write_optimization_summary): Likewise.
26796         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
26797         (address_taken_from_non_vtable_p): Likewise.
26798         (comdat_can_be_unshared_p_1): Likewise.
26799         * lto-cgraph.c (lto_output_ref): Likewise.
26800         (add_references): Likewise.
26801         (compute_ltrans_boundary): Likewise.
26802         (output_symtab): Likewise.
26803         (input_ref): Likewise.
26804         (input_cgraph_1): Likewise.
26805         (output_cgraph_opt_summary): Likewise.
26806         * lto-streamer-out.c (lto_output): Likewise.
26807         (output_symbol_p): Likewise.
26808         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
26809         (lsei_start_function_in_partition): Likewise.
26810         (lsei_next_variable_in_partition): Likewise.
26811         (lsei_start_variable_in_partition): Likewise.
26812         * symtab.c (insert_to_assembler_name_hash): Likewise.
26813         (unlink_from_assembler_name_hash): Likewise.
26814         (symtab_unregister_node): Likewise.
26815         (symtab_remove_node): Likewise.
26816         (dump_symtab_node): Likewise.
26817         (verify_symtab_base): Likewise.
26818         (verify_symtab_node): Likewise.
26819         (symtab_make_decl_local): Likewise.
26820         (symtab_alias_ultimate_target): Likewise.
26821         (symtab_resolve_alias): Likewise.
26822         (symtab_get_symbol_partitioning_class): Likewise.
26823         * tree-phinodes.c (allocate_phi_node): Likewise.
26824         (reserve_phi_args_for_new_edge): Likewise.
26825         (remove_phi_args): Likewise.
26826         * varpool.c (varpool_node_for_asm): Likewise.
26827         (varpool_remove_unreferenced_decls): Likewise.
26829 2014-04-23  Jeff Law  <law@redhat.com>
26831         PR tree-optimization/60902
26832         * tree-ssa-threadedge.c
26833         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
26834         invalidate outputs from statements that do not produce useful
26835         outputs for threading.
26837 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
26839         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
26840         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
26841         machine descriptions for Stack Smashing Protector.
26843 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
26845         * aarch64.md (<optab>_rol<mode>3): New pattern.
26846         (<optab>_rolsi3_uxtw): Likewise.
26847         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
26849 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
26851         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
26852         (arm_cortex_a12_tune): Likewise.
26854 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26856         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
26858 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26860         * config/arm/arm.md (arm_rev16si2): New pattern.
26861         (arm_rev16si2_alt): Likewise.
26862         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
26864 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26866         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
26867         (rev16<mode>2_alt): Likewise.
26868         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
26869         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
26870         (aarch_rev16_shleft_mask_imm_p): Likewise.
26871         (aarch_rev16_p_1): Likewise.
26872         (aarch_rev16_p): Likewise.
26873         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
26874         (aarch_rev16_shright_mask_imm_p): Likewise.
26875         (aarch_rev16_shleft_mask_imm_p): Likewise.
26877 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26879         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
26880         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
26881         rev cost.
26882         (cortex_a53_extra_costs): Likewise.
26883         (cortex_a57_extra_costs): Likewise.
26884         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
26885         (cortexa7_extra_costs): Likewise.
26886         (cortexa8_extra_costs): Likewise.
26887         (cortexa12_extra_costs): Likewise.
26888         (cortexa15_extra_costs): Likewise.
26889         (v7m_extra_costs): Likewise.
26890         (arm_new_rtx_costs): Handle BSWAP.
26892 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26894         * config/arm/arm.c (cortexa8_extra_costs): New table.
26895         (arm_cortex_a8_tune): New tuning struct.
26896         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
26898 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26900         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
26902 2014-04-23  Richard Biener  <rguenther@suse.de>
26904         * Makefile.in (OBJS): Remove loop-unswitch.o.
26905         * tree-pass.h (make_pass_rtl_unswitch): Remove.
26906         * passes.def (pass_rtl_unswitch): Likewise.
26907         * loop-init.c (gate_rtl_unswitch): Likewise.
26908         (rtl_unswitch): Likewise.
26909         (pass_data_rtl_unswitch): Likewise.
26910         (pass_rtl_unswitch): Likewise.
26911         (make_pass_rtl_unswitch): Likewise.
26912         * rtl.h (reversed_condition): Likewise.
26913         (compare_and_jump_seq): Likewise.
26914         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
26915         and make static.
26916         * loop-unroll.c (compare_and_jump_seq): Likewise.
26918 2014-04-23  Richard Biener  <rguenther@suse.de>
26920         PR tree-optimization/60903
26921         * tree-ssa-loop-im.c (analyze_memory_references): Remove
26922         commented code block.
26923         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
26924         loop flags to newly created BBs and edges.
26926 2014-04-23  Nick Clifton  <nickc@redhat.com>
26928         * config/msp430/msp430.c (msp430_handle_option): Move function
26929         to msp430-common.c
26930         (msp430_option_override): Simplify mcu and mcpu option handling.
26931         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
26932         support for -mhwmult command line option.
26933         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
26934         -mhwmult command line option.
26935         (msp430_hwmult_enabled): Delete.
26936         (msp43o_output_labelref): Add support for -mhwmult command line option.
26937         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
26938         (umulsidi3): Likewise.
26939         * config/msp430/msp430.opt (mmcu): Add Report attribute.
26940         (mcpu, mlarge, msmall): Likewise.
26941         (mhwmult): New option.
26942         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
26943         prototype.
26944         (msp430_is_f5_mcu): Remove prototype.
26945         (msp430_use_f5_series_hwmult): Add prototype.
26946         * config/msp430/msp430-opts.h: New file.
26947         * common/config/msp430: New directory.
26948         * common/config/msp430/msp430-common.c: New file.
26949         * config.gcc (msp430): Remove target_has_targetm_common.
26950         * doc/invoke.texi: Document -mhwmult command line option.
26952 2014-04-23  Nick Clifton  <nickc@redhat.com>
26954         * config/i386/cygwin.h (ENDFILE_SPEC): Include
26955         default-manifest.o if it can be found in the search path.
26956         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
26958 2014-04-23  Terry Guo  <terry.guo@arm.com>
26960         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
26962 2014-04-23  Richard Biener  <rguenther@suse.de>
26964         PR middle-end/60895
26965         * tree-inline.c (declare_return_variable): Use mark_addressable.
26967 2014-04-23  Richard Biener  <rguenther@suse.de>
26969         PR middle-end/60891
26970         * loop-init.c (loop_optimizer_init): Make sure to apply
26971         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
26973 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
26975         PR sanitizer/60275
26976         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
26977         New options.
26978         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
26979         if flag_sanitize_undefined_trap_on_error.
26980         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
26981         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
26982         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
26983         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
26984         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
26985         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
26986         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
26987         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
26988         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
26989         * ubsan.c (ubsan_instrument_unreachable): Return
26990         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
26991         (ubsan_expand_null_ifn): Emit __builtin_trap ()
26992         if flag_sanitize_undefined_trap_on_error and
26993         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
26994         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
26995         instrument_bool_enum_load): Emit __builtin_trap () if
26996         flag_sanitize_undefined_trap_on_error and
26997         __builtin_handle_*_abort () if !flag_sanitize_recover.
26998         * doc/invoke.texi (-fsanitize-recover,
26999         -fsanitize-undefined-trap-on-error): Document.
27001 2014-04-22  Christian Bruel  <christian.bruel@st.com>
27003         * config/sh/sh.md (mov<mode>): Replace movQIHI.
27004          Force immediates to SImode.
27006 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
27008         * config/nios2/nios2.md (UNSPEC_ROUND): New.
27009         (lroundsfsi2): New.
27010         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
27011         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
27012         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
27013         (nios2_fpu_insn): Add entry for round.
27014         (N2FPU_NO_ERRNO_P): Define.
27015         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
27016         flag_errno_math.
27017         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
27019 2014-04-22  Richard Henderson  <rth@redhat.com>
27021         * config/aarch64/aarch64 (addti3, subti3): New expanders.
27022         (add<GPI>3_compare0): Remove leading * from name.
27023         (add<GPI>3_carryin): Likewise.
27024         (sub<GPI>3_compare0): Likewise.
27025         (sub<GPI>3_carryin): Likewise.
27026         (<su_optab>mulditi3): New expander.
27027         (multi3): New expander.
27028         (madd<GPI>): Remove leading * from name.
27030 2014-04-22  Martin Jambor  <mjambor@suse.cz>
27032         * cgraphclones.c (cgraph_function_versioning): Copy
27033         ipa_transforms_to_apply instead of asserting it is empty.
27035 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
27037         PR target/60868
27038         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
27039         on count_exp to get mode.
27041 2014-04-22  Andrew Pinski  <apinski@cavium.com>
27043         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
27044         Handle TLS for ILP32.
27045         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
27046         (tlsie_small_<mode>): this and handle PTR.
27047         (tlsie_small_sidi): New pattern.
27048         (tlsle_small): Change to an expand to handle ILP32.
27049         (tlsle_small_<mode>): New pattern.
27050         (tlsdesc_small): Rename to ...
27051         (tlsdesc_small_<mode>): this and handle PTR.
27053 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27055         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
27057 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
27059         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
27060         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
27061         (aarch64_types_signed_poly_qualifiers): Likewise.
27062         (aarch64_types_unsigned_signed_qualifiers): Likewise.
27063         (aarch64_types_poly_signed_qualifiers): Likewise.
27064         (TYPES_REINTERP_SS): Type macro added.
27065         (TYPES_REINTERP_SU): Likewise.
27066         (TYPES_REINTERP_SP): Likewise.
27067         (TYPES_REINTERP_US): Likewise.
27068         (TYPES_REINTERP_PS): Likewise.
27069         (aarch64_fold_builtin): New expression folding added.
27070         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
27071         Declarations removed.
27072         (REINTERP_SS): Declarations added.
27073         (REINTERP_US): Likewise.
27074         (REINTERP_PS): Likewise.
27075         (REINTERP_SU): Likewise.
27076         (REINTERP_SP): Likewise.
27077         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
27078         (vreinterpretq_p8_f64): Likewise.
27079         (vreinterpret_p16_f64): Likewise.
27080         (vreinterpretq_p16_f64): Likewise.
27081         (vreinterpret_f32_f64): Likewise.
27082         (vreinterpretq_f32_f64): Likewise.
27083         (vreinterpret_f64_f32): Likewise.
27084         (vreinterpret_f64_p8): Likewise.
27085         (vreinterpret_f64_p16): Likewise.
27086         (vreinterpret_f64_s8): Likewise.
27087         (vreinterpret_f64_s16): Likewise.
27088         (vreinterpret_f64_s32): Likewise.
27089         (vreinterpret_f64_s64): Likewise.
27090         (vreinterpret_f64_u8): Likewise.
27091         (vreinterpret_f64_u16): Likewise.
27092         (vreinterpret_f64_u32): Likewise.
27093         (vreinterpret_f64_u64): Likewise.
27094         (vreinterpretq_f64_f32): Likewise.
27095         (vreinterpretq_f64_p8): Likewise.
27096         (vreinterpretq_f64_p16): Likewise.
27097         (vreinterpretq_f64_s8): Likewise.
27098         (vreinterpretq_f64_s16): Likewise.
27099         (vreinterpretq_f64_s32): Likewise.
27100         (vreinterpretq_f64_s64): Likewise.
27101         (vreinterpretq_f64_u8): Likewise.
27102         (vreinterpretq_f64_u16): Likewise.
27103         (vreinterpretq_f64_u32): Likewise.
27104         (vreinterpretq_f64_u64): Likewise.
27105         (vreinterpret_s64_f64): Likewise.
27106         (vreinterpretq_s64_f64): Likewise.
27107         (vreinterpret_u64_f64): Likewise.
27108         (vreinterpretq_u64_f64): Likewise.
27109         (vreinterpret_s8_f64): Likewise.
27110         (vreinterpretq_s8_f64): Likewise.
27111         (vreinterpret_s16_f64): Likewise.
27112         (vreinterpretq_s16_f64): Likewise.
27113         (vreinterpret_s32_f64): Likewise.
27114         (vreinterpretq_s32_f64): Likewise.
27115         (vreinterpret_u8_f64): Likewise.
27116         (vreinterpretq_u8_f64): Likewise.
27117         (vreinterpret_u16_f64): Likewise.
27118         (vreinterpretq_u16_f64): Likewise.
27119         (vreinterpret_u32_f64): Likewise.
27120         (vreinterpretq_u32_f64): Likewise.
27122 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
27124         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
27125         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
27126         (vreinterpret_p8_s8): Likewise.
27127         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
27128         (vreinterpret_p8_s16): Likewise.
27129         (vreinterpret_p8_s32): Likewise.
27130         (vreinterpret_p8_s64): Likewise.
27131         (vreinterpret_p8_f32): Likewise.
27132         (vreinterpret_p8_u8): Likewise.
27133         (vreinterpret_p8_u16): Likewise.
27134         (vreinterpret_p8_u32): Likewise.
27135         (vreinterpret_p8_u64): Likewise.
27136         (vreinterpret_p8_p16): Likewise.
27137         (vreinterpretq_p8_s8): Likewise.
27138         (vreinterpretq_p8_s16): Likewise.
27139         (vreinterpretq_p8_s32): Likewise.
27140         (vreinterpretq_p8_s64): Likewise.
27141         (vreinterpretq_p8_f32): Likewise.
27142         (vreinterpretq_p8_u8): Likewise.
27143         (vreinterpretq_p8_u16): Likewise.
27144         (vreinterpretq_p8_u32): Likewise.
27145         (vreinterpretq_p8_u64): Likewise.
27146         (vreinterpretq_p8_p16): Likewise.
27147         (vreinterpret_p16_s8): Likewise.
27148         (vreinterpret_p16_s16): Likewise.
27149         (vreinterpret_p16_s32): Likewise.
27150         (vreinterpret_p16_s64): Likewise.
27151         (vreinterpret_p16_f32): Likewise.
27152         (vreinterpret_p16_u8): Likewise.
27153         (vreinterpret_p16_u16): Likewise.
27154         (vreinterpret_p16_u32): Likewise.
27155         (vreinterpret_p16_u64): Likewise.
27156         (vreinterpret_p16_p8): Likewise.
27157         (vreinterpretq_p16_s8): Likewise.
27158         (vreinterpretq_p16_s16): Likewise.
27159         (vreinterpretq_p16_s32): Likewise.
27160         (vreinterpretq_p16_s64): Likewise.
27161         (vreinterpretq_p16_f32): Likewise.
27162         (vreinterpretq_p16_u8): Likewise.
27163         (vreinterpretq_p16_u16): Likewise.
27164         (vreinterpretq_p16_u32): Likewise.
27165         (vreinterpretq_p16_u64): Likewise.
27166         (vreinterpretq_p16_p8): Likewise.
27167         (vreinterpret_f32_s8): Likewise.
27168         (vreinterpret_f32_s16): Likewise.
27169         (vreinterpret_f32_s32): Likewise.
27170         (vreinterpret_f32_s64): Likewise.
27171         (vreinterpret_f32_u8): Likewise.
27172         (vreinterpret_f32_u16): Likewise.
27173         (vreinterpret_f32_u32): Likewise.
27174         (vreinterpret_f32_u64): Likewise.
27175         (vreinterpret_f32_p8): Likewise.
27176         (vreinterpret_f32_p16): Likewise.
27177         (vreinterpretq_f32_s8): Likewise.
27178         (vreinterpretq_f32_s16): Likewise.
27179         (vreinterpretq_f32_s32): Likewise.
27180         (vreinterpretq_f32_s64): Likewise.
27181         (vreinterpretq_f32_u8): Likewise.
27182         (vreinterpretq_f32_u16): Likewise.
27183         (vreinterpretq_f32_u32): Likewise.
27184         (vreinterpretq_f32_u64): Likewise.
27185         (vreinterpretq_f32_p8): Likewise.
27186         (vreinterpretq_f32_p16): Likewise.
27187         (vreinterpret_s64_s8): Likewise.
27188         (vreinterpret_s64_s16): Likewise.
27189         (vreinterpret_s64_s32): Likewise.
27190         (vreinterpret_s64_f32): Likewise.
27191         (vreinterpret_s64_u8): Likewise.
27192         (vreinterpret_s64_u16): Likewise.
27193         (vreinterpret_s64_u32): Likewise.
27194         (vreinterpret_s64_u64): Likewise.
27195         (vreinterpret_s64_p8): Likewise.
27196         (vreinterpret_s64_p16): Likewise.
27197         (vreinterpretq_s64_s8): Likewise.
27198         (vreinterpretq_s64_s16): Likewise.
27199         (vreinterpretq_s64_s32): Likewise.
27200         (vreinterpretq_s64_f32): Likewise.
27201         (vreinterpretq_s64_u8): Likewise.
27202         (vreinterpretq_s64_u16): Likewise.
27203         (vreinterpretq_s64_u32): Likewise.
27204         (vreinterpretq_s64_u64): Likewise.
27205         (vreinterpretq_s64_p8): Likewise.
27206         (vreinterpretq_s64_p16): Likewise.
27207         (vreinterpret_u64_s8): Likewise.
27208         (vreinterpret_u64_s16): Likewise.
27209         (vreinterpret_u64_s32): Likewise.
27210         (vreinterpret_u64_s64): Likewise.
27211         (vreinterpret_u64_f32): Likewise.
27212         (vreinterpret_u64_u8): Likewise.
27213         (vreinterpret_u64_u16): Likewise.
27214         (vreinterpret_u64_u32): Likewise.
27215         (vreinterpret_u64_p8): Likewise.
27216         (vreinterpret_u64_p16): Likewise.
27217         (vreinterpretq_u64_s8): Likewise.
27218         (vreinterpretq_u64_s16): Likewise.
27219         (vreinterpretq_u64_s32): Likewise.
27220         (vreinterpretq_u64_s64): Likewise.
27221         (vreinterpretq_u64_f32): Likewise.
27222         (vreinterpretq_u64_u8): Likewise.
27223         (vreinterpretq_u64_u16): Likewise.
27224         (vreinterpretq_u64_u32): Likewise.
27225         (vreinterpretq_u64_p8): Likewise.
27226         (vreinterpretq_u64_p16): Likewise.
27227         (vreinterpret_s8_s16): Likewise.
27228         (vreinterpret_s8_s32): Likewise.
27229         (vreinterpret_s8_s64): Likewise.
27230         (vreinterpret_s8_f32): Likewise.
27231         (vreinterpret_s8_u8): Likewise.
27232         (vreinterpret_s8_u16): Likewise.
27233         (vreinterpret_s8_u32): Likewise.
27234         (vreinterpret_s8_u64): Likewise.
27235         (vreinterpret_s8_p8): Likewise.
27236         (vreinterpret_s8_p16): Likewise.
27237         (vreinterpretq_s8_s16): Likewise.
27238         (vreinterpretq_s8_s32): Likewise.
27239         (vreinterpretq_s8_s64): Likewise.
27240         (vreinterpretq_s8_f32): Likewise.
27241         (vreinterpretq_s8_u8): Likewise.
27242         (vreinterpretq_s8_u16): Likewise.
27243         (vreinterpretq_s8_u32): Likewise.
27244         (vreinterpretq_s8_u64): Likewise.
27245         (vreinterpretq_s8_p8): Likewise.
27246         (vreinterpretq_s8_p16): Likewise.
27247         (vreinterpret_s16_s8): Likewise.
27248         (vreinterpret_s16_s32): Likewise.
27249         (vreinterpret_s16_s64): Likewise.
27250         (vreinterpret_s16_f32): Likewise.
27251         (vreinterpret_s16_u8): Likewise.
27252         (vreinterpret_s16_u16): Likewise.
27253         (vreinterpret_s16_u32): Likewise.
27254         (vreinterpret_s16_u64): Likewise.
27255         (vreinterpret_s16_p8): Likewise.
27256         (vreinterpret_s16_p16): Likewise.
27257         (vreinterpretq_s16_s8): Likewise.
27258         (vreinterpretq_s16_s32): Likewise.
27259         (vreinterpretq_s16_s64): Likewise.
27260         (vreinterpretq_s16_f32): Likewise.
27261         (vreinterpretq_s16_u8): Likewise.
27262         (vreinterpretq_s16_u16): Likewise.
27263         (vreinterpretq_s16_u32): Likewise.
27264         (vreinterpretq_s16_u64): Likewise.
27265         (vreinterpretq_s16_p8): Likewise.
27266         (vreinterpretq_s16_p16): Likewise.
27267         (vreinterpret_s32_s8): Likewise.
27268         (vreinterpret_s32_s16): Likewise.
27269         (vreinterpret_s32_s64): Likewise.
27270         (vreinterpret_s32_f32): Likewise.
27271         (vreinterpret_s32_u8): Likewise.
27272         (vreinterpret_s32_u16): Likewise.
27273         (vreinterpret_s32_u32): Likewise.
27274         (vreinterpret_s32_u64): Likewise.
27275         (vreinterpret_s32_p8): Likewise.
27276         (vreinterpret_s32_p16): Likewise.
27277         (vreinterpretq_s32_s8): Likewise.
27278         (vreinterpretq_s32_s16): Likewise.
27279         (vreinterpretq_s32_s64): Likewise.
27280         (vreinterpretq_s32_f32): Likewise.
27281         (vreinterpretq_s32_u8): Likewise.
27282         (vreinterpretq_s32_u16): Likewise.
27283         (vreinterpretq_s32_u32): Likewise.
27284         (vreinterpretq_s32_u64): Likewise.
27285         (vreinterpretq_s32_p8): Likewise.
27286         (vreinterpretq_s32_p16): Likewise.
27287         (vreinterpret_u8_s8): Likewise.
27288         (vreinterpret_u8_s16): Likewise.
27289         (vreinterpret_u8_s32): Likewise.
27290         (vreinterpret_u8_s64): Likewise.
27291         (vreinterpret_u8_f32): Likewise.
27292         (vreinterpret_u8_u16): Likewise.
27293         (vreinterpret_u8_u32): Likewise.
27294         (vreinterpret_u8_u64): Likewise.
27295         (vreinterpret_u8_p8): Likewise.
27296         (vreinterpret_u8_p16): Likewise.
27297         (vreinterpretq_u8_s8): Likewise.
27298         (vreinterpretq_u8_s16): Likewise.
27299         (vreinterpretq_u8_s32): Likewise.
27300         (vreinterpretq_u8_s64): Likewise.
27301         (vreinterpretq_u8_f32): Likewise.
27302         (vreinterpretq_u8_u16): Likewise.
27303         (vreinterpretq_u8_u32): Likewise.
27304         (vreinterpretq_u8_u64): Likewise.
27305         (vreinterpretq_u8_p8): Likewise.
27306         (vreinterpretq_u8_p16): Likewise.
27307         (vreinterpret_u16_s8): Likewise.
27308         (vreinterpret_u16_s16): Likewise.
27309         (vreinterpret_u16_s32): Likewise.
27310         (vreinterpret_u16_s64): Likewise.
27311         (vreinterpret_u16_f32): Likewise.
27312         (vreinterpret_u16_u8): Likewise.
27313         (vreinterpret_u16_u32): Likewise.
27314         (vreinterpret_u16_u64): Likewise.
27315         (vreinterpret_u16_p8): Likewise.
27316         (vreinterpret_u16_p16): Likewise.
27317         (vreinterpretq_u16_s8): Likewise.
27318         (vreinterpretq_u16_s16): Likewise.
27319         (vreinterpretq_u16_s32): Likewise.
27320         (vreinterpretq_u16_s64): Likewise.
27321         (vreinterpretq_u16_f32): Likewise.
27322         (vreinterpretq_u16_u8): Likewise.
27323         (vreinterpretq_u16_u32): Likewise.
27324         (vreinterpretq_u16_u64): Likewise.
27325         (vreinterpretq_u16_p8): Likewise.
27326         (vreinterpretq_u16_p16): Likewise.
27327         (vreinterpret_u32_s8): Likewise.
27328         (vreinterpret_u32_s16): Likewise.
27329         (vreinterpret_u32_s32): Likewise.
27330         (vreinterpret_u32_s64): Likewise.
27331         (vreinterpret_u32_f32): Likewise.
27332         (vreinterpret_u32_u8): Likewise.
27333         (vreinterpret_u32_u16): Likewise.
27334         (vreinterpret_u32_u64): Likewise.
27335         (vreinterpret_u32_p8): Likewise.
27336         (vreinterpret_u32_p16): Likewise.
27337         (vreinterpretq_u32_s8): Likewise.
27338         (vreinterpretq_u32_s16): Likewise.
27339         (vreinterpretq_u32_s32): Likewise.
27340         (vreinterpretq_u32_s64): Likewise.
27341         (vreinterpretq_u32_f32): Likewise.
27342         (vreinterpretq_u32_u8): Likewise.
27343         (vreinterpretq_u32_u16): Likewise.
27344         (vreinterpretq_u32_u64): Likewise.
27345         (vreinterpretq_u32_p8): Likewise.
27346         (vreinterpretq_u32_p16): Likewise.
27348 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
27350         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
27351         Pattern extended.
27352         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
27353         (sqabs): Likewise.
27354         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
27355         (vqnegd_s64): Likewise.
27356         (vqabs_s64): Likewise.
27357         (vqabsd_s64): Likewise.
27359 2014-04-22  Richard Henderson  <rth@redhat.com>
27361         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
27362         computation to the top of the loop.
27364 2014-04-22  Renlin  <renlin.li@arm.com>
27365             Jiong Wang  <jiong.wang@arm.com>
27367         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
27368         * config/aarch64/aarch64.c (aarch64_layout_frame)
27369         (aarch64_initial_elimination_offset): Likewise.
27371 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27373         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
27374         Fix indentation.
27376 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
27378         * machmode.h (bitwise_mode_for_mode): Declare.
27379         * stor-layout.h (bitwise_type_for_mode): Likewise.
27380         * stor-layout.c (bitwise_mode_for_mode): New function.
27381         (bitwise_type_for_mode): Likewise.
27382         * builtins.c (fold_builtin_memory_op): Use it instead of
27383         int_mode_for_mode and build_nonstandard_integer_type.
27385 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27387         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
27388         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
27389         (*-*-solaris2*): Simplify.
27390         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
27391         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
27392         *-*-solaris2.9* handling.
27394         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
27395         as bug.
27396         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
27397         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
27398         handling, simplify.
27399         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
27400         * configure: Regenerate.
27402         * config/i386/sol2-9.h: Remove.
27404         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
27405         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
27406         Remove Solaris 9 references.
27408 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
27410         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
27411         (floatuns<GPI:mode><GPF:mode>2): Remove.
27412         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
27413         and floatuns conversions.
27414         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
27415         and floatuns conversions.
27416         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
27417         (w1,w2): New mode attributes for inequal width conversions.
27419 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
27421         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
27422         the output asm format.
27424 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
27426         * config/aarch64/aarch64-simd.md
27427         (aarch64_cm<optab>di): Always split.
27428         (*aarch64_cm<optab>di): New.
27429         (aarch64_cmtstdi): Always split.
27430         (*aarch64_cmtstdi): New.
27432 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
27434         PR tree-optimization/60823
27435         * omp-low.c (ipa_simd_modify_function_body): Go through
27436         all SSA_NAMEs and for those refering to vector arguments
27437         which are going to be replaced adjust SSA_NAME_VAR and,
27438         if it is a default definition, change it into a non-default
27439         definition assigned at the beginning of function from new_decl.
27440         (ipa_simd_modify_stmt_ops): Rewritten.
27441         * tree-dfa.c (set_ssa_default_def): When removing default def,
27442         check for NULL loc instead of NULL *loc.
27444 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27446         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
27447         restrictions on core registers for DImode values in Thumb2.
27449 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
27451         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
27452         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
27454 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
27456         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
27457         (*iordi_notzesidi_di): Likewise.
27458         (*iordi_notsesidi_di): Likewise.
27460 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
27462         * config/arm/arm-protos.h (tune_params): New struct members.
27463         * config/arm/arm.c: Initialise tune_params per processor.
27464         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
27465         for speed, based on new tune_params.
27467 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
27469         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
27470         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
27471         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
27472         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
27473         * config/aarch64/arm_neon.h (vrnd_f64): Added.
27474         (vrnda_f64): Likewise.
27475         (vrndi_f64): Likewise.
27476         (vrndm_f64): Likewise.
27477         (vrndn_f64): Likewise.
27478         (vrndp_f64): Likewise.
27479         (vrndx_f64): Likewise.
27481 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27483         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
27484         GET_MODE_SIZE argument is enum machine_mode.
27486 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
27488         PR target/60910
27489         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
27490         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
27492 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
27494         PR middle-end/60281
27495         * asan.c (asan_emit_stack_protection): Force the base to align to
27496         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
27497         appropriate bits if STRICT_ALIGNMENT.
27498         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
27499         when asan is on.
27500         (expand_used_vars): Leave a space in the stack frame for alignment
27501         if STRICT_ALIGNMENT.
27503 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
27505         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
27506         than a gimple.
27507         (gimple_store_p): Likewise.
27508         (gimple_assign_load_p): Likewise.
27509         (gimple_assign_cast_p): Likewise.
27510         (gimple_clobber_p): Likewise.
27512         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
27513         rather than a gimple.
27514         (gimple_assign_cast_p): Likewise.
27516 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
27518         PR target/60735
27519         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
27520         If mode is DDmode and TARGET_E500_DOUBLE allow move.
27522         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
27523         more debug information for E500 if -mdebug=reg.
27525 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
27527         PR target/60909
27528         * config/i386/i386.c (ix86_expand_builtin)
27529         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
27530         register for target RTX.
27531         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
27533 2014-04-18  Cong Hou  <congh@google.com>
27535         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
27536         the widen-mult pattern by handling two operands with different sizes,
27537         and operands whose size is smaller than half of the result type.
27539 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
27541         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
27542         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
27543         (do_estimate_edge_time): Compute it.
27544         * ipa-inline.c (want_inline_small_function_p): Bypass
27545         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
27547 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
27549         * ipa-inline.c (spec_rem): New static variable.
27550         (dump_overall_stats): New function.
27551         (dump_inline_stats): New function.
27553 2014-04-18  Richard Henderson  <rth@redhat.com>
27555         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
27556         to GET_MODE_SIZE, not a reg_class_t.
27558 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27560         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
27561         (vsx_xxmrglw_<mode>): Likewise.
27563 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
27565         PR target/60876
27566         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
27567         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
27568         (rs6000_init_hard_regno_mode_ok): Likewise.
27570 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
27572         * ipa-inline.c (inline_small_functions): Account only non-cold
27573         functions.
27574         * doc/invoke.texi (inline-unit-growth): Update documentation.
27576 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
27578         * config/rs6000/rs6000.md (addti3, subti3): New.
27580 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
27582         PR target/60863
27583         * config/i386/i386.c (ix86_expand_clear): Remove outdated
27584         comment.  Check optimize_insn_for_size_p instead of
27585         optimize_insn_for_speed_p.
27587 2014-04-17  Martin Jambor  <mjambor@suse.cz>
27589         * gimple-iterator.c (gsi_start_edge): New function.
27590         * gimple-iterator.h (gsi_start_edge): Declare.
27591         * tree-sra.c (single_non_eh_succ): New function.
27592         (disqualify_ops_if_throwing_stmt): Renamed to
27593         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
27594         having one non-EH successor BB.
27595         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
27596         generate loads into replacements.
27597         (sra_modify_assign): Likewise and and also use the simple path for
27598         such statements.
27599         (sra_modify_function_body): Commit statements on edges.
27601 2014-04-17  Richard Biener  <rguenther@suse.de>
27603         PR middle-end/60849
27604         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
27605         comparison results and add clarifying comment.
27607 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
27609         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
27610         (blank_mode): Initialize it.
27611         (emit_mode_size_inline, emit_mode_nunits_inline,
27612         emit_mode_inner_inline): New functions.
27613         (emit_insn_modes_h): Call them and surround their output with
27614         #if GCC_VERSION >= 4001 ... #endif.
27615         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
27616         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
27617         mode_* arrays if the argument is __builtin_constant_p.
27618         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
27619         is enum machine_mode.
27621 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
27623         * passes.c (opt_pass::execute): Adjust.
27624         (pass_manager::execute_pass_mode_switching): Likewise.
27625         (early_local_passes::execute): Likewise.
27626         (execute_one_pass): Pass cfun to the pass's execute method.
27627         * tree-pass.h (opt_pass::execute): Add function * argument.
27628         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
27629         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
27630         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
27631         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
27632         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
27633         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
27634         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
27635         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
27636         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
27637         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
27638         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
27639         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
27640         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
27641         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
27642         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
27643         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
27644         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
27645         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
27646         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
27647         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
27648         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
27649         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
27650         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
27651         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
27652         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
27653         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
27654         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
27655         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
27656         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
27657         Adjust.
27659 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
27661         * passes.c (opt_pass::gate): Take function * argument.
27662         (gate_all_early_local_passes): Merge into
27663         (early_local_passes::gate): this.
27664         (gate_all_early_optimizations): Merge into
27665         (all_early_optimizations::gate): this.
27666         (gate_all_optimizations): Mege into
27667         (all_optimizations::gate): this.
27668         (gate_all_optimizations_g): Merge into
27669         (all_optimizations_g::gate): this.
27670         (gate_rest_of_compilation): Mege into
27671         (rest_of_compilation::gate): this.
27672         (gate_postreload): Merge into
27673         (postreload::gate): this.
27674         (dump_one_pass): Pass cfun to the pass's gate method.
27675         (execute_ipa_summary_passes): Likewise.
27676         (execute_one_pass): Likewise.
27677         (ipa_write_summaries_2): Likewise.
27678         (ipa_write_optimization_summaries_1): Likewise.
27679         (ipa_read_summaries_1): Likewise.
27680         (ipa_read_optimization_summaries_1): Likewise.
27681         (execute_ipa_stmt_fixups): Likewise.
27682         * tree-pass.h (opt_pass::gate): Add function * argument.
27683         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
27684         combine-stack-adj.c, combine.c, compare-elim.c,
27685         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
27686         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
27687         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
27688         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
27689         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
27690         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
27691         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
27692         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
27693         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
27694         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
27695         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
27696         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
27697         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
27698         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
27699         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
27700         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
27701         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
27702         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
27703         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
27704         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
27705         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
27706         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
27707         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
27708         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
27709         var-tracking.c, vtable-verify.c, web.c: Adjust.
27711 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
27713         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
27714         * configure: Regenerate.
27716 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
27718         * passes.c (dump_one_pass): don't check pass->has_gate.
27719         (execute_ipa_summary_passes): Likewise.
27720         (execute_one_pass): Likewise.
27721         (ipa_write_summaries_2): Likewise.
27722         (ipa_write_optimization_summaries_1): Likewise.
27723         (ipa_read_optimization_summaries_1): Likewise.
27724         (execute_ipa_stmt_fixups): Likewise.
27725         * tree-pass.h (pass_data::has_gate): Remove.
27726         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
27727         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
27728         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
27729         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
27730         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
27731         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
27732         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
27733         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
27734         gimple-low.c, gimple-ssa-isolate-paths.c,
27735         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
27736         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
27737         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
27738         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
27739         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
27740         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
27741         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
27742         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
27743         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
27744         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
27745         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
27746         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
27747         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
27748         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
27749         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
27750         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
27751         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
27752         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
27753         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
27754         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
27755         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
27756         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
27757         Adjust.
27759 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
27761         * pass_manager.h (pass_manager::register_dump_files_1): Remove
27762         declaration.
27763         * passes.c (pass_manager::register_dump_files_1): Merge into
27764         (pass_manager::register_dump_files): this, and remove its handling of
27765         properties since the pass always has the properties anyway.
27766         (pass_manager::pass_manager): Adjust.
27768 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
27770         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
27771         * passes.c (pass_manager::register_dump_files_1): Remove dead code
27772         dealing with properties.
27773         (pass_manager::register_dump_files): Adjust.
27775 2014-03-20  Mark Wielaard  <mjw@redhat.com>
27777         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
27778         then represent the bound as normal constant value.
27780 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
27782         PR target/60847
27783         Forward port from 4.8 branch
27784         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
27786         * config/i386/bmiintrin.h (_blsi_u32): New.
27787         (_blsi_u64): Ditto.
27788         (_blsr_u32): Ditto.
27789         (_blsr_u64): Ditto.
27790         (_blsmsk_u32): Ditto.
27791         (_blsmsk_u64): Ditto.
27792         (_tzcnt_u32): Ditto.
27793         (_tzcnt_u64): Ditto.
27795 2014-04-17  Kito Cheng  <kito@0xlab.org>
27797         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
27799 2014-04-17  Richard Biener  <rguenther@suse.de>
27801         PR middle-end/60849
27802         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
27803         boolean results for comparisons.
27805 2014-04-17  Richard Biener  <rguenther@suse.de>
27807         PR tree-optimization/60836
27808         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
27809         initial PHI args to be gimple values.
27811 2014-04-17  Richard Biener  <rguenther@suse.de>
27813         PR tree-optimization/60841
27814         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
27815         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
27816         of stmts to SLP build.
27817         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
27818         (vect_analyze_slp): Likewise.
27819         (vect_analyze_slp_instance): Likewise.
27820         (vect_build_slp_tree): Limit overall SLP tree growth.
27821         * tree-vectorizer.h (vect_analyze_data_refs,
27822         vect_analyze_slp): Adjust prototypes.
27824 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
27826         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
27827         Silvermont.
27829 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
27831         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
27832         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
27833         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
27834         for TARGET_SLOW_PSHUFB
27836 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
27838         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
27839         * config/i386/i386.c (intel_cost): Ditto.
27841 2014-04-17  Joey Ye  <joey.ye@arm.com>
27843         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
27845 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
27847         * opts.c (common_handle_option): Disable -fipa-reference coorectly
27848         with -fuse-profile.
27850 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
27852         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
27853         (type_all_derivations_known_p): New predicate.
27854         (type_all_ctors_visible_p): New predicate.
27855         (type_possibly_instantiated_p): New predicate.
27856         (get_odr_type): Compute all_derivations_known.
27857         (dump_odr_type): Dump the flag.
27858         (maybe_record_type): Cleanup.
27859         (record_target_from_binfo): Add bases_to_consider array;
27860         record bases for types w/o instances and skip CXX destructor.
27861         (possible_polymorphic_call_targets_1): Add bases_to_consider
27862         and consider_construction parameters; check if type may have instance.
27863         (get_polymorphic_call_info): Set maybe_in_construction to true
27864         when we know nothing.
27865         (record_targets_from_bases): Skip CXX destructors; they are
27866         never called for types in construction.
27867         (possible_polymorphic_call_targets): Do not record target when
27868         type may not have instance.
27870 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
27872         PR ipa/60854
27873         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
27874         external aliases alive, too.
27876 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
27878         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
27879         definition.
27881 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
27883         * final.c (compute_alignments): Do not apply loop alignment to a block
27884         falling through to the exit.
27886 2014-04-16  Catherine Moore  <clm@codesourcery.com>
27888         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
27889         Adjust constraints for microMIPS store patterns.
27891 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
27893         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
27895 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
27897         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
27898         (append_use): Run at -O0.
27899         (append_vdef): Likewise.
27900         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
27901         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
27903 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
27905         PR tree-optimization/60844
27906         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
27907         (propagate_op_to_single_use, remove_visited_stmt_chain,
27908         linearize_expr, repropagate_negates, reassociate_bb): Use it
27909         instead of gsi_remove.
27911 2014-04-16  Martin Jambor  <mjambor@suse.cz>
27913         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
27914         ipa_transforms_to_apply.
27915         (cgraph_function_versioning): Assert that old_node has empty
27916         ipa_transforms_to_apply.
27917         * trans-mem.c (ipa_tm_create_version): Likewise.
27918         * tree-inline.c (tree_function_versioning): Do not duplicate
27919         ipa_transforms_to_apply.
27921 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27923         PR target/60817
27924         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
27925         x86_64-*-* cases.
27926         Pass necessary as flags on 64-bit Solaris/x86.
27927         Use lowercase relocs for x86_64-*-*.
27928         * configure: Regenerate.
27930 2014-04-15  Jan Hubicka  <jh@suse.cz>
27932         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
27933         (maybe_record_node, likely_target_p): Use it.
27935 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27937         PR target/60839
27938         Revert following patch
27940         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27942         PR target/60735
27943         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
27944         software floating point or no floating point registers, do not
27945         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
27946         in GPRs that occurs after we tested for GPRs that would never be
27947         true.
27949         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
27950         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
27951         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
27952         specifically allow DDmode, since that does not use the SPE SIMD
27953         instructions.
27955 2014-03-21  Mark Wielaard  <mjw@redhat.com>
27957         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
27958         as unsigned or int depending on type and value used.
27960 2014-04-15  Richard Biener  <rguenther@suse.de>
27962         PR rtl-optimization/56965
27963         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
27964         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
27965         ... here.
27966         * alias.c (true_dependence_1): Do not call
27967         nonoverlapping_component_refs_p.
27968         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
27969         nonoverlapping_component_refs_p.
27970         (indirect_refs_may_alias_p): Likewise.
27972 2014-04-15  Teresa Johnson  <tejohnson@google.com>
27974         * cfg.c (dump_bb_info): Fix flags check.
27975         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
27977 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27979         PR rtl-optimization/60663
27980         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
27981         avoid 0 cost.
27983 2014-04-15  Richard Biener  <rguenther@suse.de>
27985         * lto-streamer.h (LTO_major_version): Bump to 4.
27987 2014-04-15  Richard Biener  <rguenther@suse.de>
27989         * common.opt (lto_partition_model): New enum.
27990         (flto-partition=): Merge separate options with a single with argument,
27991         add -flto-partition=one support.
27992         * flag-types.h (enum lto_partition_model): Declare.
27993         * opts.c (finish_options): Remove duplicate -flto-partition=
27994         option check.
27995         * lto-wrapper.c (run_gcc): Adjust.
27997 2014-04-15  Richard Biener  <rguenther@suse.de>
27999         * alias.c (ncr_compar): New function.
28000         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
28002 2014-04-15  Richard Biener  <rguenther@suse.de>
28004         * alias.c (record_component_aliases): Do not walk BINFOs.
28006 2014-04-15  Richard Biener  <rguenther@suse.de>
28008         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28009         Add struct function argument and adjust.
28010         (find_func_aliases_for_call): Likewise.
28011         (find_func_aliases): Likewise.
28012         (find_func_clobbers): Likewise.
28013         (intra_create_variable_infos): Likewise.
28014         (compute_points_to_sets): Likewise.
28015         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
28017 2014-04-15  Richard Biener  <rguenther@suse.de>
28019         * tree.c (iterative_hash_expr): Use enum tree_code_class
28020         to store TREE_CODE_CLASS.
28021         (tree_block): Likewise.
28022         (tree_set_block): Likewise.
28023         * tree.h (fold_build_pointer_plus_loc): Use
28024         convert_to_ptrofftype_loc.
28026 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
28028         PR plugins/59335
28029         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
28030         added in 4.9.
28032 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
28034         * cfgloop.h (struct loop): Move force_vectorize down.
28035         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
28036         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
28037         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
28038         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
28039         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
28040         * tree-core.h (enum annot_expr_kind): Add new kind values.
28041         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
28042         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
28043         kinds.
28044         * tree.def (ANNOTATE_EXPR): Tweak comment.
28046 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
28048         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
28049         cxa_pure_virtual).
28051 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
28053         * tree.h (TYPE_IDENTIFIER): Declare.
28054         * tree.c (subrange_type_for_debug_p): Use it.
28055         * godump.c (go_format_type): Likewise.
28056         * dwarf2out.c (is_cxx_auto, modified_type_die,
28057         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
28058         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
28060 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
28062         PR lto/60820
28063         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
28065 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
28067         * config/i386/i386.c (examine_argument): Return bool.  Return true if
28068         parameter should be passed in memory.
28069         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
28070         (construct_container): Update calls to examine_argument.
28071         (function_arg_advance_64): Ditto.
28072         (return_in_memory_32): Merge with ix86_return_in_memory.
28073         (return_in_memory_64): Ditto.
28074         (return_in_memory_ms_64): Ditto.
28076 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
28078         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
28079         * coverage.c (coverage_compute_profile_id): Handle externally visible
28080         symbols.
28082 2014-04-14  Martin Jambor  <mjambor@suse.cz>
28084         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
28085         DECL_DISREGARD_INLINE_LIMITS functions.
28087 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
28089         PR target/60827
28090         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
28092 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
28094         PR target/60827
28095         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
28096         optimize_insn_for_speed_p instead of
28097         optimize_function_for_speed_p.
28099 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
28101         * doc/invoke.texi (free): Document AArch64.
28103 2014-04-14  Richard Biener  <rguenther@suse.de>
28105         PR tree-optimization/60042
28106         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
28107         (insert_into_preds_of_block): Do not prevent PHI insertion
28108         for REFERENCE exprs here ...
28109         (eliminate_dom_walker::before_dom_children): ... but prevent
28110         their use here under similar conditions when applied to the
28111         IL after PRE optimizations.
28113 2014-04-14  Richard Biener  <rguenther@suse.de>
28115         * passes.def: Move early points-to after early SRA.
28117 2014-04-14  Richard Biener  <rguenther@suse.de>
28119         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
28120         check for which sign-changes we allow when forwarding
28121         a converted value into a switch.
28123 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
28125         * stor-layout.c (place_field): Finalize non-constant offset for the
28126         field, if any.
28128 2014-04-14  Richard Biener  <rguenther@suse.de>
28130         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
28131         as argument.
28132         (expand_switch_using_bit_tests_p): Likewise.
28133         (process_switch): Compute and pass on speed_p based on the
28134         switch stmt.
28135         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
28136         optimize_bb_for_speed_p.
28138 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
28140         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
28141         * function.h (struct function): Rename has_force_vect_loops into
28142         has_force_vectorize_loops.
28143         * lto-streamer-in.c (input_cfg): Adjust for renaming.
28144         (input_struct_function_base): Likewise.
28145         * lto-streamer-out.c (output_cfg): Likewise.
28146         (output_struct_function_base): Likewise.
28147         * omp-low.c (expand_omp_simd): Likewise.
28148         * tree-cfg.c (move_sese_region_to_fn): Likewise.
28149         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
28150         (version_loop_for_if_conversion): Likewise.
28151         (tree_if_conversion): Likewise.
28152         (main_tree_if_conversion): Likewise.
28153         (gate_tree_if_conversion): Likewise.
28154         * tree-inline.c (copy_loops): Likewise.
28155         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
28156         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
28157         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
28158         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
28159         * tree-vectorizer.c (vectorize_loops): Likewise.
28160         * tree-vectorizer.h (unlimited_cost_model): Likewise.
28162 2014-04-14  Richard Biener  <rguenther@suse.de>
28164         PR lto/60720
28165         * lto-streamer-out.c (wrap_refs): New function.
28166         (lto_output): Wrap symbol references in global initializes in
28167         type-preserving MEM_REFs.
28169 2014-04-14  Christian Bruel  <christian.bruel@st.com>
28171         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
28173 2014-04-14  Christian Bruel  <christian.bruel@st.com>
28175         * config/sh/sh.md (setmemqi): New expand pattern.
28176         * config/sh/sh.h (CLEAR_RATIO): Define.
28177         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
28178         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
28180 2014-04-14  Richard Biener  <rguenther@suse.de>
28182         PR middle-end/55022
28183         * fold-const.c (negate_expr_p): Don't negate directional rounding
28184         division.
28185         (fold_negate_expr): Likewise.
28187 2014-04-14  Richard Biener  <rguenther@suse.de>
28189         PR tree-optimization/59817
28190         PR tree-optimization/60453
28191         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
28192         recursion to catch all CHRECs in the scalar evolution and restrict
28193         the predicate for the remains appropriately.
28195 2014-04-12  Catherine Moore  <clm@codesourcery.com>
28197         * config/mips/constraints.md: Add new register constraint "kb".
28198         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
28199         (*movhi_internal): Likewise.
28200         (*movqi_internal): Likewise.
28201         * config/mips/mips.h (M16_STORE_REGS): New register class.
28202         (REG_CLASS_NAMES): Add M16_STORE_REGS.
28203         (REG_CLASS_CONTENTS): Likewise.
28204         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
28206 2014-04-11  Tobias Burnus  <burnus@net-b.de>
28208         PR c/60194
28209         * doc/invoke.texi (-Wformat-signedness): Document it.
28210         (Wformat=2): Mention that this enables -Wformat-signedness.
28212 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28214         * common/config/epiphany/epiphany-common.c
28215         (epiphany_option_optimization_table): Enable section anchors by
28216         default at -O1 or higher.
28217         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
28218         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
28219         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
28220         carries no extra cost.
28221         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
28222         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
28223         * config/epiphany/predicates.md (memclob_operand): New predicate.
28224         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
28225         Use memclob_operand predicate and X constraint for operand 3.
28227 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28229         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
28230         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
28231         its operands.
28233 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28235         PR rtl-optimization/60651
28236         * mode-switching.c (optimize_mode_switching): Make sure to emit
28237         sets of a lower numbered entity before sets of a higher numbered
28238         entity to a mode of the same or lower priority.
28239         When creating a seginfo for a basic block that starts with a code
28240         label, move the insertion point past the code label.
28241         (new_seginfo): Document and enforce requirement that
28242         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
28243         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
28244         * doc/tm.texi: Regenerate.
28246 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
28248         PR target/60811
28249         * config/arc/arc.c (arc_save_restore): Fix assert typo.
28251 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
28253         * BASE-VER: Set to 4.10.0.
28255 2014-04-11  Tobias Burnus  <burnus@net-b.de>
28257         PR other/59055
28258         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
28259         * doc/gcc.texi (Service): Update description in the @menu
28260         * doc/invoke.texi (Option Summary): Remove misplaced and
28261         duplicated @menu.
28263 2014-04-11  Steve Ellcey  <sellcey@mips.com>
28264             Jakub Jelinek  <jakub@redhat.com>
28266         PR middle-end/60556
28267         * expr.c (convert_move): Use emit_store_flag_force instead of
28268         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
28269         argument to it.
28271 2014-04-11  Richard Biener  <rguenther@suse.de>
28273         PR middle-end/60797
28274         * varasm.c (assemble_alias): Avoid endless error reporting
28275         recursion by setting TREE_ASM_WRITTEN.
28277 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28279         * config/s390/s390.md: Add a splitter for NOT rtx.
28281 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
28283         PR rtl-optimization/60663
28284         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
28286 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
28287             Jakub Jelinek  <jakub@redhat.com>
28289         PR lto/60567
28290         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
28291         flag from decl_node to node.
28293 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28295         PR debug/60655
28296         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
28297         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
28298         ameliorating the cases where it can be.
28300 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
28302         Revert
28303         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
28305         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
28306         (loadsync_<mode>): Change mode.
28307         (load_quadpti, store_quadpti): New.
28308         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
28309         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
28310         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
28312 2014-04-09  Cong Hou  <congh@google.com>
28314         PR testsuite/60773
28315         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
28316         documentation.
28318 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28320         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
28321         instead of vnor to exploit possible fusion opportunity in the
28322         future.
28323         (altivec_expand_vec_perm_const_le): Likewise.
28325 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
28327         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
28328         (loadsync_<mode>): Change mode.
28329         (load_quadpti, store_quadpti): New.
28330         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
28331         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
28333 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
28335         PR target/60763
28336         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
28337         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
28338         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
28340 2014-04-08  Richard Biener  <rguenther@suse.de>
28342         PR middle-end/60706
28343         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
28344         a 64bit widest int print double-int similar to on HWI64 hosts.
28346 2014-04-08  Richard Biener  <rguenther@suse.de>
28348         PR tree-optimization/60785
28349         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
28350         default defs properly.
28352 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
28354         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
28355         (Weffc++): Likewise.
28357 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
28359         * ipa-devirt.c (maybe_record_node): When node is not recorded,
28360         set completep to false rather than true.
28362 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
28364         PR target/60504
28365         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
28366         ARM_TARGET2_DWARF_FORMAT.
28368 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
28370         PR target/60609
28371         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
28372         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
28373         ADDR_DIFF_VEC.
28375 2014-04-07  Richard Biener  <rguenther@suse.de>
28377         PR tree-optimization/60766
28378         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
28379         (may_eliminate_iv): Convert cand_value_at result to desired type.
28381 2014-04-07  Jason Merrill  <jason@redhat.com>
28383         PR c++/60731
28384         * common.opt (-fno-gnu-unique): Add.
28385         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
28387 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28389         * haifa-sched.c: Fix outdated function reference and minor
28390         grammar errors in introductory comment.
28392 2014-04-07  Richard Biener  <rguenther@suse.de>
28394         PR middle-end/60750
28395         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
28396         for noreturn calls.
28397         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
28399 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
28401         PR debug/55794
28402         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
28403         size accounting for thunks.
28404         (pa_asm_output_mi_thunk): Use final_start_function() and
28405         final_end_function() to output function start and end directives.
28407 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
28409         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
28410         device specific ISA/ feature information. Remove short_sp and
28411         errata_skip ds.  Add avr_device_specific_features enum to have device
28412         specific info.
28413         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
28414         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
28415         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
28416         updated device specific info.
28417         * config/avr/avr-mcus.def: Merge device specific details to
28418         dev_attribute field.
28419         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
28420         errata_skip.
28421         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
28422         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
28423         assembler if RMW isa supported by current device.
28424         * config/avr/genmultilib.awk: Update as device info structure changed.
28425         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
28427 2014-04-04  Cong Hou  <congh@google.com>
28429         PR tree-optimization/60656
28430         * tree-vect-stmts.c (supportable_widening_operation):
28431         Fix a bug that elements in a vector with vect_used_by_reduction
28432         property are incorrectly reordered when the operation on it is not
28433         consistant with the one in reduction operation.
28435 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
28437         PR rtl-optimization/60155
28438         * gcse.c (record_set_data): New function.
28439         (single_set_gcse): New function.
28440         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
28441         (hoist_code): Likewise.
28442         (get_pressure_class_and_nregs): Likewise.
28444 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
28446         * explow.c (probe_stack_range): Emit a final optimization blockage.
28448 2014-04-04  Anthony Green  <green@moxielogic.com>
28450         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
28451         typos.
28453 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
28455         PR ipa/59626
28456         * lto-cgraph.c (input_overwrite_node): Check that partitioning
28457         flags are set only during streaming.
28458         * ipa.c (process_references, walk_polymorphic_call_targets,
28459         symtab_remove_unreachable_nodes): Drop bodies of always inline
28460         after early inlining.
28461         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
28463 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
28464         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28466         PR debug/60655
28467         * dwarf2out.c (const_ok_for_output_1): Reject expressions
28468         containing a NOT.
28470 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28472         PR bootstrap/60743
28473         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
28474         duration.
28475         (cortex_a53_fdivd): Likewise.
28477 2014-04-04  Martin Jambor  <mjambor@suse.cz>
28479         PR ipa/60640
28480         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
28481         Adjust all callers.
28482         * cgraph.c (clone_of_p): Also return true if thunks match.
28483         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
28484         cgraph_function_or_thunk_node and an obsolete comment.
28485         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
28486         file.
28487         (build_function_decl_skip_args): Likewise.
28488         (set_new_clone_decl_and_node_flags): New function.
28489         (duplicate_thunk_for_node): Likewise.
28490         (redirect_edge_duplicating_thunks): Likewise.
28491         (cgraph_clone_node): New parameter args_to_skip, pass it to
28492         redirect_edge_duplicating_thunks which is called instead of
28493         cgraph_redirect_edge_callee.
28494         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
28495         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
28497 2014-04-04  Jeff Law  <law@redhat.com>
28499         PR target/60657
28500         * config/arm/predicates.md (const_int_I_operand): New predicate.
28501         (const_int_M_operand): Similarly.
28502         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
28503         const_int_operand.
28504         (insv_t2, extv_reg, extzv_t2): Likewise.
28505         (load_multiple_with_writeback): Similarly for const_int_I_operand.
28506         (pop_multiple_with_writeback_and_return): Likewise.
28507         (vfp_pop_multiple_with_writeback): Likewise
28509 2014-04-04  Richard Biener  <rguenther@suse.de>
28511         PR ipa/60746
28512         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
28513         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
28514         non-GIMPLE_LABELs.
28515         * gimplify.h (gimple_add_tmp_var_fn): Declare.
28516         * gimplify.c (gimple_add_tmp_var_fn): New function.
28517         * gimple-expr.h (create_tmp_reg_fn): Declare.
28518         * gimple-expr.c (create_tmp_reg_fn): New function.
28519         * gimple-low.c (record_vars_into): Don't change cfun.
28520         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
28521         code generation without cfun.
28523 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
28525         PR bootstrap/60719
28526         * Makefile.in (install-driver): Fix shell scripting.
28528 2014-04-03  Cong Hou  <congh@google.com>
28530         PR tree-optimization/60505
28531         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
28532         threshold of number of iterations below which no vectorization
28533         will be done.
28534         * tree-vect-loop.c (new_loop_vec_info):
28535         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
28536         * tree-vect-loop.c (vect_analyze_loop_operations):
28537         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
28538         * tree-vect-loop.c (vect_transform_loop):
28539         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
28540         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
28541         of iterations of the loop and see if we should build the epilogue.
28543 2014-04-03  Richard Biener  <rguenther@suse.de>
28545         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
28546         (streamer_tree_cache_create): Adjust.
28547         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
28548         to allow optional nodes array.
28549         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
28550         (streamer_tree_cache_append): Likewise.
28551         (streamer_tree_cache_create): Create nodes array optionally
28552         as specified by parameter.
28553         * lto-streamer-out.c (create_output_block): Avoid maintaining
28554         the node array in the writer cache.
28555         (DFS_write_tree): Remove assertion.
28556         (produce_asm_for_decls): Free the out decl state hash table early.
28557         * lto-streamer-in.c (lto_data_in_create): Adjust for
28558         streamer_tree_cache_create prototype change.
28560 2014-04-03  Richard Biener  <rguenther@suse.de>
28562         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
28563         set TREE_CHAIN to NULL_TREE.
28565 2014-04-03  Richard Biener  <rguenther@suse.de>
28567         PR tree-optimization/60740
28568         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
28569         over all GIMPLE_COND operands.
28571 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
28573         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
28574         (Weffc++): Remove Scott's numbering, merge lists and reference
28575         Wnon-virtual-dtor.
28577 2014-04-03  Nick Clifton  <nickc@redhat.com>
28579         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
28580         properly.
28582 2014-04-03  Martin Jambor  <mjambor@suse.cz>
28584         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
28585         mention gcc_unreachable before failing.
28586         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
28587         removed symbols.
28589 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
28591         PR ipa/60659
28592         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
28593         inconsistent code and instead mark the context inconsistent.
28594         (possible_polymorphic_call_targets): For inconsistent contexts
28595         return empty complete list.
28597 2014-04-02  Anthony Green  <green@moxielogic.com>
28599         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
28600         (extendqisi2, extendhisi2): Define.
28601         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
28602         (WCHAR_TYPE): Change to unsigned int.
28604 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28606         PR tree-optimization/60733
28607         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
28608         insertion point for PHI candidates to be the end of the feeding
28609         block for the PHI argument.
28611 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
28613         PR rtl-optimization/60650
28614         * lra-constraints.c (process_alt_operands): Decrease reject for
28615         earlyclobber matching.
28617 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28619         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
28621 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28623         * config/spu/spu.c (pad_bb): Do not crash when the last
28624         insn is CODE_FOR_blockage.
28626 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28628         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
28629         lies outside the target mode.
28631 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28633         PR target/60735
28634         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
28635         software floating point or no floating point registers, do not
28636         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
28637         in GPRs that occurs after we tested for GPRs that would never be
28638         true.
28640         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
28641         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
28642         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
28643         specifically allow DDmode, since that does not use the SPE SIMD
28644         instructions.
28646 2014-04-02  Richard Biener  <rguenther@suse.de>
28648         PR middle-end/60729
28649         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
28650         MODE_INTs.  Properly use negv_optab.
28651         (expand_abs): Likewise.
28653 2014-04-02  Richard Biener  <rguenther@suse.de>
28655         PR bootstrap/60719
28656         * Makefile.in (install-driver): Guard extra installs with special
28657         names properly.
28659 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
28661         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28662         Document vec_vgbbd.
28664 2014-04-01  Richard Henderson  <rth@redhat.com>
28666         PR target/60704
28667         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
28668         alternative enabled before register allocation.
28670 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
28672         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
28673         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
28674         typo.
28675         (nios2_large_got_address): Remove unneeded 'sym' parameter.
28676         (nios2_got_address): Update nios2_large_got_address call site.
28677         (nios2_delegitimize_address): New function.
28678         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
28679         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
28680         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
28682 2014-04-01  Martin Husemann  <martin@duskware.de>
28684         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
28685         for -mabi=32.
28687 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
28689         PR rtl-optimization/60604
28690         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
28691         check from register_operand.
28692         (register_operand): Redefine in terms of general_operand.
28693         (nonmemory_operand): Use register_operand for the non-constant cases.
28695 2014-04-01  Richard Biener  <rguenther@suse.de>
28697         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
28699 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28701         * doc/invoke.texi (mapp-regs): Clarify.
28703 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
28705         * config/i386/avx512fintrin.h (__v32hi): Define type.
28706         (__v64qi): Likewise.
28707         (_mm512_set1_epi8): Define.
28708         (_mm512_set1_epi16): Define.
28709         (_mm512_set4_epi32): Define.
28710         (_mm512_set4_epi64): Define.
28711         (_mm512_set4_pd): Define.
28712         (_mm512_set4_ps): Define.
28713         (_mm512_setr4_epi64): Define.
28714         (_mm512_setr4_epi32): Define.
28715         (_mm512_setr4_pd): Define.
28716         (_mm512_setr4_ps): Define.
28717         (_mm512_setzero_epi32): Define.
28719 2014-03-31  Martin Jambor  <mjambor@suse.cz>
28721         PR middle-end/60647
28722         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
28723         callsite_arguments_match_p.  Updated all callers.  Also check types of
28724         corresponding formal parameters and actual arguments.
28725         (not_all_callers_have_enough_arguments_p) Renamed to
28726         some_callers_have_mismatched_arguments_p.
28728 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
28730         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
28732 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
28734         PR target/60034
28735         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
28736         section anchor.
28738 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
28740         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
28741         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
28742         Split out
28743         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
28744         Use FMAMODE_NOVF512 mode iterator.
28745         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
28746         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
28747         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
28748         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
28749         Split out
28750         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
28751         Use VF_128_256 mode iterator.
28752         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
28753         Ditto.
28755 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
28757         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
28758         static chain if needed.
28760 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
28762         PR target/60697
28763         * lra-constraints.c (index_part_to_reg): New.
28764         (process_address): Use it.
28766 2014-03-27  Jeff Law  <law@redhat.com>
28767             Jakub Jelinek  <jakub@redhat.com>
28769         PR target/60648
28770         * expr.c (do_tablejump): Use simplify_gen_binary rather than
28771         gen_rtx_{PLUS,MULT} to build up the address expression.
28773         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
28774         creating non-canonical RTL.
28776 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
28778         PR ipa/60243
28779         * ipa-inline.c (want_inline_small_function_p): Short circuit large
28780         functions; reorganize to make cheap checks first.
28781         (inline_small_functions): Do not estimate growth when dumping;
28782         it is expensive.
28783         * ipa-inline.h (inline_summary): Add min_size.
28784         (growth_likely_positive): New function.
28785         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
28786         (set_cond_stmt_execution_predicate): Cleanup.
28787         (estimate_edge_size_and_time): Compute min_size.
28788         (estimate_calls_size_and_time): Likewise.
28789         (estimate_node_size_and_time): Likewise.
28790         (inline_update_overall_summary): Update min_size.
28791         (do_estimate_edge_time): Likewise.
28792         (do_estimate_edge_size): Update.
28793         (do_estimate_edge_hints): Update.
28794         (growth_likely_positive): New function.
28796 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
28798         PR target/60693
28799         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
28800         also if addr has VOIDmode.
28802 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28804         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
28805         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
28806         Declare extern.
28807         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
28808         instructions as well as AdvancedSIMD loads.
28810 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28812         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
28813         Use crypto_aese type.
28814         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
28815         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
28816         crypto_aese, crypto_aesmc.  Move to types.md.
28817         * config/arm/types.md (crypto_aes): Split into crypto_aese,
28818         crypto_aesmc.
28819         * config/arm/iterators.md (crypto_type): Likewise.
28821 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
28823         * cgraph.c: Include expr.h and tree-dfa.h.
28824         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
28825         remove LHS.
28827 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
28829         PR target/60675
28830         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
28831         regs from checking multi-reg pseudos.
28833 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28835         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
28837 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28839         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
28840         if it would clobber the stack pointer, even temporarily.
28842 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
28844         * mode-switching.c: Make small adjustments to the top comment.
28846 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
28848         * config/rs6000/constraints.md (wD constraint): New constraint to
28849         match the constant integer to get the top DImode/DFmode out of a
28850         vector in a VSX register.
28852         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
28853         match the constant integer to get the top DImode/DFmode out of a
28854         vector in a VSX register.
28856         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
28857         for ISA 2.07.
28859         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28860         vbpermq builtins.
28862         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
28863         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
28865         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
28866         Optimize vec_extract of 64-bit values, where the value being
28867         extracted is in the top word, where we can use scalar
28868         instructions.  Add direct move and store support.  Combine the big
28869         endian/little endian vector select load support into a single insn.
28870         (vsx_extract_<mode>_internal1): Likewise.
28871         (vsx_extract_<mode>_internal2): Likewise.
28872         (vsx_extract_<mode>_load): Likewise.
28873         (vsx_extract_<mode>_store): Likewise.
28874         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
28875         combined into vsx_extract_<mode>_load.
28876         (vsx_extract_<mode>_one_le): Likewise.
28878         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
28879         define the top 64-bit vector element.
28881         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
28882         constraint.
28884         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28885         Document vec_vbpermq builtin.
28887         PR target/60672
28888         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
28889         enable use of xxsldwi and xxpermdi builtin functions.
28890         (vec_xxpermdi): Likewise.
28892         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
28893         Document use of vec_xxsldwi and vec_xxpermdi builtins.
28895 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
28897         PR rtl-optimization/60650
28898         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
28899         first_p.  Use it.
28900         (find_spills_for): New.
28901         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
28902         Spill all pseudos on the second iteration.
28904 2014-03-27  Marek Polacek  <polacek@redhat.com>
28906         PR c/50347
28907         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
28908         types.
28910 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28912         * config/s390/s390.c (s390_can_use_return_insn): Check for
28913         call-saved FPRs on 31 bit.
28915 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
28917         PR middle-end/60682
28918         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
28919         if they need regimplification, just drop them instead of
28920         calling gimple_regimplify_operands on them.
28922 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
28924         PR target/60580
28925         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
28926         (aarch64_frame_pointer_required): Adjust logic.
28927         (aarch64_can_eliminate): Adjust logic.
28928         (aarch64_override_options_after_change): Adjust logic.
28930 2014-03-27  Dehao Chen  <dehao@google.com>
28932         * ipa-inline.c (early_inliner): Update node's inline info.
28934 2014-03-26  Dehao Chen  <dehao@google.com>
28936         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
28937         compiler inserted conditional jumps for NAN float check.
28939 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
28941         * ubsan.h (ubsan_create_data): Change second argument's type
28942         to const location_t *.
28943         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
28944         _("<unknown>").
28945         (ubsan_create_data): Change second argument to const location_t *PLOC.
28946         Create Loc field whenever PLOC is non-NULL.
28947         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
28948         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
28949         callers.
28951         PR other/59545
28952         * real.c (real_to_integer2): Change type of low to UHWI.
28954 2014-03-26  Tobias Burnus  <burnus@net-b.de>
28956         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
28957         (CILK_SELF_SPECS): New define.
28958         (driver_self_specs): Use it.
28960 2014-03-26  Richard Biener  <rguenther@suse.de>
28962         * tree-pretty-print.c (percent_K_format): Implement special
28963         case for LTO and its stripped down BLOCK tree.
28965 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
28967         PR sanitizer/60636
28968         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
28970         * tree-vrp.c (simplify_internal_call_using_ranges): If only
28971         one range is range_int_cst_p, but not both, at least optimize
28972         addition/subtraction of 0 and multiplication by 0 or 1.
28973         * gimple-fold.c (gimple_fold_call): Fold
28974         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
28975         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
28976         INTEGER_CSTs, try to fold at least x * 0 and y - y.
28978 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
28980         PR rtl-optimization/60452
28981         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
28982         <case REG>: Return 1 for invalid offsets from the frame pointer.
28984 2014-03-26  Marek Polacek  <polacek@redhat.com>
28986         PR c/37428
28987         * doc/extend.texi (C Extensions): Mention variable-length arrays in
28988         a structure/union.
28990 2014-03-26  Marek Polacek  <polacek@redhat.com>
28992         PR c/39525
28993         * doc/extend.texi (Designated Inits): Describe what happens to omitted
28994         field members.
28996 2014-03-26  Marek Polacek  <polacek@redhat.com>
28998         PR other/59545
28999         * ira-color.c (update_conflict_hard_regno_costs): Perform the
29000         multiplication in unsigned type.
29002 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
29004         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
29006 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
29008         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
29010 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
29012         PR ipa/60315
29013         * cif-code.def (UNREACHABLE) New code.
29014         * ipa-inline.c (inline_small_functions): Skip edges to
29015         __builtlin_unreachable.
29016         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
29017         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
29018         predicate to __bulitin_unreachable.
29019         (set_cond_stmt_execution_predicate): Fix issue when
29020         invert_tree_comparison returns ERROR_MARK.
29021         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
29022         propagate to inline clones.
29023         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
29024         to unreachable.
29025         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
29026         * cgraphclones.c (cgraph_clone_node): If call destination is already
29027         ureachable, do not redirect it back.
29028         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
29029         unreachable.
29031 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
29033         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
29034         Do not modify inline clones.
29036 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
29038         * config/i386/i386.md (general_sext_operand): New mode attr.
29039         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
29040         don't generate (sign_extend (const_int)).
29041         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
29042         operands[2].  Use We constraint instead of <i> and
29043         <general_sext_operand> predicate instead of <general_operand>.
29044         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
29045         * config/i386/constraints.md (We): New constraint.
29046         * config/i386/predicates.md (x86_64_sext_operand,
29047         sext_operand): New predicates.
29049 2014-03-25  Martin Jambor  <mjambor@suse.cz>
29051         PR ipa/60600
29052         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
29053         inconsistent devirtualizations to __builtin_unreachable.
29055 2014-03-25  Marek Polacek  <polacek@redhat.com>
29057         PR c/35449
29058         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
29060 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
29062         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
29063         order of elements for big-endian.
29065 2014-03-25  Richard Biener  <rguenther@suse.de>
29067         PR middle-end/60635
29068         * gimplify-me.c (gimple_regimplify_operands): Update the
29069         re-gimplifed stmt.
29071 2014-03-25  Martin Jambor  <mjambor@suse.cz>
29073         PR ipa/59176
29074         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
29075         (lto_output_varpool_node): Likewise.
29076         (input_overwrite_node): Likewise.
29077         (input_varpool_node): Likewise.
29079 2014-03-25  Richard Biener  <rguenther@suse.de>
29081         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
29082         (run_gcc): Likewise.
29084 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
29086         * combine.c (simplify_compare_const): Add MODE argument.
29087         Handle mode_width 0 as very large mode_width.
29088         (try_combine, simplify_comparison): Adjust callers.
29090         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
29091         type to avoid signed integer overflow.
29092         * explow.c (plus_constant): Likewise.
29094 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29096         * doc/generic.texi: Correct typos.
29098 2014-03-24  Tobias Burnus  <burnus@net-b.de>
29100         * doc/invoke.texi (-flto): Expand section about
29101         using static libraries with LTO.
29103 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29105         PR rtl-optimization/60501
29106         * optabs.def (addptr3_optab): New optab.
29107         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
29108         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
29109         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
29111         * lra.c (emit_add3_insn): Use the addptr pattern if available.
29113         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
29115 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
29117         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
29118         _mm512_set1_pd.
29120         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
29121         (_mm256_undefined_ps): Define.
29122         (_mm256_undefined_pd): Define.
29123         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
29124         (_mm_undefined_pd): Define.
29125         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
29126         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
29127         (_mm512_undefined_ps): Define.
29128         (_mm512_undefined_pd): Define.
29129         Use _mm*_undefined_*.
29130         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
29132 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
29134         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
29135         (lshr_simd): DI mode added.
29136         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
29137         (aarch64_ushr_simddi): Likewise.
29138         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
29139         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
29140         (vshrd_n_u64): Likewise.
29142 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29144         * Makefile.in (s-macro_list): Depend on cc1.
29146 2014-03-23  Teresa Johnson  <tejohnson@google.com>
29148         * ipa-utils.c (ipa_print_order): Use specified dump file.
29150 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
29152         PR rtl-optimization/60601
29153         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
29155         * gcc.c (eval_spec_function): Initialize save_growing_value.
29157 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
29159         PR sanitizer/60613
29160         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
29161         code == MINUS_EXPR, never swap op0 with op1.
29163         * toplev.c (init_local_tick): Avoid signed integer multiplication
29164         overflow.
29165         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
29166         shift by first operand's bitsize.
29168 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
29170         PR target/60610
29171         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
29172         redefine to 1 or 0.
29173         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
29174         TARGET_ISA_64BIT_P(x).
29176 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29178         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
29179         pattern for vector nor instead of subtract from splat(-1).
29180         (altivec_expand_vec_perm_const_le): Likewise.
29182 2014-03-21  Richard Henderson  <rth@twiddle.net>
29184         PR target/60598
29185         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
29186         related insns after epilogue_completed.
29188 2014-03-21  Martin Jambor  <mjambor@suse.cz>
29190         PR ipa/59176
29191         * cgraph.h (symtab_node): New flag body_removed.
29192         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
29193         when removing bodies.
29194         * symtab.c (dump_symtab_base): Dump body_removed flag.
29195         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
29196         had their bodies removed.
29198 2014-03-21  Martin Jambor  <mjambor@suse.cz>
29200         PR ipa/60419
29201         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
29202         in the border.
29204 2014-03-21  Richard Biener  <rguenther@suse.de>
29206         PR tree-optimization/60577
29207         * tree-core.h (struct tree_base): Document nothrow_flag use
29208         in DECL_NONALIASED.
29209         * tree.h (DECL_NONALIASED): New.
29210         (may_be_aliased): Adjust.
29211         * coverage.c (build_var): Set DECL_NONALIASED.
29213 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
29215         * expr.c (expand_expr_real_1): Remove outdated comment.
29217 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
29219         PR middle-end/60597
29220         * ira.c (adjust_cleared_regs): Call copy_rtx on
29221         *reg_equiv[REGNO (loc)].src_p before passing it to
29222         simplify_replace_fn_rtx.
29224         PR target/60568
29225         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
29226         into CONST, put pic register as first operand of PLUS.  Use
29227         gen_const_mem for both 32-bit and 64-bit PIC got loads.
29229 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29231         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
29233 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
29235         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
29236         around for store forwarding issue in the FPU on the UT699.
29237         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
29238         loads and operations if -mfix-ut699 is specified.
29239         (divtf3_hq): Tweak attribute.
29240         (sqrttf2_hq): Likewise.
29242 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
29244         * calls.c (store_one_arg): Remove incorrect const qualification on the
29245         type of the temporary.
29246         * cfgexpand.c (expand_return): Likewise.
29247         * expr.c (expand_constructor): Likewise.
29248         (expand_expr_real_1): Likewise.
29250 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29252         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
29253         of parts.
29255 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
29257         PR target/60039
29258         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
29260 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
29262         * config/arm/aarch-common-protos.h
29263         (alu_cost_table): Fix spelling of "extend".
29264         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
29266 2014-03-19  Richard Biener  <rguenther@suse.de>
29268         PR middle-end/60553
29269         * tree-core.h (tree_type_common): Re-order pointer members
29270         to reduce recursion depth during GC walks.
29272 2014-03-19  Marek Polacek  <polacek@redhat.com>
29274         PR sanitizer/60569
29275         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
29276         before accessing it.
29278 2014-03-19  Richard Biener  <rguenther@suse.de>
29280         PR lto/59543
29281         * lto-streamer-in.c (input_function): In WPA stage do not drop
29282         debug stmts.
29284 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
29286         PR tree-optimization/60559
29287         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
29288         with build_zero_cst assignment.
29290 2014-03-18  Kai Tietz  <ktietz@redhat.com>
29292         PR rtl-optimization/56356
29293         * sdbout.c (sdbout_parms): Verify that parms'
29294         incoming argument is valid.
29295         (sdbout_reg_parms): Likewise.
29297 2014-03-18  Richard Henderson  <rth@redhat.com>
29299         PR target/60562
29300         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
29301         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
29302         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
29304 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
29306         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
29307         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
29308         Italicize plugin event names in description.  Explain that
29309         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
29310         Remind that no GCC functions should be called after PLUGIN_FINISH.
29311         Explain what pragmas with expansion are.
29313 2014-03-18  Martin Liska  <mliska@suse.cz>
29315         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
29316         gimple call statement is update.
29317         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
29318         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
29320 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
29322         PR sanitizer/60557
29323         * ubsan.c (ubsan_instrument_unreachable): Call
29324         initialize_sanitizer_builtins.
29325         (ubsan_pass): Likewise.
29327         PR sanitizer/60535
29328         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
29329         varpool_finalize_decl instead of rest_of_decl_compilation.
29331 2014-03-18  Richard Biener  <rguenther@suse.de>
29333         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
29334         by using bitmap_and_compl instead of bitmap_and_compl_into.
29335         (df_rd_transfer_function): Likewise.
29337 2014-03-18  Richard Biener  <rguenther@suse.de>
29339         * doc/lto.texi (fresolution): Fix typo.
29341 2014-03-18  Richard Biener  <rguenther@suse.de>
29343         * doc/invoke.texi (flto): Update for changes in 4.9.
29345 2014-03-18  Richard Biener  <rguenther@suse.de>
29347         * doc/loop.texi: Remove section on the removed lambda framework.
29348         Update loop docs with recent changes in preserving loop structure.
29350 2014-03-18  Richard Biener  <rguenther@suse.de>
29352         * doc/lto.texi (-fresolution): Document.
29354 2014-03-18  Richard Biener  <rguenther@suse.de>
29356         * doc/contrib.texi: Adjust my name.
29358 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
29360         PR ipa/58721
29361         * internal-fn.c: Include diagnostic-core.h.
29362         (expand_BUILTIN_EXPECT): New function.
29363         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
29364         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
29365         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
29366         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
29367         IFN_BUILTIN_EXPECT.
29368         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
29369         Revert 3 argument __builtin_expect code.
29370         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
29371         * gimple-fold.c (gimple_fold_call): Likewise.
29372         * tree.h (fold_builtin_expect): New prototype.
29373         * builtins.c (build_builtin_expect_predicate): Add predictor
29374         argument, if non-NULL, create 3 argument __builtin_expect.
29375         (fold_builtin_expect): No longer static.  Add ARG2 argument,
29376         pass it through to build_builtin_expect_predicate.
29377         (fold_builtin_2): Adjust caller.
29378         (fold_builtin_3): Handle BUILT_IN_EXPECT.
29379         * internal-fn.def (BUILTIN_EXPECT): New.
29381 2014-03-18  Tobias Burnus  <burnus@net-b.de>
29383         PR ipa/58721
29384         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
29385         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
29386         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
29388 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
29390         PR ipa/58721
29391         * predict.c (combine_predictions_for_bb): Fix up formatting.
29392         (expr_expected_value_1, expr_expected_value): Add predictor argument,
29393         fill what it points to if non-NULL.
29394         (tree_predict_by_opcode): Adjust caller, use the predictor.
29395         * predict.def (PRED_COMPARE_AND_SWAP): Add.
29397 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
29399         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
29400         proper constant for the store mode.
29402 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
29404         * symtab.c (change_decl_assembler_name): Fix transparent alias
29405         chain construction.
29407 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
29409         * config/aarch64/aarch64.c: Correct the comments about the
29410         aarch64 stack layout.
29412 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
29414         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
29415         check for GF_OMP_FOR_KIND_FOR.
29417 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
29419         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
29420         ymm and zmm register names.
29422 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
29424         PR target/60516
29425         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
29426         note creation for the 2010-08-31 changes.
29428 2014-03-17  Marek Polacek  <polacek@redhat.com>
29430         PR middle-end/60534
29431         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
29432         as -fno-tree-loop-vectorize.
29433         (expand_omp_simd): Likewise.
29435 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
29437         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
29438         (eligible_for_call_delay): New prototype.
29439         * config/sparc/sparc.c (tls_call_delay): Rename into...
29440         (eligible_for_call_delay): ...this.  Return false if the instruction
29441         cannot be put in the delay slot of a branch.
29442         (eligible_for_restore_insn): Simplify.
29443         (eligible_for_return_delay): Return false if the instruction cannot be
29444         put in the delay slot of a branch and simplify.
29445         (eligible_for_sibcall_delay): Return false if the instruction cannot be
29446         put in the delay slot of a branch.
29447         * config/sparc/sparc.md (fix_ut699): New attribute.
29448         (tls_call_delay): Delete.
29449         (in_call_delay): Reimplement.
29450         (eligible_for_sibcall_delay): Rename into...
29451         (in_sibcall_delay): ...this.
29452         (eligible_for_return_delay): Rename into...
29453         (in_return_delay): ...this.
29454         (in_branch_delay): Reimplement.
29455         (in_uncond_branch_delay): Delete.
29456         (in_annul_branch_delay): Delete.
29458 2014-03-14  Richard Henderson  <rth@redhat.com>
29460         PR target/60525
29461         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
29462         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
29463         (*floathi<X87MODEF>2_i387_with_temp): Remove.
29464         (floathi splitters): Remove.
29465         (float<SWI48x>xf2): New pattern.
29466         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
29467         code that tried to handle DImode for 32-bit, but which was excluded
29468         by the pattern's condition.  Drop allocation of stack temporary.
29469         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
29470         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
29471         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
29472         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
29473         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
29474         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
29475         (*float<SWI48><MODEF>2_sse_interunit): Remove.
29476         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
29477         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
29478         (*float<SWI48x><X87MODEF>2_i387): Remove.
29479         (all float _with_temp splitters): Remove.
29480         (*float<SWI48x><MODEF>2_i387): New pattern.
29481         (*float<SWI48><MODEF>2_sse): New pattern.
29482         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
29483         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
29485 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
29486             Marek Polacek  <polacek@redhat.com>
29488         PR middle-end/60484
29489         * common.opt (dump_base_name_prefixed): New Variable.
29490         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
29491         if x_dump_base_name_prefixed is already set, set it at the end.
29493 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
29495         PR rtl-optimization/60508
29496         * lra-constraints.c (get_reload_reg): Add new parameter
29497         in_subreg_p.
29498         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
29499         Pass the new parameter values.
29501 2014-03-14  Richard Biener  <rguenther@suse.de>
29503         * common.opt: Revert unintented changes from r205065.
29504         * opts.c: Likewise.
29506 2014-03-14  Richard Biener  <rguenther@suse.de>
29508         PR middle-end/60518
29509         * cfghooks.c (split_block): Properly adjust all loops the
29510         block was a latch of.
29512 2014-03-14  Martin Jambor  <mjambor@suse.cz>
29514         PR lto/60461
29515         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
29516         and simplify it.
29518 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
29520         PR target/59396
29521         * config/avr/avr.c (avr_set_current_function): Pass function name
29522         through default_strip_name_encoding before sanity checking instead
29523         of skipping the first char of the assembler name.
29525 2014-03-13  Richard Henderson  <rth@redhat.com>
29527         PR debug/60438
29528         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
29529         (ix86_force_to_memory, ix86_free_from_memory): Remove.
29530         * config/i386/i386-protos.h: Likewise.
29531         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
29532         in the expander instead of a splitter.
29533         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
29534         any possibility of requiring a memory.
29535         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
29536         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
29537         (fp branch splitters): Update for ix86_split_fp_branch.
29538         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
29539         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
29540         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
29541         (*fop_<MODEF>_2_i387): Remove f/r alternative.
29542         (*fop_<MODEF>_3_i387): Likewise.
29543         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
29544         (splitters for the fop_* register patterns): Remove.
29545         (fscalexf4_i387): Rename from *fscalexf4_i387.
29546         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
29548 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
29550         PR tree-optimization/59779
29551         * tree-dfa.c (get_ref_base_and_extent): Use double_int
29552         type for bitsize and maxsize instead of HOST_WIDE_INT.
29554 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
29556         PR rtl-optimization/57320
29557         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
29558         the CFG after thread_prologue_and_epilogue_insns.
29560 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
29562         PR rtl-optimization/57189
29563         * lra-constraints.c (process_alt_operands): Disfavor spilling
29564         vector pseudos.
29566 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
29568         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
29570 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
29572         PR tree-optimization/59025
29573         PR middle-end/60418
29574         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
29575         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
29577 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
29579         PR target/60486
29580         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
29581         calls of avr_out_plus_1.
29583 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
29585         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
29586         BB's single pred and update the father loop's latch info later.
29588 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
29590         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
29591         (VEC_M): Likewise.
29592         (VEC_N): Likewise.
29593         (VEC_R): Likewise.
29594         (VEC_base): Likewise.
29595         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
29596         registers, we need to swap double words in little endian mode.
29598         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
29599         to be a container mode for 128-bit integer operations added in ISA
29600         2.07.  Unlike TImode and PTImode, the preferred register set is
29601         the Altivec/VMX registers for the 128-bit operations.
29603         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
29604         declarations.
29605         (rs6000_split_128bit_ok_p): Likewise.
29607         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
29608         macros for creating ISA 2.07 normal and overloaded builtin
29609         functions with 3 arguments.
29610         (BU_P8V_OVERLOAD_3): Likewise.
29611         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
29612         for use as overloaded functions.
29613         (VPERM_1TI_UNS): Likewise.
29614         (VSEL_1TI): Likewise.
29615         (VSEL_1TI_UNS): Likewise.
29616         (ST_INTERNAL_1ti): Likewise.
29617         (LD_INTERNAL_1ti): Likewise.
29618         (XXSEL_1TI): Likewise.
29619         (XXSEL_1TI_UNS): Likewise.
29620         (VPERM_1TI): Likewise.
29621         (VPERM_1TI_UNS): Likewise.
29622         (XXPERMDI_1TI): Likewise.
29623         (SET_1TI): Likewise.
29624         (LXVD2X_V1TI): Likewise.
29625         (STXVD2X_V1TI): Likewise.
29626         (VEC_INIT_V1TI): Likewise.
29627         (VEC_SET_V1TI): Likewise.
29628         (VEC_EXT_V1TI): Likewise.
29629         (EQV_V1TI): Likewise.
29630         (NAND_V1TI): Likewise.
29631         (ORC_V1TI): Likewise.
29632         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
29633         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
29634         overloaded builtin.
29635         (VADDUQM): Likewise.
29636         (VSUBCUQ): Likewise.
29637         (VADDEUQM): Likewise.
29638         (VADDECUQ): Likewise.
29639         (VSUBEUQM): Likewise.
29640         (VSUBECUQ): Likewise.
29642         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
29643         __int128_t and __uint128_t types.
29644         (__uint128_type): Likewise.
29645         (altivec_categorize_keyword): Add support for vector __int128_t,
29646         vector __uint128_t, vector __int128, and vector unsigned __int128
29647         as a container type for TImode operations that need to be done in
29648         VSX/Altivec registers.
29649         (rs6000_macro_to_expand): Likewise.
29650         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
29651         to support 128-bit integer instructions vaddcuq, vadduqm,
29652         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
29653         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
29655         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
29656         for V1TImode, and set up preferences to use VSX/Altivec registers.
29657         Setup VSX reload handlers.
29658         (rs6000_debug_reg_global): Likewise.
29659         (rs6000_init_hard_regno_mode_ok): Likewise.
29660         (rs6000_preferred_simd_mode): Likewise.
29661         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
29662         (easy_altivec_constant): Likewise.
29663         (output_vec_const_move): Likewise.
29664         (rs6000_expand_vector_set): Convert V1TImode set and extract to
29665         simple move.
29666         (rs6000_expand_vector_extract): Likewise.
29667         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
29668         addressing.
29669         (rs6000_const_vec): Add support for V1TImode.
29670         (rs6000_emit_le_vsx_load): Swap double words when loading or
29671         storing TImode/V1TImode.
29672         (rs6000_emit_le_vsx_store): Likewise.
29673         (rs6000_emit_le_vsx_move): Likewise.
29674         (rs6000_emit_move): Add support for V1TImode.
29675         (altivec_expand_ld_builtin): Likewise.
29676         (altivec_expand_st_builtin): Likewise.
29677         (altivec_expand_vec_init_builtin): Likewise.
29678         (altivec_expand_builtin): Likewise.
29679         (rs6000_init_builtins): Add support for V1TImode type.  Add
29680         support for ISA 2.07 128-bit integer builtins.  Define type names
29681         for the VSX/Altivec vector types.
29682         (altivec_init_builtins): Add support for overloaded vector
29683         functions with V1TImode type.
29684         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
29685         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
29686         external function.
29687         (rs6000_split_128bit_ok_p): Likewise.
29688         (rs6000_handle_altivec_attribute): Create V1TImode from vector
29689         __int128_t and vector __uint128_t.
29691         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
29692         and mode attributes.
29693         (VSX_M): Likewise.
29694         (VSX_M2): Likewise.
29695         (VSm): Likewise.
29696         (VSs): Likewise.
29697         (VSr): Likewise.
29698         (VSv): Likewise.
29699         (VS_scalar): Likewise.
29700         (VS_double): Likewise.
29701         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
29703         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
29704         we support the ISA 2.07 128-bit integer arithmetic instructions.
29705         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
29706         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
29707         and TImode types for use with the builtin functions.
29708         (V1TI_type_node): Likewise.
29709         (unsigned_V1TI_type_node): Likewise.
29710         (intTI_type_internal_node): Likewise.
29711         (uintTI_type_internal_node): Likewise.
29713         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
29714         128-bit builtin functions.
29715         (UNSPEC_VADDEUQM): Likewise.
29716         (UNSPEC_VADDECUQ): Likewise.
29717         (UNSPEC_VSUBCUQ): Likewise.
29718         (UNSPEC_VSUBEUQM): Likewise.
29719         (UNSPEC_VSUBECUQ): Likewise.
29720         (VM): Add V1TImode to vector mode iterators.
29721         (VM2): Likewise.
29722         (VI_unit): Likewise.
29723         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
29724         (altivec_vaddcuq): Likewise.
29725         (altivec_vsubuqm): Likewise.
29726         (altivec_vsubcuq): Likewise.
29727         (altivec_vaddeuqm): Likewise.
29728         (altivec_vaddecuq): Likewise.
29729         (altivec_vsubeuqm): Likewise.
29730         (altivec_vsubecuq): Likewise.
29732         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
29733         mode iterators.
29734         (BOOL_128): Likewise.
29735         (BOOL_REGS_OUTPUT): Likewise.
29736         (BOOL_REGS_OP1): Likewise.
29737         (BOOL_REGS_OP2): Likewise.
29738         (BOOL_REGS_UNARY): Likewise.
29739         (BOOL_REGS_AND_CR0): Likewise.
29741         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
29742         128-bit integer builtin support.
29743         (vec_vadduqm): Likewise.
29744         (vec_vaddecuq): Likewise.
29745         (vec_vaddeuqm): Likewise.
29746         (vec_vsubecuq): Likewise.
29747         (vec_vsubeuqm): Likewise.
29748         (vec_vsubcuq): Likewise.
29749         (vec_vsubuqm): Likewise.
29751         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29752         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
29753         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
29754         128-bit integer add/subtract to ISA 2.07.
29756 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
29758         * config/arc/arc.c (arc_predicate_delay_insns):
29759         Fix third argument passed to conditionalize_nonjump.
29761 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
29763         * config/aarch64/aarch64-builtins.c
29764         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
29765         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
29766         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
29767         instead of __builtin_lfloor.
29768         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
29770 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
29772         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
29773         (tree_ssa_ifcombine_bb_1): New function.
29774         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
29775         is an empty forwarder block to then_bb or vice versa and then_bb
29776         and else_bb are effectively swapped.
29778 2014-03-12  Christian Bruel  <christian.bruel@st.com>
29780         PR target/60264
29781         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
29782         REG_CFA_DEF_CFA note.
29783         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
29784         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
29786 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29788         PR tree-optimization/60454
29789         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
29791 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29793         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
29794         Do not define target_cpu_default2 to generic.
29795         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
29796         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
29797         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
29799 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
29800             Marc Glisse  <marc.glisse@inria.fr>
29802         PR tree-optimization/60502
29803         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
29804         instead of build_low_bits_mask.
29806 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
29808         PR middle-end/60482
29809         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
29810         if there are multiple uses, but op doesn't live on E edge.
29811         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
29812         clobber stmts before __builtin_unreachable.
29814 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
29816         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
29817         hard_frame_pointer_rtx.
29818         * cse.c (cse_insn): Remove volatile check.
29819         * cselib.c (cselib_process_insn): Likewise.
29820         * dse.c (scan_insn): Likewise.
29822 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29824         * config/arc/arc.c (conditionalize_nonjump): New function,
29825         broken out of ...
29826         (arc_ifcvt): ... this.
29827         (arc_predicate_delay_insns): Use it.
29829 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
29831         * config/arc/predicates.md (extend_operand): During/after reload,
29832         allow const_int_operand.
29833         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
29834         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
29835         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
29836         to "i".
29837         (umulsi3_highpart_i): Likewise.
29839 2014-03-11  Richard Biener  <rguenther@suse.de>
29841         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
29842         Add asserts to guard possible wrong-code bugs.
29844 2014-03-11  Richard Biener  <rguenther@suse.de>
29846         PR tree-optimization/60429
29847         PR tree-optimization/60485
29848         * tree-ssa-structalias.c (set_union_with_increment): Properly
29849         take into account all fields that overlap the shifted vars.
29850         (do_sd_constraint): Likewise.
29851         (do_ds_constraint): Likewise.
29852         (get_constraint_for_ptr_offset): Likewise.
29854 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
29856         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
29857         (nios2_compute_frame_layout):
29858         Add calculation of cfun->machine->fp_save_offset.
29859         (nios2_expand_prologue): Correct setting of frame pointer register
29860         in prologue.
29861         (nios2_expand_epilogue): Update recovery of stack pointer from
29862         frame pointer accordingly.
29863         (nios2_initial_elimination_offset): Update calculation of offset
29864         for eliminating to HARD_FRAME_POINTER_REGNUM.
29866 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
29868         PR ipa/60457
29869         * ipa.c (symtab_remove_unreachable_nodes): Don't call
29870         cgraph_get_create_node on VAR_DECLs.
29872 2014-03-10  Richard Biener  <rguenther@suse.de>
29874         PR middle-end/60474
29875         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
29877 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
29879         * config/vms/vms.opt (vms_float_format): New variable.
29881 2014-03-08  Tobias Burnus  <burnus@net-b.de>
29883         * doc/invoke.texi (-fcilkplus): Update implementation status.
29885 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
29886             Richard Biener  <rguenther@suse.de>
29888         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
29889         consistently accross all TUs.
29890         (run_gcc): Enable -fshort-double automatically at link at link-time
29891         and disallow override.
29893 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
29895         PR target/58271
29896         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
29897         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
29898         if they can't be used.
29900 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29902         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
29903         for Solaris 11/x86 ld.
29904         * configure: Regenerate.
29906 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29908         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
29909         (LIB_TLS_SPEC): Save as ld_tls_libs.
29910         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
29911         (HAVE_AS_IX86_TLSLDM): New test.
29912         * configure, config.in: Regenerate.
29913         * config/i386/i386.c (legitimize_tls_address): Fall back to
29914         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
29915         cannot support TLS_MODEL_LOCAL_DYNAMIC.
29916         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
29917         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
29919 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
29921         * common.opt (fira-loop-pressure): Mark as optimization.
29923 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
29925         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
29926         an OpenMP mappable type.
29928 2014-03-06  Matthias Klose  <doko@ubuntu.com>
29930         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
29931         MULTILIB_OSDIRNAMES is not defined.
29933 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
29934             Meador Inge  <meadori@codesourcery.com>
29936         PR target/58595
29937         * config/arm/arm.c (arm_tls_symbol_p): Remove.
29938         (arm_legitimize_address): Call legitimize_tls_address for any
29939         arm_tls_referenced_p expression, handle constant addend.  Call it
29940         before testing for !TARGET_ARM.
29941         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
29943 2014-03-06  Richard Biener  <rguenther@suse.de>
29945         PR middle-end/60445
29946         PR lto/60424
29947         PR lto/60427
29948         Revert
29949         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
29951         * tree-streamer.c (record_common_node): Assert we don't record
29952         nodes with type double.
29953         (preload_common_node): Skip type double, complex double and double
29954         pointer since it is now frontend dependent due to fshort-double option.
29956 2014-03-06  Richard Biener  <rguenther@suse.de>
29958         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
29959         or -fno-lto is specified and the linker has full plugin support.
29960         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
29961         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
29962         * lto-wrapper.c (merge_and_complain): Merge compile-time
29963         optimization levels.
29964         (run_gcc): And pass it through to the link options.
29966 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
29968         PR debug/60381
29969         Revert:
29970         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
29971         PR debug/59992
29972         * cselib.c (remove_useless_values): Skip to avoid quadratic
29973         behavior if the condition moved from...
29974         (cselib_process_insn): ... here holds.
29976 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
29978         PR plugins/59335
29979         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
29980         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
29982         PR plugins/59335
29983         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
29984         (TM_H): Add x86-tune.def.
29986 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29988         * config/aarch64/aarch64.c (generic_tunings):
29989         Use cortexa57_extra_costs.
29991 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
29993         PR lto/60404
29994         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
29995         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
29996         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
29997         cost for in_lto_p.
29999 2014-03-04  Heiher  <r@hev.cc>
30001         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
30002         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
30004 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
30006         * config/i386/predicates.md (const2356_operand): Change to ...
30007         (const2367_operand): ... this.
30008         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
30009         const2367_operand.
30010         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30011         (*avx512pf_scatterpf<mode>sf): Ditto.
30012         (avx512pf_scatterpf<mode>df): Ditto.
30013         (*avx512pf_scatterpf<mode>df_mask): Ditto.
30014         (*avx512pf_scatterpf<mode>df): Ditto.
30015         * config/i386/i386.c (ix86_expand_builtin): Update
30016         incorrect hint operand error message.
30018 2014-03-04  Richard Biener  <rguenther@suse.de>
30020         * lto-section-in.c (lto_get_section_data): Fix const cast.
30022 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
30024         * tree-streamer.c (record_common_node): Assert we don't record
30025         nodes with type double.
30026         (preload_common_node): Skip type double, complex double and double
30027         pointer since it is now frontend dependent due to fshort-double option.
30029 2014-03-04  Richard Biener  <rguenther@suse.de>
30031         PR lto/60405
30032         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
30033         (lto_input_toplevel_asms): Likewise.
30034         * lto-section-in.c (lto_get_section_data): Instead do it here
30035         for every section.
30037 2014-03-04  Richard Biener  <rguenther@suse.de>
30039         PR tree-optimization/60382
30040         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
30041         dead PHIs a reduction.
30043 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
30045         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
30046         hint value.
30047         (_mm_prefetch): Move out of GCC target("sse") pragma.
30048         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
30049         GCC target("prfchw") pragma.
30050         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
30051         for locality <= 2.
30052         * config/i386/i386.c (ix86_option_override_internal): Enable
30053         -mprfchw with -mprefetchwt1.
30055 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
30057         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
30058         Mark as varying.
30060 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
30062         * opts.h (CL_PCH_IGNORE): Define.
30063         * targhooks.c (option_affects_pch_p):
30064         Return false for options that have CL_PCH_IGNORE set.
30065         * opt-functions.awk: Process PchIgnore.
30066         * doc/options.texi: Document PchIgnore.
30068         * config/arc/arc.opt (misize): Add PchIgnore property.
30070 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30072         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
30073         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
30074         constraint on constants to permit them being loaded into
30075         GENERAL_REGS or BASE_REGS.
30077 2014-03-03  Nick Clifton  <nickc@redhat.com>
30079         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
30080         anti-cacnonical alternatives.
30081         (negandhi3_real): New pattern.
30082         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
30084 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30086         * config/avr/avr-mcus.def: Remove atxmega16x1.
30087         * config/avr/avr-tables.opt: Regenerate.
30088         * config/avr/t-multilib: Regenerate.
30089         * doc/avr-mmcu.texi: Regenerate.
30091 2014-03-03  Tobias Grosser  <tobias@grosser.es>
30092             Mircea Namolaru  <mircea.namolaru@inria.fr>
30094         PR tree-optimization/58028
30095         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
30096         scalar dimensions.
30098 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30100         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
30101         not handled by recognizers.
30103 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
30105         PR middle-end/60175
30106         * function.c (expand_function_end): Don't emit
30107         clobber_return_register sequence if clobber_after is a BARRIER.
30108         * cfgexpand.c (construct_exit_block): Append instructions before
30109         return_label to prev_bb.
30111 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30113         * config/rs6000/constraints.md: Document reserved use of "wc".
30115 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
30117         PR ipa/60150
30118         * ipa.c (function_and_variable_visibility): When dissolving comdat
30119         group, also set all symbols to local.
30121 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
30123         PR ipa/60306
30125         Revert:
30126         2013-12-14  Jan Hubicka  <jh@suse.cz>
30127         PR middle-end/58477
30128         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
30130 2014-03-02  Jon Beniston  <jon@beniston.com>
30132         PR bootstrap/48230
30133         PR bootstrap/50927
30134         PR bootstrap/52466
30135         PR target/46898
30136         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
30137           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
30138         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
30139         (simple_return, *simple_return): New patterns
30140         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
30141         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
30143 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
30145         * dwarf2out.c (gen_subprogram_die): Tidy.
30147 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
30149         PR target/60071
30150         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
30151         (*mov_t_msb_neg_negc): ... this new insn.
30153 2014-02-28  Jason Merrill  <jason@redhat.com>
30155         PR c++/58678
30156         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
30157         function.
30159 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
30161         PR c++/60314
30162         * dwarf2out.c (decltype_auto_die): New static.
30163         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
30164         (gen_type_die_with_usage): Handle 'decltype(auto)'.
30165         (is_cxx_auto): Likewise.
30167 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
30169         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
30170         we are not using general regs only.
30172 2014-02-28  Richard Biener  <rguenther@suse.de>
30174         PR target/60280
30175         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
30176         previous fix and only allow to remove trivial pre-headers
30177         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
30178         (remove_forwarder_block): Properly update the latch of a loop.
30180 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
30182         PR debug/59992
30183         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
30184         (cselib_preserved_hash_table): New.
30185         (preserve_constants_and_equivs): Move preserved vals to it.
30186         (cselib_find_slot): Look it up first.
30187         (cselib_init): Initialize it.
30188         (cselib_finish): Release it.
30189         (dump_cselib_table): Dump it.
30191 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
30193         PR debug/59992
30194         * cselib.c (remove_useless_values): Skip to avoid quadratic
30195         behavior if the condition moved from...
30196         (cselib_process_insn): ... here holds.
30198 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
30200         PR debug/57232
30201         * var-tracking.c (vt_initialize): Apply the same condition to
30202         preserve the CFA base value.
30204 2014-02-28  Joey Ye  <joey.ye@arm.com>
30206         PR target/PR60169
30207         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
30208         if reload in progress or completed.
30210 2014-02-28  Tobias Burnus  <burnus@net-b.de>
30212         PR middle-end/60147
30213         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
30214         NAMELIST_DECL.
30216 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
30218         * doc/tm.texi.in (Condition Code Status): Update documention for
30219         relative locations of cc0-setter and cc0-user.
30221 2014-02-27  Jeff Law  <law@redhat.com>
30223         PR rtl-optimization/52714
30224         * combine.c (try_combine): When splitting an unrecognized PARALLEL
30225         into two independent simple sets, if I3 is a jump, ensure the
30226         pattern we place into I3 is a (set (pc) ...).
30228 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
30229             Jeff Law  <law@redhat.com>
30231         PR rtl-optimization/49847
30232         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
30233         are in different blocks.
30234         * doc/tm.texi (Condition Code Status): Update documention for
30235         relative locations of cc0-setter and cc0-user.
30237 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
30239         PR target/59222
30240         * lra.c (lra_emit_add): Check SUBREG too.
30242 2014-02-27  Andreas Schwab  <schwab@suse.de>
30244         * config/m68k/m68k.c (m68k_option_override): Disable
30245         -flive-range-shrinkage for classic m68k.
30246         (m68k_override_options_after_change): Likewise.
30248 2014-02-27  Marek Polacek  <polacek@redhat.com>
30250         PR middle-end/59223
30251         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
30252         -Wmaybe-uninitialized.
30254 2014-02-27  Alan Modra  <amodra@gmail.com>
30256         PR target/57936
30257         * reload1.c (emit_input_reload_insns): When reload_override_in,
30258         set old to rl->in_reg when rl->in_reg is a subreg.
30260 2014-02-26  Richard Biener  <rguenther@suse.de>
30262         PR bootstrap/60343
30263         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
30265 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
30267         * common/config/i386/predicates.md (const1256_operand): Remove.
30268         (const2356_operand): New.
30269         (const_1_to_2_operand): Remove.
30270         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
30271         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30272         (*avx512pf_gatherpf<mode>sf): Ditto.
30273         (avx512pf_gatherpf<mode>df): Ditto.
30274         (*avx512pf_gatherpf<mode>df_mask): Ditto.
30275         (*avx512pf_gatherpf<mode>df): Ditto.
30276         (avx512pf_scatterpf<mode>sf): Ditto.
30277         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30278         (*avx512pf_scatterpf<mode>sf): Ditto.
30279         (avx512pf_scatterpf<mode>df): Ditto.
30280         (*avx512pf_scatterpf<mode>df_mask): Ditto.
30281         (*avx512pf_scatterpf<mode>df): Ditto.
30282         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
30284 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
30286         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
30287         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
30288         (_mm512_mask_testn_epi64_mask): Move to ...
30289         * config/i386/avx512cdintrin.h: Here.
30290         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
30291         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
30292         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
30293         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
30294         TARGET_AVX512F from TARGET_AVX512CD.
30296 2014-02-26  Richard Biener  <rguenther@suse.de>
30298         PR ipa/60327
30299         * ipa.c (walk_polymorphic_call_targets): Properly guard
30300         call to inline_update_overall_summary.
30302 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
30304         PR target/60280
30305         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
30306         and latches only if requested.  Fix latch if it is removed.
30307         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
30308         LOOPS_HAVE_PREHEADERS.
30310 2014-02-25  Andrew Pinski  <apinski@cavium.com>
30312         * builtins.c (expand_builtin_thread_pointer): Create a new target
30313         when the target is NULL.
30315 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
30317         PR rtl-optimization/60317
30318         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
30319         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
30320         * lra-assigns.c: Include params.h.
30321         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
30322         other reload pseudos considerations.
30324 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30326         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
30327         to use canonical form for nor<mode>3.
30329 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30331         PR target/55426
30332         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
30333         conversions.
30335 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
30337         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
30338         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
30339         (ix86_handle_option): Handle OPT_mprefetchwt1.
30340         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
30341         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
30342         PREFETCHWT1 CPUID.
30343         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
30344         OPTION_MASK_ISA_PREFETCHWT1.
30345         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
30346         (PTA_PREFETCHWT1): New.
30347         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
30348         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
30349         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
30350         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
30351         (*prefetch_avx512pf_<mode>_: Change into ...
30352         (*prefetch_prefetchwt1_<mode>: This.
30353         * config/i386/i386.opt (mprefetchwt1): New.
30354         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
30355         (_mm_prefetch): Handle intent to write.
30356         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
30358 2014-02-25  Richard Biener  <rguenther@suse.de>
30360         PR middle-end/60291
30361         * emit-rtl.c (mem_attrs_htab): Remove.
30362         (mem_attrs_htab_hash): Likewise.
30363         (mem_attrs_htab_eq): Likewise.
30364         (set_mem_attrs): Always allocate new mem-attrs when something changed.
30365         (init_emit_once): Do not allocate mem_attrs_htab.
30367 2014-02-25  Richard Biener  <rguenther@suse.de>
30369         PR lto/60319
30370         * lto-opts.c (lto_write_options): Output non-explicit conservative
30371         -fwrapv, -fno-trapv and -fno-strict-overflow.
30372         * lto-wrapper.c (merge_and_complain): Handle merging those options.
30373         (run_gcc): And pass them through.
30375 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
30377         * sel-sched.c (calculate_new_fences): New parameter ptime.
30378         Calculate it as a maximum over all fence cycles.
30379         (sel_sched_region_2): Adjust the call to calculate_new_fences.
30380         Print the final schedule timing when sched_verbose.
30382 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
30384         PR rtl-optimization/60292
30385         * sel-sched.c (fill_vec_av_set): Do not reset target availability
30386         bit fot the fence instruction.
30388 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
30390         * calls.h: Fix typo in comment.
30392 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
30394         * config/pa/pa.c (pa_output_move_double): Don't valididate when
30395         adjusting offsetable addresses.
30397 2014-02-24  Guozhi Wei  <carrot@google.com>
30399         * sparseset.h (sparseset_pop): Fix the wrong index.
30401 2014-02-24  Walter Lee  <walt@tilera.com>
30403         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
30404         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
30405         triplet.
30406         * common/config/tilegx/tilegx-common.c
30407         (TARGET_DEFAULT_TARGET_FLAGS): Define.
30408         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
30409         (LINK_SPEC): Ditto.
30410         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
30411         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
30412         (tilegx_gimplify_va_arg_expr): Handle big endian.
30413         (tilegx_expand_unaligned_load): Ditto.
30414         (tilegx_expand_unaligned_store): Ditto.
30415         (TARGET_RETURN_IN_MSB): New.
30416         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
30417         (TARGET_ENDIAN_DEFAULT): New.
30418         (TARGET_BIG_ENDIAN): Handle big endian.
30419         (BYTES_BIG_ENDIAN): Ditto.
30420         (WORDS_BIG_ENDIAN): Ditto.
30421         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
30422         (ENDIAN_SPEC): New.
30423         (EXTRA_SPECS): New.
30424         * config/tilegx/tilegx.md (extv): Handle big endian.
30425         (extzv): Ditto.
30426         (insn_st<n>): Ditto.
30427         (insn_st<n>_add<bitsuffix>): Ditto.
30428         (insn_stnt<n>): Ditto.
30429         (insn_stnt<n>_add<bitsuffix>):Ditto.
30430         (vec_interleave_highv8qi): Handle big endian.
30431         (vec_interleave_highv8qi_be): New.
30432         (vec_interleave_highv8qi_le): New.
30433         (insn_v1int_h): Handle big endian.
30434         (vec_interleave_lowv8qi): Handle big endian.
30435         (vec_interleave_lowv8qi_be): New.
30436         (vec_interleave_lowv8qi_le): New.
30437         (insn_v1int_l): Handle big endian.
30438         (vec_interleave_highv4hi): Handle big endian.
30439         (vec_interleave_highv4hi_be): New.
30440         (vec_interleave_highv4hi_le): New.
30441         (insn_v2int_h): Handle big endian.
30442         (vec_interleave_lowv4hi): Handle big endian.
30443         (vec_interleave_lowv4hi_be): New.
30444         (vec_interleave_lowv4hi_le): New.
30445         (insn_v2int_l): Handle big endian.
30446         (vec_interleave_highv2si): Handle big endian.
30447         (vec_interleave_highv2si_be): New.
30448         (vec_interleave_highv2si_le): New.
30449         (insn_v4int_h): Handle big endian.
30450         (vec_interleave_lowv2si): Handle big endian.
30451         (vec_interleave_lowv2si_be): New.
30452         (vec_interleave_lowv2si_le): New.
30453         (insn_v4int_l): Handle big endian.
30454         * config/tilegx/tilegx.opt (mbig-endian): New option.
30455         (mlittle-endian): New option.
30456         * doc/install.texi: Document tilegxbe-linux.
30457         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
30459 2014-02-24  Martin Jambor  <mjambor@suse.cz>
30461         PR ipa/60266
30462         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
30463         there are no parameter descriptors.
30465 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
30467         PR rtl-optimization/60268
30468         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
30469         initialization to ...
30470         (sched_rgn_init): ... here.
30471         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
30473 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
30475         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
30476         names.
30478 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
30480         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
30481         definition.
30483 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
30485         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
30486         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
30488 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
30490         * config/microblaze/predicates.md: Add cmp_op predicate.
30491         * config/microblaze/microblaze.md: Add branch_compare instruction
30492         which uses cmp_op predicate and emits cmp insn before branch.
30493         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
30494         to microblaze_expand_conditional_branch and consolidate logic.
30495         (microblaze_expand_conditional_branch): emit branch_compare
30496         insn instead of handling cmp op separate from branch insn.
30498 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30500         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
30501         to permit subregs.
30503 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30505         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
30506         define_insn with define_expand and new define_insn
30507         *altivec_lve<VI_char>x_internal.
30508         (altivec_stve<VI_char>x): Replace define_insn with define_expand
30509         and new define_insn *altivec_stve<VI_char>x_internal.
30510         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
30511         prototype.
30512         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
30513         lve*x built-ins.
30514         (altivec_expand_stvex_be): New function.
30516 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
30518         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
30519         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
30520         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
30521         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
30523 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
30525         PR target/60298
30526         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
30527         instead of emit_move_insn.
30529 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30531         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
30532         vspltw with vsldoi.
30533         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
30534         gen_altivec_vsumsws.
30536 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30538         * config/rs6000/altivec.md (altivec_lvxl): Rename as
30539         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
30540         (altivec_lvxl_<mode>): New define_expand incorporating
30541         -maltivec=be semantics where needed.
30542         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
30543         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
30544         semantics where needed.
30545         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
30546         (altivec_stvx_<mode>): New define_expand incorporating
30547         -maltivec=be semantics where needed.
30548         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
30549         VM2 iterator instead of V4SI.
30550         (altivec_stvxl_<mode>): New define_expand incorporating
30551         -maltivec=be semantics where needed.
30552         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
30553         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
30554         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
30555         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
30556         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
30557         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
30558         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
30559         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
30560         ALTIVEC_BUILTIN_STVXL.
30561         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
30562         (altivec_expand_stvx_be): Likewise.
30563         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
30564         (altivec_expand_lvx_be): Likewise.
30565         (altivec_expand_stvx_be): Likewise.
30566         (altivec_expand_builtin): Add cases for
30567         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
30568         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
30569         (altivec_init_builtins): Add definitions for
30570         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
30571         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
30573 2014-02-21  Catherine Moore  <clm@codesourcery.com>
30575         * doc/invoke.texi (mvirt, mno-virt): Document.
30576         * config/mips/mips.opt (mvirt): New option.
30577         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
30579 2014-02-21  Richard Biener  <rguenther@suse.de>
30581         PR tree-optimization/60276
30582         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
30583         (STMT_VINFO_MIN_NEG_DIST): New macro.
30584         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
30585         STMT_VINFO_MIN_NEG_DIST.
30586         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
30587         made for negative dependence distances still hold.
30589 2014-02-21  Richard Biener  <rguenther@suse.de>
30591         PR middle-end/60291
30592         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
30593         DECL_INITIAL for globals not in the current function context.
30595 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
30597         PR tree-optimization/56490
30598         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
30599         * tree-ssa-uninit.c: Include params.h.
30600         (compute_control_dep_chain): Add num_calls argument, return false
30601         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
30602         num_calls to recursive call.
30603         (find_predicates): Change dep_chain into normal array,
30604         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
30605         variable and adjust compute_control_dep_chain caller.
30606         (find_def_preds): Likewise.
30608 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
30610         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
30611         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
30613 2014-02-21  Nick Clifton  <nickc@redhat.com>
30615         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
30616         (pushhi1): Likewise.
30617         (popqi1): Add mode to pre_dec.
30618         (pophi1): Likewise.
30620 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
30622         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
30623         mode for mask of V8SFmode permutation.
30625 2014-02-20  Richard Henderson  <rth@redhat.com>
30627         PR c++/60272
30628         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
30629         a new pseudo for OLDVAL.
30631 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
30633         PR target/57896
30634         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
30635         gen_reg_rtx if d->testing_p.
30636         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
30637         if d->testing_p and we will certainly return true.
30638         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
30639         if d->testing_p.
30641 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
30643         * emit-rtl.c (gen_reg_rtx): Assert that
30644         crtl->emit.regno_pointer_align_length is non-zero.
30646 2014-02-20  Richard Henderson  <rth@redhat.com>
30648         PR c++/60272
30649         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
30650         on failure the store back into EXPECT.
30652 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
30653             Sandra Loosemore  <sandra@codesourcery.com>
30655         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
30656         * config/nios2/nios2.c (nios2_function_profiler): Add
30657         -fPIC (flag_pic == 2) support.
30658         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
30659         (nios2_large_offset_p): New function.
30660         (nios2_unspec_reloc_p): Move up position, update to use
30661         nios2_large_offset_p.
30662         (nios2_unspec_address): Remove function.
30663         (nios2_unspec_offset): New function.
30664         (nios2_large_got_address): New function.
30665         (nios2_got_address): Add large offset support.
30666         (nios2_legitimize_tls_address): Update usage of removed and new
30667         functions.
30668         (nios2_symbol_binds_local_p): New function.
30669         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
30670         (nios2_legitimize_address): Update to use nios2_large_offset_p.
30671         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
30672         (nios2_print_operand): Merge H/L processing, add hiadj/lo
30673         processing for (const (unspec ...)).
30674         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
30676 2014-02-20  Richard Biener  <rguenther@suse.de>
30678         * tree-cfg.c (replace_uses_by): Mark altered BBs before
30679         doing the substitution.
30680         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
30682 2014-02-20  Martin Jambor  <mjambor@suse.cz>
30684         PR ipa/55260
30685         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
30686         info when checking whether lattices are bottom.
30688 2014-02-20  Richard Biener  <rguenther@suse.de>
30690         PR middle-end/60221
30691         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
30692         regions at -O0.
30694 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
30696         PR ipa/58555
30697         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
30698         parameter specifying the scaling.
30699         (inline_call): Update.
30700         (want_inline_recursively): Guard division by zero.
30701         (recursive_inlining): Update.
30702         * ipa-inline.h (clone_inlined_nodes): Update.
30704 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
30706         PR target/60204
30707         * config/i386/i386.c (classify_argument): Pass structures of size
30708         64 bytes or less in register.
30710 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
30711             Kirill Yukhin  <kirill.yukhin@intel.com>
30713         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
30714         (_mm_rcp28_round_ss): Ditto.
30715         (_mm_rsqrt28_round_sd): Ditto.
30716         (_mm_rsqrt28_round_ss): Ditto.
30717         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
30718         (_mm_rcp14_round_ss): Ditto.
30719         (_mm_rsqrt14_round_sd): Ditto.
30720         (_mm_rsqrt14_round_ss): Ditto.
30721         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
30722         the first input operand, get rid of match_dup.
30723         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
30724         attribute to sse.
30725         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30726         Ditto.
30727         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
30728         operand as the first input operand, set type attribute.
30729         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30730         Set type attribute.
30731         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
30732         operand as the first input operand, set type attribute.
30734 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30736         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
30737         bit of zero.
30739 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
30741         PR target/60207
30742         * config/i386/i386.c (construct_container): Remove TFmode check
30743         for X86_64_INTEGER_CLASS.
30745 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
30747         PR target/59794
30748         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
30749         only when -Wpsabi is enabled.
30751 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
30753          PR target/59799
30754         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
30755         passing arrays in registers are the same as for structs, so remove the
30756         special case for them.
30758 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
30760         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
30761         destination type, extract only the valid bits if the source type is not
30762         integral and has a different mode.
30764 2014-02-19  Richard Biener  <rguenther@suse.de>
30766         PR ipa/60243
30767         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
30768         for all calls.
30770 2014-02-19  Richard Biener  <rguenther@suse.de>
30772         PR ipa/60243
30773         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
30774         (ipa_modify_call_arguments): Emit an argument load explicitely and
30775         preserve virtual SSA form there and for the replacement call.
30776         Do not update SSA form nor free dominance info.
30778 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
30780         * ipa.c (function_and_variable_visibility): Also clear WEAK
30781         flag when disolving COMDAT_GROUP.
30783 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
30785         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
30786         * ipa-prop.c (ipa_set_jf_known_type): Return early when
30787         not devirtualizing.
30788         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
30789         do more sanity checks.
30790         (detect_type_change): Return true when giving up early.
30791         (compute_complex_assign_jump_func): Fix type parameter of
30792         ipa_set_ancestor_jf.
30793         (compute_complex_ancestor_jump_func): Likewise.
30794         (update_jump_functions_after_inlining): Fix updating of
30795         ancestor function.
30796         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
30798 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
30800         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
30801         inline clones when edge disappears.
30803 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
30805         PR target/60203
30806         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
30807         Split 64-bit moves into 2 patterns.  Do not allow the use of
30808         direct move for TDmode in little endian, since the decimal value
30809         has little endian bytes within a word, but the 64-bit pieces are
30810         ordered in a big endian fashion, and normal subreg's of TDmode are
30811         not allowed.
30812         (mov<mode>_64bit_dm): Likewise.
30813         (movtd_64bit_nodm): Likewise.
30815 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
30817         PR tree-optimization/60174
30818         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
30819         statement of an SSA_NAME that occurs in an abnormal PHI node.
30821 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
30823         PR sanitizer/60142
30824         * final.c (SEEN_BB): Remove.
30825         (SEEN_NOTE, SEEN_EMITTED): Renumber.
30826         (final_scan_insn): Don't force_source_line on second
30827         NOTE_INSN_BASIC_BLOCK.
30829 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
30831         PR target/60205
30832         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
30833         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
30834         (type_natural_mode): Warn ABI change when %zmm register is not
30835         available for AVX512F vector value passing.
30837 2014-02-18  Kai Tietz  <ktietz@redhat.com>
30839         PR target/60193
30840         * config/i386/i386.c (ix86_expand_prologue): Use value in
30841         rax register as displacement when restoring %r10 or %rax.
30842         Fix wrong offset when restoring both registers.
30844 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
30846         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
30847         assertion with conditional return.
30849 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
30850             Uros Bizjak  <ubizjak@gmail.com>
30852         PR driver/60233
30853         * config/i386/driver-i386.c (host_detect_local_cpu): If
30854         YMM state is not saved by the OS, also clear has_f16c.  Move
30855         CPUID 0x80000001 handling before YMM state saving checking.
30857 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
30859         PR rtl-optimization/58960
30860         * haifa-sched.c (alloc_global_sched_pressure_data): New,
30861         factored out from ...
30862         (sched_init): ... here.
30863         (free_global_sched_pressure_data): New, factored out from ...
30864         (sched_finish): ... here.
30865         * sched-int.h (free_global_sched_pressure_data): Declare.
30866         * sched-rgn.c (nr_regions_initial): New static global.
30867         (haifa_find_rgns): Initialize it.
30868         (schedule_region): Disable sched-pressure for the newly
30869         generated regions.
30871 2014-02-17  Richard Biener  <rguenther@suse.de>
30873         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
30874         release SSA defs of pattern stmts.
30876 2014-02-17  Richard Biener  <rguenther@suse.de>
30878         * tree-inline.c (expand_call_inline): Release the virtual
30879         operand defined by the call we are about to inline.
30881 2014-02-17  Richard Biener  <rguenther@suse.de>
30883         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
30885 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
30886             Ilya Tocar  <ilya.tocar@intel.com>
30888         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
30889         arguments order in builtin.
30890         (_mm512_permutexvar_epi64): Ditto.
30891         (_mm512_mask_permutexvar_epi64): Ditto
30892         (_mm512_maskz_permutexvar_epi32): Ditto
30893         (_mm512_permutexvar_epi32): Ditto
30894         (_mm512_mask_permutexvar_epi32): Ditto
30896 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30898         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
30899         (p8_vmrgow): Likewise.
30901 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30903         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
30904         endian targets.
30906 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
30908         PR target/60203
30909         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
30910         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
30911         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
30912         using direct move instructions on ISA 2.07.  Also adjust
30913         instruction length for 64-bit.
30914         (mov<mode>_64bit, TFmode/TDmode): Likewise.
30915         (mov<mode>_32bit, TFmode/TDmode): Likewise.
30917 2014-02-15  Alan Modra  <amodra@gmail.com>
30919         PR target/58675
30920         PR target/57935
30921         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
30922         find_replacement on parts of insn rtl that might be reloaded.
30924 2014-02-15  Richard Biener  <rguenther@suse.de>
30926         PR tree-optimization/60183
30927         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
30928         (tree_ssa_phiprop): Calculate and free post-dominators.
30930 2014-02-14  Jeff Law  <law@redhat.com>
30932         PR rtl-optimization/60131
30933         * ree.c (get_extended_src_reg): New function.
30934         (combine_reaching_defs): Use it rather than assuming location of REG.
30935         (find_and_remove_re): Verify first operand of extension is
30936         a REG before adding the insns to the copy list.
30938 2014-02-14  Roland McGrath  <mcgrathr@google.com>
30940         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
30941         * configure: Regenerated.
30942         * config.in: Regenerated.
30943         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
30944         instead of ASM_SHORT.
30946 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
30947             Richard Earnshaw  <rearnsha@arm.com>
30949         PR rtl-optimization/59535
30950         * lra-constraints.c (process_alt_operands): Encourage alternative
30951         when unassigned pseudo class is superset of the alternative class.
30952         (inherit_reload_reg): Don't inherit when optimizing for code size.
30953         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
30954         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
30955         modes not less than 4 for Thumb1.
30957 2014-02-14  Kyle McMartin  <kyle@redhat.com>
30959         PR pch/60010
30960         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
30962 2014-02-14  Richard Biener  <rguenther@suse.de>
30964         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
30965         (get_frame_arg): Drop the assert with langhook types_compatible_p.
30966         Do not strip INDIRECT_REFs.
30968 2014-02-14  Richard Biener  <rguenther@suse.de>
30970         PR lto/60179
30971         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
30972         DECL_FUNCTION_SPECIFIC_TARGET.
30973         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
30974         * tree-streamer-out.c (pack_ts_target_option): Remove.
30975         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
30976         (write_ts_function_decl_tree_pointers): Do not stream
30977         DECL_FUNCTION_SPECIFIC_TARGET.
30978         * tree-streamer-in.c (unpack_ts_target_option): Remove.
30979         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
30980         (lto_input_ts_function_decl_tree_pointers): Do not stream
30981         DECL_FUNCTION_SPECIFIC_TARGET.
30983 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
30985         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
30986         (get_initial_def_for_induction, vectorizable_induction): Ignore
30987         debug stmts when looking for exit_phi.
30988         (vectorizable_live_operation): Fix up condition.
30990 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
30992         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
30993         nreverse() because it changes the content of original tree list.
30995 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
30997         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
30998         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
31000 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
31002         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
31003         GNU coding standards.
31005 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
31007         PR debug/60152
31008         * dwarf2out.c (gen_subprogram_die): Don't call
31009         add_calling_convention_attribute if subr_die is old_die.
31011 2014-02-13  Sharad Singhai  <singhai@google.com>
31013         * doc/optinfo.texi: Fix order of nodes.
31015 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
31017         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
31018         operands[2], not operands[3].
31020 2014-02-13  Richard Biener  <rguenther@suse.de>
31022         PR bootstrap/59878
31023         * doc/install.texi (ISL): Update recommended version to 0.12.2,
31024         mention the possibility of an in-tree build.
31025         (CLooG): Update recommended version to 0.18.1, mention the
31026         possibility of an in-tree build and clarify that the ISL
31027         bundled with CLooG does not work.
31029 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
31031         PR target/43546
31032         * expr.c (compress_float_constant): If x is a hard register,
31033         extend into a pseudo and then move to x.
31035 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31037         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
31038         caused by bad second argument to warning_at() with -mhotpatch and
31039         nested functions (e.g. with gfortran).
31041 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
31043         * opts.c (option_name): Remove "enabled by default" rider.
31045 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
31047         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
31049 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
31050             Uros Bizjak  <ubizjak@gmail.com>
31052         PR target/60151
31053         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
31054         * configure: Regenerated.
31056 2014-02-12  Richard Biener  <rguenther@suse.de>
31058         * vec.c (vec_prefix::calculate_allocation): Move as
31059         inline variant to vec.h.
31060         (vec_prefix::calculate_allocation_1): New out-of-line version.
31061         * vec.h (vec_prefix::calculate_allocation_1): Declare.
31062         (vec_prefix::m_has_auto_buf): Rename to ...
31063         (vec_prefix::m_using_auto_storage): ... this.
31064         (vec_prefix::calculate_allocation): Inline the easy cases
31065         and dispatch to calculate_allocation_1 which doesn't need the
31066         prefix address.
31067         (va_heap::reserve): Use gcc_checking_assert.
31068         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
31069         m_using_auto_storage.
31070         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
31071         member and adjust.
31072         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
31073         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
31074         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
31076 2014-02-12  Richard Biener  <rguenther@suse.de>
31078         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
31079         when we found a dependence.
31081 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
31083         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
31084         common code...
31085         (maybe_fold_stmt): ... into this new function.
31086         * omp-low.c (lower_omp): Update comment.
31088         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
31089         last use.
31091         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
31092         dereference.
31094 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
31096         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
31097         identifiers in comments.
31098         (cortexa53_extra_costs): Likewise.
31099         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
31100         (cortexa7_extra_costs): Likewise.
31101         (cortexa12_extra_costs): Likewise.
31102         (cortexa15_extra_costs): Likewise.
31103         (v7m_extra_costs): Likewise.
31105 2014-02-12  Richard Biener  <rguenther@suse.de>
31107         PR middle-end/60092
31108         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
31109         of posix_memalign being successful.
31110         (lower_stmt): Restrict lowering of posix_memalign to when
31111         -ftree-bit-ccp is enabled.
31113 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
31115         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
31116         arg_loc.
31117         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
31119 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
31121         PR rtl-optimization/60116
31122         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
31123         other_insn once the combination has been validated.
31125 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
31127         PR lto/59468
31128         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
31129         and wrapper.
31130         * ipa-devirt.c: Include demangle.h
31131         (odr_violation_reported): New static variable.
31132         (add_type_duplicate): Update odr_violations.
31133         (maybe_record_node): Add completep parameter; update it.
31134         (record_target_from_binfo): Add COMPLETEP parameter;
31135         update it as needed.
31136         (possible_polymorphic_call_targets_1): Likewise.
31137         (struct polymorphic_call_target_d): Add nonconstruction_targets;
31138         rename FINAL to COMPLETE.
31139         (record_targets_from_bases): Sanity check we found the binfo;
31140         fix COMPLETEP updating.
31141         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
31142         parameter, fix computing of COMPLETEP.
31143         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
31144         at LTO time do demangling.
31145         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
31146         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
31147         parameter.
31148         (gimple_get_virt_method_for_binfo): Likewise.
31149         * gimple-fold.h (gimple_get_virt_method_for_binfo,
31150         gimple_get_virt_method_for_vtable): Update prototypes.
31152 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
31154         PR target/49008
31155         * genautomata.c (add_presence_absence): Fix typo with
31156         {final_}presence_list.
31158 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
31160         PR target/60137
31161         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
31162         for VSX/Altivec vectors that land in GPR registers.
31164 2014-02-11  Richard Henderson  <rth@redhat.com>
31165             Jakub Jelinek  <jakub@redhat.com>
31167         PR debug/59776
31168         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
31169         around drhs if type conversion to lacc->type is not useless.
31171 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31173         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
31174         tuning struct.
31175         (cortex-a57.cortex-a53): Likewise.
31176         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
31178 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31180         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
31181         arm_restrict_it.
31183 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
31185         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
31186         add_options_for_arm_vfp3.
31188 2014-02-11  Jeff Law  <law@redhat.com>
31190         PR middle-end/54041
31191         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
31192         object with an undesirable mode.
31194 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31196         PR libgomp/60107
31197         * config/i386/sol2-9.h: New file.
31198         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
31199         *-*-solaris2.9*): Use it.
31201 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
31203         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
31204         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
31206 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
31208         * config/microblaze/microblaze.c: Extend mcpu version format
31210 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
31212         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
31214 2014-02-10  Richard Henderson  <rth@redhat.com>
31216         PR target/59927
31217         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
31218         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
31219         ms-abi vs -mno-accumulate-outgoing-args.
31220         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
31221         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
31222         respect to ms-abi.
31224 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31226         PR middle-end/60080
31227         * cfgexpand.c (expand_asm_operands): Attach source location to
31228         ASM_INPUT rtx objects.
31229         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
31231 2014-02-10  Nick Clifton  <nickc@redhat.com>
31233         * config/mn10300/mn10300.c (popcount): New function.
31234         (mn10300_expand_prologue): Include saved registers in stack usage
31235         count.
31237 2014-02-10  Jeff Law  <law@redhat.com>
31239         PR middle-end/52306
31240         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
31241         when changing the SET_DEST of a prior insn to avoid an input reload.
31243 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31245         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
31246         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
31247         -mcall-openbsd, or -mcall-linux.
31248         (CC1_ENDIAN_BIG_SPEC): Remove.
31249         (CC1_ENDIAN_LITTLE_SPEC): Remove.
31250         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
31251         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
31252         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
31253         and %cc1_endian_default.
31254         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
31256 2014-02-10  Richard Biener  <rguenther@suse.de>
31258         PR tree-optimization/60115
31259         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
31260         MEM_REF handling.  Properly verify that the accesses are not
31261         out of the objects bound.
31263 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31265         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
31266         coretex to cortex.
31268 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
31270         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
31271         proper constants and fix formatting.
31272         (possible_polymorphic_call_targets): Fix formatting.
31274 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
31275             Ilya Tocar  <ilya.tocar@intel.com>
31277         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
31278         (_mm512_loadu_epi32): Renamed into...
31279         (_mm512_loadu_si512): This.
31280         (_mm512_storeu_epi32): Renamed into...
31281         (_mm512_storeu_si512): This.
31282         (_mm512_maskz_ceil_ps): Removed.
31283         (_mm512_maskz_ceil_pd): Ditto.
31284         (_mm512_maskz_floor_ps): Ditto.
31285         (_mm512_maskz_floor_pd): Ditto.
31286         (_mm512_floor_round_ps): Ditto.
31287         (_mm512_floor_round_pd): Ditto.
31288         (_mm512_ceil_round_ps): Ditto.
31289         (_mm512_ceil_round_pd): Ditto.
31290         (_mm512_mask_floor_round_ps): Ditto.
31291         (_mm512_mask_floor_round_pd): Ditto.
31292         (_mm512_mask_ceil_round_ps): Ditto.
31293         (_mm512_mask_ceil_round_pd): Ditto.
31294         (_mm512_maskz_floor_round_ps): Ditto.
31295         (_mm512_maskz_floor_round_pd): Ditto.
31296         (_mm512_maskz_ceil_round_ps): Ditto.
31297         (_mm512_maskz_ceil_round_pd): Ditto.
31298         (_mm512_expand_pd): Ditto.
31299         (_mm512_expand_ps): Ditto.
31300         * config/i386/i386.c (ix86_builtins): Remove
31301         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
31302         (bdesc_args): Ditto.
31303         * config/i386/predicates.md (const1256_operand): New.
31304         (const_1_to_2_operand): Ditto.
31305         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31306         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31307         (*avx512pf_gatherpf<mode>sf): Ditto.
31308         (avx512pf_gatherpf<mode>df): Ditto.
31309         (*avx512pf_gatherpf<mode>df_mask): Ditto.
31310         (*avx512pf_gatherpf<mode>df): Ditto.
31311         (avx512pf_scatterpf<mode>sf): Ditto.
31312         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31313         (*avx512pf_scatterpf<mode>sf): Ditto.
31314         (avx512pf_scatterpf<mode>df): Ditto.
31315         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31316         (*avx512pf_scatterpf<mode>df): Ditto.
31317         (avx512f_expand<mode>): Removed.
31318         (<shift_insn><mode>3<mask_name>): Change predicate type.
31320 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
31322         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
31323         not at the end of datarefs vector use ordered_remove to avoid
31324         reordering datarefs vector.
31326         PR c/59984
31327         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
31328         mark local addressable non-static vars as GOVD_PRIVATE
31329         instead of GOVD_LOCAL.
31330         * omp-low.c (lower_omp_for): Move gimple_bind_vars
31331         and BLOCK_VARS of gimple_bind_block to new_stmt rather
31332         than copying them.
31334         PR middle-end/60092
31335         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
31336         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
31337         assume_aligned or alloc_align attributes.
31338         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
31339         arguments.  Handle also assume_aligned and alloc_align attributes.
31340         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
31341         calls to functions with assume_aligned or alloc_align attributes.
31342         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
31344 2014-02-08  Terry Guo  <terry.guo@arm.com>
31346         * doc/invoke.texi: Document ARM -march=armv7e-m.
31348 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
31350         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
31351         flag on __cilkrts_rethrow builtin.
31353         PR ipa/60026
31354         * ipa-cp.c (determine_versionability): Fail at -O0
31355         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
31356         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
31358         Revert:
31359         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
31361         PR ipa/60026
31362         * tree-inline.c (copy_forbidden): Fail for
31363         __attribute__((optimize (0))) functions.
31365 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
31367         * varpool.c: Include pointer-set.h.
31368         (varpool_remove_unreferenced_decls): Variables in other partitions
31369         will not be output; be however careful to not lose information
31370         about partitioning.
31372 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
31374         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
31375         lookup in the vtable constructor.
31377 2014-02-07  Jeff Law  <law@redhat.com>
31379         PR target/40977
31380         * config/m68k/m68k.md (ashldi_extsi): Turn into a
31381         define_insn_and_split.
31383         * ipa-inline.c (inline_small_functions): Fix typos.
31385 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
31387         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
31388         (s390_can_use_return_insn): Declare.
31389         * config/s390/s390.h (EPILOGUE_USES): Define.
31390         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
31391         instructions.
31392         (s390_chunkify_start): Handle return JUMP_LABELs.
31393         (s390_early_mach): Emit a main_pool instruction on the entry edge.
31394         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
31395         (s390_can_use_return_insn): New functions.
31396         (s390_fix_long_loop_prediction): Handle conditional returns.
31397         (TARGET_SET_UP_BY_PROLOGUE): Define.
31398         * config/s390/s390.md (ANY_RETURN): New code iterator.
31399         (*creturn, *csimple_return, return, simple_return): New patterns.
31401 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
31403         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
31404         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
31405         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
31406         REG_CFA_RESTORE list when deciding not to restore a register.
31408 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
31410         * config/s390/s390.c: Include tree-pass.h and context.h.
31411         (s390_early_mach): New function, split out from...
31412         (s390_emit_prologue): ...here.
31413         (pass_data_s390_early_mach): New pass structure.
31414         (pass_s390_early_mach): New class.
31415         (s390_option_override): Create and register early_mach pass.
31416         Move to end of file.
31418 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
31420         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
31421         to match for the exit block.
31423 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31425         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
31426         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
31427         Reject misaligned operands.
31429 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31431         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
31433 2014-02-07  Richard Biener  <rguenther@suse.de>
31435         PR middle-end/60092
31436         * gimple-low.c (lower_builtin_posix_memalign): New function.
31437         (lower_stmt): Call it to lower posix_memalign in a way
31438         to make alignment info accessible.
31440 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
31442         PR c++/60082
31443         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
31444         __builtin_setjmp_receiver.
31446 2014-02-07  Richard Biener  <rguenther@suse.de>
31448         PR middle-end/60092
31449         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
31450         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
31451         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
31452         Handle BUILT_IN_POSIX_MEMALIGN.
31453         (find_func_clobbers): Likewise.
31454         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
31455         (call_may_clobber_ref_p_1): Likewise.
31457 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
31459         PR ipa/59918
31460         * ipa-devirt.c (record_target_from_binfo): Remove overactive
31461         sanity check.
31463 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
31465         PR ipa/59469
31466         * lto-cgraph.c (lto_output_node): Use
31467         symtab_get_symbol_partitioning_class.
31468         (lto_output_varpool_node): likewise.
31469         (symtab_get_symbol_partitioning_class): Move here from
31470         lto/lto-partition.c
31471         * cgraph.h (symbol_partitioning_class): Likewise.
31472         (symtab_get_symbol_partitioning_class): Declare.
31474 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
31476         * ggc.h (ggc_internal_cleared_alloc): New macro.
31477         * vec.h (vec_safe_copy): Handle memory stats.
31478         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
31479         * target-globals.c (save_target_globals): Likewise.
31481 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
31483         PR target/60077
31484         * expr.c (emit_move_resolve_push): Export; be bit more selective
31485         on when to clear alias set.
31486         * expr.h (emit_move_resolve_push): Declare.
31487         * function.h (struct function): Add tail_call_marked.
31488         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
31489         * config/i386/i386-protos.h (ix86_expand_push): Remove.
31490         * config/i386/i386.md (TImode move expander): De not call
31491         ix86_expand_push.
31492         (FP push expanders): Preserve memory attributes.
31493         * config/i386/sse.md (push<mode>1): Remove.
31494         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
31495         (ix86_expand_push): Remove.
31496         * config/i386/mmx.md (push<mode>1): Remove.
31498 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
31500         PR rtl-optimization/60030
31501         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
31502         lopart with paradoxical subreg before shifting it up by hprec.
31504 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31506         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
31507         Remove extra newline at end of file.
31508         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
31509         (arm_issue_rate): Handle cortexa57.
31510         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
31511         (cortex-a57.cortex-a53): Likewise.
31513 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
31515         PR target/59575
31516         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
31517         don't record in REG_FRAME_RELATED_EXPR registers not set in that
31518         bitmask.
31519         (arm_expand_prologue): Adjust all callers.
31520         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
31521         info, registers also at the lowest numbered registers side.  Use
31522         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
31523         XEXP.
31525         PR debug/59992
31526         * var-tracking.c (adjust_mems): Before adding a SET to
31527         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
31529 2014-02-06  Alan Modra  <amodra@gmail.com>
31531         PR target/60032
31532         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
31533         change SDmode to DDmode when lra_in_progress.
31535 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
31537         PR middle-end/59150
31538         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
31539         free_data_ref on the dr first, and before goto again also set dr
31540         to the next dr.  For simd_lane_access, free old datarefs[i] before
31541         overwriting it.  For get_vectype_for_scalar_type failure, don't
31542         free_data_ref if simd_lane_access.
31544         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
31546         PR target/60062
31547         * tree.h (opts_for_fn): New inline function.
31548         (opt_for_fn): Define.
31549         * config/i386/i386.c (ix86_function_regparm): Use
31550         opt_for_fn (decl, optimize) instead of optimize.
31552 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31554         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
31555         for SYMBOL_REF in large memory model.
31557 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31559         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
31560         and crypto support.
31561         (cortex-a57): Likewise.
31562         (cortex-a57.cortex-a53): Likewise.
31564 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
31565             Kugan Vivekanandarajah  <kuganv@linaro.org>
31567         * config/arm/arm.c (arm_vector_alignment_reachable): Check
31568         unaligned_access.
31569         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
31571 2014-02-06  Richard Biener  <rguenther@suse.de>
31573         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
31574         set_loop_copy and initialize_original_copy_tables.
31576 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
31578         * config/aarch64/aarch64-simd.md
31579         (aarch64_ashr_simddi): Change QI to SI.
31581 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
31582             Jakub Jelinek  <jakub@redhat.com>
31584         PR middle-end/60013
31585         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
31586         of the dataflow.
31588 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31590         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
31591         CODE_FOR_altivec_vpku[hw]um to
31592         CODE_FOR_altivec_vpku[hw]um_direct.
31593         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
31594         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
31595         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
31596         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
31598 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31600         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
31601         generation for -maltivec=be.
31602         (altivec_vsumsws): Simplify redundant test.
31604 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31606         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
31607         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
31608         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
31609         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
31610         gen_altivec_vpkuwum.
31611         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
31612         BYTES_BIG_ENDIAN.
31613         (altivec_vpks<VI_char>ss): Likewise.
31614         (altivec_vpks<VI_char>us): Likewise.
31615         (altivec_vpku<VI_char>us): Likewise.
31616         (altivec_vpku<VI_char>um): Likewise.
31617         (altivec_vpku<VI_char>um_direct): New (copy of
31618         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
31619         internal use).
31620         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
31621         target is little endian and -maltivec=be is not specified.
31622         (*altivec_vupkhs<VU_char>_direct): New (copy of
31623         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
31624         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
31625         target is little endian and -maltivec=be is not specified.
31626         (*altivec_vupkls<VU_char>_direct): New (copy of
31627         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
31628         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
31629         little endian and -maltivec=be is not specified.
31630         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
31631         little endian and -maltivec=be is not specified.
31633 2014-02-05  Richard Henderson  <rth@redhat.com>
31635         PR debug/52727
31636         * combine-stack-adj.c: Revert r206943.
31637         * sched-int.h (struct deps_desc): Add last_args_size.
31638         * sched-deps.c (init_deps): Initialize it.
31639         (sched_analyze_insn): Add OUTPUT dependencies between insns that
31640         contain REG_ARGS_SIZE notes.
31642 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
31644         * lto-cgraph.c (asm_nodes_output): Make global.
31645         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
31646         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
31647         (driver_handle_option): Handle OPT_fwpa.
31649 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
31651         PR ipa/59947
31652         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
31653         a comment typo and formatting issue.  If odr_hash hasn't been
31654         created, return vNULL and set *completep to false.
31656         PR middle-end/57499
31657         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
31658         bb with no successors.
31660 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
31662         PR target/59718
31663         * doc/invoke.texi (-march): Clarify documentation for ARM.
31664         (-mtune): Likewise.
31665         (-mcpu): Likewise.
31667 2014-02-05  Richard Biener  <rguenther@suse.de>
31669         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
31670         when not vectorizing because of too many alias checks.
31671         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31672         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
31674 2014-02-05  Nick Clifton  <nickc@redhat.com>
31676         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
31677         accept extended registers in any mode when compiling for the MN10300.
31679 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
31681         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
31682         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
31683         sanitization attributes.
31684         (can_inline_edge_p): Likewise.
31685         (sanitize_attrs_match_for_inline_p): New function.
31687 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
31689         * ipa-prop.c (detect_type_change): Shor circuit testing of
31690         type changes on THIS pointer.
31692 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
31694         PR target/59777
31695         * config/pa/pa.c (legitimize_tls_address): Return original address
31696         if not passed a SYMBOL_REF rtx.
31697         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
31698         addresses.
31699         (pa_emit_move_sequence): Simplify TLS source operands.
31700         (pa_legitimate_constant_p): Reject all TLS constants.
31701         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
31702         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
31704 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
31706         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
31707         groups when we know they are controlled by LTO.
31708         * varasm.c (default_binds_local_p_1): If object is in other partition,
31709         it will be resolved locally.
31711 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31713         * config/host-linux.c (linux_gt_pch_use_address): Don't
31714         use SSIZE_MAX because it is not always defined.
31716 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
31718         PR bootstrap/59913
31719         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
31720         threshold for pseudo splitting.
31721         (update_ebb_live_info): Process call argument hard registers and
31722         hard registers from insn definition too.
31723         (max_small_class_regs_num): New constant.
31724         (inherit_in_ebb): Update live hard regs through EBBs.  Update
31725         reloads_num only for small register classes.  Don't split for
31726         outputs of jumps.
31728 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
31730         PR ipa/60058
31731         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
31732         is non-null.
31734 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
31736         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
31737         visibility is safe.
31739 2014-02-04  Marek Polacek  <polacek@redhat.com>
31741         * gdbinit.in (pel): Define.
31743 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31745         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
31746         behavior.
31748 2014-02-04  Richard Biener  <rguenther@suse.de>
31750         PR lto/59723
31751         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
31752         in function context local.
31753         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
31754         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
31755         similar to LTO_imported_decl_ref.
31757 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
31759         PR tree-optimization/60002
31760         * cgraphclones.c (build_function_decl_skip_args): Clear
31761         DECL_LANG_SPECIFIC.
31763         PR tree-optimization/60023
31764         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
31765         false to gsi_replace.
31766         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
31767         has been in some EH region and vec_stmt could throw, add
31768         vec_stmt into the same EH region.
31769         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
31770         has no lhs, ignore it.
31771         * internal-fn.c (expand_MASK_LOAD): Likewise.
31773         PR ipa/60026
31774         * tree-inline.c (copy_forbidden): Fail for
31775         __attribute__((optimize (0))) functions.
31777         PR other/58712
31778         * omp-low.c (simd_clone_struct_copy): If from->inbranch
31779         is set, copy one less argument.
31780         (expand_simd_clones): Don't subtract clone_info->inbranch
31781         from simd_clone_struct_alloc argument.
31783         PR rtl-optimization/57915
31784         * recog.c (simplify_while_replacing): If all unary/binary/relational
31785         operation arguments are constant, attempt to simplify those.
31787         PR middle-end/59261
31788         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
31789         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
31791 2014-02-04  Richard Biener  <rguenther@suse.de>
31793         PR tree-optimization/60012
31794         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
31795         TBAA disambiguation to all DDRs.
31797 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31799         PR target/59788
31800         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
31801         (LINK_SPEC): Use it for -shared, -shared-libgcc.
31803 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31805         PR ipa/59882
31806         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
31808 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31810         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
31811         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
31813 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31815         PR ipa/59831
31816         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
31817         to figure out targets of polymorphic calls with known decl.
31818         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31819         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
31820         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
31821         (get_polymorphic_call_info): ... here.
31822         (get_polymorphic_call_info_from_invariant): New function.
31824 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31826         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
31827         lookup via vtable pointer; check for type consistency
31828         and turn inconsitent facts into UNREACHABLE.
31829         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31830         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
31831         type inconsistent querries; return UNREACHABLE instead.
31833 2014-02-03  Richard Henderson  <rth@twiddle.net>
31835         PR tree-opt/59924
31836         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
31837         already processed this node.
31838         (normalize_one_pred_1): Pass along mark_set.
31839         (normalize_one_pred): Create and destroy a pointer_set_t.
31840         (normalize_one_pred_chain): Likewise.
31842 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
31844         PR gcov-profile/58602
31845         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
31847 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
31849         PR ipa/59831
31850         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
31851         -fno-devirtualize; try to devirtualize by the knowledge of
31852         virtual table pointer given by aggregate propagation.
31853         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
31854         (ipa_print_node_jump_functions): Dump also offset that
31855         is relevant for polymorphic calls.
31856         (determine_known_aggregate_parts): Add arg_type parameter; use it
31857         instead of determining the type from pointer type.
31858         (ipa_compute_jump_functions_for_edge): Update call of
31859         determine_known_aggregate_parts.
31860         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
31861         (gimple_get_virt_method_for_binfo): ... here; simplify using
31862         vtable_pointer_value_to_vtable.
31863         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
31864         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
31865         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
31866         (vtable_pointer_value_to_vtable): Break out from ...; handle also
31867         POINTER_PLUS_EXPR.
31868         (vtable_pointer_value_to_binfo): ... here.
31869         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
31871 2014-02-03  Teresa Johnson  <tejohnson@google.com>
31873         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
31874         redef of outer loop index variable.
31876 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
31878         PR c++/53017
31879         PR c++/59211
31880         * doc/extend.texi (Function Attributes): Typo.
31882 2014-02-03  Cong Hou  <congh@google.com>
31884         PR tree-optimization/60000
31885         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
31886         if the vectorized statement is a store.  A store statement can only
31887         appear at the end of pattern statements.
31889 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
31891         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
31892         (ix86_option_override_internal): Default long double to 64-bit for
31893         32-bit Bionic and to 128-bit for 64-bit Bionic.
31895         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
31896         TARGET_LONG_DOUBLE_128 is true.
31897         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
31899         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
31900         (mlong-double-64): Negate -mlong-double-128.
31901         (mlong-double-128): New option.
31903         * config/i386/i386-c.c (ix86_target_macros): Define
31904         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
31906         * doc/invoke.texi: Document -mlong-double-128.
31908 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
31910         PR rtl-optimization/60024
31911         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
31913 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
31915         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
31917 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
31919         PR rtl-optimization/57662
31920         * sel-sched.c (code_motion_path_driver): Do not mark already not
31921         existing blocks in the visiting bitmap.
31923 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
31925         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
31926         on the insn being emitted.
31928 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
31929             Will Deacon  <will.deacon@arm.com>
31931         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
31933 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31935         * config/arm/arm-tables.opt: Regenerate.
31937 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31939         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
31940         for vector types other than V16QImode.
31941         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
31942         define_expand, and call altivec_expand_vec_perm_le when producing
31943         code with little endian element order.
31944         (*altivec_vperm_<mode>_internal): New insn having previous
31945         behavior of altivec_vperm_<mode>.
31946         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
31947         altivec_expand_vec_perm_le when producing code with little endian
31948         element order.
31949         (*altivec_vperm_<mode>_uns_internal): New insn having previous
31950         behavior of altivec_vperm_<mode>_uns.
31952 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31954         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
31955         (altivec_vsumsws): Add handling for -maltivec=be with a little
31956         endian target.
31957         (altivec_vsumsws_direct): New.
31958         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
31959         gen_altivec_vsumsws.
31961 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
31963         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
31964         vtable_pointer_value_to_binfo): New functions.
31965         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
31966         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
31968 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
31970         * config/nios2/nios2.md (load_got_register): Initialize GOT
31971         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
31972         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
31974 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
31976         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
31977         preserverd by passthrough, do not propagate the type.
31979 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
31981         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
31982         (mips_atomic_assign_expand_fenv): New function.
31983         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
31985 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
31987         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
31988         (__builtin_mips_set_fcsr): Likewise.
31989         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
31990         MIPS_USI_FTYPE_VOID.
31991         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
31992         (mips16_expand_set_fcsr): Likewise.
31993         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
31994         (mips16_set_fcsr_stub): Likewise.
31995         (mips16_get_fcsr_one_only_stub): New class.
31996         (mips16_set_fcsr_one_only_stub): Likewise.
31997         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
31998         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
31999         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
32000         (hard_float): New availability predicate.
32001         (mips_builtins): Add get_fcsr and set_fcsr.
32002         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
32003         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
32004         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
32005         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
32006         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
32007         patterns.
32009 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
32011         * config/mips/mips.c (mips_one_only_stub): New class.
32012         (mips_need_mips16_rdhwr_p): Replace with...
32013         (mips16_rdhwr_stub): ...this new variable.
32014         (mips16_stub_call_address): New function.
32015         (mips16_rdhwr_one_only_stub): New class.
32016         (mips_expand_thread_pointer): Use mips16_stub_call_address.
32017         (mips_output_mips16_rdhwr): Delete.
32018         (mips_finish_stub): New function.
32019         (mips_code_end): Use it to handle rdhwr stubs.
32021 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
32023         PR target/60017
32024         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
32025         when calculating size of integer atomic types.
32027 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
32029         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
32031 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
32033         PR tree-optimization/60003
32034         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
32035         * profile.c (branch_prob): Use gimple_call_builtin_p
32036         to check for BUILT_IN_SETJMP_RECEIVER.
32037         * tree-inline.c (copy_bb): Call notice_special_calls.
32039 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
32041         PR bootstrap/59985
32042         * lra-constraints.c (process_alt_operands): Update reload_sum only
32043         on the first pass.
32045 2014-01-31  Richard Henderson  <rth@redhat.com>
32047         PR middle-end/60004
32048         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
32049         until after else_eh is processed.
32051 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
32053         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
32054         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
32055         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
32056         in smmintrin.h, remove them.
32057         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
32058         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
32059         * config/i386/i386.md (ROUND_SAE): Fix value.
32060         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
32061         (const48_operand): New.
32062         * config/i386/subst.md (round), (round_expand): Use
32063         const_4_or_8_to_11_operand.
32064         (round_saeonly), (round_saeonly_expand): Use const48_operand.
32066 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
32068         * config/i386/constraints.md (Yk): Swap meaning with k.
32069         * config/i386/i386.md (movhi_internal): Change Yk to k.
32070         (movqi_internal): Ditto.
32071         (*k<logic><mode>): Ditto.
32072         (*andhi_1): Ditto.
32073         (*andqi_1): Ditto.
32074         (kandn<mode>): Ditto.
32075         (*<code>hi_1): Ditto.
32076         (*<code>qi_1): Ditto.
32077         (kxnor<mode>): Ditto.
32078         (kortestzhi): Ditto.
32079         (kortestchi): Ditto.
32080         (kunpckhi): Ditto.
32081         (*one_cmplhi2_1): Ditto.
32082         (*one_cmplqi2_1): Ditto.
32083         * config/i386/sse.md (): Change k to Yk.
32084         (avx512f_load<mode>_mask): Ditto.
32085         (avx512f_blendm<mode>): Ditto.
32086         (avx512f_store<mode>_mask): Ditto.
32087         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
32088         (avx512f_storedqu<mode>_mask): Ditto.
32089         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
32090         Ditto.
32091         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
32092         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
32093         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
32094         (avx512f_maskcmp<mode>3): Ditto.
32095         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
32096         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
32097         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
32098         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
32099         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
32100         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
32101         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
32102         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
32103         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
32104         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
32105         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
32106         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
32107         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
32108         (vec_extract_lo_<mode>_maskm): Ditto.
32109         (vec_extract_hi_<mode>_maskm): Ditto.
32110         (avx512f_vternlog<mode>_mask): Ditto.
32111         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
32112         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
32113         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
32114         (avx512f_<code>v8div16qi2_mask): Ditto.
32115         (avx512f_<code>v8div16qi2_mask_store): Ditto.
32116         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
32117         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
32118         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
32119         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
32120         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32121         (*avx512pf_gatherpf<mode>df_mask): Ditto.
32122         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32123         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32124         (avx512cd_maskb_vec_dupv8di): Ditto.
32125         (avx512cd_maskw_vec_dupv16si): Ditto.
32126         (avx512f_vpermi2var<mode>3_maskz): Ditto.
32127         (avx512f_vpermi2var<mode>3_mask): Ditto.
32128         (avx512f_vpermi2var<mode>3_mask): Ditto.
32129         (avx512f_vpermt2var<mode>3_maskz): Ditto.
32130         (*avx512f_gathersi<mode>): Ditto.
32131         (*avx512f_gathersi<mode>_2): Ditto.
32132         (*avx512f_gatherdi<mode>): Ditto.
32133         (*avx512f_gatherdi<mode>_2): Ditto.
32134         (*avx512f_scattersi<mode>): Ditto.
32135         (*avx512f_scatterdi<mode>): Ditto.
32136         (avx512f_compress<mode>_mask): Ditto.
32137         (avx512f_compressstore<mode>_mask): Ditto.
32138         (avx512f_expand<mode>_mask): Ditto.
32139         * config/i386/subst.md (mask): Change k to Yk.
32140         (mask_scalar_merge): Ditto.
32141         (sd): Ditto.
32143 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
32145         * doc/extend.texi (Vector Extensions): Document ?: in C++.
32147 2014-01-31  Richard Biener  <rguenther@suse.de>
32149         PR middle-end/59990
32150         * builtins.c (fold_builtin_memory_op): Make sure to not
32151         use a floating-point mode or a boolean or enumeral type for
32152         the copy operation.
32154 2014-01-30  DJ Delorie  <dj@redhat.com>
32156         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
32157         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
32158         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
32159         whenever main() has an epilogue.
32161 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32163         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
32164         unused variable "field".
32165         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
32166         (vsx_mergeh_<mode>): Likewise.
32167         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
32168         (altivec_vmrghh): Likewise.
32169         (altivec_vmrghw): Likewise.
32170         (altivec_vmrglb): Likewise.
32171         (altivec_vmrglh): Likewise.
32172         (altivec_vmrglw): Likewise.
32173         (altivec_vspltb): Add missing uses.
32174         (altivec_vsplth): Likewise.
32175         (altivec_vspltw): Likewise.
32176         (altivec_vspltsf): Likewise.
32178 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
32180         PR target/59923
32181         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
32182         frame related instructions.
32184 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
32186         PR rtl-optimization/59959
32187         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
32188         any reload of register whose subreg is invalid.
32190 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
32192         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
32193         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
32194         Add missing return type - void.
32196 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32198         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
32199         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
32200         remove element index adjustment for endian (now handled in vsx.md
32201         and altivec.md).
32202         (altivec_expand_vec_perm_const): Use
32203         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
32204         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
32205         (vsx_xxspltw_<mode>): Adjust element index for little endian.
32206         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
32207         define_expand and a new define_insn *altivec_vspltb_internal;
32208         adjust for -maltivec=be on a little endian target.
32209         (altivec_vspltb_direct): New.
32210         (altivec_vsplth): Divide into a define_expand and a new
32211         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
32212         little endian target.
32213         (altivec_vsplth_direct): New.
32214         (altivec_vspltw): Divide into a define_expand and a new
32215         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
32216         little endian target.
32217         (altivec_vspltw_direct): New.
32218         (altivec_vspltsf): Divide into a define_expand and a new
32219         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
32220         a little endian target.
32222 2014-01-30  Richard Biener  <rguenther@suse.de>
32224         PR tree-optimization/59993
32225         * tree-ssa-forwprop.c (associate_pointerplus): Check we
32226         can propagate form the earlier stmt and avoid the transform
32227         when the intermediate result is needed.
32229 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
32231         * README.Portability: Fix typo.
32233 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
32235         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
32236         comparison_operator with ordered_comparison_operator.
32238 2014-01-30  Nick Clifton  <nickc@redhat.com>
32240         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
32241         Rename to mn10300_store_multiple_regs.
32242         * config/mn10300/mn10300.c: Likewise.
32243         * config/mn10300/mn10300.md (store_movm): Fix typo: call
32244         store_multiple_regs.
32245         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
32246         Call mn10300_store_multiple_regs.
32248 2014-01-30  Nick Clifton  <nickc@redhat.com>
32249             DJ Delorie  <dj@redhat.com>
32251         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
32252         %fp 2 to keep registers after it properly word-aligned.
32253         (rl78_alloc_physical_registers_umul): Handle the case where both
32254         input operands are the same.
32256 2014-01-30  Richard Biener  <rguenther@suse.de>
32258         PR tree-optimization/59903
32259         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
32260         check properly.
32262 2014-01-30  Jason Merrill  <jason@redhat.com>
32264         PR c++/59633
32265         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
32267         PR c++/59645
32268         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
32270 2014-01-30  Richard Biener  <rguenther@suse.de>
32272         PR tree-optimization/59951
32273         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
32275 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
32277         PR target/59784
32278         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
32279         SFmode to DFmode case.
32281 2014-01-29  DJ Delorie  <dj@redhat.com>
32283         * config/msp430/msp430.opt (-minrt): New.
32284         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
32285         if -minrt given.
32286         (ENDFILE_SPEC): Likewise.
32288 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
32290         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
32291         (estimate_function_body_sizes): Use it.
32293 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
32295         PR c++/58561
32296         * dwarf2out.c (is_cxx_auto): New.
32297         (is_base_type): Use it.
32298         (gen_type_die_with_usage): Likewise.
32300 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32302         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
32303         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
32304         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
32305         -maltivec=be with LE targets.
32306         (vsx_mergeh_<mode>): Likewise.
32307         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
32308         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
32309         (altivec_vmrghb): Replace with define_expand and new
32310         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
32311         (altivec_vmrghb_direct): New define_insn.
32312         (altivec_vmrghh): Replace with define_expand and new
32313         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
32314         (altivec_vmrghh_direct): New define_insn.
32315         (altivec_vmrghw): Replace with define_expand and new
32316         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
32317         (altivec_vmrghw_direct): New define_insn.
32318         (*altivec_vmrghsf): Adjust for endianness.
32319         (altivec_vmrglb): Replace with define_expand and new
32320         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
32321         (altivec_vmrglb_direct): New define_insn.
32322         (altivec_vmrglh): Replace with define_expand and new
32323         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
32324         (altivec_vmrglh_direct): New define_insn.
32325         (altivec_vmrglw): Replace with define_expand and new
32326         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
32327         (altivec_vmrglw_direct): New define_insn.
32328         (*altivec_vmrglsf): Adjust for endianness.
32329         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
32330         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
32331         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
32332         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
32333         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
32334         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
32335         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
32336         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
32338 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32340         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
32341         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
32342         whitespace.
32344 2014-01-29  Richard Biener  <rguenther@suse.de>
32346         PR tree-optimization/58742
32347         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
32348         associate_pointerplus_align.
32349         (associate_pointerplus_diff): New function.
32350         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
32351         and associate_pointerplus_diff.
32353 2014-01-29  Richard Biener  <rguenther@suse.de>
32355         * lto-streamer.h (LTO_major_version): Bump to 3.
32356         (LTO_minor_version): Reset to 0.
32358 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
32360         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
32361         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
32362         (arm_file_start): Generate correct asm header for armv7ve.
32363         * config/arm/bpabi.h: Add multilib support for armv7ve.
32364         * config/arm/driver-arm.c: Change the architectures of cortex-a7
32365         and cortex-a15 to armv7ve.
32366         * config/arm/t-aprofile: Add multilib support for armv7ve.
32367         * doc/invoke.texi: Document -march=armv7ve.
32369 2014-01-29  Richard Biener  <rguenther@suse.de>
32371         PR tree-optimization/58742
32372         * tree-ssa-forwprop.c (associate_plusminus): Return true
32373         if we changed sth, defer EH cleanup to ...
32374         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
32375         (simplify_mult): New function.
32377 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
32379         PR middle-end/59917
32380         PR tree-optimization/59920
32381         * tree.c (build_common_builtin_nodes): Remove
32382         __builtin_setjmp_dispatcher initialization.
32383         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
32384         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
32385         instead of gsi_after_labels + manually skipping debug stmts.
32386         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
32387         ignore bbs with IFN_ABNORMAL_DISPATCHER.
32388         * tree-inline.c (copy_edges_for_bb): Remove
32389         can_make_abnormal_goto argument, instead add abnormal_goto_dest
32390         argument.  Ignore computed_goto_p stmts.  Don't call
32391         make_abnormal_goto_edges.  If a call might need abnormal edges
32392         for non-local gotos, see if it already has an edge to
32393         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
32394         with true argument, don't do anything then, otherwise add
32395         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
32396         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
32397         caller.
32398         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
32399         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
32400         (lower_stmt): Don't set data->calls_builtin_setjmp.
32401         (lower_builtin_setjmp): Adjust comment.
32402         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
32403         * tree-cfg.c (found_computed_goto): Remove.
32404         (factor_computed_gotos): Remove.
32405         (make_goto_expr_edges): Return bool, true for computed gotos.
32406         Don't call make_abnormal_goto_edges.
32407         (build_gimple_cfg): Don't set found_computed_goto, don't call
32408         factor_computed_gotos.
32409         (computed_goto_p): No longer static.
32410         (make_blocks): Don't set found_computed_goto.
32411         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
32412         (make_edges): If make_goto_expr_edges returns true, push bb
32413         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
32414         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
32415         vector.  Record mapping between bbs and OpenMP regions if there
32416         are any, adjust make_gimple_omp_edges caller.  Call
32417         handle_abnormal_edges.
32418         (make_abnormal_goto_edges): Remove.
32419         * tree-cfg.h (make_abnormal_goto_edges): Remove.
32420         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
32421         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
32422         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
32423         * internal-fn.def (ABNORMAL_DISPATCHER): New.
32424         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
32425         filling *region also set *region_idx to (*region)->entry->index.
32427         PR other/58712
32428         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
32429         For REGs set ORIGINAL_REGNO.
32431 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
32433         * doc/md.texi: Mention that a target shouldn't implement
32434         vec_widen_(s|u)mul_even/odd pair if it is less efficient
32435         than hi/lo pair.
32437 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
32439         PR tree-optimization/59594
32440         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
32441         a copy of the datarefs vector rather than the vector itself.
32443 2014-01-28  Jason Merrill  <jason@redhat.com>
32445         PR c++/53756
32446         * dwarf2out.c (auto_die): New static.
32447         (gen_type_die_with_usage): Handle C++1y 'auto'.
32448         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
32449         on definition.
32451 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
32453         PR target/59672
32454         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
32455         (SPEC_X32): Likewise.
32456         (SPEC_64): Likewise.
32457         * config/i386/i386.c (ix86_option_override_internal): Turn off
32458         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
32459         for TARGET_16BIT.
32460         (x86_file_start): Output .code16gcc for TARGET_16BIT.
32461         * config/i386/i386.h (TARGET_16BIT): New macro.
32462         (TARGET_16BIT_P): Likewise.
32463         * config/i386/i386.opt: Add m16.
32464         * doc/invoke.texi: Document -m16.
32466 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
32468         PR preprocessor/59935
32469         * input.c (location_get_source_line): Bail out on when line number
32470         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
32472 2014-01-28  Richard Biener  <rguenther@suse.de>
32474         PR tree-optimization/58742
32475         * tree-ssa-forwprop.c (associate_plusminus): Handle
32476         pointer subtraction of the form (T)(P + A) - (T)P.
32478 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32480         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
32481         at const_int_cost.
32483 2014-01-28  Richard Biener  <rguenther@suse.de>
32485         Revert
32486         2014-01-28  Richard Biener  <rguenther@suse.de>
32488         PR rtl-optimization/45364
32489         PR rtl-optimization/59890
32490         * var-tracking.c (local_get_addr_clear_given_value): Handle
32491         already cleared slot.
32492         (val_reset): Handle not allocated local_get_addr_cache.
32493         (vt_find_locations): Use post-order on the inverted CFG.
32495 2014-01-28  Richard Biener  <rguenther@suse.de>
32497         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
32499 2014-01-28  Richard Biener  <rguenther@suse.de>
32501         PR rtl-optimization/45364
32502         PR rtl-optimization/59890
32503         * var-tracking.c (local_get_addr_clear_given_value): Handle
32504         already cleared slot.
32505         (val_reset): Handle not allocated local_get_addr_cache.
32506         (vt_find_locations): Use post-order on the inverted CFG.
32508 2014-01-28  Alan Modra  <amodra@gmail.com>
32510         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
32511         * configure.ac <recursive call for build != host>: Define
32512         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
32513         and LD_FOR_BUILD too.
32514         * configure: Regenerate.
32516 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
32518         * config/i386/i386.c (get_builtin_code_for_version): Separate
32519         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
32520         Broadwell from Haswell.
32522 2014-01-27  Steve Ellcey  <sellcey@mips.com>
32524         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
32525         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
32526         * config/mips/mips.c (mips_option_override): Change setting
32527         of TARGET_DSP.
32528         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
32529         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
32530         Change from Mask to Var.
32532 2014-01-27  Jeff Law  <law@redhat.com>
32534         * ipa-inline.c (inline_small_functions): Fix typo.
32536 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
32538         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
32539         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
32540         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
32541         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
32542         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
32543         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
32544         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
32545         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
32546         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
32547         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
32548         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
32549         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
32550         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
32551         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
32552         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
32553         (_mm512_storeu_epi64): Ditto.
32554         (_mm512_cmpge_epi32_mask): Ditto.
32555         (_mm512_cmpge_epu32_mask): Ditto.
32556         (_mm512_cmpge_epi64_mask): Ditto.
32557         (_mm512_cmpge_epu64_mask): Ditto.
32558         (_mm512_cmple_epi32_mask): Ditto.
32559         (_mm512_cmple_epu32_mask): Ditto.
32560         (_mm512_cmple_epi64_mask): Ditto.
32561         (_mm512_cmple_epu64_mask): Ditto.
32562         (_mm512_cmplt_epi32_mask): Ditto.
32563         (_mm512_cmplt_epu32_mask): Ditto.
32564         (_mm512_cmplt_epi64_mask): Ditto.
32565         (_mm512_cmplt_epu64_mask): Ditto.
32566         (_mm512_cmpneq_epi32_mask): Ditto.
32567         (_mm512_cmpneq_epu32_mask): Ditto.
32568         (_mm512_cmpneq_epi64_mask): Ditto.
32569         (_mm512_cmpneq_epu64_mask): Ditto.
32570         (_mm512_expand_pd): Ditto.
32571         (_mm512_expand_ps): Ditto.
32572         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
32573         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
32574         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
32575         * config/i386/i386.c (ix86_builtins): Add
32576         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
32577         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
32578         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
32579         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
32580         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
32581         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
32582         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
32583         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
32584         IX86_BUILTIN_PMOVUSQW512_MEM.
32585         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
32586         __builtin_ia32_pmovsqd512mem_mask,
32587         __builtin_ia32_pmovqd512mem_mask,
32588         __builtin_ia32_pmovusqw512mem_mask,
32589         __builtin_ia32_pmovsqw512mem_mask,
32590         __builtin_ia32_pmovqw512mem_mask,
32591         __builtin_ia32_pmovusdw512mem_mask,
32592         __builtin_ia32_pmovsdw512mem_mask,
32593         __builtin_ia32_pmovdw512mem_mask,
32594         __builtin_ia32_pmovqb512mem_mask,
32595         __builtin_ia32_pmovusqb512mem_mask,
32596         __builtin_ia32_pmovsqb512mem_mask,
32597         __builtin_ia32_pmovusdb512mem_mask,
32598         __builtin_ia32_pmovsdb512mem_mask,
32599         __builtin_ia32_pmovdb512mem_mask.
32600         (bdesc_args): Add __builtin_ia32_expanddf512,
32601         __builtin_ia32_expandsf512.
32602         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
32603         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
32604         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
32605         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
32606         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
32607         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
32608         (avx512f_<code>v8div16qi2_mask_store): This.
32609         (avx512f_expand<mode>): New.
32611 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
32613         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
32614         New.
32615         (_mm512_mask_prefetch_i64gather_pd): Ditto.
32616         (_mm512_prefetch_i32scatter_pd): Ditto.
32617         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
32618         (_mm512_prefetch_i64scatter_pd): Ditto.
32619         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
32620         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
32621         (_mm512_mask_prefetch_i64gather_ps): Ditto.
32622         (_mm512_prefetch_i32scatter_ps): Ditto.
32623         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
32624         (_mm512_prefetch_i64scatter_ps): Ditto.
32625         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
32626         * config/i386/i386-builtin-types.def: Define
32627         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
32628         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
32629         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
32630         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
32631         IX86_BUILTIN_SCATTERPFQPD.
32632         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
32633         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
32634         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
32635         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
32636         __builtin_ia32_scatterpfqps.
32637         (ix86_expand_builtin): Expand new built-ins.
32638         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
32639         fix memory access data type.
32640         (*avx512pf_gatherpf<mode>_mask): Ditto.
32641         (*avx512pf_gatherpf<mode>): Ditto.
32642         (avx512pf_scatterpf<mode>): Ditto.
32643         (*avx512pf_scatterpf<mode>_mask): Ditto.
32644         (*avx512pf_scatterpf<mode>): Ditto.
32645         (GATHER_SCATTER_SF_MEM_MODE): New.
32646         (avx512pf_gatherpf<mode>df): Ditto.
32647         (*avx512pf_gatherpf<mode>df_mask): Ditto.
32648         (*avx512pf_scatterpf<mode>df): Ditto.
32650 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
32652         PR bootstrap/59934
32653         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
32654         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
32655         reached.
32657 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
32659         * common/config/arm/arm-common.c
32660         (arm_rewrite_mcpu): Handle multiple names.
32661         * config/arm/arm.h
32662         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
32664 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
32666         * gimple-builder.h (create_gimple_tmp): Delete.
32668 2014-01-27  Christian Bruel  <christian.bruel@st.com>
32670         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
32671         words comparisons.
32673 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
32675         * config/pa/pa.md (call): Generate indirect long calls to non-local
32676         functions when outputing 32-bit code.
32677         (call_value): Likewise except for special call to buggy powf function.
32679         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
32680         portable runtime and PIC indirect calls.
32681         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
32682         and PIC call sequences.  Use ldo instead of blr to set return register
32683         in PIC call sequence.
32685 2014-01-25  Walter Lee  <walt@tilera.com>
32687         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
32688         avoid clobbering a live register.
32690 2014-01-25  Walter Lee  <walt@tilera.com>
32692         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
32693         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
32694         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
32695         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
32697 2014-01-25  Walter Lee  <walt@tilera.com>
32699         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
32700         arguments on even registers.
32701         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
32702         STACK_BOUNDARY.
32703         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
32704         (BIGGEST_ALIGNMENT): Ditto.
32705         (BIGGEST_FIELD_ALIGNMENT): Ditto.
32707 2014-01-25  Walter Lee  <walt@tilera.com>
32709         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
32710         insns before bundling.
32711         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
32713 2014-01-25  Walter Lee  <walt@tilera.com>
32715         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
32716         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
32717         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
32719 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
32721         * config/mips/constraints.md (kl): Delete.
32722         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
32723         define expands, using...
32724         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
32725         instructions for MIPS16.
32726         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
32727         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
32729 2014-01-25  Walter Lee  <walt@tilera.com>
32731         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
32732         (clzdi2): Ditto.
32733         (ffsdi2): Ditto.
32735 2014-01-25  Walter Lee  <walt@tilera.com>
32737         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
32738         (TARGET_EXPAND_TO_RTL_HOOK): Define.
32740 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
32742         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
32743         Handle XOR.
32745 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
32747         * print-rtl.c (in_call_function_usage): New var.
32748         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
32749         EXPR_LIST mode as mode and not as reg note name.
32751         PR middle-end/59561
32752         * cfgloopmanip.c (copy_loop_info): If
32753         loop->warned_aggressive_loop_optimizations, make sure
32754         the flag is set in target loop too.
32756 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
32758         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
32759         flag_cilkplus.
32760         * builtins.def: Likewise.
32761         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
32762         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
32763         * ira.c (ira_setup_eliminable_regset): Likewise.
32764         * omp-low.c (gate_expand_omp): Likewise.
32765         (execute_lower_omp): Likewise.
32766         (diagnose_sb_0): Likewise.
32767         (gate_diagnose_omp_blocks): Likewise.
32768         (simd_clone_clauses_extract): Likewise.
32769         (gate): Likewise.
32771 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32773         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
32774         correction for little endian...
32775         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
32776         here.
32778 2014-01-24  Jeff Law  <law@redhat.com>
32780         PR tree-optimization/59919
32781         * tree-vrp.c (find_assert_locations_1): Do not register asserts
32782         for non-returning calls.
32784 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
32786         * common/config/aarch64/aarch64-common.c
32787         (aarch64_rewrite_mcpu): Handle multiple names.
32788         * config/aarch64/aarch64.h
32789         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
32791 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
32793         * input.c (add_file_to_cache_tab): Handle the case where fopen
32794         returns NULL.
32796 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
32798         PR target/59929
32799         * config/i386/i386.md (pushsf splitter): Get stack adjustment
32800         from push operand if code of push isn't PRE_DEC.
32802 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
32804         PR target/59909
32805         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
32806         -mquad-memory-atomic.  Update -mquad-memory documentation to say
32807         it is only used for non-atomic loads/stores.
32809         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
32810         -mquad-memory or -mquad-memory-atomic switches.
32812         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
32813         -mquad-memory-atomic to ISA 2.07 support.
32815         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
32816         to separate support of normal quad word memory operations (ldq, stq)
32817         from the atomic quad word memory operations.
32819         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
32820         support to separate non-atomic quad word operations from atomic
32821         quad word operations.  Disable non-atomic quad word operations in
32822         little endian mode so that we don't have to swap words after the
32823         load and before the store.
32824         (quad_load_store_p): Add comment about atomic quad word support.
32825         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
32826         options printed with -mdebug=reg.
32828         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
32829         -mquad-memory-atomic as the test for whether we have quad word
32830         atomic instructions.
32831         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
32832         or -mp8-vector are used, allow byte/half-word atomic operations.
32834         * config/rs6000/sync.md (load_lockedti): Insure that the address
32835         is a proper indexed or indirect address for the lqarx instruction.
32836         On little endian systems, swap the hi/lo registers after the lqarx
32837         instruction.
32838         (load_lockedpti): Use indexed_or_indirect_operand predicate to
32839         insure the address is valid for the lqarx instruction.
32840         (store_conditionalti): Insure that the address is a proper indexed
32841         or indirect address for the stqcrx. instruction.  On little endian
32842         systems, swap the hi/lo registers before doing the stqcrx.
32843         instruction.
32844         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
32845         insure the address is valid for the stqcrx. instruction.
32847         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
32848         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
32849         type of quad memory support is available.
32851 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
32853         PR regression/59915
32854         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
32855         there is a danger of looping.
32857 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
32859         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
32860         force flag_ira_loop_pressure if set via command line.
32862 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
32864         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
32865         (ashr_simd): New builtin handling DI mode.
32866         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
32867         (aarch64_sshr_simddi): New match pattern.
32868         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
32869         (vshrd_n_s64): Likewise.
32870         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
32872 2014-01-23  Nick Clifton  <nickc@redhat.com>
32874         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
32875         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
32876         favour of mcu specific scripts.
32877         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
32878         430x multilibs.
32880 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
32881             Alex Velenko  <Alex.Velenko@arm.com>
32883         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
32884         (vaddv_s16): Likewise.
32885         (vaddv_s32): Likewise.
32886         (vaddv_u8): Likewise.
32887         (vaddv_u16): Likewise.
32888         (vaddv_u32): Likewise.
32889         (vaddvq_s8): Likewise.
32890         (vaddvq_s16): Likewise.
32891         (vaddvq_s32): Likewise.
32892         (vaddvq_s64): Likewise.
32893         (vaddvq_u8): Likewise.
32894         (vaddvq_u16): Likewise.
32895         (vaddvq_u32): Likewise.
32896         (vaddvq_u64): Likewise.
32897         (vaddv_f32): Likewise.
32898         (vaddvq_f32): Likewise.
32899         (vaddvq_f64): Likewise.
32900         (vmaxv_f32): Likewise.
32901         (vmaxv_s8): Likewise.
32902         (vmaxv_s16): Likewise.
32903         (vmaxv_s32): Likewise.
32904         (vmaxv_u8): Likewise.
32905         (vmaxv_u16): Likewise.
32906         (vmaxv_u32): Likewise.
32907         (vmaxvq_f32): Likewise.
32908         (vmaxvq_f64): Likewise.
32909         (vmaxvq_s8): Likewise.
32910         (vmaxvq_s16): Likewise.
32911         (vmaxvq_s32): Likewise.
32912         (vmaxvq_u8): Likewise.
32913         (vmaxvq_u16): Likewise.
32914         (vmaxvq_u32): Likewise.
32915         (vmaxnmv_f32): Likewise.
32916         (vmaxnmvq_f32): Likewise.
32917         (vmaxnmvq_f64): Likewise.
32918         (vminv_f32): Likewise.
32919         (vminv_s8): Likewise.
32920         (vminv_s16): Likewise.
32921         (vminv_s32): Likewise.
32922         (vminv_u8): Likewise.
32923         (vminv_u16): Likewise.
32924         (vminv_u32): Likewise.
32925         (vminvq_f32): Likewise.
32926         (vminvq_f64): Likewise.
32927         (vminvq_s8): Likewise.
32928         (vminvq_s16): Likewise.
32929         (vminvq_s32): Likewise.
32930         (vminvq_u8): Likewise.
32931         (vminvq_u16): Likewise.
32932         (vminvq_u32): Likewise.
32933         (vminnmv_f32): Likewise.
32934         (vminnmvq_f32): Likewise.
32935         (vminnmvq_f64): Likewise.
32937 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
32939         * config/aarch64/aarch64-simd.md
32940         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
32941         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
32942         (*aarch64_mul3_elt<mode>): Likewise.
32943         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
32944         (*aarch64_mul3_elt_to_64v2df): Likewise.
32945         (*aarch64_mla_elt<mode>): Likewise.
32946         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
32947         (*aarch64_mls_elt<mode>): Likewise.
32948         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
32949         (*aarch64_fma4_elt<mode>): Likewise.
32950         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
32951         (*aarch64_fma4_elt_to_64v2df): Likewise.
32952         (*aarch64_fnma4_elt<mode>): Likewise.
32953         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
32954         (*aarch64_fnma4_elt_to_64v2df): Likewise.
32955         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
32956         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
32957         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
32958         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
32959         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
32960         (aarch64_sqdmull_lane<mode>_internal): Likewise.
32961         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
32963 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
32965         * config/aarch64/aarch64-simd.md
32966         (aarch64_be_checked_get_lane<mode>): New define_expand.
32967         * config/aarch64/aarch64-simd-builtins.def
32968         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
32969         New builtin definition.
32970         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
32971         Use new safe be builtin.
32973 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
32975         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
32976         New define_insn.
32977         (aarch64_be_st1<mode>): Likewise.
32978         (aarch_ld1<VALL:mode>): Define_expand modified.
32979         (aarch_st1<VALL:mode>): Likewise.
32980         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
32981         (UNSPEC_ST1): Likewise.
32983 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
32985         * config/microblaze/microblaze.md: Add trap insn and attribute
32987 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
32989         PR preprocessor/58580
32990         * input.h (location_get_source_line): Take an additional line_size
32991         parameter.
32992         (void diagnostics_file_cache_fini): Declare new function.
32993         * input.c (struct fcache): New type.
32994         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
32995         New static constants.
32996         (diagnostic_file_cache_init, total_lines_num)
32997         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
32998         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
32999         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
33000         (get_next_line, read_next_line, goto_next_line, read_line_num):
33001         New static function definitions.
33002         (diagnostic_file_cache_fini): New function.
33003         (location_get_source_line): Take an additional output line_len
33004         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
33005         read_line_num.
33006         * diagnostic.c (diagnostic_finish): Call
33007         diagnostic_file_cache_fini.
33008         (adjust_line): Take an additional input parameter for the length
33009         of the line, rather than calculating it with strlen.
33010         (diagnostic_show_locus): Adjust the use of
33011         location_get_source_line and adjust_line with respect to their new
33012         signature.  While displaying a line now, do not stop at the first
33013         null byte.  Rather, display the zero byte as a space and keep
33014         going until we reach the size of the line.
33015         * Makefile.in: Add vec.o to OBJS-libcommon
33017 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
33018             Ilya Tocar  <ilya.tocar@intel.com>
33020         * config/i386/avx512fintrin.h (_mm512_kmov): New.
33021         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
33022         (__builtin_ia32_kmov16): Ditto.
33023         * config/i386/i386.md (UNSPEC_KMOV): New.
33024         (kmovw): Ditto.
33026 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
33028         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
33029         (_mm512_storeu_si512): Ditto.
33031 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
33033         PR target/52125
33034         * rtl.h (get_referenced_operands): Declare.
33035         * recog.c (get_referenced_operands): New function.
33036         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
33037         operands have been referenced when recording LO_SUM references.
33039 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
33041         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
33043 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
33045         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
33046         Enable for generic and recent AMD targets.
33048 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
33050         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
33051         ARG_SIZE note when adjustment was eliminated.
33053 2014-01-22  Jeff Law  <law@redhat.com>
33055         PR tree-optimization/59597
33056         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
33057         in file.  Accept new argument REGISTERING and use it to modify
33058         dump output appropriately.
33059         (register_jump_thread): Corresponding changes.
33060         (mark_threaded_blocks): Reinstate code to cancel unprofitable
33061         thread paths involving joiner blocks.  Add code to dump cancelled
33062         jump threading paths.
33064 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
33066         PR rtl-optimization/59477
33067         * lra-constraints.c (inherit_in_ebb): Process call for living hard
33068         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
33070 2014-01-22  Tom Tromey  <tromey@redhat.com>
33072         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
33073         PARAMS.
33074         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
33076 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
33078         PR rtl-optimization/59896
33079         * lra-constraints.c (process_alt_operands): Check unused note for
33080         matched operands of insn with no output reloads.
33082 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
33084         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
33085         (mips_move_from_gpr_cost): Likewise.
33087 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
33089         PR rtl-optimization/59858
33090         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
33091         ira_class_hard_regs_num.
33092         (process_alt_operands): Increase reject for dying matched operand.
33094 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
33096         PR target/59003
33097         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
33098         smaller than size, perform several stores or loads and stores
33099         at dst + count - size to store or copy all of size bytes, rather
33100         than just last modesize bytes.
33102 2014-01-20  DJ Delorie  <dj@redhat.com>
33104         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
33105         that CLOBBERs are REGs before propogating their values.
33107 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
33109         PR middle-end/59789
33110         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
33111         (cgraph_inline_failed_type): New function.
33112         * cgraph.h (DEFCIFCODE): Add type.
33113         (cgraph_inline_failed_type_t): New enum.
33114         (cgraph_inline_failed_type): New prototype.
33115         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
33116         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
33117         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
33118         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
33119         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
33120         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
33121         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
33122         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
33123         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
33124         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
33125         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
33126         OPTIMIZATION_MISMATCH.
33127         * tree-inline.c (expand_call_inline): Emit errors during
33128         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
33130 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
33132         PR target/59685
33133         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
33134         mode attribute in insn output.
33136 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
33138         * output.h (output_constant): Delete.
33139         * varasm.c (output_constant): Make private.
33141 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
33143         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
33145 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
33147         PR middle-end/59860
33148         * tree.h (fold_builtin_strcat): New prototype.
33149         * builtins.c (fold_builtin_strcat): No longer static.  Add len
33150         argument, if non-NULL, don't call c_strlen.  Optimize
33151         directly into __builtin_memcpy instead of __builtin_strcpy.
33152         (fold_builtin_2): Adjust fold_builtin_strcat caller.
33153         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
33155 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
33157         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
33158         for SImode_address_operand operands, having only a REG argument.
33160 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33162         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
33163         loader name using mbig-endian.
33164         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
33166 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
33168         * doc/invoke.texi (-march): Clarify documentation for AArch64.
33169         (-mtune): Likewise.
33170         (-mcpu): Likewise.
33172 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
33174         * config/aarch64/aarch64-protos.h
33175         (aarch64_cannot_change_mode_class_ptr): Declare.
33176         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
33177         aarch64_cannot_change_mode_class_ptr): New.
33178         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
33179         backend hook aarch64_cannot_change_mode_class.
33181 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
33183         * common/config/aarch64/aarch64-common.c
33184         (aarch64_handle_option): Don't handle any option order logic here.
33185         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
33186         selected_cpu, warn on architecture version mismatch.
33187         (aarch64_override_options): Fix parsing order for option strings.
33189 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
33190             Iain Sandoe  <iain@codesourcery.com>
33192         PR bootstrap/59496
33193         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
33194         warning.  Amend comment to reflect current functionality.
33196 2014-01-20  Richard Biener  <rguenther@suse.de>
33198         PR middle-end/59860
33199         * builtins.c (fold_builtin_strcat): Remove case better handled
33200         by tree-ssa-strlen.c.
33202 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
33204         * config/aarch64/aarch64.opt
33205         (mcpu, march, mtune): Make case-insensitive.
33207 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
33209         PR target/59880
33210         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
33211         if operands[1] is a REG or ZERO_EXTEND of a REG.
33213 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
33215         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
33217 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
33219         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
33220         long non-pic millicode calls.
33222 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
33224         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
33226 2014-01-19  Kito Cheng  <kito@0xlab.org>
33228         * builtins.c (expand_movstr): Check movstr expand done or fail.
33230 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
33231             H.J. Lu  <hongjiu.lu@intel.com>
33233         PR target/59379
33234         * config/i386/i386.md (*lea<mode>): Zero-extend return register
33235         to DImode for zero-extended addresses.
33237 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
33239         PR rtl-optimization/57763
33240         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
33241         on the new indirect jump_insn and increment LABEL_NUSES (label).
33243 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
33245         PR bootstrap/59580
33246         PR bootstrap/59583
33247         * config.gcc (x86_archs): New variable.
33248         (x86_64_archs): Likewise.
33249         (x86_cpus): Likewise.
33250         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
33251         --with-arch/--with-cpu= options.
33252         Support --with-arch=/--with-cpu={nehalem,westmere,
33253         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
33255 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
33257         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
33258         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
33260 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
33262         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
33264 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
33266         PR target/58944
33267         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
33268         clear cpp_get_options (parse_in)->warn_unused_macros for
33269         ix86_target_macros_internal with cpp_define.
33271 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
33273         * jump.c (delete_related_insns): Keep (use (insn))s.
33274         * reorg.c (redundant_insn): Check for barriers too.
33276 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
33278         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
33280 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
33282         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
33283         call to $$dyncall when TARGET_LONG_CALLS is true.
33285 2014-01-17  Jeff Law  <law@redhat.com>
33287         * ree.c (combine_set_extension): Temporarily disable test for
33288         changing number of hard registers.
33290 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
33292         PR middle-end/58125
33293         * ipa-inline-analysis.c (inline_free_summary):
33294         Do not free summary of aliases.
33296 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
33298         PR middle-end/59706
33299         * gimplify.c (gimplify_expr): Use create_tmp_var
33300         instead of create_tmp_var_raw.  If cond doesn't have
33301         integral type, don't add the IFN_ANNOTATE builtin at all.
33303 2014-01-17  Martin Jambor  <mjambor@suse.cz>
33305         PR ipa/59736
33306         * ipa-cp.c (prev_edge_clone): New variable.
33307         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
33308         Also resize prev_edge_clone vector.
33309         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
33310         (ipcp_edge_removal_hook): New function.
33311         (ipcp_driver): Register ipcp_edge_removal_hook.
33313 2014-01-17  Andrew Pinski  <apinski@cavium.com>
33314             Steve Ellcey  <sellcey@mips.com>
33316         PR target/59462
33317         * config/mips/mips.c (mips_print_operand): Check operand mode instead
33318         of operator mode.
33320 2014-01-17  Jeff Law  <law@redhat.com>
33322         PR middle-end/57904
33323         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
33324         so that pass_ccp runs first.
33326 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
33328         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
33329         (ix86_adjust_cost): Use !TARGET_XXX.
33330         (do_reorder_for_imul): Likewise.
33331         (swap_top_of_ready_list): Likewise.
33332         (ix86_sched_reorder): Likewise.
33334 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
33336         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
33337         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
33338         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
33339         (intel_memset): New.  Duplicate slm_memset.
33340         (intel_cost): New.  Duplicate slm_cost.
33341         (m_INTEL): New macro.
33342         (processor_target_table): Add "intel".
33343         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
33344         with PROCESSOR_INTEL for "intel".
33345         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
33346         PROCESSOR_SILVERMONT.
33347         (ix86_issue_rate): Likewise.
33348         (ix86_adjust_cost): Likewise.
33349         (ia32_multipass_dfa_lookahead): Likewise.
33350         (swap_top_of_ready_list): Likewise.
33351         (ix86_sched_reorder): Likewise.
33352         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
33353         instead of TARGET_OPT_AGU.
33354         * config/i386/i386.h (TARGET_INTEL): New.
33355         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
33356         (processor_type): Add PROCESSOR_INTEL.
33357         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
33358         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
33360 2014-01-17  Marek Polacek  <polacek@redhat.com>
33362         PR c/58346
33363         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
33364         size is zero.
33366 2014-01-17  Richard Biener  <rguenther@suse.de>
33368         PR tree-optimization/46590
33369         * opts.c (default_options_table): Add entries for
33370         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
33371         all enabled at -O1 but not for -Og.
33372         * common.opt (fbranch-count-reg): Remove Init(1).
33373         (fmove-loop-invariants): Likewise.
33374         (ftree-pta): Likewise.
33376 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
33378         * config/i386/i386.c (ix86_data_alignment): For compatibility with
33379         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
33380         decls to at least the GCC 4.8 used alignments.
33382         PR fortran/59440
33383         * tree-nested.c (convert_nonlocal_reference_stmt,
33384         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
33385         of GIMPLE_BIND stmts, adjust associated decls.
33387 2014-01-17  Richard Biener  <rguenther@suse.de>
33389         PR tree-optimization/46590
33390         * vec.h (vec<>::bseach): New member function implementing
33391         binary search according to C89 bsearch.
33392         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
33393         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
33394         bitmap pointer again.  Make accesses_in_loop a flat array.
33395         (mem_ref_obstack): New global.
33396         (outermost_indep_loop): Adjust for mem_ref->stored changes.
33397         (mark_ref_stored): Likewise.
33398         (ref_indep_loop_p_2): Likewise.
33399         (set_ref_stored_in_loop): New helper function.
33400         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
33401         (memref_free): Adjust.
33402         (record_mem_ref_loc): Simplify.
33403         (gather_mem_refs_stmt): Adjust.
33404         (sort_locs_in_loop_postorder_cmp): New function.
33405         (analyze_memory_references): Sort accesses_in_loop after
33406         loop postorder number.
33407         (find_ref_loc_in_loop_cmp): New function.
33408         (for_all_locs_in_loop): Find relevant cluster of locs in
33409         accesses_in_loop and iterate without recursion.
33410         (execute_sm): Avoid uninit warning.
33411         (struct ref_always_accessed): Simplify.
33412         (ref_always_accessed::operator ()): Likewise.
33413         (ref_always_accessed_p): Likewise.
33414         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
33415         loop postorder numbers here.
33416         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
33417         numbers.
33419 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
33421         PR c++/57945
33422         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
33423         on decls for which assemble_alias has been called.
33425 2014-01-17  Nick Clifton  <nickc@redhat.com>
33427         * config/msp430/msp430.opt: (mcpu): New option.
33428         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
33429         (msp430_option_override): Parse target_cpu.  If the MCU name
33430         matches a generic string, clear target_mcu.
33431         (msp430_attr): Allow numeric interrupt values up to 63.
33432         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
33433         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
33434         option.
33435         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
33436         Add mcpu matches.
33437         * config/msp430/msp430.md (popm): Use %J rather than %I.
33438         (addsi3): Use msp430_nonimmediate_operand for operand 2.
33439         (addhi_cy_i): Use immediate_operand for operand 2.
33440         * doc/invoke.texi: Document -mcpu option.
33442 2014-01-17  Richard Biener  <rguenther@suse.de>
33444         PR rtl-optimization/38518
33445         * df.h (df_analyze_loop): Declare.
33446         * df-core.c: Include cfgloop.h.
33447         (df_analyze_1): Split out main part of df_analyze.
33448         (df_analyze): Adjust.
33449         (loop_inverted_post_order_compute): New function.
33450         (loop_post_order_compute): Likewise.
33451         (df_analyze_loop): New function avoiding whole-function
33452         postorder computes.
33453         * loop-invariant.c (find_defs): Use df_analyze_loop.
33454         (find_invariants): Adjust.
33455         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
33457 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
33459         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
33460         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
33462 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
33464         * ipa-ref.c (ipa_remove_stmt_references): Fix references
33465         traversal when removing references.
33467 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
33469         PR ipa/59775
33470         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
33472 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
33474         PR middle-end/56791
33475         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
33476         pushing a reload for an autoinc when we had previously reloaded an
33477         inner part of the address.
33479 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
33481         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
33482         field.
33483         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
33484         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
33485         when not giving up or versioning for alias only because of
33486         loop->safelen.
33487         (vect_analyze_data_ref_dependences): Set to true.
33488         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
33489         is a GIMPLE_PHI.
33490         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
33491         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
33492         to the condition.
33494         PR middle-end/58344
33495         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
33497         PR target/59839
33498         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
33499         operand 0 predicate for gathers, use a new pseudo as subtarget.
33501 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
33503         PR middle-end/59609
33504         * lra-constraints.c (process_alt_operands): Add printing debug info.
33505         Check absence of input/output reloads for matched operands too.
33507 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
33509         PR rtl-optimization/59835
33510         * ira.c (ira_init_register_move_cost): Increase cost for
33511         impossible modes.
33513 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
33515         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
33517 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
33519         PR target/59780
33520         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
33521         non-register objects.  Use gen_(high/low)part more consistently.
33522         Fix assertions.
33524 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
33526         PR target/59844
33527         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
33528         endian support, remove tests for WORDS_BIG_ENDIAN.
33529         (p8_mfvsrd_3_<mode>): Likewise.
33530         (reload_gpr_from_vsx<mode>): Likewise.
33531         (reload_gpr_from_vsxsf): Likewise.
33532         (p8_mfvsrd_4_disf): Likewise.
33534 2014-01-16  Richard Biener  <rguenther@suse.de>
33536         PR rtl-optimization/46590
33537         * lcm.c (compute_antinout_edge): Use postorder iteration.
33538         (compute_laterin): Use inverted postorder iteration.
33540 2014-01-16  Nick Clifton  <nickc@redhat.com>
33542         PR middle-end/28865
33543         * varasm.c (output_constant): Return the number of bytes actually
33544         emitted.
33545         (output_constructor_array_range): Update the field size with the
33546         number of bytes emitted by output_constant.
33547         (output_constructor_regular_field): Likewise.  Also do not
33548         complain if the total number of bytes emitted is now greater
33549         than the expected fieldpos.
33550         * output.h (output_constant): Update prototype and descriptive comment.
33552 2014-01-16  Marek Polacek  <polacek@redhat.com>
33554         PR middle-end/59827
33555         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
33556         it is error_mark_node.
33558 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
33560         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
33561         VALID_AVX256_REG_OR_OI_MODE.
33563 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
33565         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
33566         current procedure should be profiled.
33568 2014-01-15  Andrew Pinski  <apinski@cavium.com>
33570         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
33571         of moving from/to the STACK_REG register class.
33573 2014-01-15  Richard Henderson  <rth@redhat.com>
33575         PR debug/54694
33576         * reginfo.c (global_regs_decl): Globalize.
33577         * rtl.h (global_regs_decl): Declare.
33578         * ira.c (do_reload): Diagnose frame_pointer_needed and it
33579         reserved via global_regs.
33581 2014-01-15  Teresa Johnson  <tejohnson@google.com>
33583         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
33585 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
33587         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
33588         and vmulosh rather than call gen_vec_widen_smult_*.
33589         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
33590         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
33591         (vec_widen_smult_even_v16qi): Likewise.
33592         (vec_widen_umult_even_v8hi): Likewise.
33593         (vec_widen_smult_even_v8hi): Likewise.
33594         (vec_widen_umult_odd_v16qi): Likewise.
33595         (vec_widen_smult_odd_v16qi): Likewise.
33596         (vec_widen_umult_odd_v8hi): Likewise.
33597         (vec_widen_smult_odd_v8hi): Likewise.
33598         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
33599         vmuloub rather than call gen_vec_widen_umult_*.
33600         (vec_widen_umult_lo_v16qi): Likewise.
33601         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
33602         vmulosb rather than call gen_vec_widen_smult_*.
33603         (vec_widen_smult_lo_v16qi): Likewise.
33604         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
33605         rather than call gen_vec_widen_umult_*.
33606         (vec_widen_umult_lo_v8hi): Likewise.
33607         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
33608         rather than call gen_vec_widen_smult_*.
33609         (vec_widen_smult_lo_v8hi): Likewise.
33611 2014-01-15  Jeff Law  <law@redhat.com>
33613         PR tree-optimization/59747
33614         * ree.c (find_and_remove_re): Properly handle case where a second
33615         eliminated extension requires widening a copy created for elimination
33616         of a prior extension.
33617         (combine_set_extension): Ensure that the number of hard regs needed
33618         for a destination register does not change when we widen it.
33620 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33622         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
33623         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
33624         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
33625         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
33626         (avr-*-rtems*): Likewise.
33627         (bfin*-rtems*): Likewise.
33628         (moxie-*-rtems*): Likewise.
33629         (h8300-*-rtems*): Likewise.
33630         (i[34567]86-*-rtems*): Likewise.
33631         (lm32-*-rtems*): Likewise.
33632         (m32r-*-rtems*): Likewise.
33633         (m68k-*-rtems*): Likewise.
33634         (microblaze*-*-rtems*): Likewise.
33635         (mips*-*-rtems*): Likewise.
33636         (powerpc-*-rtems*): Likewise.
33637         (sh-*-rtems*): Likewise.
33638         (sparc-*-rtems*): Likewise.
33639         (sparc64-*-rtems*): Likewise.
33640         (v850-*-rtems*): Likewise.
33641         (m32c-*-rtems*): Likewise.
33643 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
33645         PR rtl-optimization/59511
33646         * ira.c (ira_init_register_move_cost): Use memory costs for some
33647         cases of register move cost calculations.
33648         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
33649         instead of BB frequency.
33650         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
33651         * lra-assigns.c (find_hard_regno_for): Ditto.
33653 2014-01-15  Richard Biener  <rguenther@suse.de>
33655         PR tree-optimization/59822
33656         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
33657         (vectorizable_load): Use it to hoist defs of uses of invariant
33658         loads out of the loop.
33660 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
33661             Kugan Vivekanandarajah  <kuganv@linaro.org>
33663         PR target/59695
33664         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
33665         truncation.
33667 2014-01-15  Richard Biener  <rguenther@suse.de>
33669         PR rtl-optimization/59802
33670         * lcm.c (compute_available): Use inverted postorder to seed
33671         the initial worklist.
33673 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33675         PR target/59803
33676         * config/s390/s390.c (s390_preferred_reload_class): Don't return
33677         ADDR_REGS for invalid symrefs in non-PIC code.
33679 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
33681         PR other/58712
33682         * builtins.c (determine_block_size): Initialize *probable_max_size
33683         even if len_rtx is CONST_INT.
33685 2014-01-14  Andrew Pinski  <apinski@cavium.com>
33687         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
33688         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
33689         (cortexa53_tunings): Likewise.
33690         (aarch64_sched_issue_rate): New function.
33691         (TARGET_SCHED_ISSUE_RATE): Define.
33693 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
33695         * ira-costs.c (find_costs_and_classes): Add missed
33696         ira_init_register_move_cost_if_necessary.
33698 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
33700         PR target/59787
33701         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
33703 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
33705         PR target/59794
33706         * config/i386/i386.c (type_natural_mode): Add a bool parameter
33707         to indicate if type is used for function return value.  Warn ABI
33708         change if the vector mode isn't available for function return value.
33709         (ix86_function_arg_advance): Pass false to type_natural_mode.
33710         (ix86_function_arg): Likewise.
33711         (ix86_gimplify_va_arg): Likewise.
33712         (function_arg_32): Don't warn ABI change.
33713         (ix86_function_value): Pass true to type_natural_mode.
33714         (ix86_return_in_memory): Likewise.
33715         (ix86_struct_value_rtx): Removed.
33716         (TARGET_STRUCT_VALUE_RTX): Likewise.
33718 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33720         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
33721         converting a conditional jump into a conditional return.
33723 2014-01-14  Richard Biener  <rguenther@suse.de>
33725         PR tree-optimization/58921
33726         PR tree-optimization/59006
33727         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
33728         hoisting invariant stmts.
33729         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
33730         invariant loads on the preheader edge if possible.
33732 2014-01-14  Joey Ye  <joey.ye@arm.com>
33734         * doc/plugin.texi (Building GCC plugins): Update to C++.
33736 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
33738         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
33739         (_mm_rcp28_round_ss): Ditto.
33740         (_mm_rsqrt28_round_sd): Ditto.
33741         (_mm_rsqrt28_round_ss): Ditto.
33742         (_mm_rcp28_sd): Ditto.
33743         (_mm_rcp28_ss): Ditto.
33744         (_mm_rsqrt28_sd): Ditto.
33745         (_mm_rsqrt28_ss): Ditto.
33746         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
33747         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
33748         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
33749         (IX86_BUILTIN_RCP28SD): Ditto.
33750         (IX86_BUILTIN_RCP28SS): Ditto.
33751         (IX86_BUILTIN_RSQRT28SD): Ditto.
33752         (IX86_BUILTIN_RSQRT28SS): Ditto.
33753         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
33754         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
33755         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
33756         (ix86_expand_special_args_builtin): Expand new FTYPE.
33757         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
33758         (srcp14<mode>): Make insn unary.
33759         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
33760         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
33761         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
33762         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
33763         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
33764         Fix rounding: make it SAE only.
33765         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
33766         Ditto.
33767         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
33768         Ditto.
33769         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
33770         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
33771         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
33772         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
33773         (round_saeonly_mask_scalar_operand4): Ditto.
33774         (round_saeonly_mask_scalar_op3): Ditto.
33775         (round_saeonly_mask_scalar_op4): Ditto.
33777 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33779         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
33780         Implement -maltivec=be for vec_insert and vec_extract.
33782 2014-01-10  DJ Delorie  <dj@redhat.com>
33784         * config/msp430/msp430.md (call_internal): Don't allow memory
33785         references with SP as the base register.
33786         (call_value_internal): Likewise.
33787         * config/msp430/constraints.md (Yc): New.  For memory references
33788         that don't use SP as a base register.
33790         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
33791         "an integer without a # prefix"
33792         * config/msp430/msp430.md (epilogue_helper): Use it.
33794 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
33796         PR target/59617
33797         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
33798         AVX512F gather builtins.
33799         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
33800         on gather decls with INTEGER_TYPE masktype.
33801         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
33802         directly into the builtin rather than hoisting it before loop.
33804         PR tree-optimization/59387
33805         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
33806         (scev_const_prop): If folded_casts and type has undefined overflow,
33807         use force_gimple_operand instead of force_gimple_operand_gsi and
33808         for each added stmt if it is assign with
33809         arith_code_with_undefined_signed_overflow, call
33810         rewrite_to_defined_overflow.
33811         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
33812         gimple-fold.h instead.
33813         (arith_code_with_undefined_signed_overflow,
33814         rewrite_to_defined_overflow): Moved to ...
33815         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
33816         rewrite_to_defined_overflow): ... here.  No longer static.
33817         Include gimplify-me.h.
33818         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
33819         rewrite_to_defined_overflow): New prototypes.
33821 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33823         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
33825 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
33827         * builtins.c (get_object_alignment_2): Minor tweak.
33828         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
33830 2014-01-13  Christian Bruel  <christian.bruel@st.com>
33832         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
33833         optimized non constant lengths.
33835 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
33837         PR libgomp/59194
33838         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
33839         load as __atomic_load_N if possible.
33841 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
33843         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
33844         target parameter.
33845         (rs6000_expand_builtin): Adjust call.
33847 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
33849         PR target/58115
33850         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
33851         * config/rs6000/rs6000.c: Include target-globals.h.
33852         (rs6000_set_current_function): Instead of doing target_reinit
33853         unconditionally, use save_target_globals_default_opts and
33854         restore_target_globals.
33856         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
33857         FPSCR.
33858         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
33859         (rs6000_expand_builtin): Handle mffs and mtfsf.
33860         (rs6000_init_builtins): Define mffs and mtfsf.
33861         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
33862         (rs6000_mffs): New pattern.
33863         (rs6000_mtfsf): New pattern.
33865 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
33867         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
33868         Start narrowing with START.  Apply candidate-use pair
33869         and check overall cost in narrowing.
33870         (iv_ca_prune): Pass new argument.
33872 2014-01-10  Jeff Law  <law@redhat.com>
33874         PR middle-end/59743
33875         * ree.c (combine_reaching_defs): Ensure the defining statement
33876         occurs before the extension when optimizing extensions with
33877         different source and destination hard registers.
33879 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
33881         PR ipa/58585
33882         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
33883         vtables into the type inheritance graph.
33885 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
33887         PR rtl-optimization/59754
33888         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
33889         modes in the REGNO != REGNO case.
33891 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33893         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
33895 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
33897         PR tree-optimization/59745
33898         * tree-predcom.c (tree_predictive_commoning_loop): Call
33899         free_affine_expand_cache if giving up because components is NULL.
33901         * target-globals.c (save_target_globals): Allocate < 4KB structs using
33902         GC in payload of target_globals struct instead of allocating them on
33903         the heap and the larger structs separately using GC.
33904         * target-globals.h (struct target_globals): Make regs, hard_regs,
33905         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
33906         of GTY((skip)) and change type to void *.
33907         (reset_target_globals): Cast loads from those fields to corresponding
33908         types.
33910 2014-01-10  Steve Ellcey  <sellcey@mips.com>
33912         PR plugins/59335
33913         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
33914         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
33915         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
33917 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
33919         PR target/59744
33920         * aarch64-modes.def (CC_Zmode): New flags mode.
33921         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
33922         represents an equality.
33923         (aarch64_get_condition_code): Handle CC_Zmode.
33924         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
33926 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33928         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
33929         extraction in good case.
33931 2014-01-10  Richard Biener  <rguenther@suse.de>
33933         PR tree-optimization/59374
33934         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
33935         checking after SLP discovery.  Mark stmts not participating
33936         in any SLP instance properly.
33938 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33940         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
33941         when handling a SET rtx.
33943 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33945         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
33946         (cortex-a57): Likewise.
33947         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
33949 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33951         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
33952         non-iwmmxt builtins.
33954 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
33956         PR ipa/58252
33957         PR ipa/59226
33958         * ipa-devirt.c record_target_from_binfo): Take as argument
33959         stack of binfos and lookup matching one for virtual inheritance.
33960         (possible_polymorphic_call_targets_1): Update.
33962 2014-01-10  Huacai Chen  <chenhc@lemote.com>
33964         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
33965         kernel strings for Loongson-2E/2F/3A.
33967 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
33969         PR middle-end/59670
33970         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
33971         is_gimple_call before calling gimple_call_internal_p.
33973 2014-01-09  Steve Ellcey  <sellcey@mips.com>
33975         * Makefile.in (TREE_FLOW_H): Remove.
33976         (TREE_SSA_H): Add file names from tree-flow.h.
33977         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
33978         * tree.h: Remove tree-flow.h reference.
33979         * hash-table.h: Remove tree-flow.h reference.
33980         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
33981         reference with tree-ssa-loop.h.
33983 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33985         * doc/invoke.texi: Add -maltivec={be,le} options, and document
33986         default element-order behavior for -maltivec.
33987         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
33988         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
33989         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
33990         when targeting big endian, at least for now.
33991         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
33993 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
33995         PR middle-end/47735
33996         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
33997         var satisfies use_register_for_decl, just take into account type
33998         alignment, rather than decl alignment.
34000         PR tree-optimization/59622
34001         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
34002         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
34003         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
34004         Don't devirtualize for inplace at all.  For targets.length () == 1,
34005         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
34007 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
34009         * config/i386/i386.md (cpu): Remove the unused btver1.
34011 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
34013         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
34015 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
34017         PR target/58115
34018         * tree-core.h (struct target_globals): New forward declaration.
34019         (struct tree_target_option): Add globals field.
34020         * tree.h (TREE_TARGET_GLOBALS): Define.
34021         (prepare_target_option_nodes_for_pch): New prototype.
34022         * target-globals.h (struct target_globals): Define even if
34023         !SWITCHABLE_TARGET.
34024         * tree.c (prepare_target_option_node_for_pch,
34025         prepare_target_option_nodes_for_pch): New functions.
34026         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
34027         * config/i386/i386.c: Include target-globals.h.
34028         (ix86_set_current_function): Instead of doing target_reinit
34029         unconditionally, use save_target_globals_default_opts and
34030         restore_target_globals.
34032 2014-01-09  Richard Biener  <rguenther@suse.de>
34034         PR tree-optimization/59715
34035         * tree-cfg.h (split_critical_edges): Declare.
34036         * tree-cfg.c (split_critical_edges): Export.
34037         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
34039 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
34041         * cfgexpand.c (expand_stack_vars): Optionally disable
34042         asan stack protection.
34043         (expand_used_vars): Likewise.
34044         (partition_stack_vars): Likewise.
34045         * asan.c (asan_emit_stack_protection): Optionally disable
34046         after return stack usage.
34047         (instrument_derefs): Optionally disable memory access instrumentation.
34048         (instrument_builtin_call): Likewise.
34049         (instrument_strlen_call): Likewise.
34050         (asan_protect_global): Optionally disable global variables protection.
34051         * doc/invoke.texi: Added doc for new options.
34052         * params.def: Added new options.
34053         * params.h: Likewise.
34055 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
34057         PR rtl-optimization/59724
34058         * ifcvt.c (cond_exec_process_if_block): Don't call
34059         flow_find_head_matching_sequence with 0 longest_match.
34060         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
34061         non-active insns if !stop_after.
34062         (try_head_merge_bb): Revert 2014-01-07 changes.
34064 2014-01-08  Jeff Law  <law@redhat.com>
34066         * ree.c (get_sub_rtx): New function, extracted from...
34067         (merge_def_and_ext): Here.
34068         (combine_reaching_defs): Use get_sub_rtx.
34070 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
34072         * cgraph.h (varpool_variable_node): Do not choke on null node.
34074 2014-01-08  Catherine Moore  <clm@codesourcery.com>
34076         * config/mips/mips.md (simple_return): Attempt to use JRC
34077         for microMIPS.
34078         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
34080 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
34082         PR rtl-optimization/59137
34083         * reorg.c (steal_delay_list_from_target): Call update_block for
34084         elided insns.
34085         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
34087 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34089         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
34090         two duplicate entries.
34092 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
34094         Revert:
34095         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
34097         * config/mips/mips.c (mips_truncated_op_cost): New function.
34098         (mips_rtx_costs): Adjust test for BADDU.
34099         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
34101         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
34103         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
34104         (*baddu_si): ...this new pattern.
34106 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
34108         PR ipa/59722
34109         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
34111 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34113         PR middle-end/57748
34114         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
34115         inner_reference_p.
34116         (expand_expr, expand_normal): Adjust.
34117         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
34118         inner_reference_p. Use inner_reference_p to expand inner references.
34119         (store_expr): Adjust.
34120         * cfgexpand.c (expand_call_stmt): Adjust.
34122 2014-01-08  Rong Xu  <xur@google.com>
34124         * gcov-io.c (gcov_var): Move from gcov-io.h.
34125         (gcov_position): Ditto.
34126         (gcov_is_error): Ditto.
34127         (gcov_rewrite): Ditto.
34128         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
34129         only part to libgcc/libgcov.h.
34131 2014-01-08  Marek Polacek  <polacek@redhat.com>
34133         PR middle-end/59669
34134         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
34136 2014-01-08  Marek Polacek  <polacek@redhat.com>
34138         PR sanitizer/59667
34139         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
34141 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
34143         PR rtl-optimization/59649
34144         * stor-layout.c (get_mode_bounds): For BImode return
34145         0 and STORE_FLAG_VALUE.
34147 2014-01-08  Richard Biener  <rguenther@suse.de>
34149         PR middle-end/59630
34150         * gimple.h (is_gimple_builtin_call): Remove.
34151         (gimple_builtin_call_types_compatible_p): New.
34152         (gimple_call_builtin_p): New overload.
34153         * gimple.c (is_gimple_builtin_call): Remove.
34154         (validate_call): Rename to ...
34155         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
34156         check return types.
34157         (validate_type): New static function.
34158         (gimple_call_builtin_p): New overload and adjust.
34159         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
34160         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
34161         (gimple_fold_stmt_to_constant_1): Likewise.
34162         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
34164 2014-01-08  Richard Biener  <rguenther@suse.de>
34166         PR middle-end/59471
34167         * gimplify.c (gimplify_expr): Gimplify register-register type
34168         VIEW_CONVERT_EXPRs to separate stmts.
34170 2014-01-07  Jeff Law  <law@redhat.com>
34172         PR middle-end/53623
34173         * ree.c (combine_set_extension): Handle case where source
34174         and destination registers in an extension insn are different.
34175         (combine_reaching_defs): Allow source and destination registers
34176         in extension to be different under limited circumstances.
34177         (add_removable_extension): Remove restriction that the
34178         source and destination registers in the extension are the same.
34179         (find_and_remove_re): Emit a copy from the extension's
34180         destination to its source after the defining insn if
34181         the source and destination registers are different.
34183         PR middle-end/59285
34184         * ifcvt.c (merge_if_block): If we are merging a block with more than
34185         one successor with a block with no successors, remove any BARRIER
34186         after the second block.
34188 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
34190         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
34192 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
34194         PR target/59652
34195         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
34196         for 14-bit register offsets when INT14_OK_STRICT is false.
34198 2014-01-07  Roland Stigge  <stigge@antcom.de>
34199             Michael Meissner  <meissner@linux.vnet.ibm.com>
34201         PR 57386/target
34202         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
34203         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
34205 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
34207         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
34208         -mcpu.
34210 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
34212         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
34213         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
34214         rtx is const0_rtx or not.
34216 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
34218         PR target/58115
34219         * target-globals.c (save_target_globals): Remove this_fn_optab
34220         handling.
34221         * toplev.c: Include optabs.h.
34222         (target_reinit): Temporarily restore the global options if another
34223         set of options are in force.
34225 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
34227         PR rtl-optimization/58668
34228         * cfgcleanup.c (flow_find_cross_jump): Don't count
34229         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
34230         to determine what is counted.
34231         (flow_find_head_matching_sequence): Use active_insn_p to determine
34232         what is counted.
34233         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
34234         counting change.
34235         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
34236         determine what is counted.
34238         PR tree-optimization/59643
34239         * tree-predcom.c (split_data_refs_to_components): If one dr is
34240         read and one write, determine_offset fails and the write isn't
34241         in the bad component, just put the read into the bad component.
34243 2014-01-07  Mike Stump  <mikestump@comcast.net>
34244             Jakub Jelinek  <jakub@redhat.com>
34246         PR pch/59436
34247         * tree-core.h (struct tree_optimization_option): Change optabs
34248         type from unsigned char * to void *.
34249         * optabs.c (init_tree_optimization_optabs): Adjust
34250         TREE_OPTIMIZATION_OPTABS initialization.
34252 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
34254         PR target/59644
34255         * config/i386/i386.h (struct machine_function): Add
34256         no_drap_save_restore field.
34257         * config/i386/i386.c (ix86_save_reg): Use
34258         !cfun->machine->no_drap_save_restore instead of
34259         crtl->stack_realign_needed.
34260         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
34261         this function clears frame_pointer_needed.  Set
34262         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
34263         and DRAP reg is needed.
34265 2014-01-06  Marek Polacek  <polacek@redhat.com>
34267         PR c/57773
34268         * doc/implement-c.texi: Mention that other integer types are
34269         permitted as bit-field types in strictly conforming mode.
34271 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
34273         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
34274         is newly allocated.
34276 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
34278         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
34280 2014-01-06  Martin Jambor  <mjambor@suse.cz>
34282         PR ipa/59008
34283         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
34284         to int.
34285         * ipa-prop.c (ipa_print_node_params): Fix indentation.
34287 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
34289         PR debug/59350
34290         PR debug/59510
34291         * var-tracking.c (add_stores): Preserve the value of the source even if
34292         we don't record the store.
34294 2014-01-06  Terry Guo  <terry.guo@arm.com>
34296         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
34298 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
34300         PR bootstrap/59541
34301         * config/darwin.c (darwin_function_section): Adjust return values to
34302         correspond to optimisation changes made in r206070.
34304 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
34306         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
34307         from prefetch_block tune setting.
34308         (nocona_cost): Correct size of prefetch block to 64.
34310 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
34312         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
34313         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
34314         used to save the static chain register in the computation of the offset
34315         from which the FP registers need to be restored.
34317 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
34319         PR tree-optimization/59519
34320         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
34321         ICE if get_current_def (current_new_name) is already non-NULL, as long
34322         as it is a phi result of some other phi in *new_exit_bb that has
34323         the same argument.
34325         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
34326         or vmovdqu* for misaligned_operand.
34327         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
34328         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
34329         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
34330         aligned_mem for AVX512F masked aligned load and store builtins and for
34331         non-temporal moves.
34333 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
34335         PR tree-optimization/59651
34336         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
34337         Address range for negative step should be added by TYPE_SIZE_UNIT.
34339 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
34341         * config/m68k/m68k.c (handle_move_double): Handle pushes with
34342         overlapping registers also for registers other than the stack pointer.
34344 2014-01-03  Marek Polacek  <polacek@redhat.com>
34346         PR other/59661
34347         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
34348         __builtin_FILE.
34350 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
34352         PR target/59625
34353         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
34354         asm goto as jump.
34356         * config/i386/i386.md (MODE_SIZE): New mode attribute.
34357         (push splitter): Use <P:MODE_SIZE> instead of
34358         GET_MODE_SIZE (<P:MODE>mode).
34359         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
34360         (mov -1, reg peephole2): Likewise.
34361         * config/i386/sse.md (*mov<mode>_internal,
34362         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
34363         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
34364         *<code><mode>3, *andnot<mode>3<mask_name>,
34365         <mask_codefor><code><mode>3<mask_name>): Likewise.
34366         * config/i386/subst.md (mask_mode512bit_condition,
34367         sd_mask_mode512bit_condition): Likewise.
34369 2014-01-02  Xinliang David Li  <davidxl@google.com>
34371         PR tree-optimization/59303
34372         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
34373         (dump_predicates): Better output format.
34374         (pred_equal_p): New function.
34375         (is_neq_relop_p): Ditto.
34376         (is_neq_zero_form_p): Ditto.
34377         (pred_expr_equal_p): Ditto.
34378         (pred_neg_p): Ditto.
34379         (simplify_pred): Ditto.
34380         (simplify_preds_2): Ditto.
34381         (simplify_preds_3): Ditto.
34382         (simplify_preds_4): Ditto.
34383         (simplify_preds): Ditto.
34384         (push_pred): Ditto.
34385         (push_to_worklist): Ditto.
34386         (get_pred_info_from_cmp): Ditto.
34387         (is_degenerated_phi): Ditto.
34388         (normalize_one_pred_1): Ditto.
34389         (normalize_one_pred): Ditto.
34390         (normalize_one_pred_chain): Ditto.
34391         (normalize_preds): Ditto.
34392         (normalize_cond_1): Remove function.
34393         (normalize_cond): Ditto.
34394         (is_gcond_subset_of): Ditto.
34395         (is_subset_of_any): Ditto.
34396         (is_or_set_subset_of): Ditto.
34397         (is_and_set_subset_of): Ditto.
34398         (is_norm_cond_subset_of): Ditto.
34399         (pred_chain_length_cmp): Ditto.
34400         (convert_control_dep_chain_into_preds): Type change.
34401         (find_predicates): Ditto.
34402         (find_def_preds): Ditto.
34403         (destroy_predicates_vecs): Ditto.
34404         (find_matching_predicates_in_rest_chains): Ditto.
34405         (use_pred_not_overlap_with_undef_path_pred): Ditto.
34406         (is_pred_expr_subset): Ditto.
34407         (is_pred_chain_subset_of): Ditto.
34408         (is_included_in): Ditto.
34409         (is_superset_of): Ditto.
34411 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34413         Update copyright years.
34415 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34417         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
34418         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
34419         config/arc/arc.md, config/arc/arc.opt,
34420         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
34421         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
34422         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
34423         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
34424         config/linux-protos.h, config/linux.c, config/winnt-c.c,
34425         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
34426         vtable-verify.c, vtable-verify.h: Use the standard form for the
34427         copyright notice.
34429 2014-01-02  Tobias Burnus  <burnus@net-b.de>
34431         * gcc.c (process_command): Update copyright notice dates.
34432         * gcov-dump.c: Ditto.
34433         * gcov.c: Ditto.
34434         * doc/cpp.texi: Bump @copying's copyright year.
34435         * doc/cppinternals.texi: Ditto.
34436         * doc/gcc.texi: Ditto.
34437         * doc/gccint.texi: Ditto.
34438         * doc/gcov.texi: Ditto.
34439         * doc/install.texi: Ditto.
34440         * doc/invoke.texi: Ditto.
34442 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
34444         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
34446 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
34448         * config/i386/sse.md (*mov<mode>_internal): Guard
34449         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
34451         PR rtl-optimization/59647
34452         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
34453         new_rtx into UNSIGNED_FLOAT rtxes.
34455 Copyright (C) 2014 Free Software Foundation, Inc.
34457 Copying and distribution of this file, with or without modification,
34458 are permitted in any medium without royalty provided the copyright
34459 notice and this notice are preserved.