re PR middle-end/62103 (Incorrect folding of bitfield in a union on big endian targets)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2
3         PR middle-end/62103
4         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
5         bitfields, that is when size doesn't match the size of type or the
6         size of the constructor.
7
8 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
9
10         * config/rs6000/constraints.md (wh constraint): New constraint,
11         for FP registers if direct move is available.
12         (wi constraint): New constraint, for VSX/FP registers that can
13         handle 64-bit integers.
14         (wj constraint): New constraint for VSX/FP registers that can
15         handle 64-bit integers for direct moves.
16         (wk constraint): New constraint for VSX/FP registers that can
17         handle 64-bit doubles for direct moves.
18         (wy constraint): Make documentation match implementation.
19
20         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
21         scalar_in_vmx_p field to simplify tests of whether SFmode or
22         DFmode can go in the Altivec registers.
23         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
24         (rs6000_setup_reg_addr_masks): Likewise.
25         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
26         field, and wh/wi/wj/wk constraints.
27         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
28         the wh/wi/wj/wk constraints.
29         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
30         upper registers, prefer VSX registers unless the operation is a
31         memory operation with REG+OFFSET addressing.
32
33         * config/rs6000/vsx.md (VSr mode attribute): Add support for
34         DImode.  Change SFmode to use ww constraint instead of d to allow
35         SF registers in the upper registers.
36         (VSr2): Likewise.
37         (VSr3): Likewise.
38         (VSr5): Fix thinko in comment.
39         (VSa): New mode attribute that is an alternative to wa, that
40         returns the VSX register class that a mode can go in, but may not
41         be the preferred register class.
42         (VS_64dm): New mode attribute for appropriate register classes for
43         referencing 64-bit elements of vectors for direct moves and normal
44         moves.
45         (VS_64reg): Likewise.
46         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
47         register allocator to only registers the data type can handle.
48         (vsx_le_perm_load_<mode>): Likewise.
49         (vsx_le_perm_store_<mode>): Likewise.
50         (vsx_xxpermdi2_le_<mode>): Likewise.
51         (vsx_xxpermdi4_le_<mode>): Likewise.
52         (vsx_lxvd2x2_le_<mode>): Likewise.
53         (vsx_lxvd2x4_le_<mode>): Likewise.
54         (vsx_stxvd2x2_le_<mode>): Likewise.
55         (vsx_add<mode>3): Likewise.
56         (vsx_sub<mode>3): Likewise.
57         (vsx_mul<mode>3): Likewise.
58         (vsx_div<mode>3): Likewise.
59         (vsx_tdiv<mode>3_internal): Likewise.
60         (vsx_fre<mode>2): Likewise.
61         (vsx_neg<mode>2): Likewise.
62         (vsx_abs<mode>2): Likewise.
63         (vsx_nabs<mode>2): Likewise.
64         (vsx_smax<mode>3): Likewise.
65         (vsx_smin<mode>3): Likewise.
66         (vsx_sqrt<mode>2): Likewise.
67         (vsx_rsqrte<mode>2): Likewise.
68         (vsx_tsqrt<mode>2_internal): Likewise.
69         (vsx_fms<mode>4): Likewise.
70         (vsx_nfma<mode>4): Likewise.
71         (vsx_eq<mode>): Likewise.
72         (vsx_gt<mode>): Likewise.
73         (vsx_ge<mode>): Likewise.
74         (vsx_eq<mode>_p): Likewise.
75         (vsx_gt<mode>_p): Likewise.
76         (vsx_ge<mode>_p): Likewise.
77         (vsx_xxsel<mode>): Likewise.
78         (vsx_xxsel<mode>_uns): Likewise.
79         (vsx_copysign<mode>3): Likewise.
80         (vsx_float<VSi><mode>2): Likewise.
81         (vsx_floatuns<VSi><mode>2): Likewise.
82         (vsx_fix_trunc<mode><VSi>2): Likewise.
83         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
84         (vsx_x<VSv>r<VSs>i): Likewise.
85         (vsx_x<VSv>r<VSs>ic): Likewise.
86         (vsx_btrunc<mode>2): Likewise.
87         (vsx_b2trunc<mode>2): Likewise.
88         (vsx_floor<mode>2): Likewise.
89         (vsx_ceil<mode>2): Likewise.
90         (vsx_<VS_spdp_insn>): Likewise.
91         (vsx_xscvspdp): Likewise.
92         (vsx_xvcvspuxds): Likewise.
93         (vsx_float_fix_<mode>2): Likewise.
94         (vsx_set_<mode>): Likewise.
95         (vsx_extract_<mode>_internal1): Likewise.
96         (vsx_extract_<mode>_internal2): Likewise.
97         (vsx_extract_<mode>_load): Likewise.
98         (vsx_extract_<mode>_store): Likewise.
99         (vsx_splat_<mode>): Likewise.
100         (vsx_xxspltw_<mode>): Likewise.
101         (vsx_xxspltw_<mode>_direct): Likewise.
102         (vsx_xxmrghw_<mode>): Likewise.
103         (vsx_xxmrglw_<mode>): Likewise.
104         (vsx_xxsldwi_<mode>): Likewise.
105         (vsx_xscvdpspn): Tighten constraints to only use register classes
106         the types use.
107         (vsx_xscvspdpn): Likewise.
108         (vsx_xscvdpspn_scalar): Likewise.
109
110         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
111         wj, and wk constraints.
112         (GPR_REG_CLASS_P): New helper macro for register classes targeting
113         general purpose registers.
114
115         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
116         direct moves.
117         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
118         DImode instead of wm.  Use wk constraint for direct move of DFmode
119         instead of wm.
120         (extendsidi2_lfiwax): Likewise.
121         (lfiwax): Likewise.
122         (lfiwzx): Likewise.
123         (movdi_internal64): Likewise.
124
125         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
126         wk constraints. Make the wy constraint documentation match them
127         implementation.
128
129 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
130
131         Replacement of isl_int by isl_val
132         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
133         (compute_bounds_for_param): use isl_val instead of isl_int
134         (compute_bounds_for_loop): likewise
135         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
136         (build_linearized_memory_access): use isl_val instead of isl_int
137         (pdr_stride_in_loop): likewise
138         * graphite-optimize-isl.c:
139         (getPrevectorMap): use isl_val instead of isl_int
140         * graphite-poly.c:
141         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
142         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
143         (extern the_isl_ctx): declare
144         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
145         (extract_affine_gmp): likewise
146         (wrap): likewise
147         (build_loop_iteration_domains): likewise
148         (add_param_constraints): likewise
149
150 2014-08-11  Richard Biener  <rguenther@suse.de>
151
152         PR tree-optimization/62075
153         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
154         handle uses in patterns.
155
156 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
157             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
158             Anna Tikhonova  <anna.tikhonova@intel.com>
159             Ilya Tocar  <ilya.tocar@intel.com>
160             Andrey Turetskiy  <andrey.turetskiy@intel.com>
161             Ilya Verbin  <ilya.verbin@intel.com>
162             Kirill Yukhin  <kirill.yukhin@intel.com>
163             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
164
165         * common/config/i386/i386-common.c
166         (OPTION_MASK_ISA_AVX512VL_SET): Define.
167         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
168         (ix86_handle_option): Handle OPT_mavx512vl.
169         * config/i386/cpuid.h (bit_AVX512VL): Define.
170         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
171         set -mavx512vl accordingly.
172         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
173         OPTION_MASK_ISA_AVX512VL.
174         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
175         (ix86_option_override_internal): Define PTA_AVX512VL, handle
176         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
177         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
178         * config/i386/i386.h (TARGET_AVX512VL): Define.
179         (TARGET_AVX512VL_P(x)): Ditto.
180         * config/i386/i386.opt: Add mavx512vl.
181
182 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
183
184         PR tree-optimization/62073
185         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
186         a basic block.
187
188 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
189             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
190             Anna Tikhonova  <anna.tikhonova@intel.com>
191             Ilya Tocar  <ilya.tocar@intel.com>
192             Andrey Turetskiy  <andrey.turetskiy@intel.com>
193             Ilya Verbin  <ilya.verbin@intel.com>
194             Kirill Yukhin  <kirill.yukhin@intel.com>
195             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
196
197         * common/config/i386/i386-common.c
198         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
199         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
200         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
201         (ix86_handle_option): Handle OPT_mavx512bw.
202         * config/i386/cpuid.h (bit_AVX512BW): Define.
203         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
204         set -mavx512bw accordingly.
205         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
206         OPTION_MASK_ISA_AVX512BW.
207         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
208         (ix86_option_override_internal): Define PTA_AVX512BW, handle
209         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
210         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
211         * config/i386/i386.h (TARGET_AVX512BW): Define.
212         (TARGET_AVX512BW_P(x)): Ditto.
213         * config/i386/i386.opt: Add mavx512bw.
214
215 2014-08-11  Richard Biener  <rguenther@suse.de>
216
217         PR tree-optimization/62070
218         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
219         Remove SSA checking.
220
221 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
222
223         * asan.c (asan_check_flags): New enum.
224         (build_check_stmt_with_calls): Removed function.
225         (build_check_stmt): Split inlining logic to
226         asan_expand_check_ifn.
227         (instrument_derefs): Rename parameter.
228         (instrument_mem_region_access): Rename parameter.
229         (instrument_strlen_call): Likewise.
230         (asan_expand_check_ifn): New function.
231         (asan_instrument): Remove old code.
232         (pass_sanopt::execute): Change handling of
233         asan-instrumentation-with-call-threshold.
234         (asan_clear_shadow): Fix formatting.
235         (asan_function_start): Likewise.
236         (asan_emit_stack_protection): Likewise.
237         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
238         Update description.
239         * internal-fn.c (expand_ASAN_CHECK): New function.
240         * internal-fn.def (ASAN_CHECK): New internal function.
241         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
242         Update description.
243         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
244         * tree.c: Small comment fix.
245
246 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
247
248         * gimple.c (gimple_call_fnspec): Support internal functions.
249         (gimple_call_return_flags): Use const.
250         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
251         * internal-fn.def: Add fnspec information.
252         * internal-fn.h (internal_fn_fnspec): New function.
253         (init_internal_fns): Declare new function.
254         * internal-fn.c (internal_fn_fnspec_array): New global variable.
255         (init_internal_fns): New function.
256         * tree-core.h: Update macro call.
257         * tree.c (build_common_builtin_nodes): Initialize internal fns.
258
259 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
260
261         * lto-streamer.h (struct output_block::symbol): Change from
262         struct symtab_node to plain symtab_node.
263         (referenced_from_this_partition_p): Change first parameter
264         from struct symtab_node to plain symtab_node.
265
266 2014-08-10  Marek Polacek  <polacek@redhat.com>
267
268         PR c/51849
269         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
270
271 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
272
273         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
274         DECL correctly; do not give up on types in static storage.
275
276 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
277
278         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
279
280 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
281
282         * graphite-isl-ast-to-gimple.c:
283         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
284
285         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
286
287 2014-08-08  Guozhi Wei  <carrot@google.com>
288
289         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
290
291 2014-08-08  Cary Coutant  <ccoutant@google.com>
292
293         * dwarf2out.c (get_skeleton_type_unit): Remove.
294         (output_skeleton_debug_sections): Remove skeleton type units.
295         (output_comdat_type_unit): Likewise.
296         (dwarf2out_finish): Likewise.
297
298 2014-08-07  Yi Yang  <ahyangyi@google.com>
299
300         * predict.c (expr_expected_value_1): Remove the redundant assignment.
301
302 2014-08-08  Richard Biener  <rguenther@suse.de>
303
304         * lto-streamer.h (struct lto_input_block): Make it a class
305         with a constructor.
306         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
307         (struct lto_function_header, struct lto_simple_header,
308         struct lto_simple_header_with_strings,
309         struct lto_decl_header, struct lto_function_header): Make
310         a simple inheritance hieararchy.  Remove unused fields.
311         (struct lto_asm_header): Remove.
312         * lto-streamer-out.c (produce_asm): Adjust.
313         (lto_output_toplevel_asms): Likewise.
314         (produce_asm_for_decls): Likewise.
315         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
316         * data-streamer-in.c (string_for_index): Likewise.
317         * ipa-inline-analysis.c (inline_read_section): Likewise.
318         * ipa-prop.c (ipa_prop_read_section): Likewise.
319         (read_replacements_section): Likewise.
320         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
321         * lto-section-in.c (lto_create_simple_input_block): Likewise.
322         (lto_destroy_simple_input_block): Likewise.
323         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
324         (lto_input_toplevel_asms): Likewise.
325
326 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
327             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
328             Anna Tikhonova  <anna.tikhonova@intel.com>
329             Ilya Tocar  <ilya.tocar@intel.com>
330             Andrey Turetskiy  <andrey.turetskiy@intel.com>
331             Ilya Verbin  <ilya.verbin@intel.com>
332             Kirill Yukhin  <kirill.yukhin@intel.com>
333             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
334
335         * common/config/i386/i386-common.c
336         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
337         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
338         (ix86_handle_option): Handle OPT_mavx512dq.
339         * config/i386/cpuid.h (bit_AVX512DQ): Define.
340         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
341         set -mavx512dq accordingly.
342         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
343         OPTION_MASK_ISA_AVX512DQ.
344         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
345         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
346         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
347         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
348         * config/i386/i386.h (TARGET_AVX512DQ): Define.
349         (TARGET_AVX512DQ_P(x)): Ditto.
350         * config/i386/i386.opt: Add mavx512dq.
351
352 2014-08-08  Richard Biener  <rguenther@suse.de>
353
354         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
355         target_percent, target_percent_s): Export.
356         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
357         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
358         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
359         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
360         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
361         Move to gimple-fold.c.
362         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
363         strcat and strcpy.
364         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
365         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
366         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
367         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
368         (rewrite_call_expr_array): Remove.
369         (fold_builtin_sprintf_chk): Likewise.
370         (fold_builtin_snprintf_chk): Likewise.
371         (fold_builtin_varargs): Remove handling of sprintf_chk,
372         vsprintf_chk, snprintf_chk and vsnprintf_chk.
373         (gimple_fold_builtin_sprintf_chk): Remove.
374         (gimple_fold_builtin_snprintf_chk): Likewise.
375         (gimple_fold_builtin_varargs): Likewise.
376         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
377         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
378         * gimple.c (gimple_seq_add_seq_without_update): New function.
379         * gimple.h (gimple_seq_add_seq_without_update): Declare.
380         * gimple-fold.c: Include output.h.
381         (gsi_replace_with_seq_vops): New function, split out from ...
382         (gimplify_and_update_call_from_tree): ... here.
383         (replace_call_with_value): New function.
384         (replace_call_with_call_and_fold): Likewise.
385         (var_decl_component_p): Moved from builtins.c.
386         (gimple_fold_builtin_memory_op): Moved from builtins.c
387         fold_builtin_memory_op and rewritten to GIMPLE.
388         (gimple_fold_builtin_memset): Likewise.
389         (gimple_fold_builtin_strcpy): Likewise.
390         (gimple_fold_builtin_strncpy): Likewise.
391         (gimple_fold_builtin_strcat): Likewise.
392         (gimple_fold_builtin_fputs): Likewise.
393         (gimple_fold_builtin_memory_chk): Likewise.
394         (gimple_fold_builtin_stxcpy_chk): Likewise.
395         (gimple_fold_builtin_stxncpy_chk): Likewise.
396         (gimple_fold_builtin_snprintf_chk): Likewise.
397         (gimple_fold_builtin_sprintf_chk): Likewise.
398         (gimple_fold_builtin_strlen): New function.
399         (gimple_fold_builtin_with_strlen): New function split out from
400         gimple_fold_builtin.
401         (gimple_fold_builtin): Change signature and handle
402         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
403         here.  Call gimple_fold_builtin_with_strlen.
404         (gimple_fold_call): Adjust.
405
406 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
407
408         * calls.c (precompute_arguments): Check
409          promoted_for_signed_and_unsigned_p and set the promoted mode.
410         (promoted_for_signed_and_unsigned_p): New function.
411         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
412         and set the promoted mode.
413         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
414         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
415         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
416
417
418 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
419
420         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
421         instead of SUBREG_PROMOTED_UNSIGNED_SET.
422         (expand_call): Likewise.
423         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
424         to get promoted mode.
425         * combine.c (record_promoted_value): Skip > 0 comparison with
426         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
427         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
428         of SUBREG_PROMOTED_UNSIGNED_P.
429         (convert_modes): Likewise.
430         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
431         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
432         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
433         SUBREG_PROMOTED_UNSIGNED_SET.
434         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
435         instead of SUBREG_PROMOTED_UNSIGNED_SET.
436         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
437         SUBREG_PROMOTED_SET.
438         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
439         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
440         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
441         of SUBREG_PROMOTED_UNSIGNED_P.
442         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
443         (SUBREG_PROMOTED_SET): New define.
444         (SUBREG_PROMOTED_GET): Likewise.
445         (SUBREG_PROMOTED_SIGN): Likewise.
446         (SUBREG_PROMOTED_SIGNED_P): Likewise.
447         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
448         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
449         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
450         instead of SUBREG_PROMOTED_UNSIGNED_GET.
451         (nonzero_bits1): Skip > 0 comparison with the results as
452         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
453         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
454         of !SUBREG_PROMOTED_UNSIGNED_P.
455         * simplify-rtx.c (simplify_unary_operation_1): Use new
456         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
457         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
458         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
459         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
460
461 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
462
463         * ipa-devirt.c: Include gimple-pretty-print.h
464         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
465         further tests.
466         (decl_maybe_in_construction_p): Fix conditional on cdtor check
467         (get_polymorphic_call_info): Fix return value
468         (type_change_info): New sturcture based on ipa-prop
469         variant.
470         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
471         based on ipa-prop variant.
472         (extr_type_from_vtbl_ptr_store): New function
473         based on ipa-prop variant.
474         (record_known_type): New function.
475         (check_stmt_for_type_change): New function.
476         (get_dynamic_type): New function.
477         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
478         * tree-ssa-pre.c: ipa-utils.h
479         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
480         machinery; sanity check with ipa-prop devirtualization.
481         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
482         polymorphic flag.
483
484 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
485
486         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
487         * alias.c, cfgexpand.c, cgraphbuild.c,
488         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
489         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
490         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
491         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
492         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
493         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
494         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
495         dse.c, except.c, gengtype.c, gimple-expr.c,
496         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
497         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
498         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
499         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
500         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
501         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
502         pointer-set.h.
503         * pointer-set.c: Remove file.
504         * pointer-set.h: Remove file.
505
506 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
507
508         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
509         * config/arm/types.md (f_sels, f_seld): Delete.
510
511 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
512
513         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
514         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
515         (aarch64_movdi_<mode>high): Likewise.
516         (aarch64_mov<mode>high_di): Likewise.
517         (aarch64_movdi_<mode>low): Likewise.
518         (aarch64_mov<mode>low_di): Likewise.
519         (aarch64_movtilow_tilow): Likewise.
520         Add comment explaining usage of fp,simd attributes and of
521         TARGET_FLOAT and TARGET_SIMD.
522
523 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
524             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
525
526         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
527         Use MOVN when one of the half-words is 0xffff.
528
529 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
530
531         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
532
533 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
534
535         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
536         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
537         (rfs_str): String corresponding to RFS_* constants.
538         (rank_for_schedule_stats_t): New typedef.
539         (rank_for_schedule_stats): New static variable.
540         (rfs_result): New static function.
541         (rank_for_schedule): Track statistics for deciding heuristics.
542         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
543         static functions.
544         (ready_sort): Use them for debug printouts.
545         (schedule_block): Init statistics state.  Print statistics on
546         rank_for_schedule decisions.
547
548 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
549
550         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
551
552 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
553
554         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
555         constraint.
556
557 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
558
559         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
560         function to not conflict.
561         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
562         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
563         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
564         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
565         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
566         of pointer_map.
567
568 2014-08-07  Marek Polacek  <polacek@redhat.com>
569
570         * fold-const.c (fold_binary_loc): Add folding of
571         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
572
573 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
574
575         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
576         instead of type size.
577         (ASM_FINISH_DECLARE_OBJECT): Likewise.
578
579 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
580
581         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
582         (*thumb1_movqi_insn): Likewise.
583         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
584
585 2014-08-07  Tom de Vries  <tom@codesourcery.com>
586
587         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
588         (glibc_2_11_or_earlier): Remove effective-target keywords.
589
590 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
591
592         * config/arm/arm.c (bdesc_2arg): Fix typo.
593         (arm_atomic_assign_expand_fenv): Remove The default implementation.
594
595 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
596
597         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
598
599 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
600
601         PR debug/61923
602         * haifa-sched.c (advance_one_cycle): Fix dump.
603         (schedule_block): Don't advance cycle if we are already at the
604         beginning of the cycle.
605
606 2014-08-06  Martin Jambor  <mjambor@suse.cz>
607
608         PR ipa/61393
609         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
610
611 2014-08-06  Richard Biener  <rguenther@suse.de>
612
613         PR lto/62034
614         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
615         SCCs here.
616         (lto_input_tree): Pop SCCs here.
617
618 2014-08-06  Richard Biener  <rguenther@suse.de>
619
620         PR tree-optimization/61320
621         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
622         handle misaligned loads.
623
624 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
625
626         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
627         (aarch64_expand_vec_perm_const): Check for dup before zip.
628
629 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
630
631         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
632         CONST_INT_P instead of GET_CODE and compare.
633         (aarch64_select_cc_mode): Likewise.
634         (aarch64_print_operand): Likewise.
635         (aarch64_rtx_costs): Likewise.
636         (aarch64_simd_valid_immediate): Likewise.
637         (aarch64_simd_check_vect_par_cnst_half): Likewise.
638         (aarch64_simd_emit_pair_result_insn): Likewise.
639
640 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
641
642         * gdbhooks.py (find_gcc_source_dir): New helper function.
643         (class PassNames): New class, locating and parsing passes.def.
644         (class BreakOnPass): New command "break-on-pass".
645
646 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
647
648         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
649         getting olde.
650
651 2014-08-05  Richard Biener  <rguenther@suse.de>
652
653         PR rtl-optimization/61672
654         * emit-rtl.h (mem_attrs_eq_p): Declare.
655         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
656         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
657         * cfgcleanup.c (merge_memattrs): Likewise.
658         Include emit-rtl.h.
659
660 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
661
662         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
663         rather than singleton vectors.
664         (vqdmlsls_lane_s32): Likewise.
665
666 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
667
668         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
669         Use VSDQ_HSI mode iterator.
670         (aarch64_sqrdmulh_laneq<mode>): Likewise.
671         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
672         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
673         Use BUILTIN_VDQHS macro.
674         (sqrdmulh_laneq): Likewise.
675         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
676         (vqdmlals_laneq_s32): Likewise.
677         (vqdmlslh_laneq_s16): Likewise.
678         (vqdmlsls_laneq_s32): Likewise.
679         (vqdmulhh_laneq_s16): Likewise.
680         (vqdmulhs_laneq_s32): Likewise.
681         (vqrdmulhh_laneq_s16): Likewise.
682         (vqrdmulhs_laneq_s32): Likewise.
683
684 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
685
686         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
687         (vmuld_laneq_f64): Likewise.
688         (vmuls_laneq_f32): Likewise.
689         (vmul_n_f64): Likewise.
690         (vmuld_lane_f64): Reimplement in C.
691         (vmuls_lane_f32): Likewise.
692
693 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
694
695         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
696         to reservation.
697         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
698
699 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
700
701         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
702         (rbitsi2): Likewise.
703         (*arm_rev): Set predicable and predicable_short_it attributes.
704
705 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
706
707         * convert.c (convert_to_integer): Guard transformation to lrint by
708         -fno-math-errno.
709
710 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
711
712         * config/aarch64/aarch64-builtins.c
713         (aarch64_simd_builtin_type_mode): Delete.
714         (v8qi_UP): Remap to V8QImode.
715         (v4hi_UP): Remap to V4HImode.
716         (v2si_UP): Remap to V2SImode.
717         (v2sf_UP): Remap to V2SFmode.
718         (v1df_UP): Remap to V1DFmode.
719         (di_UP): Remap to DImode.
720         (df_UP): Remap to DFmode.
721         (v16qi_UP):V16QImode.
722         (v8hi_UP): Remap to V8HImode.
723         (v4si_UP): Remap to V4SImode.
724         (v4sf_UP): Remap to V4SFmode.
725         (v2di_UP): Remap to V2DImode.
726         (v2df_UP): Remap to V2DFmode.
727         (ti_UP): Remap to TImode.
728         (ei_UP): Remap to EImode.
729         (oi_UP): Remap to OImode.
730         (ci_UP): Map to CImode.
731         (xi_UP): Remap to XImode.
732         (si_UP): Remap to SImode.
733         (sf_UP): Remap to SFmode.
734         (hi_UP): Remap to HImode.
735         (qi_UP): Remap to QImode.
736         (aarch64_simd_builtin_datum): Make mode a machine_mode.
737         (VAR1): Build builtin name.
738         (aarch64_init_simd_builtins): Remove dead code.
739
740 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
741
742         * graphite-isl-ast-to-gimple.c:
743         (set_options): New function.
744         (scop_to_isl_ast): Add calling of set_options.
745
746 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
747
748         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
749         (analyze_iv_to_split_insn): Don't initialize them.
750         (get_ivts_expr): Removed.
751         (allocate_basic_variable, insert_base_initialization): Use
752         SET_SRC instead of *get_ivts_expr.
753         (split_iv): Use &SET_SRC instead of get_ivts_expr.
754
755 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
756
757         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
758         (translate_isl_ast_for_loop): Add checking of the
759         flag_loop_parallelize_all.
760         (ast_build_before_for): New function.
761         (scop_to_isl_ast): Add checking of the
762         flag_loop_parallelize_all.
763         * graphite-dependences.c: Move the defenition of the
764         scop_get_dependences from graphite-optimize-isl.c to this file.
765         (apply_schedule_on_deps): Add checking of the ux's emptiness.
766         (carries_deps): Add checking of the x's value.
767         * graphite-optimize-isl.c: Move the defenition of the
768         scop_get_dependences to graphite-dependences.c.
769         * graphite-poly.h: Add declarations of scop_get_dependences
770         and carries_deps.
771
772 2014-08-04  Rohit  <rohitarulraj@freescale.com>
773
774         PR target/60102
775         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
776         names.
777         (alt_reg_names): Likewise.
778         (rs6000_dwarf_register_span): For SPE high registers, replace
779         dwarf register numbers with GCC hard register numbers.
780         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
781         (rs6000_dbx_register_number): For SPE high registers, return dwarf
782         register number for the corresponding GCC hard register number.
783         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
784         newly added GCC hard register numbers for SPE high registers.
785         (DWARF_FRAME_REGISTERS):  Likewise.
786         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
787         (DWARF_FRAME_REGNUM): Likewise.
788         (FIXED_REGISTERS): Likewise.
789         (CALL_USED_REGISTERS): Likewise.
790         (CALL_REALLY_USED_REGISTERS): Likewise.
791         (REG_ALLOC_ORDER): Likewise.
792         (enum reg_class): Likewise.
793         (REG_CLASS_NAMES): Likewise.
794         (REG_CLASS_CONTENTS): Likewise.
795         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
796
797 2014-08-04  Richard Biener  <rguenther@suse.de>
798
799         * gimple-fold.h (gimple_fold_builtin): Remove.
800         * gimple-fold.c (gimple_fold_builtin): Make static.
801         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
802         fold_stmt, not gimple_fold_builtin.
803
804 2014-08-04  Martin Liska <mliska@suse.cz>
805
806         * cgraph.h (csi_end_p): Removed.
807         (csi_next): Likewise.
808         (csi_node): Likewise.
809         (csi_start): Likewise.
810         (cgraph_node_in_set_p): Likewise.
811         (cgraph_node_set_size): Likewise.
812         (vsi_end_p): Likewise.
813         (vsi_next): Likewise.
814         (vsi_node): Likewise.
815         (vsi_start): Likewise.
816         (varpool_node_set_size): Likewise.
817         (cgraph_node_set_nonempty_p): Likewise.
818         (varpool_node_set_nonempty_p): Likewise.
819         * cgraphunit.c (cgraph_process_new_functions): vec replaces
820         cgraph_node_set.
821         * ipa-inline-transform.c: Likewise.
822         * ipa-utils.c (cgraph_node_set_new): Removed.
823         (cgraph_node_set_add): Likewise.
824         (cgraph_node_set_remove): Likewise.
825         (cgraph_node_set_find): Likewise.
826         (dump_cgraph_node_set): Likewise.
827         (debug_cgraph_node_set): Likewise.
828         (free_cgraph_node_set): Likewise.
829         (varpool_node_set_new): Likewise.
830         (varpool_node_set_add): Likewise.
831         (varpool_node_set_remove): Likewise.
832         (varpool_node_set_find): Likewise.
833         (dump_varpool_node_set): Likewise.
834         (free_varpool_node_set): Likewise.
835         (debug_varpool_node_set): Likewise.
836         * tree-emutls.c (struct tls_var_data):
837         (emutls_index): Removed.
838         (emutls_decl): Likewise.
839         (gen_emutls_addr): Function implementation uses newly added
840         hash_map<varpool_node *, tls_var_data>.
841         (clear_access_vars): Likewise.
842         (create_emultls_var): Likewise.
843         (ipa_lower_emutls): Likewise.
844         (reset_access): New function.
845
846 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
847
848         * config/i386/i386.c (ix86_option_override_internal): Add
849         PTA_RDRND and PTA_MOVBE for bdver4.
850
851 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
852             James Greenhalgh  <james.greenhalgh@arm.com>
853
854         * doc/md.texi (clrsb): Document.
855         (clz): Change reference to x into operand 1.
856         (ctz): Likewise.
857         (popcount): Likewise.
858
859 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
860
861         PR target/61713
862         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
863         move to subtarget in serial version if result is ignored.
864
865 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
866             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
867
868         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
869         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
870         (sched_analyze_insn): Update use of try_group_insn to
871         sched_macro_fuse_insns.
872         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
873         arguments that are not conditional jumps.
874
875 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
876
877         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
878         family information. Handle BTVER2 cpu with cpuid family value.
879
880 2014-08-04  Tom de Vries  <tom@codesourcery.com>
881
882         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
883         (glibc_2_11_or_earlier): Document effective-target keywords.
884
885 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
886
887         * ipa-devirt.c (odr_type_warn_count): Add type.
888         (possible_polymorphic_call_targets): Set it.
889         (ipa_devirt): Use it.
890
891 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
892
893         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
894         Document.
895         * ipa-devirt.c: Include hash-map.h
896         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
897         (clear_speculation): Break out of ...
898         (get_class_context): ... here; speed up handling obviously useless
899         speculations.
900         (odr_type_warn_count, decl_warn_count): New structures.
901         (final_warning_record): New structure.
902         (final_warning_records): New static variable.
903         (possible_polymorphic_call_targets): Cleanup handling of
904         speculative info; do not build speculation when user do not care;
905         record info about warnings when asked for.
906         (add_decl_warning): New function.
907         (type_warning_cmp): New function.
908         (decl_warning_cmp): New function.
909         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
910         (gate): Enable pass when warnings are requested.
911         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
912         options.
913
914 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
915
916         * hash-map.h (default_hashmap_traits::mark_key_deleted):
917         Fix cast.
918         (hash_map::remove): New method.
919         (hash_map::traverse): New method.
920         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
921         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
922         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
923         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
924         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
925         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
926         pointer_map.
927
928 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
929
930         * hash-set.h: new File.
931         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
932         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
933         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
934         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
935         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
936         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
937         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
938         varpool.c: Use hash_set instead of pointer_set.
939
940 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
941
942         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
943
944 2014-08-01  Jiong Wang <jiong.wang@arm.com>
945
946         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
947         for frame access when strict_p is false.
948
949 2014-08-01  Renlin Li <renlin.li@arm.com>
950 2014-08-01  Jiong Wang <jiong.wang@arm.com>
951
952         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
953         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
954         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
955         Declaration.
956         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
957         predicate.
958         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
959         aarch64_mem_pair_offset.
960
961 2014-08-01  Jiong Wang <jiong.wang@arm.com>
962
963         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
964         offset.
965         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
966         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
967
968 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
969
970         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
971
972 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
973
974         PR regression/61510
975         * cgraphunit.c (analyze_functions): Use get_create rather than get
976         for decls which are clones of abstract functions.
977
978 2014-08-01  Martin Liska  <mliska@suse.cz>
979
980         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
981         * ipa-prop.h (count_formal_params): Global function created from static.
982         * ipa-prop.c (count_formal_params): Likewise.
983         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
984         profiles for semantically equivalent functions.
985         * passes.c (do_per_function): If we load body of a function
986         during WPA, this condition should behave same.
987         * varpool.c (ctor_for_folding): More tolerant assert for variable
988         aliases created during WPA.
989
990 2014-08-01  Martin Liska  <mliska@suse.cz>
991
992         * doc/invoke.texi (Options That Control Optimization): Documentation
993         for -foptimize-strlen introduced. Optimization levels default options
994         fixed.
995
996 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
997
998         * opts.c (common_handle_option): Handle -fsanitize=alignment.
999         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
1000         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
1001         type to bool.
1002         * stor-layout.h (min_align_of_type): New prototype.
1003         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
1004         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
1005         check.
1006         * ubsan.c: Include builtins.h.
1007         (ubsan_expand_bounds_ifn): Change return type to bool,
1008         always return true.
1009         (ubsan_expand_null_ifn): Change return type to bool, change
1010         argument to gimple_stmt_iterator *.  Handle both null and alignment
1011         sanitization, take type from ckind argument's type rather than
1012         first argument.
1013         (instrument_member_call): Removed.
1014         (instrument_mem_ref): Remove t argument, add mem and base arguments.
1015         Handle both null and alignment sanitization, don't say whole
1016         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
1017         call instead of 2 argument.
1018         (instrument_null): Adjust instrument_mem_ref caller.  Don't
1019         instrument calls here.
1020         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
1021         like SANITIZE_NULL.
1022         * stor-layout.c (min_align_of_type): New function.
1023         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
1024         Or it into SANITIZE_UNDEFINED.
1025         * doc/invoke.texi (-fsanitize=alignment): Document.
1026
1027 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1028
1029         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
1030
1031 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1032
1033         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
1034         inchash.
1035         (vn_reference_compute_hash): Dito.
1036         (vn_nary_op_compute_hash): Dito.
1037         (vn_phi_compute_hash): Dito.
1038         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
1039
1040 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1041
1042         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
1043         Rename to inchash:add_expr_commutative. Convert to inchash.
1044         (iterative_hash_hashable_expr): Rename to
1045         inchash:add_hashable_expr. Convert to inchash.
1046         (avail_expr_hash): Dito.
1047
1048 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1049
1050         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
1051         Convert to inchash.
1052
1053 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1054
1055         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
1056
1057 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1058
1059         * Makefile.in (OBJS): Add rtlhash.o
1060         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
1061         (loc_checksum): Dito.
1062         (loc_checksum_ordered): Dito.
1063         (hash_loc_operands): Dito.
1064         (hash_locs): Dito.
1065         (hash_loc_list): Dito.
1066         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
1067         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
1068         * rtlhash.c: New file.
1069         * rtlhash.h: New file.
1070
1071 2014-07-31  Andi Kleen  <ak@linux.intel.com>
1072
1073         * inchash.h (inchash): Change inchash class to namespace.
1074         (class hash): ... Rename from inchash.
1075         (add_object): Move from macro to class template.
1076         * lto-streamer-out.c (hash_tree): Change inchash
1077         to inchash::hash.
1078         * tree.c (build_type_attribute_qual_variant): Dito.
1079         (type_hash_list): Dito.
1080         (attribute_hash_list): Dito.
1081         (iterative_hstate_expr): Rename to inchash::add_expr
1082         (build_range_type_1): Change inchash to inchash::hash
1083         and use hash::add_expr.
1084         (build_array_type_1): Dito.
1085         (build_function_type): Dito
1086         (build_method_type_directly): Dito.
1087         (build_offset_type): Dito.
1088         (build_complex_type): Dito.
1089         (make_vector_type): Dito.
1090         * tree.h (iterative_hash_expr): Dito.
1091
1092 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
1093
1094         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
1095
1096 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
1097
1098         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
1099         correct alphabetical position.
1100         (vpaddd_f64): Rewrite using builtins.
1101         (vpaddd_s64): Move to correct alphabetical position.
1102         (vpaddd_u64): New.
1103
1104 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
1105
1106         PR target/61844
1107         * config/sh/sh.c (sh_legitimate_address_p,
1108         sh_legitimize_reload_address): Handle reg+reg address modes when
1109         ALLOW_INDEXED_ADDRESS is false.
1110         * config/sh/predicates.md (general_movsrc_operand,
1111         general_movdst_operand): Likewise.
1112
1113 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
1114
1115         * config/aarch64/aarch64-builtins.c
1116         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
1117         BYTES_BIG_ENDIAN.
1118
1119 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
1120
1121         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
1122         the generated mask based on BYTES_BIG_ENDIAN.
1123         (aarch64_simd_check_vect_par_cnst_half): New.
1124         * config/aarch64/aarch64-protos.h
1125         (aarch64_simd_check_vect_par_cnst_half): New.
1126         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
1127         the check out to aarch64_simd_check_vect_par_cnst_half.
1128         (vect_par_cnst_lo_half): Likewise.
1129         * config/aarch64/aarch64-simd.md
1130         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
1131         (move_hi_quad_<mode>): Always generate a low mask.
1132
1133 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1134
1135         * doc/invoke.texi (AVR Options): Add documentation about
1136         __AVR_DEVICE_NAME__ built-in macro.
1137
1138 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
1139
1140         PR target/61948
1141         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
1142         constraints are satisfied.
1143         (<shift>di3_neon): Likewise.
1144
1145 2014-07-31  Richard Biener  <rguenther@suse.de>
1146
1147         PR tree-optimization/61964
1148         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
1149         by structural equality.
1150
1151 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
1152
1153         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
1154         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
1155         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
1156         New enums.
1157         * gcc.c (sanitize_spec_function): Support new option.
1158         (SANITIZER_SPEC): Remove now redundant check.
1159         * opts.c (common_handle_option): Support new option.
1160         (finish_options): Check for incompatibilities.
1161         * toplev.c (process_options): Split userspace-specific checks.
1162
1163 2014-07-31  Richard Biener  <rguenther@suse.de>
1164
1165         * lto-streamer.h (struct output_block): Remove global.
1166         (struct data_in): Remove labels, num_named_labels and
1167         num_unnamed_labels.
1168         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
1169         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
1170
1171 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
1172
1173         PR c++/60517
1174         * common.opt (-Wreturn-local-addr): Moved from c.opt.
1175         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
1176         (isolate_path): New argument to avoid inserting a trap.
1177         (find_implicit_erroneous_behaviour): Handle returning the address
1178         of a local variable.
1179         (find_explicit_erroneous_behaviour): Likewise.
1180
1181 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
1182
1183         PR lto/61868
1184         * toplev.c (init_random_seed): Move piece of code never called to
1185         set_random_seed.
1186         (set_random_seed): see above.
1187
1188 2014-07-31  Tom de Vries  <tom@codesourcery.com>
1189
1190         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
1191
1192 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
1193
1194         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
1195         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
1196
1197 2014-07-31  Richard Biener  <rguenther@suse.de>
1198
1199         * data-streamer.h (streamer_write_data_stream): Declare here,
1200         renamed from ...
1201         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
1202         * lto-cgraph.c (lto_output_node): Adjust.
1203         (lto_output_varpool_node): Likewise.
1204         * data-streamer-out.c (streamer_string_index): Likewise.
1205         (streamer_write_data_stream, lto_append_block): Move from ...
1206         * lto-section-out.c (lto_output_data_stream,
1207         lto_append_block): ... here.
1208
1209 2014-07-30  Mike Stump  <mikestump@comcast.net>
1210
1211         * configure.ac: Also check for popen.
1212         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
1213         * configure: Regenerate.
1214         * config.in:  Regenerate.
1215
1216 2014-07-30  Martin Jambor  <mjambor@suse.cz>
1217
1218         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
1219         parameter to gimple.
1220
1221 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1222
1223         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
1224         address as second parameter to __tpf_eh_return routine.
1225
1226 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
1227
1228         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
1229         Thumb2.
1230
1231 2014-07-30  Tom Tromey  <tromey@redhat.com>
1232
1233         PR c/59855
1234         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
1235         * doc/extend.texi (Type Attributes): Document designated_init
1236         attribute.
1237
1238 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
1239
1240         * graphite-isl-ast-to-gimple.c:
1241         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
1242         (gcc_expression_from_isl_expression): Pass type to
1243         gcc_expression_from_isl_ast_expr_id.
1244
1245 2014-07-30  Richard Biener  <rguenther@suse.de>
1246
1247         * lto-streamer.h (lto_write_data): New function.
1248         * langhooks.c (lhd_append_data): Do not free block.
1249         * lto-section-out.c (lto_write_data): New function writing
1250         raw data to the current section.
1251         (lto_write_stream): Adjust for langhook semantic change.
1252         (lto_destroy_simple_output_block): Write header directly.
1253         * lto-opts.c (lto_write_options): Write options directly.
1254         * lto-streamer-out.c (produce_asm): Write heaeder directly.
1255         (lto_output_toplevel_asms): Likewise.
1256         (copy_function_or_variable): Copy data directly.
1257         (write_global_references): Output index table directly.
1258         (lto_output_decl_state_refs): Likewise.
1259         (write_symbol): Write data directly.
1260         (produce_symtab): Adjust.
1261         (produce_asm_for_decls): Output header and refs directly.
1262
1263 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
1264
1265         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
1266         to speculative_targets
1267         (get_class_context): Fix handling of contextes without outer type;
1268         avoid matching non-polymorphic types in LTO.
1269         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
1270         parameter to speculative_targetsp; handle speculation.
1271         (dump_possible_polymorphic_call_targets): Update dumping.
1272
1273 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
1274
1275         * common.opt (Wodr): Enable by default.
1276
1277 2014-07-29  Olivier Hainque  <hainque@adacore.com>
1278
1279         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
1280
1281 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
1282
1283         PR bootstrap/61914
1284         * gengtype.c (strtoken): New function.
1285         (create_user_defined_type): Replace strtok with strtoken.
1286
1287 2014-07-29  Nathan Sidwell  <nathan@acm.org>
1288
1289         * gcov-io.c (gcov_var): Make hidden.
1290         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
1291         (gcov_do_dump): Declare.
1292         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
1293
1294 2014-07-29  Martin Jambor  <mjambor@suse.cz>
1295
1296         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
1297         parameter to gimple.
1298         (sra_modify_assign): Likewise.
1299
1300 2014-07-29  Richard Biener  <rguenther@suse.de>
1301
1302         PR middle-end/52478
1303         * expr.c (expand_expr_real_2): Revert last change.
1304
1305 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
1306
1307         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
1308         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
1309         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
1310         call.
1311         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
1312         (contains_type_p): Forward declare.
1313         (polymorphic_call_target_hasher::hash): Hash speculative info.
1314         (polymorphic_call_target_hasher::equal): Compare speculative info.
1315         (get_class_context): Handle speuclation.
1316         (contains_type_p): Update.
1317         (get_polymorphic_call_info_for_decl): Update.
1318         (walk_ssa_copies): Break out from ...
1319         (get_polymorphic_call_info): ... here; set speculative context
1320         before giving up.
1321         * ipa-prop.c (ipa_write_indirect_edge_info,
1322         ipa_read_indirect_edge_info): Stream speculative context.
1323         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
1324         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
1325         SPECULATIVE_MAYBE_DERIVED_TYPE).
1326         (possible_polymorphic_call_targets overriders): Update.
1327         (dump_possible_polymorphic_call_targets overriders): Update.
1328         (dump_possible_polymorphic_call_target_p overriders): Update.
1329
1330 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
1331
1332         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
1333         ipa-devirt path; fix thinko there.
1334
1335 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
1336
1337         * config/i386/i386.c (ix86_return_in_memory): Replace one
1338         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
1339
1340 2014-07-28  Marek Polacek  <polacek@redhat.com>
1341
1342         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
1343
1344 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
1345
1346         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
1347         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
1348         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
1349         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
1350         (USE_LD_AS_NEEDED): Likewise.
1351         (ASM_APP_ON): Likewise.
1352         (ASM_APP_OFF): Likewise.
1353         (TARGET_POSIX_IO): Likewise.
1354         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
1355         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
1356         (USE_LD_AS_NEEDED): Likewise.
1357         (ASM_APP_ON): Likewise.
1358         (ASM_APP_OFF): Likewise.
1359         (TARGET_POSIX_IO): Likewise.
1360
1361 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
1362
1363         PR middle-end/61734
1364         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
1365         operators other than the equality operators.
1366
1367 2014-07-28  Richard Biener  <rguenther@suse.de>
1368
1369         PR middle-end/52478
1370         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
1371         sure to register SImode ones, not only >= word_mode ones.
1372         * expr.c (expand_expr_real_2): When expanding -ftrapv
1373         binops do not use OPTAB_LIB_WIDEN.
1374
1375 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
1376
1377         PR middle-end/61919
1378         * tree-outof-ssa.c (insert_partition_copy_on_edge)
1379         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
1380         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
1381         inserting them in the insn stream.
1382
1383 2014-07-28  Marek Polacek  <polacek@redhat.com>
1384
1385         PR middle-end/61913
1386         * common.opt (Wodr): Add Var.
1387
1388 2014-07-28  Richard Biener  <rguenther@suse.de>
1389
1390         PR tree-optimization/61921
1391         * tree-ssa-structalias.c (create_variable_info_for_1): Check
1392         if there is a varpool node before dereferencing it.
1393
1394 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
1395
1396         * graphite-sese-to-poly.c:
1397         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
1398         id of the pbb), which contains pointer to the pbb1.
1399
1400         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
1401
1402 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
1403
1404         * graphite-isl-ast-to-gimple.c:
1405         (graphite_create_new_guard): New function.
1406         (translate_isl_ast_node_if): New function.
1407         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
1408
1409         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
1410
1411 2014-07-27  Anthony Green  <green@moxielogic.com>
1412
1413         * config.gcc: Add moxie-*-moxiebox* configuration.
1414         * config/moxie/moxiebox.h: New file.
1415
1416 2014-07-26  Andrew Pinski  <apinski@cavium.com>
1417
1418         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
1419         from the read only register.
1420
1421 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
1422
1423         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
1424         as the allocation class if it isn't likely to be spilled.
1425
1426 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
1427
1428         * rtl.h (tls_referenced_p): Declare.
1429         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
1430         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
1431         (mips_cannot_force_const_mem): Use tls_referenced_p.
1432         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
1433         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
1434         instead of pa_tls_referenced_p.
1435         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
1436         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
1437         (pa_legitimate_constant_p): Likewise.
1438         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
1439         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
1440         (rs6000_cannot_force_const_mem, rs6000_emit_move)
1441         (rs6000_address_for_altivec): Use tls_referenced_p instead of
1442         rs6000_tls_referenced_p.
1443         (rs6000_tls_symbol_ref_1): Delete.
1444
1445 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
1446
1447         PR target/44551
1448         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
1449         Optimize inverse of a VEC_CONCAT.
1450
1451 2014-07-25  Xinliang David Li  <davidxl@google.com>
1452
1453         * params.def: New parameter.
1454         * coverage.c (get_coverage_counts): Check new flag.
1455         (coverage_compute_profile_id): Check new flag.
1456         (coverage_begin_function): Check new flag.
1457         (coverage_end_function): Check new flag.
1458         * value-prof.c (coverage_node_map_initialized_p): New function.
1459         (init_node_map): Populate map with all functions.
1460         * doc/invoke.texi: Document new parameter.
1461
1462 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
1463             Richard Biener <rguenther@suse.de>
1464
1465         * lto-streamer-out.c (struct sccs): Turn to ...
1466         (class DFS): ... this one; refactor the DFS walk so it can
1467         be re-done on per-SCC basis.
1468         (DFS::DFS): New constructor.
1469         (DFS::~DFS): New destructor.
1470         (hash_tree): Add new MAP argument holding in-SCC hash values;
1471         remove POINTER_TYPE hashing hack.
1472         (scc_entry_compare): Rename to ...
1473         (DFS::scc_entry_compare): ... this one.
1474         (hash_scc): Rename to ...
1475         (DFS::hash_scc): ... this one; pass output_block instead
1476         of streamer_cache; work harder to get unique and stable SCC
1477         hashes.
1478         (DFS_write_tree): Rename to ...
1479         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
1480         (lto_output_tree): Update.
1481
1482 2014-07-25  Andi Kleen  <ak@linux.intel.com>
1483
1484         * lto-streamer-out.c (hash_tree): Convert to inchash.
1485
1486 2014-07-25  Andi Kleen  <ak@linux.intel.com>
1487
1488         * tree.c (build_type_attribute_qual_variant): Use inchash.
1489         (type_hash_list): Dito.
1490         (attribute_hash_list): Dito
1491         (iterative_hstate_expr): Dito.
1492         (iterative_hash_expr): Dito.
1493         (build_range_type_1): Dito.
1494         (build_array_type_1): Dito.
1495         (build_function_type): Dito.
1496         (build_method_type_directly): Dito.
1497         (build_offset_type): Dito.
1498         (build_complex_type): Dito.
1499         (make_vector_type): Dito.
1500         * tree.h (iterative_hash_expr): Add compat wrapper.
1501         (iterative_hstate_expr): Add.
1502
1503 2014-07-25  Andi Kleen  <ak@linux.intel.com>
1504
1505         * Makefile.in (OBJS): Add inchash.o.
1506         (PLUGIN_HEADERS): Add inchash.h.
1507         * ipa-devirt.c: Include inchash.h.
1508         * lto-streamer-out.c: Dito.
1509         * tree-ssa-dom.c: Dito.
1510         * tree-ssa-pre.c: Dito.
1511         * tree-ssa-sccvn.c: Dito.
1512         * tree-ssa-tail-merge.c: Dito.
1513         * asan.c: Dito.
1514         * tree.c (iterative_hash_hashval_t): Move to ...
1515         (iterative_hash_host_wide_int): Move to ...
1516         * inchash.c: Here. New file.
1517         * tree.h (iterative_hash_hashval_t): Move to ...
1518         (iterative_hash_host_wide_int): Move to ...
1519         * inchash.h: Here. New file.
1520
1521 2014-07-25  Richard Biener  <rguenther@suse.de>
1522
1523         PR middle-end/61762
1524         PR middle-end/61894
1525         * fold-const.c (native_encode_int): Add and handle offset
1526         parameter to do partial encodings of expr.
1527         (native_encode_fixed): Likewise.
1528         (native_encode_real): Likewise.
1529         (native_encode_complex): Likewise.
1530         (native_encode_vector): Likewise.
1531         (native_encode_string): Likewise.
1532         (native_encode_expr): Likewise.
1533         * fold-const.c (native_encode_expr): Add offset parameter
1534         defaulting to -1.
1535         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
1536         (fold_ctor_reference): Handle all reads from tcc_constant
1537         ctors.
1538
1539 2014-07-25  Richard Biener  <rguenther@suse.de>
1540
1541         * tree-inline.c (estimate_move_cost): Mark speed_p argument
1542         as possibly unused.
1543
1544 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1545
1546         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
1547
1548 2014-07-24  Kyle McMartin  <kyle@redhat.com>
1549
1550         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
1551
1552 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1553
1554         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
1555         Add prototype.
1556         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
1557         function.
1558         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
1559         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
1560         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
1561
1562 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1563
1564         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
1565         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
1566         aggregate types.  Instead, *all* aggregate types, except for single-
1567         element or homogeneous float/vector aggregates, are quadword-aligned
1568         if required by their type alignment.  Issue -Wpsabi note when a type
1569         is now treated differently than before.
1570
1571 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1572
1573         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
1574         does not fit fully into floating-point registers, and there is still
1575         space in the register parameter area, use GPRs to pass those parts
1576         of the argument.  Issue -Wpsabi note if any parameter is now treated
1577         differently than before.
1578         (rs6000_arg_partial_bytes): Update.
1579
1580 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
1581
1582         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
1583
1584 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
1585
1586         * rtl.h (target_rtl): Remove lang_dependent_initialized.
1587         * toplev.c (initialize_rtl): Don't use it.  Move previously
1588         "language-dependent" calls to...
1589         (backend_init): ...here.
1590         (lang_dependent_init_target): Don't set lang_dependent_initialized.
1591         Assert that RTL initialization hasn't happend yet.
1592
1593 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
1594
1595         PR rtl-optimization/61629
1596         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
1597         they have already been initialized.
1598
1599 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
1600
1601         PR middle-end/61268
1602         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
1603         DECL_INCOMING_RTL and entry_parm.
1604         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
1605         * calls.c (load_register_parameters): Likewise argument values.
1606         (emit_library_call_value_1, store_one_arg): Likewise argument
1607         save areas.
1608         * config/i386/i386.c (assign_386_stack_local): Likewise the local
1609         stack slot.
1610         * explow.c (validize_mem): Modify the argument in-place.
1611
1612 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
1613
1614         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
1615         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
1616
1617 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
1618
1619         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
1620         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
1621
1622 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
1623
1624         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
1625         (aarch64_save_callee_saves): New parameter "skip_wb".
1626         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
1627
1628 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
1629
1630         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
1631         "wb_candidate2".
1632         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
1633
1634 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
1635
1636         * graphite-isl-ast-to-gimple.c:
1637         (graphite_create_new_loop): Add calling of isl_id_free to properly
1638         decrement reference counts.
1639
1640         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
1641
1642 2014-07-24  Martin Liska  <mliska@suse.cz>
1643         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
1644         function used.
1645         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
1646         (rs6000_code_end): Likewise.
1647
1648 2014-07-24  Martin Liska  <mliska@suse.cz>
1649
1650         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
1651         symtab_node funtion used.
1652         (rs6000_xcoff_declare_object_name): Likewise.
1653
1654 2014-07-24  Martin Liska  <mliska@suse.cz>
1655
1656         * cgraphunit.c (compile): Correct function used.
1657
1658 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
1659
1660         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
1661         as non-indexable.
1662
1663 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
1664
1665         PR lto/61802
1666         * varasm.c (bss_initializer_p): Handle offlined ctors.
1667         (align_variable, get_variable_align): Likewise.
1668         (make_decl_one_only): Likewise.
1669         (default_binds_local_p_1): Likewise.
1670         (decl_binds_to_current_def_p): Likewise.
1671         (get_variable_section): Get constructor if it is offlined.
1672         (assemble_variable_contents): Sanity check that the caller
1673         streamed in the ctor in LTO.
1674
1675 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
1676
1677         * graphite-isl-ast-to-gimple.c:
1678         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
1679         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
1680         isl_ast_op_pdiv_r to the different case.
1681
1682         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
1683
1684 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1685
1686         PR middle-end/61876
1687         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
1688         when flag_errno_math is on.
1689
1690 2014-07-24  Martin Liska  <mliska@suse.cz>
1691
1692         * cgraph.h (varpool_node):
1693         (availability get_availability (void)):
1694         created from cgraph_variable_initializer_availability
1695         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
1696         created from: cgraph_variable_initializer_availability
1697         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
1698         (void finalize_named_section_flags (void)):
1699         created from varpool_finalize_named_section_flags
1700         (bool assemble_decl (void)): created from varpool_assemble_decl
1701         (void analyze (void)): created from varpool_analyze_node
1702         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
1703         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
1704         (void remove_initializer (void)): created from varpool_remove_initializer
1705         (tree get_constructor (void)): created from varpool_get_constructor
1706         (bool externally_visible_p (void)): created from varpool_externally_visible_p
1707         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
1708         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
1709         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
1710         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
1711         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
1712         (static bool output_variables (void)): created from varpool_output_variables
1713         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
1714         created from varpool_extra_name_alias
1715         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
1716         (static void dump_varpool (FILE *f)): created from dump_varpool
1717         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
1718         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
1719         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
1720         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
1721         (void assemble_aliases (void)): created from assemble_aliases
1722
1723 2014-07-24  Martin Liska  <mliska@suse.cz>
1724
1725         * cgraph.h (symtab_node):
1726         (void register_symbol (void)): created from symtab_register_node
1727         (void remove (void)): created from symtab_remove_node
1728         (void dump (FILE *f)): created from dump_symtab_node
1729         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
1730         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
1731         (struct ipa_ref *add_reference (symtab_node *referred_node,
1732         enum ipa_ref_use use_type)): created from add_reference 
1733         (struct ipa_ref *add_reference (symtab_node *referred_node,
1734         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
1735         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
1736         gimple stmt)): created from maybe_add_reference
1737         (bool semantically_equivalent_p (symtab_node *target)): created from
1738         symtab_semantically_equivalent_p
1739         (void remove_from_same_comdat_group (void)): created from
1740         remove_from_same_comdat_group
1741         (void add_to_same_comdat_group (symtab_node *old_node)): created from
1742         symtab_add_to_same_comdat_group
1743         (void dissolve_same_comdat_group_list (void)): created from
1744         symtab_dissolve_same_comdat_group_list
1745         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
1746         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
1747         created from symtab_alias_ultimate_target
1748         (inline symtab_node *next_defined_symbol (void)): created from
1749         symtab_next_defined_symbol
1750         (bool resolve_alias (symtab_node *target)): created from
1751         symtab_resolve_alias
1752         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
1753         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
1754         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
1755         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
1756         (void set_section (const char *section)): created from set_section_1 
1757         (enum availability get_availability (void)): created from symtab_node_availability
1758         (void make_decl_local (void)): created from symtab_make_decl_local
1759         (bool real_symbol_p (void)): created from symtab_read_node
1760         (can_be_discarded_p (void)): created from symtab_can_be_discarded
1761         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
1762         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
1763         symtab_in_same_comdat_p;
1764         (bool address_taken_from_non_vtable_p (void)): created from
1765         address_taken_from_non_vtable_p
1766         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
1767         (static void dump_table (FILE *)): created from dump_symtab
1768         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
1769         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
1770         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
1771         symtab_used_from_object_file_p 
1772         (void dump_base (FILE *)): created from dump_symtab_base
1773         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
1774         (void unregister (void)): created from symtab_unregister_node
1775         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
1776         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
1777         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
1778         symtab_nonoverwritable_alias_1
1779         * cgraph.h (cgraph_node):
1780         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
1781         created from cgraph_remove_node_and_inline_clones
1782         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
1783         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
1784         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
1785         (cgraph_node *function_symbol (enum availability *avail = NULL)):
1786         created from cgraph_function_node
1787         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
1788         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
1789         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
1790         created from cgraph_create_clone 
1791         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
1792         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
1793         created from cgraph_create_virtual_clone
1794         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
1795         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
1796         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
1797         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
1798         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
1799         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
1800         created from cgraph_function_version_info
1801         (struct cgraph_function_version_info *insert_new_function_version (void)):
1802         created from insert_new_cgraph_node_version
1803         (struct cgraph_function_version_info *function_version (void)): created from
1804         get_cgraph_node_version
1805         (void analyze (void)): created from analyze_function
1806         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
1807         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
1808         tree real_alias) cgraph_add_thunk
1809         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
1810         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
1811         created from cgraph_function_or_thunk_node
1812         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
1813         created from expand_thunk
1814         (void reset (void)): created from cgraph_reset_node
1815         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
1816         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
1817         (void remove (void)): created from cgraph_remove_node
1818         (void dump (FILE *f)): created from dump_cgraph_node
1819         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
1820         (bool get_body (void)): created from cgraph_get_body
1821         (void release_body (void)): created from cgraph_release_function_body
1822         (void unnest (void)): created from cgraph_unnest_node
1823         (void make_local (void)): created from cgraph_make_node_local
1824         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
1825         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
1826         gcov_type count, int freq)): created from cgraph_create_edge
1827         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
1828         gcov_type count, int freq)): created from cgraph_create_indirect_edge
1829         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
1830         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
1831         created from cgraph_create_edge_including_clones
1832         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
1833         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
1834         (void remove_callers (void)): created from cgraph_node_remove_callers
1835         (void remove_callees (void)): created from cgraph_node_remove_callees
1836         (enum availability get_availability (void)): created from cgraph_function_body_availability
1837         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
1838         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
1839         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
1840         (void call_duplication_hooks (cgraph_node *node2)): created from
1841         cgraph_call_node_duplication_hooks
1842         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
1843         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
1844         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
1845         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
1846         (void call_function_insertion_hooks (void)):
1847         created from cgraph_call_function_insertion_hooks
1848         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
1849         (bool local_p (void)): created from cgraph_local_node
1850         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
1851         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
1852         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
1853         (inline bool only_called_directly_or_aliased_p (void)):
1854         created from cgraph_only_called_directly_or_aliased_p
1855         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
1856         created from cgraph_will_be_removed_from_program_if_no_direct_calls
1857         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
1858         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
1859         (bool can_remove_if_no_direct_calls_p (void)):
1860         created from cgraph_can_remove_if_no_direct_calls_p
1861         (inline bool has_gimple_body_p (void)):
1862         created from cgraph_function_with_gimple_body_p
1863         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
1864         (static void dump_cgraph (FILE *f)): created from dump_cgraph
1865         (static inline void debug_cgraph (void)): created from debug_cgraph
1866         (static void record_function_versions (tree decl1, tree decl2)):
1867         created from record_function_versions
1868         (static void delete_function_version (tree decl)):
1869         created from delete_function_version
1870         (static void add_new_function (tree fndecl, bool lowered)):
1871         created from cgraph_add_new_function
1872         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
1873         (static cgraph_node * create (tree decl)): created from cgraph_create_node
1874         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
1875         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
1876         (static cgraph_node *get_for_asmname (tree asmname)):
1877         created from cgraph_node_for_asm
1878         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
1879         created from cgraph_same_body_alias 
1880         (static bool used_from_object_file_p_worker (cgraph_node *node,
1881         void *): new function
1882         (static bool non_local_p (cgraph_node *node, void *)):
1883         created from cgraph_non_local_node_p_1
1884         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
1885         created from verify_cgraph
1886         (static bool make_local (cgraph_node *node, void *)):
1887         created from cgraph_make_node_local
1888         (static cgraph_node *create_alias (tree alias, tree target)):
1889         created from cgraph_create_function_alias
1890         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
1891         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
1892         created from cgraph_create_edge_1
1893         * cgraph.h (varpool_node):
1894         (void remove (void)): created from varpool_remove_node
1895         (void dump (FILE *f)): created from dump_varpool_node
1896
1897 2014-07-24  Richard Biener  <rguenther@suse.de>
1898
1899         PR ipa/61823
1900         * tree-ssa-structalias.c (create_variable_info_for_1):
1901         Use varpool_get_constructor.
1902         (create_variable_info_for): Likewise.
1903
1904 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
1905
1906         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
1907         subtract outgoing area size when restoring stack_pointer_rtx.
1908
1909 2014-07-24  Nick Clifton  <nickc@redhat.com>
1910
1911         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
1912         that operations are taking place in parallel.
1913         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
1914
1915 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
1916
1917         * omp-low.c (extract_omp_for_data): Add missing break statement.
1918
1919 2014-07-24  Richard Biener  <rguenther@suse.de>
1920
1921         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
1922         * tree-inline.c (estimate_move_cost): Add speed_p parameter
1923         and adjust MOVE_RATIO query accordingly.
1924         (estimate_num_insns): Adjust callers.
1925         * ipa-prop.c (ipa_populate_param_decls): Likewise.
1926         * ipa-cp.c (gather_context_independent_values,
1927         estimate_local_effects): Likewise.
1928         * ipa-split.c (consider_split): Likewise.
1929
1930 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
1931
1932         * config/i386/driver-i386.c: Remove names of unused arguments and
1933         unnecessary unused attributes.
1934         * config/i386/host-mingw32.c: Likewise.
1935         * config/i386/i386.c: Likewise.
1936         * config/i386/winnt-stubs.c: Likewise.
1937         * config/i386/winnt.c: Likewise.
1938
1939 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1940
1941         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
1942         (aarch64_gen_loadwb_pair): New helper function.
1943         (aarch64_expand_epilogue): Simplify code using new helper functions.
1944         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
1945
1946 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1947
1948         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
1949         (aarch64_gen_storewb_pair): New helper function.
1950         (aarch64_expand_prologue): Simplify code using new helper functions.
1951         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
1952
1953 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1954
1955         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
1956         Rename to aarch64_save_callee_saves, remove restore code.
1957         (aarch64_restore_callee_saves): New function.
1958
1959 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1960
1961         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
1962         (aarch64_save_callee_saves): New function to handle reg save
1963         for both core and vectore regs.
1964
1965 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1966
1967         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
1968         (aarch64_gen_store_pair): New helper function.
1969         (aarch64_save_or_restore_callee_save_registers)
1970         (aarch64_save_or_restore_fprs): Use new helper functions.
1971
1972 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1973
1974         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
1975         (aarch64_save_or_restore_callee_save_registers)
1976         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
1977
1978 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1979
1980         * config/aarch64/aarch64.c
1981         (aarch64_save_or_restore_callee_save_registers)
1982         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
1983
1984 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1985
1986         * config/aarch64/aarch64.c
1987         (aarch64_save_or_restore_callee_save_registers)
1988         (aarch64_save_or_restore_fprs): Remove 'increment'.
1989
1990 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1991
1992         * config/aarch64/aarch64.c
1993         (aarch64_save_or_restore_callee_save_registers)
1994         (aarch64_save_or_restore_fprs): Use register offset in
1995         cfun->machine->frame.reg_offset.
1996
1997 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
1998
1999         * config/aarch64/aarch64.c
2000         (aarch64_save_or_restore_callee_save_registers)
2001         (aarch64_save_or_restore_fprs): Remove base_rtx.
2002
2003 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2004
2005         * config/aarch64/aarch64.c
2006         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
2007         to 'start_offset'.  Remove local variable 'start_offset'.
2008
2009 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2010
2011         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
2012         type to HOST_WIDE_INT.
2013
2014 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2015
2016         * config/aarch64/aarch64.c (aarch64_expand_prologue)
2017         (aarch64_save_or_restore_fprs)
2018         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
2019
2020 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2021
2022         * config/arm/t-rtems-eabi: Add
2023         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
2024         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
2025         mbig-endian/mthumb/march=armv7-r, and
2026         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
2027         multilibs.
2028
2029 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2030             Chris Johns <chrisj@rtems.org>
2031             Joel Sherrill <joel.sherrill@oarcorp.com>
2032
2033         * config.gcc: Add nios2-*-rtems*.
2034         * config/nios2/rtems.h: New file.
2035         * gcc/config/nios2/t-rtems: New file.
2036
2037 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
2038
2039         PR target/61396
2040         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
2041         constant numbers, not general constants.
2042         (rs6000_expand_vector_init): Ditto.
2043
2044 2014-07-23  Nathan Sidwell  <nathan@acm.org>
2045
2046         * gcov-tool.c (gcov_list): Declare here.
2047         (set_gcov_list): Remove.
2048         (gcov_output_files): Set gcov_list directly.
2049
2050 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
2051
2052         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
2053
2054 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
2055
2056         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
2057         callee-saved registers are available for padding purpose
2058         and r3 is not mandatory, then prefer use those callee-saved
2059         instead of r3.
2060
2061 2014-07-23  Richard Biener  <rguenther@suse.de>
2062
2063         * params.def (PARAM_MAX_COMBINE_INSNS): New.
2064         * combine.c: Include statistics.h and params.h.
2065         (combine_instructions): Guard three and four insn combines
2066         with max-combine-insns value.  Record statistics for combines
2067         performed.
2068         * doc/invoke.texi (max-combine-insns): Document new param.
2069
2070 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
2071
2072         * graphite-isl-ast-to-gimple.c:
2073         (translate_isl_ast_node_block): New function.
2074         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
2075
2076         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
2077         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
2078
2079 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
2080
2081         * graphite-isl-ast-to-gimple.c:
2082         (get_max_schedule_dimensions): New function.
2083         (extend_schedule): Likewise.
2084         (generate_isl_schedule): Add calling of extend_schedule and
2085         get_max_schedule_dimensions.
2086
2087 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2088
2089         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
2090         (case UNSPEC): Handle UNSPEC_RBIT.
2091
2092 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2093
2094         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
2095         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
2096
2097 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2098
2099         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
2100
2101 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
2102
2103         * graphite-isl-ast-to-gimple.c:
2104         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
2105         (ivs_params_clear):
2106         (build_iv_mapping): New function.
2107         (translate_isl_ast_node_user): Likewise.
2108         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
2109
2110         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
2111         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
2112         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
2113
2114 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
2115
2116         PR target/55701
2117         * config/arm/arm.md (setmem): New pattern.
2118         * config/arm/arm-protos.h (struct tune_params): New fields.
2119         (arm_gen_setmem): New prototype.
2120         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
2121         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
2122         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
2123         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
2124         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
2125         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
2126         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
2127         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
2128         (arm_const_inline_cost): New function.
2129         (arm_block_set_max_insns): New function.
2130         (arm_block_set_non_vect_profit_p): New function.
2131         (arm_block_set_vect_profit_p): New function.
2132         (arm_block_set_unaligned_vect): New function.
2133         (arm_block_set_aligned_vect): New function.
2134         (arm_block_set_unaligned_non_vect): New function.
2135         (arm_block_set_aligned_non_vect): New function.
2136         (arm_block_set_vect, arm_gen_setmem): New functions.
2137
2138 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
2139
2140         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
2141
2142 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
2143
2144         PR target/61855
2145         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
2146         out of #ifdef __OPTIMIZE__.
2147
2148 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
2149
2150         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
2151         different trapping status if -fnon-call-exceptions is enabled.
2152
2153 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
2154
2155         * expr.c (store_field): Handle VOIDmode for calls that return values
2156         in multiple locations.
2157
2158 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2159
2160         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
2161         (altivec_vsldoi_<mode>): Likewise.
2162
2163 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
2164
2165         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
2166         to the number of characters in the line.
2167
2168 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
2169
2170         * graphite-isl-ast-to-gimple.c: Add using of
2171         build_nonstandard_integer_type instead of int128_integer_type_node.
2172
2173 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
2174
2175         * toplev.c (output_stack_usage): Adjust the location of the warning.
2176
2177 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
2178
2179         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
2180         (*membar_storeload): Disable for LEON3.
2181
2182 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2183
2184         PR rtl-optimization/61461
2185         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
2186
2187 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
2188
2189         PR target/61794
2190         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
2191         Fix instruction constraint.
2192         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
2193
2194 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
2195
2196         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
2197
2198 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
2199
2200         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
2201         GNU coding standards.
2202         (nds32_register_move_cost): Likewise.
2203         (nds32_memory_move_cost): Likewise.
2204         (nds32_address_cost): Likewise.
2205
2206 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2207
2208         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
2209
2210 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
2211
2212         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
2213         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
2214         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
2215         (HAVE_sync_compare_and_swapqi): Define.
2216         (HAVE_sync_compare_and_swaphi): Likewise.
2217         (HAVE_sync_compare_and_swapsi): Likewise.
2218
2219 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
2220
2221         * config/mips/p5600.md: Add missing cpu tests.
2222
2223 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2224
2225         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
2226         (vmla_f64): Likewise.
2227         (vfms_f64): Likewise.
2228         (vmls_f64): Likewise.
2229
2230 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2231
2232         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
2233         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
2234
2235 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2236
2237         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
2238         (vmlal_high_lane_s32): Likewise.
2239         (vmlal_high_lane_u16): Likewise.
2240         (vmlal_high_lane_u32): Likewise.
2241         (vmlsl_high_lane_s16): Likewise.
2242         (vmlsl_high_lane_s32): Likewise.
2243         (vmlsl_high_lane_u16): Likewise.
2244         (vmlsl_high_lane_u32): Likewise.
2245
2246 2014-07-17  Terry Guo  <terry.guo@arm.com>
2247
2248         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
2249         (alus_reg): Renamed to alus_sreg.
2250         * config/arm/arm-fixed.md: Change type of non-dsp instructions
2251         from alu_reg to alu_sreg.  Change type of dsp instructions from
2252         alu_reg to alu_dsp_reg.
2253         * config/arm/thumb1.md: Likewise.
2254         * config/arm/thumb2.md: Likewise.
2255         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
2256         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
2257         with alu_sreg and alus_sreg.
2258         * config/arm/arm1026ejs.md (alu_op): Likewise.
2259         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
2260         * config/arm/arm926ejs.md (9_alu_op): Likewise.
2261         * config/arm/fa526.md (526_alu_op): Likewise.
2262         * config/arm/fa606te.md (606te_alu_op): Likewise.
2263         * config/arm/fa626te.md (626te_alu_op): Likewise.
2264         * config/arm/fa726te.md (726te_alu_op): Likewise.
2265         * config/arm/fmp626.md (mp626_alu_op): Likewise.
2266         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
2267         alu_sreg, alu_dsp_reg and alus_sreg.
2268         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
2269         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
2270         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
2271         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
2272         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
2273         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
2274         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
2275         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
2276         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
2277         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
2278         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
2279         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
2280         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
2281         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
2282         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
2283         alus_reg to alus_sreg.
2284
2285 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
2286
2287         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
2288         infinity format.
2289
2290 2014-07-17  Richard Biener  <rguenther@suse.de>
2291
2292         PR rtl-optimization/61801
2293         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
2294         don't set reg_pending_barrier if it appears in a debug-insn.
2295
2296 2014-07-16  DJ Delorie  <dj@redhat.com>
2297
2298         * config/rx/rx.c (rx_option_override): Fix alignment values.
2299         (rx_align_for_label): Likewise.
2300
2301 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
2302
2303         PR target/61737.
2304         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
2305         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2306         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
2307         functions.
2308         (cris_print_index, cris_print_operand, cris_constant_index_p)
2309         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
2310         (cris_address_cost): Ditto last CONSTANT_P.
2311         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
2312         callers changed.  Yield cris_offsettable_symbol for non-PIC
2313         constant symbolic expressions including labels.  Yield cris_unspec
2314         for all unspecs.
2315         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
2316         target to pic_offset_table_rtx for calls that will likely go
2317         through PLT, const0_rtx when they can't.  All callers changed.
2318         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
2319         symbolic expressions to be PICified.  Remove second, redundant,
2320         assert on can_create_pseudo_p returning non-zero.  Use
2321         replace_equiv_address_nv, not replace_equiv_address, for final
2322         operand update.
2323         * config/cris/cris.md ("movsi"): Move variable t to pattern
2324         toplevel. Adjust assert for new cris_symbol_type member.  Use
2325         CONSTANT_P instead of CONSTANT_ADDRESS_P.
2326         ("*movsi_internal") <case 9>: Make check for valid unspec operands
2327         for lapc stricter.
2328         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
2329         ("call", "call_value"): Use second incoming operand as a marker
2330         for pic-offset-table-register being used.
2331         ("*expanded_call_non_v32", "*expanded_call_v32")
2332         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
2333         second incoming operand to CALL, match cris_call_type_marker.
2334         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
2335         ("*expanded_call_side"): Ditto.  Fix typo in comment.
2336         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
2337         CONSTANT_P.
2338         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
2339         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
2340         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
2341         users changed.  Add members cris_offsettable_symbol and cris_unspec.
2342         (cris_symbol_type): Rename from cris_pic_symbol_type.
2343         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
2344         just CONSTANT_P.
2345         * config/cris/cris-protos.h (cris_symbol_type_of,
2346         cris_expand_pic_call_address): Adjust prototypes.
2347         (cris_legitimate_constant_p): New prototype.
2348
2349         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
2350         an existing tmake_file.  Don't add t-slibgcc and t-linux.
2351
2352 2014-07-17  Jason Merrill  <jason@redhat.com>
2353
2354         PR c++/61623
2355         * symtab.c (symtab_remove_from_same_comdat_group): Also
2356         set_comdat_group to NULL_TREE.
2357         (verify_symtab): Fix diagnostic.
2358
2359 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
2360
2361         PR target/61662
2362         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
2363
2364 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
2365
2366         Support location tracking for built-in macro tokens
2367         * input.h (is_location_from_builtin_token): New function declaration.
2368         * input.c (is_location_from_builtin_token): New function definition.
2369         * toplev.c (general_init): Tell libcpp what the pre-defined
2370         spelling location for built-in tokens is.
2371
2372 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
2373
2374         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
2375         on the FUNCTION_DECL.
2376
2377 2014-07-16  Richard Biener  <rguenther@suse.de>
2378
2379         PR other/61782
2380         * doc/extend.texi (always_inline): Clarify.
2381
2382 2014-07-15  Eric Christopher  <echristo@gmail.com>
2383
2384         * doc/invoke.texi (Link Options): Document -z option.
2385
2386 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
2387
2388         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
2389         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
2390
2391 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
2392
2393         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
2394
2395 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
2396
2397         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
2398         varpool_assemble_decl.
2399         * varpool.c (varpool_assemble_decl): Assert that node->definition is
2400         true.
2401
2402 2014-07-15  Michael Matz  <matz@suse.de>
2403
2404         PR rtl-optimization/61772
2405         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
2406
2407 2014-07-15  Richard Biener  <rguenther@suse.de>
2408
2409         * opts.c (default_options_table): Disable bit-ccp at -Og.
2410
2411 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
2412
2413         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
2414
2415 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
2416
2417         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
2418         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
2419         call langhook for unknown declaration.
2420         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
2421         * tree.h (DECL_ARGUMENTS): Update.
2422         * print-tree.c (print_node): Update.
2423         * tree-core.h (tree_decl_non_common): Remove arguments.
2424         (tree_function_decl): Add arguments.
2425
2426 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
2427
2428         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
2429
2430 2014-07-14  Richard Biener  <rguenther@suse.de>
2431
2432         PR tree-optimization/61779
2433         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
2434         simplifying a condition.
2435
2436 2014-07-14  Richard Biener  <rguenther@suse.de>
2437
2438         * builtins.c (c_strlen): Make only_value == 2 really only
2439         affect warning generation.
2440
2441 2014-07-14  Richard Biener  <rguenther@suse.de>
2442
2443         PR tree-optimization/61757
2444         PR tree-optimization/61783
2445         PR tree-optimization/61787
2446         * tree-ssa-dom.c (record_equality): Revert canonicalization
2447         change and add comment.
2448         (propagate_rhs_into_lhs): Revert previous fix, removing
2449         loop depth restriction again.
2450
2451 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2452
2453         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
2454         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
2455         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
2456         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
2457         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
2458         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
2459         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
2460
2461 2014-07-14  Richard Biener  <rguenther@suse.de>
2462
2463         * cgraph.h (decl_in_symtab_p): Make inline.
2464
2465 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
2466
2467         PR middle-end/61294
2468         * doc/invoke.texi (-Wmemset-transposed-args): Document.
2469
2470         PR target/61656
2471         * config/i386/i386.c (classify_argument): Don't merge classes above
2472         number of words.
2473
2474 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
2475
2476         * cgraph.h (symtab_node): Add nonzero_address.
2477         (decl_in_symtab_p): Break out from ...
2478         (symtab_get_node): ... here.
2479         * fold-const.c: Include cgraph.h
2480         (tree_single_nonzero_warnv_p): Use symtab to determine
2481         if symbol is non-zero.
2482         * symtab.c (symtab_node::nonzero_address): New method.
2483
2484 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
2485
2486         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
2487         forgotten in previous commit.
2488
2489 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
2490
2491         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
2492         on builtin types.
2493         * ipa-devirt.c: Include stor-layout.h and intl.h
2494         (odr_subtypes_equivalent_p): New function.
2495         (warn_odr): New function.
2496         (warn_type_mismatch): New function.
2497         (odr_types_equivalent_p): New function.
2498         (add_type_duplicate): Use it.
2499         * common.opt (Wodr): New flag.
2500         * doc/invoke.texi (Wodr): Document new warning.
2501
2502 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
2503
2504         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
2505         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
2506         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
2507         (varpool_get_constructor): Push CTORS_IN timevar.
2508         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
2509
2510 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
2511
2512         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
2513         Remove VOID_FTYPE_PUSHORT.
2514         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
2515         Change code to USHORT_FTYPE_VOID.
2516         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
2517         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
2518         (ix86_atomic_assign_expand_fenv): Update for
2519         __builtin_ia32_fnstsw changes.
2520         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
2521         (fnstsw): Change operand 0 to nonimmediate operand.
2522
2523 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
2524
2525         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
2526         (varpool_get_constructor): New function.
2527         (varpool_ctor_useable_for_folding_p): Break out from ...
2528         (ctor_for_folding): ... here; use varpool_get_constructor.
2529         (varpool_assemble_decl): Likewise.
2530         * lto-streamer.h (struct output_block): Turn cgraph_node
2531         to symbol filed.
2532         (lto_input_variable_constructor): Declare.
2533         * ipa-visibility.c (function_and_variable_visibility): Use
2534         varpool_get_constructor.
2535         * cgraph.h (varpool_get_constructor): Declare.
2536         (varpool_ctor_useable_for_folding_p): New function.
2537         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
2538         parameter; return error_mark_node for non-trivial constructors.
2539         (lto_write_tree_1, DFS_write_tree): Update use of
2540         get_symbol_initial_value.
2541         (output_function): Update initialization of symbol.
2542         (output_constructor): New function.
2543         (copy_function): Rename to ..
2544         (copy_function_or_variable): ... this one; handle vars too.
2545         (lto_output): Output variable sections.
2546         * lto-streamer-in.c (input_constructor): New function.
2547         (lto_read_body): Rename from ...
2548         (lto_read_body_or_constructor): ... this one; handle vars too.
2549         (lto_input_variable_constructor): New function.
2550         * ipa-prop.c (ipa_prop_write_jump_functions,
2551         ipa_prop_write_all_agg_replacement): Update.
2552         * lto-cgraph.c (compute_ltrans_boundary): Use it.
2553         (output_cgraph_opt_summary): Set symbol to NULL.
2554
2555 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
2556
2557         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
2558         non-polymorphic types.
2559         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
2560         * ipa-devirt.c (types_same_for_odr): Do not explode when one
2561         of types is not polymorphic.
2562
2563 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
2564
2565         * lra-constraints.c (remove_inheritance_pseudos): Process
2566         destination pseudo too.
2567
2568 2014-07-11  Rong Xu  <xur@google.com>
2569
2570         * gcov-tool.c (gcov_output_files): Fix build error introduced in
2571         commit r212448.
2572
2573 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2574
2575         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
2576         * config/avr/avr-devices.c (AVR_MCU): Same.
2577         (avr_mcu_types): add text start value to end of device list.
2578         * config/avr/avr-mcus.def: Add text section start for all devices.
2579         (ata5782): Add new avr5 device.
2580         (ata5831): Same.
2581         * config/avr/avr-tables.opt: Regenerate.
2582         * config/avr/avr.h: Add declaration for text section start handler.
2583         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
2584         SPEC functions.
2585         (LINK_SPEC): Include text section start handler to linker spec.
2586         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
2587         pass -Ttext option to linker if the text section start for the device
2588         is not zero.
2589         * config/avr/t-multilib: Regenerate.
2590         * doc/avr-mmcu.texi: Regenerate.
2591
2592 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
2593
2594         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
2595         * config/rs6000/aix52.h (LINK_SPEC): Same.
2596         * config/rs6000/aix53.h (LINK_SPEC): Same.
2597         * config/rs6000/aix61.h (LINK_SPEC): Same.
2598         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
2599
2600 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
2601
2602         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
2603         (graphite_verify): New function.
2604         (ivs_params_clear): New function.
2605         (gcc_expression_from_isl_ast_expr_id): New function.
2606         (gcc_expression_from_isl_expr_int): New function.
2607         (binary_op_to_tree): New function.
2608         (ternary_op_to_tree): New function.
2609         (unary_op_to_tree): New function.
2610         (nary_op_to_tree): New function.
2611         (gcc_expression_from_isl_expr_op): New function.
2612         (gcc_expression_from_isl_expression): New function.
2613         (graphite_create_new_loop): New function.
2614         (translate_isl_ast_for_loop): New function.
2615         (get_upper_bound): New function.
2616         (graphite_create_new_loop_guard): New function.
2617         (translate_isl_ast_node_for): New function.
2618         (translate_isl_ast): New function.
2619         (add_parameters_to_ivs_params): New function.
2620         (scop_to_isl_ast): New parameter ip.
2621         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
2622
2623 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
2624
2625         * config/xtensa/predicates.md (call expander): Update for
2626         DECL_SECTION_NAME being string.
2627
2628 2014-07-11  Richard Biener  <rguenther@suse.de>
2629
2630         PR middle-end/61473
2631         * builtins.c (fold_builtin_memory_op): Inline memory moves that
2632         can be implemented with a single load followed by a single store.
2633         (c_strlen): Only warn when only_value is not 2.
2634
2635 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
2636
2637         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
2638
2639 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
2640
2641         PR target/61561
2642         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
2643         (*movhi_bytes): Likewise.
2644         (*arm_movqi_insn): Likewise.
2645
2646 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
2647
2648         PR target/56858
2649         * config/alpha/alpha.c: Include tree-pass.h, context.h
2650         and pass_manager.h.
2651         (pass_data_handle_trap_shadows): New pass.
2652         (pass_handle_trap_shadows::gate): New pass gate function.
2653         (make_pass_handle_trap_shadows): New function.
2654         (rest_of_handle_trap_shadows): Ditto.
2655
2656         (alpha_align_insns_1): Rename from alpha_align_insns.
2657         (pass_data_align_insns): New pass.
2658         (pass_align_insns::gate): New pass gate function.
2659         (make_pass_aling_insns): New function.
2660         (rest_of_align_insns): Ditto.
2661         (alpha_align_insns): Ditto.
2662
2663         (alpha_option_override): Declare handle_trap_shadows info
2664         and align_insns_info.  Register handle_trap_shadows and align_insns
2665         passes here.
2666         (alpha_reorg): Do not call alpha_trap_shadows and
2667         alpha_align_insn from here.
2668
2669         (alpha_pad_function_end): Do not skip BARRIERs.
2670
2671 2014-07-10  Rong Xu  <xur@google.com>
2672
2673         Add gcov-tool: an offline gcda profile processing tool support.
2674         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
2675         (gcov_is_error): Ditto.
2676         (gcov_read_string): Ditto.
2677         (gcov_read_sync): Ditto.
2678         * gcov-io.h: Move counter defines to gcov-counter.def.
2679         * gcov-dump.c (tag_counters): Use gcov-counter.def.
2680         * coverage.c: Ditto.
2681         * gcov-tool.c: Offline gcda profile processing tool.
2682         (unlink_gcda_file): Remove one gcda file.
2683         (unlink_profile_dir): Remove gcda files from the profile path.
2684         (gcov_output_files): Output gcda files to an output dir.
2685         (profile_merge): Merge two profiles in directory.
2686         (print_merge_usage_message): Print merge usage.
2687         (merge_usage): Print merge usage and exit.
2688         (do_merge): Driver for profile merge sub-command.
2689         (profile_rewrite): Rewrite profile.
2690         (print_rewrite_usage_message): Print rewrite usage.
2691         (rewrite_usage): Print rewrite usage and exit.
2692         (do_rewrite): Driver for profile rewrite sub-command.
2693         (print_usage): Print gcov-info usage and exit.
2694         (print_version): Print gcov-info version.
2695         (process_args): Process arguments.
2696         (main): Main routine for gcov-tool.
2697         * Makefile.in: Build and install gcov-tool.
2698         * gcov-counter.def: New file split from gcov-io.h.
2699         * doc/gcc.texi: Include gcov-tool.texi.
2700         * doc/gcov-tool.texi: Document for gcov-tool.
2701
2702 2014-07-10  Richard Biener  <rguenther@suse.de>
2703
2704         PR tree-optimization/61757
2705         * tree-ssa-dom.c (loop_depth_of_name): Restore.
2706         (propagate_rhs_into_lhs): Revert part of last change.
2707
2708 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
2709
2710         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
2711         FUNCTION_DECLs.
2712
2713 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
2714
2715         PR middle-end/53590
2716         * function.c (allocate_struct_function): Revert r188667 change.
2717
2718         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
2719
2720 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
2721
2722         * doc/install.texi: Remove links to defunct package providers for
2723         Solaris.
2724
2725 2014-07-09  Tom de Vries  <tom@codesourcery.com>
2726
2727         * final.c (get_call_fndecl): Declare.
2728         (self_recursive_call_p): New function.
2729         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
2730
2731 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
2732
2733         * ipa-devirt.c (record_node): Walk through aliases.
2734
2735 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
2736
2737         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
2738
2739 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
2740
2741         Revert:
2742         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
2743
2744 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
2745
2746         * ipa-visibility.c (function_and_variable_visibility): Remove
2747         temporary hack disabling local aliases on AIX.
2748
2749 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
2750
2751         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
2752         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
2753
2754 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
2755
2756         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
2757         * rs6000/rs6000.c: Inline output of .set instruction.
2758         (declare_alias_data): New struct.
2759         (rs6000_declare_alias): New function.
2760         (rs6000_xcoff_declare_function_name): Use it.
2761         (rs6000_xcoff_declare_object_name): New function.
2762         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
2763         (ASM_OUTPUT_DEF): Turn to empty definition.
2764
2765 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
2766
2767         PR bootstrap/61679
2768         * hash-table.h: use hash_table::value_type instead of
2769         Descriptor::value_type in the return types of several methods.
2770
2771 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
2772
2773         * tree-pass.h (pass_data): Remove has_execute member.
2774         * passes.c (execute_one_pass): Don't check pass->has_execute.
2775         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
2776         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
2777         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
2778         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
2779         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
2780         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
2781         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
2782         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
2783         gimple-low.c, gimple-ssa-isolate-paths.c,
2784         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
2785         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
2786         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
2787         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
2788         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
2789         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
2790         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
2791         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
2792         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
2793         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
2794         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
2795         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
2796         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
2797         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2798         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
2799         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
2800         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
2801         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
2802         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
2803         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
2804         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
2805         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
2806         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
2807         web.c: Remove initializer for pass_data::has_execute.
2808
2809 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
2810
2811         * graphite-htab.h: Use hash_map instead of hash_table.
2812         * graphite-clast-to-gimple.c: Adjust.
2813         * passes.c: Use hash_map instead of hash_table.
2814         * sese.c: Likewise.
2815         * sese.h: Remove now unused code.
2816
2817 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
2818
2819         PR target/61599
2820         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
2821         than zero.
2822
2823 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
2824
2825         PR rtl-optimization/61673
2826         * combine.c (simplify_comparison): Test just mode's sign bit
2827         in tmode rather than the sign bit and any bits above it.
2828
2829 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
2830
2831         * graphite-isl-ast-to-gimple.c (generate_isl_context):
2832         Add __isl_give to the declaration.
2833         (generate_isl_schedule): Likewise.
2834         (scop_to_isl_ast): Likewise.
2835
2836 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2837
2838         * config/arm/arm.c (cortexa5_extra_costs): New table.
2839         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
2840
2841 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
2842
2843         PR tree-optimization/61725
2844         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
2845         range, use range_includes_zerop_p instead of integer_zerop on
2846         vr0->min, only use log2 of max if min is not negative.
2847
2848 2014-07-08  Richard Biener  <rguenther@suse.de>
2849
2850         * tree-ssa-dom.h (loop_depth_of_name): Remove.
2851         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
2852         restriction on loop depth difference.
2853         (record_equality): Likewise.
2854         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
2855         (loop_depth_of_name): Remove.
2856         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
2857         restriction on loop depth difference.
2858         (init_copy_prop): Likewise.
2859
2860 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
2861
2862         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
2863         parameter.
2864         (walk_aliased_vdefs): Likewise.
2865         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
2866         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
2867         (detect_type_change_from_memory_writes): Check if entry was reached.
2868
2869 2014-07-08  Richard Biener  <rguenther@suse.de>
2870
2871         PR tree-optimization/61681
2872         * tree-ssa-structalias.c (find_what_var_points_to): Expand
2873         NONLOCAL inside ESCAPED.
2874
2875 2014-07-08  Richard Biener  <rguenther@suse.de>
2876
2877         PR tree-optimization/61680
2878         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2879         Handle properly all read-write dependences with group accesses.
2880
2881 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
2882
2883         PR tree-optimization/61576
2884         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
2885         block containing reduction statement is predecessor of phi basi block.
2886
2887 2014-07-08  Marek Polacek  <polacek@redhat.com>
2888
2889         PR c/60226
2890         * fold-const.c (round_up_loc): Change the parameter type.
2891         Remove assert.
2892         * fold-const.h (round_up_loc): Adjust declaration.
2893         * stor-layout.c (finalize_record_size): Check for too large types.
2894
2895 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
2896
2897         * symtab.c: Include calls.h.
2898         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
2899
2900 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
2901
2902         * config/rs6000/rs6000.c (output_vec_const_move): Handle
2903         little-endian code generation.
2904         * config/rs6000/spe.md (spe_evmergehi): Rename to...
2905         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
2906         (spe_evmergehilo): Rename to...
2907         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
2908         (spe_evmergelo): Rename to...
2909         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
2910         (spe_evmergelohi): Rename to...
2911         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
2912         (spe_evmergehi, spe_evmergehilo): New expanders.
2913         (spe_evmergelo, spe_evmergelohi): Likewise.
2914         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
2915         (*frob_tf_ti): Likewise.
2916         (*frob_<mode>_di_2): Likewise.
2917         (*frob_tf_di_8_2): Likewise.
2918         (*frob_di_<mode>): Likewise.
2919         (*frob_ti_tf): Likewise.
2920         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
2921         (*frob_ti_<mode>_8_2): Likewise.
2922         (*frob_ti_tf_2): Likewise.
2923         (mov_si<mode>_e500_subreg0): Rename to...
2924         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
2925         endianness only.
2926         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
2927         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
2928         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
2929         the big endianness only.
2930         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
2931         (*mov_si<mode>_e500_subreg0_2): Rename to...
2932         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
2933         big big endianness only.
2934         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
2935         (*mov_si<mode>_e500_subreg4): Rename to...
2936         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
2937         endianness only.
2938         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
2939         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
2940         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
2941         the big endianness only.
2942         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
2943         pattern.
2944         (*mov_si<mode>_e500_subreg4_2): Rename to...
2945         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
2946         endianness only.
2947         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
2948         (*mov_sitf_e500_subreg8): Rename to...
2949         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
2950         endianness only.
2951         (*mov_sitf_e500_subreg8_le): New instruction pattern.
2952         (*mov_sitf_e500_subreg8_2): Rename to...
2953         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
2954         endianness only.
2955         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
2956         (*mov_sitf_e500_subreg12): Rename to...
2957         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
2958         endianness only.
2959         (*mov_sitf_e500_subreg12_le): New instruction pattern.
2960         (*mov_sitf_e500_subreg12_2): Rename to...
2961         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
2962         endianness only.
2963         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
2964
2965 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2966
2967         * asan.c (instrument_strlen_call): Do not instrument first byte
2968         in strlen if already instrumented.
2969
2970 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2971
2972         * config/arm/arm.opt (mwords-little-endian): Delete.
2973         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
2974         of TARGET_LITTLE_WORDS.
2975         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
2976         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
2977         warning.
2978         * doc/invoke.texi: Remove references to -mwords-little-endian.
2979
2980 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
2981
2982         * expmed.c (struct init_expmed_rtl): Change all fields but
2983         pow2 and cint from struct rtx_def to rtx.
2984         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
2985         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
2986         at the end again.
2987
2988 2014-07-06  Marek Polacek  <polacek@redhat.com>
2989
2990         PR c/6940
2991         * doc/invoke.texi: Document -Wsizeof-array-argument.
2992
2993 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
2994
2995         * wide-int.h (wide_int_storage): Change declaration from struct
2996         to class.
2997
2998 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
2999
3000         * cgraph.c (cgraph_create_indirect_edge): Update call of
3001         get_polymorphic_call_info.
3002         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
3003         (possible_polymorphic_call_targets): Add parameter call.
3004         (decl_maybe_in_construction_p): New predicate.
3005         (get_polymorphic_call_info): Add parameter call;
3006         use decl_maybe_in_construction_p.
3007         * gimple-fold.c (fold_gimple_assign): Update use of
3008         possible_polymorphic_call_targets.
3009         (gimple_fold_call): Likewise.
3010         * ipa-prop.c: Inlcude calls.h
3011         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
3012         (param_type_may_change_p): New predicate.
3013         (detect_type_change_from_memory_writes): Break out from ...
3014         (detect_type_change): ... this one; use param_type_may_change_p.
3015         (detect_type_change_ssa): Use param_type_may_change_p.
3016         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
3017
3018 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
3019
3020         PR target/49423
3021         * config/arm/arm-protos.h (arm_legitimate_address_p,
3022         arm_is_constant_pool_ref): Add prototypes.
3023         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
3024         (arm_is_constant_pool_ref) New function.
3025         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
3026         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
3027         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
3028         operand. Remove pool_range and neg_pool_range attributes.
3029         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
3030         pool_range and neg_pool_range attributes.
3031         * config/arm/constraints.md (Uh): New constraint.
3032         (Uq): Don't allow constant pool references.
3033
3034 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
3035
3036         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
3037         (move_lo_quad_internal_be_<mode>): Likewise.
3038         (move_lo_quad_<mode>): Convert to define_expand.
3039         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
3040         (aarch64_simd_move_hi_quad_be_<mode>): New.
3041         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
3042         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
3043         (aarch64_combinez_be<mode>): New.
3044         (aarch64_combine<mode>): Convert to define_expand.
3045         (aarch64_combine_internal<mode>): New.
3046         (aarch64_simd_combine<mode>): Remove bogus RTL description.
3047
3048 2014-07-04  Tom de Vries  <tom@codesourcery.com>
3049
3050         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
3051         combination of earlyclobber and read/write modifiers.
3052
3053 2014-07-04  Tom de Vries  <tom@codesourcery.com>
3054
3055         * config/aarch64/aarch64-simd.md
3056         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
3057
3058 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
3059
3060         PR target/61714
3061         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
3062
3063 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
3064
3065         PR middle-end/61654
3066         * cgraphunit.c (expand_thunk): Call free_dominance_info.
3067
3068         PR tree-optimization/61684
3069         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
3070         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
3071
3072 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3073             Kito Cheng  <kito@0xlab.org>
3074             Monk Chiang  <sh.chiang04@gmail.com>
3075
3076         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
3077         (nds32_symbol_load_store_p): Move to ...
3078         (nds32_fp_as_gp_check_available): Move to ...
3079         * config/nds32/nds32-fp-as-gp.c: ... here.
3080         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
3081         extern declaration.
3082
3083 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3084             Kito Cheng  <kito@0xlab.org>
3085             Monk Chiang  <sh.chiang04@gmail.com>
3086
3087         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
3088         (nds32_expand_store_multiple): Move to ...
3089         (nds32_expand_movmemqi): Move to ...
3090         * config/nds32/nds32-memory-manipulation.c: ... here.
3091
3092 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3093             Kito Cheng  <kito@0xlab.org>
3094             Monk Chiang  <sh.chiang04@gmail.com>
3095
3096         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
3097         (nds32_output_casesi_pc_relative): Move to ...
3098         (nds32_output_casesi): Move to ...
3099         (nds32_mem_format): Move to ...
3100         (nds32_output_16bit_store): Move to ...
3101         (nds32_output_16bit_load): Move to ...
3102         (nds32_output_32bit_store): Move to ...
3103         (nds32_output_32bit_load): Move to ...
3104         (nds32_output_32bit_load_s): Move to ...
3105         (nds32_output_stack_push): Move to ...
3106         (nds32_output_stack_pop): Move to ...
3107         * config/nds32/nds32-md-auxiliary.c: ... here.
3108
3109 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3110             Ling-Hua Tseng  <uranus@tinlans.org>
3111
3112         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
3113         the purpose of this file.
3114
3115 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3116             Kito Cheng  <kito@0xlab.org>
3117             Monk Chiang  <sh.chiang04@gmail.com>
3118
3119         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
3120         (nds32_address_cost): Move implementation to ...
3121         * config/nds32/nds32-cost.c: ... here.
3122         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
3123         (nds32_address_cost_impl): Declare.
3124
3125 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3126             Kito Cheng  <kito@0xlab.org>
3127             Monk Chiang  <sh.chiang04@gmail.com>
3128
3129         * config/nds32/nds32.c
3130         (nds32_consecutive_registers_load_store_p): Move to ...
3131         (nds32_valid_multiple_load_store): Move to ...
3132         (nds32_valid_stack_push_pop): Move to ...
3133         (nds32_can_use_bclr_p): Move to ...
3134         (nds32_can_use_bset_p): Move to ...
3135         (nds32_can_use_btgl_p): Move to ...
3136         (nds32_can_use_bitci_p): Move to ...
3137         * config/nds32/nds32-predicates.c: ... here.
3138
3139 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3140             Kito Cheng  <kito@0xlab.org>
3141             Monk Chiang  <sh.chiang04@gmail.com>
3142
3143         * config/nds32/nds32.c
3144         (nds32_expand_builtin_null_ftype_reg): Move to ...
3145         (nds32_expand_builtin_reg_ftype_imm): Move to ...
3146         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
3147         (nds32_init_builtins): Move implementation to ...
3148         (nds32_expand_builtin): Move implementation to ...
3149         * config/nds32/nds32-intrinsic.c: ... here.
3150         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
3151         (nds32_expand_builtin_impl): Declare.
3152
3153 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3154             Kito Cheng  <kito@0xlab.org>
3155             Monk Chiang  <sh.chiang04@gmail.com>
3156
3157         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
3158         (nds32_emit_section_tail_template): Move to ...
3159         (nds32_emit_isr_jmptbl_section): Move to ...
3160         (nds32_emit_isr_vector_section): Move to ...
3161         (nds32_emit_isr_reset_conten): Move to ...
3162         (nds32_check_isr_attrs_conflict): Move to ...
3163         (nds32_construct_isr_vectors_information): Move to ...
3164         (nds32_asm_file_start): Move implementation to ...
3165         (nds32_asm_file_end): Move implementation to ...
3166         * config/nds32/nds32-isr.c: ... here.
3167         * config/nds32/nds32-protos.h
3168         (nds32_check_isr_attrs_conflict): Declare.
3169         (nds32_construct_isr_vectors_information): Declare.
3170         (nds32_asm_file_start_for_isr): Declare.
3171         (nds32_asm_file_end_for_isr): Declare.
3172
3173 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
3174             Kito Cheng  <kito@0xlab.org>
3175             Monk Chiang  <sh.chiang04@gmail.com>
3176
3177         * config.gcc (nds32*): Add new modules to extra_objs.
3178         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
3179         (nds32be-*-*): Likewise.
3180         * config/nds32/nds32-cost.c: New file.
3181         * config/nds32/nds32-fp-as-gp.c: New file.
3182         * config/nds32/nds32-intrinsic.c: New file.
3183         * config/nds32/nds32-isr.c: New file.
3184         * config/nds32/nds32-md-auxiliary.c: New file.
3185         * config/nds32/nds32-memory-manipulation.c: New file.
3186         * config/nds32/nds32-pipelines-auxiliary.c: New file.
3187         * config/nds32/nds32-predicates.c: New file.
3188         * config/nds32/t-nds32: New file.
3189
3190 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
3191
3192         PR tree-optimization/61682
3193         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
3194         using cases and when one of the operands is equal to 1.
3195
3196 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
3197
3198         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
3199         ashr<mode>3): Correct mode of operands[2].
3200         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
3201         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
3202         Correct mode of operands[2].  Fix split condition.
3203
3204 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
3205
3206         * arm.md (arch): Add armv6_or_vfpv3.
3207         (arch_enabled): Add test for the above.
3208         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
3209         on VFP9.
3210         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
3211
3212 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
3213
3214         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
3215         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
3216         HWI 1 and negate the unsigned value.
3217         * expmed.c (expand_sdiv_pow2): For modes wider than word always
3218         use AND instead of shift.
3219         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
3220
3221 2014-07-03  Marek Polacek  <polacek@redhat.com>
3222
3223         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
3224         (-fsanitize=float-divide-by-zero): Move to the table with
3225         -fsanitize=undefined suboptions.
3226         (-fsanitize=float-cast-overflow): Likewise.
3227
3228 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
3229
3230         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
3231         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
3232         endianness.
3233
3234 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3235
3236         * loop-invariant.c (struct invariant): Add a new member: eqno;
3237         (find_identical_invariants): Update eqno;
3238         (create_new_invariant): Init eqno;
3239         (get_inv_cost): Compute comp_cost with eqno;
3240
3241 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
3242
3243         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
3244         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
3245         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
3246         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
3247         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
3248
3249 2014-07-02  Christian Bruel  <christian.bruel@st.com>
3250
3251         PR target/29349
3252         PR target/53513
3253         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
3254         (make_preds_opaque): Delete.
3255         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
3256         (commit_mode_sets): New function.
3257         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
3258         Process all modes at once.
3259         * basic-block.h (pre_edge_lcm_avs): Declare.
3260         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
3261         Call clear_aux_for_edges. Fix comments.
3262         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
3263         (pre_edge_rev_lcm): Idem.
3264         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
3265         parameter.
3266         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
3267         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
3268         Idem.
3269         * config/i386/i386.c (x96_emit_mode_set): Idem.
3270         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
3271         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
3272         (fpscr_toggle) Disallow from delay slot.
3273         * target.def (emit_mode_set): Add prev_mode parameter.
3274         * doc/tm.texi: Regenerate.
3275
3276 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3277
3278         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
3279         variable i.
3280
3281 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
3282
3283         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
3284         vtable_pointer_value_to_vtable): Constify.
3285         (contains_polymorphic_type_p): Declare.
3286         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
3287         vtable_pointer_value_to_vtable): Constify.
3288         (contains_polymorphic_type_p): New predicate.
3289         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
3290         polymorphic types.
3291         (ipa_set_ancestor_jf): Likewise.
3292         (detect_type_change): Return false in easy cases.
3293         (compute_complex_assign_jump_func): Require type to contain
3294         polymorphic type.
3295         (compute_known_type_jump_func): Likewise.
3296
3297 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
3298
3299         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
3300         Remove.
3301         (type_in_anonymous_namespace_p): Constify argument.
3302         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
3303         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
3304         (main_odr_variant): New function.
3305         (hash_type_name): Make static; update assert; do not ICE on
3306         non-records.
3307         (types_same_for_odr): Bring here from tree.c; simplify and remove
3308         old structural comparing code that doesn't work for templates.
3309         (odr_hasher::equal): Update assert.
3310         (add_type_duplicate): Return true when bases should be computed;
3311         replace incomplete loader by complete; do not output duplicated
3312         warnings; do not ICE on non-records; set odr_violated flag.
3313         (get_odr_type): Be ready to replace incomplete type by complete
3314         one; work on ODR variants instead of main variants; reorder item
3315         in array so bases have still smaller indexes.
3316         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
3317         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
3318
3319 2014-07-01  Cary Coutant  <ccoutant@google.com>
3320
3321         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
3322         lookup.
3323         (resolve_addr_in_expr): When replacing the rtx in a location list
3324         entry, get a new address table entry.
3325         (dwarf2out_finish): Call index_location_lists even if there are no
3326         addr_index_table entries yet.
3327
3328 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
3329
3330         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
3331         change for not being obvious.
3332
3333 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
3334
3335         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
3336         unused argument.
3337
3338 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3339
3340         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
3341         (vcagt_f64): Likewise.
3342         (vcale_f64): Likewise.
3343         (vcaled_f64): Likewise.
3344         (vcales_f32): Likewise.
3345         (vcalt_f64): Likewise.
3346         (vcaltd_f64): Likewise.
3347         (vcalts_f32): Likewise.
3348
3349 2014-07-01  Marek Polacek  <polacek@redhat.com>
3350
3351         * doc/invoke.texi: Document -Wint-conversion.
3352
3353 2014-07-01  Marek Polacek  <polacek@redhat.com>
3354
3355         PR c/58286
3356         * doc/invoke.texi: Document -Wincompatible-pointer-types.
3357
3358 2014-07-01  Martin Liska  <mliska@suse.cz>
3359
3360         IPA REF alias refactoring
3361         * cgraph.h (iterate_direct_aliases): New function.
3362         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
3363         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
3364         FOR_EACH_ALIAS added.
3365         (cgraph_for_node_and_aliases): Likewise.
3366         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
3367         * ipa-inline.c (reset_edge_caches): Likewise.
3368         (update_caller_keys): Likewise.
3369         * trans-mem.c (ipa_tm_execute): Likewise.
3370         *varpool.c (varpool_analyze_node): Likewise.
3371         (varpool_for_node_and_aliases): Likewise.
3372         * ipa-ref.h (first_alias): New function.
3373         (last_alias): Likewise.
3374         (has_aliases_p): Likewise.
3375         * ipa-ref.c (ipa_ref::remove_reference): Removal function
3376         is sensitive to IPA_REF_ALIASes.
3377         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
3378         are put at the beginning of the list.
3379         (symtab_node::iterate_direct_aliases): New function.
3380
3381 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3382
3383         Revert:
3384         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
3385         type is complete.
3386         (write_ts_type_common_tree_pointers): Do not stream fields not set
3387         for incomplete types; do not stream duplicated fields for variants;
3388         sanity check that variant and type match.
3389         (write_ts_type_non_common_tree_pointers): Likewise.
3390         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
3391         TYPE_SIZE whether type is complete.
3392         (lto_input_ts_type_common_tree_pointers): Do same changes as in
3393         write_ts_type_common_tree_pointers
3394         (lto_input_ts_type_non_common_tree_pointers): Likewise.
3395
3396 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
3397
3398         * var-tracking.c (add_stores): Return instead of asserting if old
3399         and new values for conditional store are the same.
3400
3401 2014-06-30  Richard Henderson  <rth@redhat.com>
3402
3403         PR rtl-opt/61608
3404         PR target/39284
3405         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
3406         the cfg if there were any changes.
3407         * passes.def: Revert move of peephole2 after reorder_blocks;
3408         move duplicate_computed_gotos before peephole2.
3409
3410 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
3411
3412         * except.c (emit_note_eh_region_end): New helper function.
3413         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
3414         emit EH_REGION_END note.
3415         * jump.c (cleanup_barriers): Do not split a call and its
3416         corresponding CALL_ARG_LOCATION note.
3417
3418 2014-06-30  Jeff Law  <law@redhat.com>
3419
3420         PR tree-optimization/61607
3421         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
3422         deeper into the SSA_NAME_VALUE chain.
3423
3424 2014-06-30  Marek Polacek  <polacek@redhat.com>
3425
3426         * convert.c (convert_to_integer): Don't instrument conversions if the
3427         function has no_sanitize_undefined attribute.
3428         * ubsan.c: Don't run the ubsan pass if the function has
3429         no_sanitize_undefined attribute.
3430
3431 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
3432
3433         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
3434         -fsanitize=undefined suboptions.
3435
3436 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
3437
3438         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
3439         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
3440         against bigendian and adjust indices.
3441
3442 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
3443
3444         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
3445
3446 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3447
3448         PR target/61633
3449         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
3450         Add alternative; make early clobber.  Adjust both split patterns
3451         to use operand 0 as the working register.
3452
3453 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
3454
3455         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
3456         as ira_object_id_map might be NULL, or 1.
3457
3458 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3459
3460         * loop-invariant.c (get_inv_cost): Handle register class.
3461         (gain_for_invariant): Check the register pressure of the inv
3462         and its overlapped register class, other than all.
3463
3464 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
3465
3466         * doc/invoke.texi (Optimize Options): Fix descriptions of
3467         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
3468
3469 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
3470
3471         * doc/extend.texi (Function Attributes): Update 'naked' attribute
3472         documentation.
3473
3474 2014-06-29  Tobias Grosser <tobias@grosser.es>
3475
3476         PR bootstrap/61650
3477         * graphite-isl-ast-to-gimple.c: Add missing guards.
3478
3479 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
3480
3481         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
3482         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
3483         * flag-types.h: Add new enum fgraphite_generator.
3484         * graphite-isl-ast-to-gimple.c: New.
3485         * graphite-isl-ast-to-gimple.h: New.
3486         * graphite.c (graphite_transform_loops): Add choice of Graphite
3487         code generator, which depends on flag_graphite_code_gen.
3488
3489 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
3490
3491         * graphite-dependences.c (subtract_commutative_associative_deps):
3492         Add NULL checking of the following variables: must_raw_no_source,
3493         may_raw_no_source, must_war_no_source, may_war_no_source,
3494         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
3495         must_war, may_war, must_waw, may_waw.
3496
3497 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
3498
3499         * graphite-clast-to-gimple.c: gloog is renamed to
3500         graphite_regenerate_ast_cloog.  gloog_error is renamed to
3501         graphite_regenerate_error.
3502         * graphite-clast-to-gimple.h: The definition of the struct
3503         bb_pbb_def is moved to graphite-htab.h.
3504         Add inclusion of the hash-table.h.
3505         * graphite-htab.h: The declaration of the function gloog is moved
3506         to graphite-clast-to-gimple.h and renamed to
3507         graphite_regenerate_ast_cloog.
3508         * graphite.c (graphite_transform_loops): gloog is renamed
3509         to graphite_regenerate_ast_cloog.
3510
3511 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3512
3513         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
3514         type is complete.
3515         (write_ts_type_common_tree_pointers): Do not stream fields not set
3516         for incomplete types; do not stream duplicated fields for variants;
3517         sanity check that variant and type match.
3518         (write_ts_type_non_common_tree_pointers): Likewise.
3519         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
3520         TYPE_SIZE whether type is complete.
3521         (lto_input_ts_type_common_tree_pointers): Do same changes as in
3522         write_ts_type_common_tree_pointers
3523         (lto_input_ts_type_non_common_tree_pointers): Likewise.
3524
3525 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3526
3527         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
3528
3529 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3530
3531         * tree-inline.c (remap_type_1): Do not duplicate fields
3532         that are shared in between type and its main variant.
3533
3534 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3535
3536         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
3537         of the type.
3538         (ipa_set_ancestor_jf) Likewise.
3539         (check_stmt_for_type_change): Check that we work on main variant.
3540         (detect_type_change): Look into main variant.
3541         (compute_known_type_jump_func): Check that main variant has BINFO.
3542
3543 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3544
3545         * ipa-devirt.c (set_type_binfo): New function.
3546         (add_type_duplicate): Use it.
3547         (get_odr_type): Sanity check that binfos points to main variants.
3548         (get_class_context): Be sure the context's outer_type is main variant.
3549         (contains_type_p): Walk main variant.
3550         (get_polymorphic_call_info_for_decl): Set outer_type to be
3551         main variant.
3552         (get_polymorphic_call_info): Likewise.
3553         (possible_polymorphic_call_targets): Sanity check that we operate
3554         on main variant.
3555
3556 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
3557
3558         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
3559
3560 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3561
3562         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
3563         accidental change due to wide-int branch merge.
3564
3565 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3566
3567         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
3568         compressed debug support.
3569         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
3570         * configure: Regenerate.
3571         * config.in: Regenerate.
3572         * common.opt (compressed_debug_sections): New enum.
3573         (gz, gz=): New options.
3574         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
3575         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
3576         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
3577         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
3578         LINK_COMPRESS_DEBUG_SPEC.
3579         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
3580         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
3581         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
3582         (Debugging Options): Document -gz[=type].
3583
3584 2014-06-27  Martin Jambor  <mjambor@suse.cz>
3585
3586         PR ipa/61160
3587         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
3588         args_to_skip, use those from node instead.  Copy args_to_skip and
3589         combined_args_to_skip from node to the new thunk.
3590         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
3591         (cgraph_create_virtual_clone): Moved computation of
3592         combined_args_to_skip...
3593         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
3594
3595 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
3596
3597         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
3598         redundant diagnostic machinary.
3599
3600 2014-06-27  Richard Biener  <rguenther@suse.de>
3601
3602         * tree-ssa-math-opts.c (bswap_replace): Fix
3603         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
3604
3605 2014-06-27  Martin Liska  <mliska@suse.cz>
3606
3607         * gimple.h (gimple_location_safe): New function introduced.
3608         * cgraphunit.c (walk_polymorphic_call_targets): Usage
3609         of gimple_location_safe replaces gimple_location.
3610         (gimple_fold_call): Likewise.
3611         * ipa-devirt.c (ipa_devirt): Likewise.
3612         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3613         * ipa.c (walk_polymorphic_call_targets): Likewise.
3614         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
3615
3616 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
3617
3618         PR tree-optimization/57233
3619         PR tree-optimization/61299
3620         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
3621         functions.
3622         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
3623         would be lowered to scalar shifts, check if corresponding
3624         shifts and vector BIT_IOR_EXPR are supported and don't lower
3625         or lower just to narrower vector type in that case.
3626         * expmed.c (expand_shift_1): Fix up handling of vector
3627         shifts and rotates.
3628
3629 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
3630
3631         PR target/61586
3632         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
3633
3634 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
3635
3636         * doc/invoke.texi (-fsemantic-interposition): Document.
3637         * common.opt (fsemantic-interposition): New flag.
3638         * varasm.c (decl_replaceable_p): Use it.
3639
3640 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3641
3642         PR target/61542
3643         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
3644         extraction other than index 3.
3645
3646 2014-06-26  Teresa Johnson  <tejohnson@google.com>
3647
3648         * doc/invoke.texi: Fix typo.
3649         * dumpfile.c: Add support for documented -fdump-* options
3650         optimized/missed/note/optall.
3651
3652 2014-06-26  Martin Jambor  <mjambor@suse.cz>
3653
3654         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
3655         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
3656         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
3657         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
3658         * opts.c (default_options_optimization): Set
3659         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
3660         * doc/invoke.texi (allow-load-data-races)
3661         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
3662         (allow-store-data-races): Document the new default.
3663
3664 2014-06-26  Martin Jambor  <mjambor@suse.cz>
3665
3666         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
3667         renamed to ipa_impossible_devirt_target.  Fix typo.
3668         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
3669         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
3670         ipa_impossible_devirt_target.
3671
3672 2014-06-26  Richard Biener  <rguenther@suse.de>
3673
3674         PR tree-optimization/61607
3675         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
3676         explaining why we restrict copies on loop depth.
3677         * tree-ssa-dom.c (cprop_operand): Remove restriction on
3678         on loop depth.
3679         (record_equivalences_from_phis): Instead add it here.
3680
3681 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
3682
3683         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
3684         (LTO_WRAPPER_OBJS): New variable.
3685         (lto-wrapper$(exeext)): Use it.
3686         * collect2.c: Include "collect-utils.h".
3687         (verbose, debug): Remove variables.
3688         (at_file_supplied): No longer static.
3689         (tool_name): New variable.
3690         (do_wait, fork_execute, maybe_unlink): Don't declare.
3691         (tool_cleanup): No longer static.
3692         (notice): Remove function.
3693         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
3694         fork_execute calls.
3695         (collect_wait, do_wait, collect_execute): Remove functions.
3696         (maybe_unlink): No longer static.
3697         * collect2.h (verbose, debug): Don't declare.
3698         (at_file_supplied): Declare.
3699         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
3700         changed.
3701         (collect_execute): Replace with implementation from collect2, plus a
3702         new arg use_atfile.  All callers changed.
3703         (collect_wait): Replace with implementation from collect2.
3704         (maybe_unlink_file): Remove function.
3705         (fork_execute): Replace with implementation from collect2, plus a
3706         new arg use_atfile.  All callers changed.
3707         (do_wait): Add call to utils_cleanup to the error path.
3708         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
3709         (tool_cleanup): Adjust declarations.
3710         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
3711         * tlink.c: Include "collect-utils.h".
3712         (tlink_execute): New arg use_atfile.  All callers changed.
3713         (tlink_init, tlink_execute): Remove declarations.
3714
3715         * collect-utils.c (save_temps): New variable.
3716         (do_wait): Use it instead of debug.  Use fatal_error.
3717         * collect-utils.h (save_temps): Declare.
3718         * collect2.c (verbose): Rename from vflag.  All uses changed.
3719         (tool_cleanup): New function, copied from collect_atexit.
3720         (collect_atexit, handler): Just call it.
3721         * collect2.h (verbose): Declaration renamed from vflag.
3722         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
3723         debug.
3724
3725         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
3726         (lto-wrapper$(exeext)): Link with collect-utils.o.
3727         * collect-utils.c: New file.
3728         * collect-utils.h: New file.
3729         * lto-wrapper.c: Include "collect-utils.h".
3730         (args_name): Delete variable.
3731         (tool_name): New variable.
3732         (tool_cleanup): New function.
3733         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
3734         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
3735         (fork_execute): Remove functions.
3736
3737 2014-06-26  Nick Clifton  <nickc@redhat.com>
3738
3739         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
3740
3741         * doc/extend.texi (Function Attributes): Fix typo in description
3742         of RX vector attribute.
3743
3744 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
3745
3746         * config.gcc (supported_defaults): Error when passing either
3747         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
3748
3749 2014-06-26  Richard Biener  <rguenther@suse.de>
3750
3751         * tree-ssa-dom.c (cprop_operand): Remove restriction on
3752         propagating volatile pointers.
3753
3754 2014-06-26  Richard Biener  <rguenther@suse.de>
3755
3756         PR tree-optimization/61607
3757         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
3758         loop if we redirected its latch edge.
3759         (thread_block_1): Do not cancel loops prematurely.
3760
3761 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
3762
3763         * toplev.c (backend_init_target): Move init_emit_regs and
3764         init_regs to...
3765         (backend_init) ... here; skip ira_init_once and backend_init_target.
3766         (target_reinit) ... and here; clear
3767         this_target_rtl->lang_dependent_initialized.
3768         (lang_dependent_init_target): Clear
3769         this_target_rtl->lang_dependent_initialized;
3770         break out rtl initialization to ...
3771         (initialize_rtl): ... here; call also backend_init_target
3772         and ira_init_once.
3773         * toplev.h (initialize_rtl): New function.
3774         * function.c: Include toplev.h
3775         (init_function_start): Call initialize_rtl.
3776         * rtl.h (target_rtl): Add target_specific_initialized,
3777         lang_dependent_initialized.
3778
3779 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
3780             Jakub Jelinek  <jakub@redhat.com>
3781
3782         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
3783
3784 2014-06-25  Tom de Vries  <tom@codesourcery.com>
3785
3786         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
3787
3788 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3789
3790         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
3791         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
3792         Issue a strict overflow warning if appropriate.
3793
3794 2014-06-25  Martin Liska  <mliska@suse.cz>
3795
3796         IPA REF refactoring
3797         * Makefile.in: Removed header file (ipa-ref-inline.h).
3798         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
3799         called.
3800         (cgraph_speculative_call_info): Likewise.
3801         (cgraph_for_node_thunks_and_aliases): Likewise.
3802         (cgraph_for_node_and_aliases): Likewise.
3803         (verify_cgraph_node): Likewise.
3804         * cgraph.h: Batch of IPA REF functions become member functions of
3805         symtab_node: add_reference, maybe_add_reference, clone_references,
3806         clone_referring, clone_reference, find_reference,
3807         remove_stmt_references, remove_all_references,
3808         remove_all_referring, dump_references, dump_referring,
3809         has_alias_p, iterate_reference, iterate_referring.
3810         * cgraphbuild.c (record_reference): New IPA REF function used.
3811         (record_type_list): Likewise.
3812         (record_eh_tables): Likewise.
3813         (mark_address): Likewise.
3814         (mark_load): Likewise.
3815         (mark_store): Likewise.
3816         (pass_build_cgraph_edges): Likewise.
3817         (rebuild_cgraph_edge): Likewise.
3818         (cgraph_rebuild_references): Likewise.
3819         (pass_remove_cgraph_callee_edges): Likewise.
3820         * cgraphclones.c (cgraph_clone_node): Likewise.
3821         (cgraph_create_virtual_clone): Likewise.
3822         (cgraph_materialize_clone): Likewise.
3823         (cgraph_materialize_all_clones): Likewise.
3824         * cgraphunit.c (cgraph_reset_node): Likewise.
3825         (cgraph_reset_node): Likewise.
3826         (analyze_function): Likewise.
3827         (assemble_thunks_and_aliases): Likewise.
3828         (expand_function): Likewise.
3829         * ipa-comdats.c (propagate_comdat_group): Likewise.
3830         (enqueue_references): Likewise.
3831         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
3832         (create_specialized_node): Likewise.
3833         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
3834         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
3835         * ipa-inline.c (reset_edge_caches): Likewise.
3836         (update_caller_keys): Likewise.
3837         (execute): Likewise.
3838         * ipa-prop.c (remove_described_reference): Likewise.
3839         (propagate_controlled_uses): Likewise.
3840         (ipa_edge_duplication_hook): Likewise.
3841         (ipa_modify_call_arguments): Likewise.
3842         * ipa-pure-const.c (propagate_pure_const): Likewise.
3843         * ipa-ref-inline.h: Header file removed, functions moved
3844         to symtab_node class.
3845         * ipa-ref.c (remove_reference): New class member function.
3846         (cannot_lead_to_return): New class member function.
3847         (referring_ref_list): Likewise.
3848         (referred_ref_list): Likewise.
3849         Rest of functions moved to symtab_node class.
3850         * ipa-ref.h: New member functions remove_reference,
3851         cannot_lead_to_return, referring_ref_list, referred_ref_list added
3852         to ipa_ref class.
3853         ipa_ref_list class has new member functions: first_reference,
3854         first_referring, clear, nreferences.
3855         * ipa-reference.c (analyze_function): New IPA REF function used.
3856         (write_node_summary_p): Likewise.
3857         (ipa_reference_write_optimization_summary): Likewise.
3858         * ipa-split.c (split_function): Likewise.
3859         * ipa-utils.c (ipa_reverse_postorder): Likewise.
3860         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
3861         (function_and_variable_visibility): Likewise.
3862         * ipa.c (has_addr_references_p): Likewise.
3863         (process_references): Argument type changed.
3864         (symtab_remove_unreachable_nodes): New IPA REF function used.
3865         (process_references): Likewise.
3866         (set_writeonly_bit): Likewise.
3867         * lto-cgraph.c: Implementation of new symtab_node member functions
3868         that uses new IPA REF functions.
3869         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
3870         function used.
3871         * lto-streamer-out.c (output_symbol_p): Likewise.
3872         * lto-streamer.h (referenced_from_this_partition_p): Argument type
3873         changed.
3874         * symtab.c: Implementation of new IPA REF API.
3875         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
3876         (ipa_tm_create_version): Likewise.
3877         (ipa_tm_execute): Likewise.
3878         * tree-emutls.c (gen_emutls_addr): Likewise.
3879         * tree-inline.c (copy_bb): Likewise.
3880         (delete_unreachable_blocks_update_callgraph): Likewise.
3881         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
3882         (varpool_for_node_and_aliases): Likewise.
3883
3884 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
3885
3886         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
3887
3888 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
3889
3890         PR bootstrap/61598
3891         * fold-const.c (fold_checksum_tree): Use a hash_table of const
3892         tree_node * instead of tree_node *.
3893         (fold): Adjust.
3894         (print_fold_checksum): Likewise.
3895         (fold_check_failed): Likewise.
3896         (debug_fold_checksum): Likewise.
3897         (fold_build1_stat_loc): Likewise.
3898         (fold_build2_stat_loc): Likewise.
3899         (fold_build3_stat_loc): Likewise.
3900         (fold_build_call_array_loc): Likewise.
3901
3902 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
3903
3904         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
3905         implementation with call to...
3906         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
3907         function.
3908         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
3909         Declare.
3910
3911 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
3912
3913         PR tree-optimization/57742
3914         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
3915         after replacing the statement.
3916
3917 2014-06-25  Nick Clifton  <nickc@redhat.com>
3918
3919         * config/v850/v850.c (GHS_default_section_names): Change to const
3920         char * type.
3921         (GHS_current_section_names): Likewise.
3922         (v850_insert_attributes): Do not build strings, just assign the
3923         names directly.  Change the type of 'chosen_section' to const
3924         char*.
3925         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
3926         directly to the array entry.
3927         * config/v850/v850.h (GHS_default_section_names): Change to const
3928         char * type.
3929         (GHS_current_section_names): Likewise.
3930
3931 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
3932
3933         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
3934         (LANG_HOOKS_DECLS): Add it.
3935         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
3936         has correct type.
3937         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
3938         * langhooks.h (struct lang_hooks_for_decls): Add
3939         omp_clause_linear_ctor hook.
3940         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
3941         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
3942         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
3943         combined simd loop use omp_clause_linear_ctor hook.
3944
3945 2014-06-24  Cong Hou  <congh@google.com>
3946
3947         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
3948         pattern recognition.
3949         (type_conversion_p): PROMOTION is true if it's a type promotion
3950         conversion, and false otherwise.  Return true if the given expression
3951         is a type conversion one.
3952         * tree-vectorizer.h: Adjust the number of patterns.
3953         * tree.def: Add SAD_EXPR.
3954         * optabs.def: Add sad_optab.
3955         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
3956         * expr.c (expand_expr_real_2): Likewise.
3957         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
3958         * gimple.c (get_gimple_rhs_num_ops): Likewise.
3959         * optabs.c (optab_for_tree_code): Likewise.
3960         * tree-cfg.c (estimate_operator_cost): Likewise.
3961         * tree-ssa-operands.c (get_expr_operands): Likewise.
3962         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
3963         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
3964         * doc/generic.texi: Add document for SAD_EXPR.
3965         * doc/md.texi: Add document for ssad and usad.
3966
3967 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
3968
3969         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
3970         qualification in cast.
3971
3972 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
3973
3974         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
3975         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
3976         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
3977         (tree_function_decl): ... here.
3978         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
3979         streaming of vindex to ...
3980         (write_ts_function_decl_tree_pointers): ... here.
3981         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
3982         Do not stream DECL_VINDEX.
3983         (lto_input_ts_function_decl_tree_pointers): Stream it here.
3984
3985 2014-06-24  Catherine Moore  <clm@codesourcery.com>
3986             Sandra Loosemore  <sandra@codesourcery.com>
3987
3988         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
3989         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
3990         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
3991
3992 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
3993
3994         * doc/invoke.texi (Warning Options): Remove duplicated
3995         -Wmaybe-uninitialized.
3996
3997 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
3998
3999         PR tree-optimization/57742
4000         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
4001         (handle_builtin_malloc, handle_builtin_memset): New functions.
4002         (strlen_optimize_stmt): Call them.
4003         * passes.def: Move strlen after loop+dom but before vrp.
4004
4005 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
4006
4007         PR target/61570
4008         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
4009         model family 6 CPU with has_longmode never use a CPU without
4010         64-bit support.
4011
4012 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
4013
4014         PR target/61570
4015         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
4016         the last change.
4017
4018 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
4019
4020         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
4021         * dominance.c (iterate_fix_dominators): Use hash_map instead of
4022         pointer_map.
4023         * hash-map.h: New file.
4024         * ipa-comdats.c: Use hash_map instead of pointer_map.
4025         * ipa.c: Likewise.
4026         * lto-section-out.c: Adjust.
4027         * lto-streamer.h: Replace pointer_map with hash_map.
4028         * symtab.c (verify_symtab): Likewise.
4029         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
4030         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
4031         * tree-streamer.h: Likewise.
4032         * tree-streamer.c: Adjust.
4033         * pointer-set.h: Remove pointer_map.
4034
4035 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
4036
4037         * hash-table.h: Add a template arg to choose between storing values
4038         and storing pointers to values, and then provide partial
4039         specializations for both.
4040         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
4041         should store, not the type values should point to.
4042         * tree-into-ssa.c (var_info_hasher): Likewise.
4043         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
4044         * tree-complex.c: Adjust.
4045         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
4046         table instead of int_tree_map *.
4047         * tree-parloops.c: Adjust.
4048         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
4049         type is being stored.
4050         * tree-vectorizer.c: Adjust.
4051
4052 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
4053
4054         * hash-table.h: Remove a layer of indirection from hash_table so that
4055         it contains the hash table's data instead of a pointer to the data.
4056         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
4057         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
4058         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
4059         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
4060         fold-const.c, gcse.c, ggc-common.c,
4061         gimple-ssa-strength-reduction.c, gimplify.c,
4062         graphite-clast-to-gimple.c, graphite-dependences.c,
4063         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
4064         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
4065         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
4066         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
4067         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
4068         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
4069         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
4070         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
4071         tree-ssa-live.c, tree-ssa-loop-im.c,
4072         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
4073         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
4074         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
4075         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
4076         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
4077         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
4078         vtable-verify.c, vtable-verify.h: Adjust.
4079
4080 2014-06-24  Richard Biener  <rguenther@suse.de>
4081
4082         PR tree-optimization/61572
4083         * tree-ssa-sink.c (statement_sink_location): Do not sink
4084         loads from hard registers.
4085
4086 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
4087
4088         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
4089         not mentioned in clauses use private clause if the iterator is
4090         declared in #pragma omp for simd, and when adding lastprivate
4091         instead, add it to the outer #pragma omp for too.  Diagnose
4092         if the variable is private in outer context.  For simd collapse > 1
4093         loops, replace all iterators with temporaries.
4094         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
4095         same even in collapse > 1 loops.
4096
4097         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
4098         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
4099         non-NULL.
4100         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
4101         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
4102         non-NULL.
4103         (gimplify_adjust_omp_clauses): Likewise.
4104         * omp-low.c (lower_rec_simd_input_clauses,
4105         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
4106         safelen the same as safelen(1).
4107         * tree-nested.c (convert_nonlocal_omp_clauses,
4108         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
4109         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
4110         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
4111         Fixup handling of GIMPLE_OMP_TARGET.
4112         (convert_tramp_reference_stmt, convert_gimple_call): Handle
4113         GIMPLE_OMP_TARGET.
4114
4115 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
4116
4117         PR tree-optimization/61554
4118         * tree-ssa-propagate.c: Include "bitmap.h".
4119         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
4120         properly update constructor/destructor.
4121         (substitute_and_fold_dom_walker::before_dom_children):
4122         Remove call to gimple_purge_dead_eh_edges, add bb->index to
4123         need_eh_cleaup instead.
4124         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
4125         need_eh_cleanup.
4126
4127 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
4128
4129         * varpool.c (dump_varpool_node): Dump used_by_single_function.
4130         * tree-pass.h (make_pass_ipa_single_use): New pass.
4131         * cgraph.h (used_by_single_function): New flag.
4132         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
4133         Stream it.
4134         * passes.def (pass_ipa_single_use): Scedule.
4135         * ipa.c (BOTTOM): New macro.
4136         (meet): New function
4137         (propagate_single_user): New function.
4138         (ipa_single_use): New function.
4139         (pass_data_ipa_single_use): New pass.
4140         (pass_ipa_single_use): New pass.
4141         (pass_ipa_single_use::gate): New gate.
4142         (make_pass_ipa_single_use): New function.
4143
4144 2014-06-23  Kai Tietz  <ktietz@redhat.com>
4145
4146         PR target/39284
4147         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
4148         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
4149
4150 2014-06-23  Richard Biener  <rguenther@suse.de>
4151
4152         * tree-ssa-loop.c (gate_loop): New function.
4153         (pass_tree_loop::gate): Call it.
4154         (pass_data_tree_no_loop, pass_tree_no_loop,
4155         make_pass_tree_no_loop): New.
4156         * tree-vectorizer.c: Include tree-scalar-evolution.c
4157         (pass_slp_vectorize::execute): Initialize loops and SCEV if
4158         required.
4159         (pass_slp_vectorize::clone): New method.
4160         * timevar.def (TV_TREE_NOLOOP): New.
4161         * tree-pass.h (make_pass_tree_no_loop): Declare.
4162         * passes.def (pass_tree_no_loop): New pass group with
4163         SLP vectorizer.
4164
4165 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
4166
4167         PR target/61570
4168         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
4169         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
4170
4171 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
4172
4173         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
4174         "yes" where needed.
4175
4176 2014-06-23  Alan Modra  <amodra@gmail.com>
4177
4178         PR bootstrap/61583
4179         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
4180         to zero on debug statements.
4181
4182 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
4183
4184         PR target/60825
4185         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
4186         Ignore third operand if present by marking qualifier_internal.
4187
4188         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
4189
4190         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
4191         vector extension.
4192         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
4193         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
4194         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
4195         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
4196         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
4197         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
4198         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
4199         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
4200         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
4201         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
4202         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
4203         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
4204         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
4205         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
4206         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
4207         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
4208         logic in GCC vector extensions
4209
4210         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
4211         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
4212         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
4213         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
4214         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
4215         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
4216         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
4217         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
4218         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
4219         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
4220
4221         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
4222
4223         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
4224         extensions.
4225
4226         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
4227         (vget_low_s64): Use __GET_LOW macro.
4228         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
4229         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
4230         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
4231         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
4232         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
4233
4234         (vcombine_s64): Use GCC vector extensions; remove cast.
4235         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
4236         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
4237         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
4238         Fix type signature; remove cast.
4239
4240 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
4241
4242         PR target/60825
4243         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
4244         V1DFmode.
4245         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
4246         add V1DFmode
4247         (BUILTIN_VD1): New.
4248         (BUILTIN_VD_RE): Remove.
4249         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
4250         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
4251         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
4252         variant but not df.
4253         (vreinterpretv1df*, vreinterpret*v1df): New.
4254         (vreinterpretdf*, vreinterpret*df): Remove.
4255         * config/aarch64/aarch64-simd.md (aarch64_create,
4256         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
4257         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
4258         (VD1): New.
4259         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
4260         (vcreate_f64): Remove cast, use v1df builtin.
4261         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
4262         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
4263         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
4264         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
4265         vmov_n_f64, vst1_f64): Use gcc vector extensions.
4266         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
4267         add range check using __builtin_aarch64_im_lane_boundsi.
4268         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
4269         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
4270         type signature, use gcc vector extensions.
4271         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
4272         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
4273         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
4274         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
4275         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
4276         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
4277         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
4278         vreinterpret_u64_f64): Use v1df builtin not df.
4279
4280 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
4281
4282         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
4283         vector registers.
4284
4285 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
4286
4287         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
4288         priority directly.
4289
4290 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4291
4292         * loop-invariant.c (pre_check_invariant_p): New function.
4293         (find_invariant_insn): Call pre_check_invariant_p.
4294
4295 2014-06-22  Richard Henderson  <rth@redhat.com>
4296
4297         PR target/61565
4298         * compare-elim.c (struct comparison): Add eh_note.
4299         (find_comparison_dom_walker::before_dom_children): Don't eliminate
4300         a redundant comparison in a different EH region.  Purge EH edges if
4301         necessary.
4302
4303 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
4304
4305         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
4306         (var_shift): Use it.
4307         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
4308         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
4309         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
4310         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
4311         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
4312         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
4313         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
4314         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
4315         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
4316         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
4317         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
4318         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
4319         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
4320         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
4321         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
4322         *rotldi3_internal15be): Use the new attribute.  Merge register and
4323         integer alternatives.
4324
4325 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
4326
4327         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
4328         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
4329         split, *ashrdi3_internal3 and split): Delete, merge into...
4330         (ashr<mode>3): New expander.
4331         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
4332         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
4333
4334 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
4335
4336         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
4337         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
4338         *rotldi3_internal3 and split): Delete, merge into...
4339         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
4340         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
4341         Use "rotlw" extended mnemonic.
4342
4343 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
4344
4345         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
4346         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
4347         and split, *ashldi3_internal3 and split): Delete, merge into...
4348         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
4349         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
4350
4351 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
4352
4353         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
4354         (lshrsi3, two anonymous define_insns and define_splits,
4355         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
4356         *lshrdi3_internal3 and split): Delete, merge into...
4357         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
4358         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
4359
4360 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
4361
4362         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
4363         Remove "O" alternative.
4364
4365 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
4366
4367         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
4368         (mips_move_from_gpr_cost): Likewise.
4369         (mips_register_move_cost): Update accordingly.
4370         (mips_secondary_reload_class): Remove name of in_p.
4371
4372 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
4373
4374         PR target/61503
4375         * config/i386/i386.md (x86_64_shrd, x86_shrd,
4376         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
4377
4378 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4379
4380         * config/nios2/nios2.c: Include "builtins.h".
4381
4382 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
4383
4384         * cgraph.h (tls_model_names): New variable.
4385         * print-tree.c (print_node): Simplify.
4386         * varpool.c (tls_model_names): New variable.
4387         (dump_varpool_node): Output tls model.
4388
4389 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
4390
4391         * ipa-visibility.c (function_and_variable_visibility): Disable
4392         temporarily local aliases for some targets.
4393
4394 2014-06-20  Marek Polacek  <polacek@redhat.com>
4395
4396         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
4397         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
4398         into SANITIZE_UNDEFINED.
4399         * doc/invoke.texi: Describe -fsanitize=bounds.
4400         * gimplify.c (gimplify_call_expr): Add gimplification of internal
4401         functions created in the FEs.
4402         * internal-fn.c: Move "internal-fn.h" after "tree.h".
4403         (expand_UBSAN_BOUNDS): New function.
4404         * internal-fn.def (UBSAN_BOUNDS): New internal function.
4405         * internal-fn.h: Don't define internal functions here.
4406         * opts.c (common_handle_option): Add -fsanitize=bounds.
4407         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
4408         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
4409         * tree-core.h: Define internal functions here.
4410         (struct tree_base): Add ifn field.
4411         * tree-pretty-print.c: Include "internal-fn.h".
4412         (dump_generic_node): Handle functions without CALL_EXPR_FN.
4413         * tree.c (get_callee_fndecl): Likewise.
4414         (build_call_expr_internal_loc): New function.
4415         * tree.def (CALL_EXPR): Update description.
4416         * tree.h (CALL_EXPR_IFN): Define.
4417         (build_call_expr_internal_loc): Declare.
4418         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
4419         types.
4420         (ubsan_type_descriptor): Change bool parameter to enum
4421         ubsan_print_style.  Adjust the code.  Add handling of
4422         UBSAN_PRINT_ARRAY.
4423         (ubsan_expand_bounds_ifn): New function.
4424         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
4425         (ubsan_build_overflow_builtin): Likewise.
4426         (instrument_bool_enum_load): Likewise.
4427         (ubsan_instrument_float_cast): Likewise.
4428         * ubsan.h (enum ubsan_print_style): New enum.
4429         (ubsan_expand_bounds_ifn): Declare.
4430         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
4431
4432 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
4433
4434         * config/rs6000/rs6000.md: Append `DONE' to preparation
4435         statements of `bswap' pattern splitters.
4436
4437 2014-06-20  Tom de Vries  <tom@codesourcery.com>
4438
4439         * target.def (call_fusage_contains_non_callee_clobbers): Update
4440         definition.
4441         * doc/tm.texi: Regenerate.
4442
4443 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
4444             Max Ostapenko  <m.ostapenko@partner.samsung.com>
4445
4446         PR sanitizer/61547
4447         * asan.c (instrument_strlen_call): Fixed instrumentation of
4448         trailing byte.
4449
4450 2014-06-20  Martin Jambor  <mjambor@suse.cz>
4451
4452         PR ipa/61540
4453         * ipa-prop.c (impossible_devirt_target): New function.
4454         (try_make_edge_direct_virtual_call): Use it, also instead of
4455         asserting.
4456
4457 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
4458             Max Ostapenko  <m.ostapenko@partner.samsung.com>
4459
4460         PR sanitizer/61530
4461         * asan.c (build_check_stmt): Add condition.
4462
4463 2014-06-20  Martin Jambor  <mjambor@suse.cz>
4464
4465         PR ipa/61211
4466         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
4467         expanded clones.
4468
4469 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4470
4471         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
4472         Update comments.
4473         (VCONQ): Make comment more helpful.
4474         (VCON): Delete.
4475         * config/aarch64/aarch64-simd.md
4476         (aarch64_sqdmulh_lane<mode>):
4477         Use VCOND for operands 2.  Update lane checking and flipping logic.
4478         (aarch64_sqrdmulh_lane<mode>): Likewise.
4479         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
4480         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
4481         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
4482         attribute of operand 3 to VCOND.
4483         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
4484         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
4485         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
4486         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
4487         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
4488         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
4489         define_insn.
4490         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
4491         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
4492         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
4493         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
4494         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
4495         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
4496         operand to VCOND.  Update lane flipping and bounds checking logic.
4497         (aarch64_sqdmlal2_lane<mode>): Likewise.
4498         (aarch64_sqdmlsl_lane<mode>): Likewise.
4499         (aarch64_sqdmull_lane<mode>): Likewise.
4500         (aarch64_sqdmull2_lane<mode>): Likewise.
4501         (aarch64_sqdmlal_laneq<mode>):
4502         Replace VCON usage with VCONQ.
4503         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
4504         (aarch64_sqdmlal2_laneq<mode>): Emit
4505         aarch64_sqdmlal2_laneq<mode>_internal insn.
4506         Replace VCON with VCONQ.
4507         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
4508         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
4509         (aarch64_sqdmull_laneq<mode>): Emit
4510         aarch64_sqdmull_laneq<mode>_internal insn.
4511         Replace VCON with VCONQ.
4512         (aarch64_sqdmull2_laneq<mode>): Emit
4513         aarch64_sqdmull2_laneq<mode>_internal insn.
4514         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
4515         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
4516         of 3rd argument to int16x4_t.
4517         (vqdmlalh_lane_s16): Likewise.
4518         (vqdmlslh_lane_s16): Likewise.
4519         (vqdmull_high_lane_s16): Likewise.
4520         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
4521         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
4522         (vqdmlsl_lane_s16): Likewise.
4523         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
4524         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
4525         (vqdmlals_lane_s32): Likewise.
4526         (vqdmlsls_lane_s32): Likewise.
4527         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
4528         (vqdmulls_lane_s32): Likewise.
4529         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
4530         (vqdmlsl_lane_s32): Likewise.
4531         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
4532         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
4533         (vqrdmulhh_lane_s16): Likewise.
4534         (vqdmlsl_high_lane_s16): Likewise.
4535         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
4536         (vqdmlsl_high_lane_s32): Likewise.
4537         (vqrdmulhs_lane_s32): Likewise.
4538
4539 2014-06-20  Tom de Vries  <tom@codesourcery.com>
4540
4541         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
4542         get_call_reg_set_usage.
4543
4544 2014-06-20  Tom de Vries  <tom@codesourcery.com>
4545
4546         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
4547         it contains all call_used_regs.
4548
4549 2014-06-20  Tom de Vries  <tom@codesourcery.com>
4550
4551         * final.c (collect_fn_hard_reg_usage): Add and use variable
4552         function_used_regs.
4553
4554 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
4555
4556         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
4557         (set_init_priority, get_init_priority, set_fini_priority,
4558         get_fini_priority): New methods.
4559         * tree.c (init_priority_for_decl): Remove.
4560         (init_ttree): Do not initialize init priority.
4561         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
4562         (decl_priority_info): Remove.
4563         (decl_init_priority_insert): Rewrite.
4564         (decl_fini_priority_insert): Rewrite.
4565         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
4566         tree_priority_map_marked_p): Remove.
4567         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
4568         * lto-streamer-out.c (hash_tree): Do not hash priorities.
4569         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
4570         not output priorities.
4571         (pack_ts_function_decl_value_fields): Likewise.
4572         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
4573         not input priorities.
4574         (unpack_ts_function_decl_value_fields): Likewise.
4575         * symtab.c (symbol_priority_map): Declare.
4576         (init_priority_hash): Declare.
4577         (symtab_unregister_node): Unregister from priority hash, too.
4578         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
4579         New methods.
4580         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
4581         (symbol_priority_info): New function.
4582         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
4583         New methods.
4584         * tree-core.h (tree_priority_map): Remove.
4585
4586 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
4587
4588         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
4589         0xff to uint64_t before shifting it up.
4590
4591 2014-06-20  Julian Brown  <julian@codesourcery.com>
4592             Chung-Lin Tang  <cltang@codesourcery.com>
4593
4594         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
4595         TARGET_THUMB1_ONLY. Add comments.
4596
4597 2014-06-19  Tom de Vries  <tom@codesourcery.com>
4598
4599         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
4600         return type to void.
4601         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
4602
4603 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4604
4605         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
4606         as "move", from depends_on.
4607
4608 2014-06-19  Terry Guo  <terry.guo@arm.com>
4609
4610         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
4611         stage.
4612
4613 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
4614
4615         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
4616         Remove cr5.
4617         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
4618
4619 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
4620
4621         PR target/61550
4622         * config/sh/sh.c (prepare_move_operands): Don't process TLS
4623         addresses here if reload in progress or completed.
4624
4625 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
4626
4627         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
4628         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
4629         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
4630         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
4631         (mips_register_priority): New function that implements the target
4632         hook TARGET_REGISTER_PRIORITY.
4633         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
4634         (mips_lra_p): Likewise for TARGET_LRA_P.
4635         (TARGET_REGISTER_PRIORITY): Define macro.
4636         (TARGET_SPILL_CLASS): Likewise.
4637         (TARGET_LRA_P): Likewise.
4638         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
4639         classes.
4640         (REG_CLASS_NAMES): Likewise.
4641         (REG_CLASS_CONTENTS): Likewise.
4642         (BASE_REG_CLASS): Use M16_SP_REGS.
4643         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
4644         New set attribute to enable alternatives depending on the register
4645         allocator used.
4646         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
4647         (*lea64): Disable pattern for MIPS16.
4648         * config/mips/mips.opt (mlra): New option.
4649
4650 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
4651
4652         * lra-constraints.c (base_to_reg): New function.
4653         (process_address): Use new function.
4654
4655 2014-06-18  Tom de Vries  <tom@codesourcery.com>
4656
4657         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
4658         * config/aarch64/aarch64.c
4659         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
4660         (aarch64_emit_call_insn): New function.
4661         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
4662         of emit_call_insn.
4663         * config/aarch64/aarch64.md (define_expand "call_internal")
4664         (define_expand "call_value_internal", define_expand "sibcall_internal")
4665         (define_expand "sibcall_value_internal"): New.
4666         (define_expand "call", define_expand "call_value")
4667         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
4668         expand variant and aarch64_emit_call_insn.
4669
4670 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
4671             Tom de Vries  <tom@codesourcery.com>
4672
4673         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
4674         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
4675         Redefine to true.
4676         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
4677         clobbers to CALL_INSN_FUNCTION_USAGE.
4678         (define_expand "sibcall_internal")
4679         (define_expand "sibcall_value_internal"): New.
4680         (define_expand "call", define_expand "call_value"): Add argument to
4681         arm_emit_call_insn.
4682         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
4683         (define_expand "sibcall_value"): Use sibcall_value_internal and
4684         arm_emit_call_insn.
4685
4686 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
4687
4688         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
4689
4690 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
4691
4692         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
4693         __udivmoddi4.
4694
4695 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
4696
4697         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
4698         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
4699         annotations. Fix DWARF information.
4700
4701 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
4702
4703         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
4704         __udivmoddi4, and fixups for negative operands.
4705
4706 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
4707
4708         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
4709
4710 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
4711
4712         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
4713         to __udivmoddi4.
4714
4715 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
4716
4717         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
4718         manipulation.
4719
4720 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
4721
4722         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
4723         describing register usage on function entry and exit.
4724
4725 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
4726
4727         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
4728         (__aeabi_ldivmod): Fix whitespace.
4729
4730 2014-06-18  Andreas Schwab  <schwab@suse.de>
4731
4732         * doc/md.texi (Standard Names): Use @itemx for grouped items.
4733         Remove blank line after @item.
4734
4735 2014-06-18  Richard Henderson  <rth@redhat.com>
4736
4737         PR target/61545
4738         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
4739
4740 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
4741
4742         * config/arm/arm.c (neon_vector_mem_operand): Allow register
4743         POST_MODIFY for neon loads and stores.
4744         (arm_print_operand): Output post-index register for neon loads and
4745         stores.
4746
4747 2014-06-18  Richard Biener  <rguenther@suse.de>
4748
4749         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
4750
4751 2014-06-18  Richard Biener  <rguenther@suse.de>
4752
4753         * tree-pass.h (make_pass_dce_loop): Remove.
4754         * passes.def: Replace pass_dce_loop with pass_dce.
4755         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
4756         changed free niter estimates and reset the scev cache.
4757         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
4758         make_pass_dce_loop): Remove.
4759         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
4760         (fini_copy_prop): Return whether something changed.  Always
4761         let substitute_and_fold perform DCE and free niter estimates
4762         and reset the scev cache if so.
4763         (execute_copy_prop): If sth changed schedule cleanup-cfg.
4764         (pass_data_copy_prop): Do not unconditionally schedule
4765         cleanup-cfg or update-ssa.
4766
4767 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
4768
4769         PR tree-optimization/61518
4770         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
4771         reduction var is used in reduction stmt or phi-function only.
4772
4773 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4774
4775         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
4776
4777 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4778
4779         PR tree-optimization/61517
4780         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
4781         whose rhs's first tree is the source expression instead of the
4782         expression itself.
4783         (find_bswap_or_nop): Likewise.
4784         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
4785         gimple stmt whose rhs's first tree is the source. In the memory source
4786         case, move the stmt to be replaced close to one of the original load to
4787         avoid the problem of a store between the load and the stmt's original
4788         location.
4789         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
4790         signature.
4791
4792 2014-06-18  Andreas Schwab  <schwab@suse.de>
4793
4794         PR rtl-optimization/54555
4795         * postreload.c (move2add_use_add2_insn): Substitute
4796         STRICT_LOW_PART only if it is cheaper.
4797
4798 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
4799
4800         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
4801         Do not use unspec as call operand.  Use memory_operand instead of
4802         memory_nox32_operand and add "m" operand constraint.  Disable
4803         pattern for TARGET_X32.
4804         (*sibcall_pop_memory): Ditto.
4805         (*sibcall_value_memory): Ditto.
4806         (*sibcall_value_pop_memory): Ditto.
4807         (sibcall peepholes): Merge SImode and DImode patterns using
4808         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
4809         Disable pattern for TARGET_X32.  Check if eliminated register is
4810         really dead after call insn.  Generate call RTX without unspec operand.
4811         (sibcall_value peepholes): Ditto.
4812         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
4813         instead of memory_nox32_operand.  Check if eliminated register is
4814         really dead after call insn. Generate call RTX without unspec operand.
4815         (sibcall_value_pop peepholes): Ditto.
4816         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
4817
4818 2014-06-18  Terry Guo  <terry.guo@arm.com>
4819
4820         PR target/61544
4821         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
4822         reach the head.
4823
4824 2014-06-18  Olivier Hainque  <hainque@adacore.com>
4825
4826         * tree-core.h (tree_block): Add an "end_locus" field, allowing
4827         memorization of the end of block source location.
4828         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
4829         * gimplify.c (gimplify_bind_expr): Propagate the block start and
4830         end source location info we have on the block entry/exit code we
4831         generate.
4832
4833 2014-06-18  Richard Biener  <rguenther@suse.de>
4834
4835         * common.opt (fssa-phiopt): New option.
4836         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
4837         but not with -Og.
4838         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
4839         * doc/invoke.texi (-fssa-phiopt): Document.
4840
4841 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4842
4843         * genattrtab.c (n_bypassed): New variable.
4844         (process_bypasses): Initialise n_bypassed.
4845         Count number of bypassed reservations.
4846         (make_automaton_attrs): Allocate space for bypassed reservations
4847         rather than number of bypasses.
4848
4849 2014-06-18  Richard Biener  <rguenther@suse.de>
4850
4851         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
4852         we propagated anything.
4853         (substitute_and_fold_dom_walker::before_dom_children): Something
4854         changed if we propagated into PHI arguments.
4855         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
4856         we removed a stmt.
4857
4858 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
4859
4860         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
4861         vector case.
4862         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
4863         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
4864         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
4865         Introduces alternative way of loads group permutaions.
4866         (vect_transform_grouped_load): Try alternative way of permutations.
4867
4868 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
4869
4870         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
4871         changed in ORT_TARGET region, don't jump to do_outer.
4872         (struct gimplify_adjust_omp_clauses_data): New type.
4873         (gimplify_adjust_omp_clauses_1): Adjust for data being
4874         a struct gimplify_adjust_omp_clauses_data pointer instead
4875         of tree *.  Pass pre_p as a new argument to
4876         lang_hooks.decls.omp_finish_clause hook.
4877         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
4878         splay_tree_foreach to pass both list_p and pre_p.
4879         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
4880         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
4881         gimplify_adjust_omp_clauses callers.
4882         * langhooks.c (lhd_omp_finish_clause): New function.
4883         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
4884         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
4885         * langhooks.h (struct lang_hooks_for_decls): Add a new
4886         gimple_seq * argument to omp_finish_clause hook.
4887         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
4888         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
4889         (scan_omp_parallel, lower_omp_for): When adding
4890         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
4891         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
4892         * tree-nested.c (convert_nonlocal_omp_clauses,
4893         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
4894         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
4895
4896 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
4897
4898         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
4899         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
4900
4901 2014-06-17  Xinliang David Li  <davidxl@google.com>
4902
4903         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
4904         * passes.c (pass_init_dump_file): Do not set initialize
4905         flag to false unconditionally.
4906
4907 2014-06-17  Richard Biener  <rguenther@suse.de>
4908
4909         * genopinit.c (main): Use vec<>::qsort method.
4910         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
4911         Likewise.
4912         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
4913
4914 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
4915
4916         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
4917         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
4918         (mips_move_to_gpr_cost): Remove ST_REGS case.
4919         (mips_move_from_gpr_cost): Likewise.
4920         (mips_register_move_cost): Likewise.
4921         (mips_secondary_reload_class): Likewise.
4922
4923 2014-06-17  Richard Biener  <rguenther@suse.de>
4924
4925         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
4926         (pass_all_optimizations): Move 3rd copy-prop pass from after
4927         fre to before ifcombine/phiopt.
4928
4929 2014-06-17  Richard Biener  <rguenther@suse.de>
4930
4931         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
4932         and allow all blocks to be forwarders.
4933
4934 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
4935
4936         PR target/61483
4937         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
4938         variable 'size'; calculate 'size' right in the front; use
4939         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
4940         pcum->aapcs_stack_words.
4941
4942 2014-06-17  Nick Clifton  <nickc@redhat.com>
4943
4944         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
4945         (umulhi3, mulsidi3, umulsidi3): Likewise.
4946
4947 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
4948
4949         PR middle-end/61508
4950         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
4951         check for section name.
4952
4953 2014-06-17  Richard Biener  <rguenther@suse.de>
4954
4955         * tree-ssa-propagate.c: Include domwalk.h.
4956         (substitute_and_fold): Outline main worker into a domwalker ...
4957         (substitute_and_fold_dom_walker::before_dom_children): ... here.
4958         Schedule stmts we can fully propagate for removal.  Remove
4959         poor-mans DCE.
4960         (substitute_and_fold): Apply a dominator walk to perform
4961         substitution.  Process stmts scheduled for removal here.
4962
4963 2014-06-17  Richard Biener  <rguenther@suse.de>
4964
4965         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
4966         of PHI node moving.
4967
4968 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
4969
4970         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
4971         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
4972         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
4973         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
4974         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
4975         TARGET_HARD_FLOAT.
4976         (get_fpscr) : Likewise.
4977
4978 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
4979
4980         PR rtl-optimization/61325
4981         * lra-constraints.c (valid_address_p): Add forward declaration.
4982         (simplify_operand_subreg): Check address validity before and after
4983         alter_reg of memory subreg.
4984
4985 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
4986
4987         * config/i386/i386.c (decide_alg): Correctly handle
4988         maximum size of stringop algorithm.
4989
4990 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
4991
4992         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
4993
4994 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
4995
4996         PR rtl-optimization/61522
4997         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
4998
4999 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
5000
5001         Revert:
5002         * symtab.c (symtab_node::reset_section): New method.
5003         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
5004         for localization.
5005         * cgraph.h (reset_section): Declare.
5006         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
5007         do not consider comdat locals.
5008         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
5009         for new symbol.
5010         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
5011         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
5012         reset sections of symbols dragged out of the comdats.
5013         (function_and_variable_visibility): Reset sections of
5014         localized symbols.
5015
5016 2014-06-16  Richard Biener  <rguenther@suse.de>
5017
5018         PR tree-optimization/61482
5019         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
5020         [-INF(OVF), +INF(OVF)] range.
5021
5022 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5023
5024         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
5025         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
5026         handling 32-bit multiplication.
5027
5028 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
5029
5030         PR middle-end/61430
5031         * lra-lives.c (process_bb_lives): Skip creating copy during
5032         insn scan when src/dest has constrained to same regno.
5033
5034 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
5035
5036         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
5037         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
5038
5039 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
5040
5041         * asan.c (check_func): New function.
5042         (maybe_create_ssa_name): Likewise.
5043         (build_check_stmt_with_calls): Likewise.
5044         (use_calls_p): Likewise.
5045         (report_error_func): Change interface.
5046         (build_check_stmt): Allow non-integer lengths; add support
5047         for new parameter.
5048         (asan_instrument): Likewise.
5049         (instrument_mem_region_access): Moved code to build_check_stmt.
5050         (instrument_derefs): Likewise.
5051         (instrument_strlen_call): Likewise.
5052         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
5053         * doc/invoke.texi: Describe new parameter.
5054         * params.def: Define new parameter.
5055         * params.h: Likewise.
5056         * sanitizer.def: Describe new builtins.
5057
5058 2014-06-16  Richard Biener  <rguenther@suse.de>
5059
5060         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5061         Make all defs available at the end.
5062         (eliminate): If we remove a PHI node schedule cfg-cleanup.
5063
5064 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
5065
5066         PR plugins/45078
5067         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
5068
5069 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
5070
5071         PR bootstrap/61516
5072         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
5073         initialization.  Replace remaining use of uid.
5074
5075 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
5076
5077         * c-family/c-common.c (handle_tls_model_attribute): Use
5078         set_decl_tls_model.
5079         * c-family/c-common.c (handle_tls_model_attribute): Use
5080         set_decl_tls_model.
5081         * cgraph.h (struct varpool_node): Add tls_model.
5082         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
5083         * tree.h (DECL_TLS_MODEL): Update.
5084         (DECL_THREAD_LOCAL_P): Check that variable is static.
5085         (decl_tls_model): Declare.
5086         (set_decl_tls_model): Declare.
5087         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
5088         set symbol prorperties.
5089         (get_emutls_init_templ_addr): Cleanup.
5090         (new_emutls_decl): Update.
5091         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
5092         (lto_input_varpool_node): Likewise.
5093         * lto-streamer-out.c (hash_tree): Likewise.
5094         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
5095         not stream DECL_TLS_MODEL.
5096         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
5097         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
5098
5099 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5100
5101         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
5102
5103 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5104
5105         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
5106         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
5107         lists.
5108         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
5109         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
5110         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
5111         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
5112         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
5113         (df_get_artificial_defs, df_get_artificial_uses)
5114         (df_single_def, df_single_use): Update accordingly.
5115         (df_refs_chain_dump): Take the first element in a linked list as
5116         parameter, rather than a pointer to an array of pointers.
5117         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
5118         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
5119         (df_chain_create_bb_process_use): Likewise.
5120         (df_md_bb_local_compute_process_def): Likewise.
5121         * fwprop.c (process_defs, process_uses): Likewise.
5122         (register_active_defs, update_uses): Likewise.
5123         (forward_propagate_asm): Update for new df_ref linking.
5124         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
5125         (df_null_ref_rec, df_null_mw_rec): Likewise.
5126         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
5127         explicitly.
5128         (df_scan_free_bb_info): Remove check for null artificial_defs.
5129         (df_install_ref_incremental): Adjust for new df_ref linking.
5130         Use a single-element insertion rather than a full sort.
5131         (df_ref_chain_delete_du_chain): Take the first element
5132         in a linked list as parameter, rather than a pointer to an array of
5133         pointers.
5134         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
5135         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
5136         (df_insn_info_delete): Remove check for null defs and call to
5137         df_scan_free_mws_vec.
5138         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
5139         null rather than df_null_*_rec.
5140         (df_insn_rescan_debug_internal): Likewise, and update null
5141         checks in the same way.  Remove check for null defs.
5142         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
5143         Move a single element rather doing a full sort.
5144         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
5145         linking.
5146         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
5147         Initialize df_ref and df_mw_hardreg lists to null rather than
5148         df_null_*_rec.
5149         (df_ref_compare): Take df_refs as parameter, transferring the
5150         old interface to...
5151         (df_ref_ptr_compare): ...this new function.
5152         (df_sort_and_compress_refs): Update accordingly.
5153         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
5154         old interface to...
5155         (df_mw_ptr_compare): ...this new function.
5156         (df_sort_and_compress_mws): Update accordingly.
5157         (df_install_refs, df_install_mws): Return a linked list rather than
5158         an array of pointers.
5159         (df_refs_add_to_chains): Assert that old lists are empty rather
5160         than freeing them.
5161         (df_insn_refs_verify): Don't handle null defs speciailly.
5162         * web.c (union_match_dups): Update for new df_ref linking.
5163
5164 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5165
5166         * df.h (df_ref_create, df_ref_remove): Delete.
5167         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
5168         (df_ref_remove): Likewise.
5169
5170 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5171
5172         * df.h (df_single_def, df_single_use): New functions.
5173         * ira.c (find_moveable_pseudos): Use them.
5174
5175 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5176
5177         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
5178         * df-problems.c (df_note_bb_compute): Use it.
5179         * regstat.c (regstat_bb_compute_ri): Likewise.
5180
5181 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5182
5183         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
5184         * cse.c (cse_extended_basic_block): Use them.
5185         * dce.c (mark_artificial_use): Likewise.
5186         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
5187         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
5188         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
5189         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
5190         (df_simulate_initialize_backwards): Likewise.
5191         (df_simulate_finalize_backwards): Likewise.
5192         (df_simulate_initialize_forwards): Likewise.
5193         (df_md_simulate_artificial_defs_at_top): Likewise.
5194         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
5195         * regrename.c (init_rename_info): Likewise.
5196         * regstat.c (regstat_bb_compute_ri): Likewise.
5197         (regstat_bb_compute_calls_crossed): Likewise.
5198
5199 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
5200
5201         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
5202         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
5203         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
5204         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
5205         * combine.c (create_log_links): Likewise.
5206         * compare-elim.c (find_flags_uses_in_insn): Likewise.
5207         (try_eliminate_compare): Likewise.
5208         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
5209         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
5210         (remove_reg_equal_equiv_notes_for_defs): Likewise.
5211         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
5212         (word_dce_process_block, dce_process_block): Likewise.
5213         * ddg.c (def_has_ccmode_p): Likewise.
5214         * df-core.c (df_bb_regno_first_def_find): Likewise.
5215         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
5216         * df-problems.c (df_rd_simulate_one_insn): Likewise.
5217         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
5218         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
5219         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
5220         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
5221         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
5222         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
5223         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
5224         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
5225         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
5226         * fwprop.c (local_ref_killed_between_p): Likewise.
5227         (all_uses_available_at, free_load_extend): Likewise.
5228         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
5229         * hw-doloop.c (scan_loop): Likewise.
5230         * ifcvt.c (dead_or_predicable): Likewise.
5231         * init-regs.c (initialize_uninitialized_regs): Likewise.
5232         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
5233         (process_bb_node_lives): Likewise.
5234         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
5235         (find_moveable_pseudos): Likewise.
5236         * loop-invariant.c (check_dependencies, record_uses): Likewise.
5237         * recog.c (peep2_find_free_register): Likewise.
5238         * ree.c (get_defs): Likewise.
5239         * regstat.c (regstat_bb_compute_ri): Likewise.
5240         (regstat_bb_compute_calls_crossed): Likewise.
5241         * sched-deps.c (find_inc, find_mem): Likewise.
5242         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
5243         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
5244         * shrink-wrap.c (requires_stack_frame_p): Likewise.
5245         (prepare_shrink_wrap): Likewise.
5246         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
5247         * web.c (union_defs, pass_web::execute): Likewise.
5248         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
5249         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
5250
5251 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
5252
5253         * lra-assign.c (assign_by_spills): Add code to assign vector regs
5254         to inheritance pseudos.
5255         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
5256
5257 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
5258
5259         PR target/61415
5260         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
5261         (BU_MISC_2): Rename to ...
5262         (BU_LDBL128_2): ... this.
5263         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
5264         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
5265         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
5266         RS6000_BTM_LDBL128.
5267         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
5268         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
5269         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
5270         (unpacktf_1): Likewise.
5271         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
5272         (__builtin_longdouble_dw1): Likewise.
5273         * doc/sourcebuild.texi (longdouble128): Document.
5274
5275 2014-06-13  Jeff Law  <law@redhat.com>
5276
5277         PR rtl-optimization/61094
5278         PR rtl-optimization/61446
5279         * ree.c (combine_reaching_defs): Get the mode for the copy from
5280         the extension insn rather than the defining insn.
5281
5282 2014-06-13  Dehao Chen  <dehao@google.com>
5283
5284         * dwarf2out.c (add_linkage_name): Emit more linkage name.
5285
5286 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
5287
5288         * doc/install.texi (--enable-linker-plugin-configure-flags)
5289         (--enable-linker-plugin-flags): Document new flags.
5290
5291 2014-06-13  Martin Jambor  <mjambor@suse.cz>
5292
5293         PR ipa/61186
5294         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
5295         cache_token if returning early.
5296
5297 2014-06-13  Nick Clifton  <nickc@redhat.com>
5298
5299         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
5300         requested alignment is active.
5301         (LABEL_ALIGN): Likewise.
5302         (LOOP_ALIGN): Likewise.
5303
5304 2014-06-13  Richard Biener  <rguenther@suse.de>
5305
5306         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5307         Rewrite to propagate the VN result into all uses where
5308         possible and to remove stmts becoming dead because of that.
5309         (eliminate): Generalize stmt removal handling, remove in
5310         reverse dominator order to support proper debug stmt
5311         generation.  Update stmts before removing stmts.
5312         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
5313
5314 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5315
5316         PR tree-optimization/61375
5317         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
5318         symbolic number cannot be represented in an uint64_t.
5319         (find_bswap_or_nop_1): Likewise.
5320
5321 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
5322
5323         * symtab.c (symtab_node::reset_section): New method.
5324         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
5325         for localization.
5326         * cgraph.h (reset_section): Declare.
5327         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
5328         do not consider comdat locals.
5329         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
5330         for new symbol.
5331         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
5332         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
5333         reset sections of symbols dragged out of the comdats.
5334         (function_and_variable_visibility): Reset sections of
5335         localized symbols.
5336
5337 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
5338
5339         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
5340         to use symtab and decl_binds_to_current_def_p
5341         * tree-vectorizer.c (increase_alignment): Increase alignment
5342         of alias target, too.
5343
5344 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
5345
5346         PR middle-end/61486
5347         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
5348         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
5349         if outer combined construct is distribute.
5350         (gimplify_omp_for): For OMP_DISTRIBUTE set
5351         gimplify_omp_ctxp->distribute.
5352         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
5353         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
5354         mapping into decl map.
5355
5356 2014-06-12  Jason Merrill  <jason@redhat.com>
5357
5358         * common.opt (fabi-version): Change default to 0.
5359
5360 2014-06-12  Jason Merrill  <jason@redhat.com>
5361
5362         * toplev.c (process_options): Reject -fabi-version=1.
5363
5364 2014-06-12  Jeff Law  <law@redhat.com>
5365
5366         PR tree-optimization/61009
5367         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
5368         value when we stop processing a block due to problematic PHIs.
5369
5370 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
5371
5372         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
5373         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
5374         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
5375         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
5376         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
5377         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
5378         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
5379         are not in the spec.
5380
5381 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
5382
5383         PR target/59843
5384         * config/aarch64/aarch64-modes.def: Add V1DFmode.
5385         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
5386         Support V1DFmode.
5387
5388 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
5389
5390         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
5391
5392 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
5393
5394         PR target/61443
5395         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
5396         loading from address spaces.
5397
5398 2014-06-12  Martin Liska  <mliska@suse.cz>
5399
5400         PR ipa/61462
5401         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
5402         statement is reachable.
5403
5404 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
5405
5406         * symtab.c (section_hash): New hash.
5407         (symtab_unregister_node): Clear section before freeing.
5408         (hash_section_hash_entry): New haser.
5409         (eq_sections): New function.
5410         (symtab_node::set_section_for_node): New method.
5411         (set_section_1): Update.
5412         (symtab_node::set_section): Take string instead of tree as parameter.
5413         (symtab_resolve_alias): Update.
5414         * cgraph.h (section_hash_entry_d): New structure.
5415         (section_hash_entry): New typedef.
5416         (cgraph_node): Change comdat_group_ to x_comdat_group,
5417         change section_ to x_section and turn into section_hash_entry;
5418         update accestors; put set_section_for_node offline.
5419         * tree.c (decl_section_name): Turn into string.
5420         (set_decl_section_name): Change parameter to be string.
5421         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
5422         * sdbout.c (sdbout_one_type): Update.
5423         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
5424         * varasm.c (IN_NAMED_SECTION, get_named_section,
5425         resolve_unique_section, hot_function_section, get_named_text_section,
5426         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
5427         make_decl_rtl, default_unique_section): Update.
5428         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
5429         (c6x_elf_unique_section): Update.
5430         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
5431         * config/pa/pa.c (pa_function_section): Update.
5432         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
5433         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
5434         * config/arc/arc.c (arc_in_small_data_p): Update.
5435         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
5436         * config/mcore/mcore.c (mcore_unique_section): Update.
5437         * config/mips/mips.c (mips16_build_function_stub): Update.
5438         (mips16_build_call_stub): Update.
5439         (mips_function_rodata_section): Update.
5440         (mips_in_small_data_p): Update.
5441         * config/score/score.c (score_in_small_data_p): Update.
5442         * config/rx/rx.c (rx_in_small_data): Update.
5443         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
5444         (rs6000_xcoff_asm_named_section): Update.
5445         (rs6000_xcoff_unique_section): Update.
5446         * config/frv/frv.c (frv_string_begins_with): Update.
5447         (frv_in_small_data_p): Update.
5448         * config/v850/v850.c (v850_encode_data_area): Update.
5449         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
5450         (bfin_handle_l1_data_attribute): Update.
5451         (bfin_handle_l2_attribute): Update.
5452         * config/mep/mep.c (mep_unique_section): Update.
5453         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
5454         Update.
5455         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
5456         (h8300_handle_tiny_data_attribute): Update.
5457         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
5458         (m32r_in_small_data_p): Update.
5459         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
5460         * config/i386/i386.c (ix86_in_large_data_p): Update.
5461         * config/i386/winnt.c (i386_pe_unique_section): Update.
5462         * config/darwin.c (darwin_function_section): Update.
5463         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
5464         * tree-emutls.c (get_emutls_init_templ_addr): Update.
5465         (new_emutls_decl): Update.
5466         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
5467         input_varpool_node): Update.
5468         (ead_string_cst): Turn to ...
5469         (read_string): ... this one.
5470         * dwarf2out.c (secname_for_decl): Update.
5471         * asan.c (asan_protect_global): Update.
5472
5473 2014-06-11  DJ Delorie  <dj@redhat.com>
5474
5475         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
5476         cache lines.
5477         * config/rx/rx.c (rx_option_override): Likewise.
5478         (rx_align_for_label): Likewise.
5479
5480         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
5481
5482 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
5483
5484         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
5485         prototype.
5486
5487 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5488
5489         * common.md: New file.
5490         * doc/md.texi: Update description of generic, machine-independent
5491         constraints.
5492         * config/s390/constraints.md (e): Delete.
5493         * Makefile.in (md_file): Include common.md.
5494         * config/m32c/t-m32c (md_file): Likewise.
5495         * genpreds.c (general_mem): New array.
5496         (generic_constraint_letters): Remove constraints now defined by
5497         common.md.
5498         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
5499         Allow the first character to be '<' or '>' as well.
5500         * genoutput.c (general_mem): New array.
5501         (indep_constraints): Remove constraints now defined by common.md.
5502         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
5503         Remove special handling of 'm'.
5504         * ira-costs.c (record_reg_classes): Remove special handling of
5505         constraints now defined by common.md.
5506         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
5507         * ira-lives.c (single_reg_class): Likewise.
5508         (ira_implicitly_set_insn_hard_regs): Likewise.
5509         * lra-constraints.c (reg_class_from_constraints): Likewise.
5510         (process_alt_operands, process_address, curr_insn_transform): Likewise.
5511         * postreload.c (reload_cse_simplify_operands): Likewise.
5512         * reload.c (push_secondary_reload, scratch_reload_class)
5513         (find_reloads, alternative_allows_const_pool_ref): Likewise.
5514         * reload1.c (maybe_fix_stack_asms): Likewise.
5515         * targhooks.c (default_secondary_reload): Likewise.
5516         * stmt.c (parse_output_constraint): Likewise.
5517         * recog.c (preprocess_constraints): Likewise.
5518         (constrain_operands, peep2_find_free_register): Likewise.
5519         (asm_operand_ok): Likewise, but add a comment saying why 'o'
5520         must be handled specially.
5521
5522 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5523
5524         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
5525         * genpreds.c (have_const_dbl_constraints): Delete.
5526         (add_constraint): Don't set it.
5527         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
5528         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
5529         constraints using the lookup_constraint logic.
5530         * ira-lives.c (single_reg_class): Likewise.
5531         * ira.c (ira_setup_alts): Likewise.
5532         * lra-constraints.c (process_alt_operands): Likewise.
5533         * recog.c (asm_operand_ok, constrain_operands): Likewise.
5534         * reload.c (find_reloads): Likewise.
5535
5536 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5537
5538         * genpreds.c (const_int_start, const_int_end): New variables.
5539         (choose_enum_order): Output CONST_INT constraints before memory
5540         constraints.
5541         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
5542         Add CT_CONST_INT.
5543         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
5544         * ira.c (ira_setup_alts): Likewise.
5545         * lra-constraints.c (process_alt_operands): Likewise.
5546         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
5547         * reload.c (find_reloads): Likewise.
5548
5549 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5550
5551         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
5552         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
5553         * recog.c (preprocess_constraints): Update accordingly.
5554
5555 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5556
5557         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
5558         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
5559         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
5560         * genpreds.c (print_type_tree): New function.
5561         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
5562         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
5563         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
5564         Write out enum constraint_type and get_constraint_type.
5565         * lra-constraints.c (satisfies_memory_constraint_p): Take a
5566         constraint_num rather than a constraint string.
5567         (satisfies_address_constraint_p): Likewise.
5568         (reg_class_from_constraints): Avoid old constraint macros.
5569         (process_alt_operands, process_address_1): Likewise.
5570         (curr_insn_transform): Likewise.
5571         * ira-costs.c (record_reg_classes): Likewise.
5572         (record_operand_costs): Likewise.
5573         * ira-lives.c (single_reg_class): Likewise.
5574         (ira_implicitly_set_insn_hard_regs): Likewise.
5575         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
5576         * postreload.c (reload_cse_simplify_operands): Likewise.
5577         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
5578         (constrain_operands, peep2_find_free_register): Likewise.
5579         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
5580         (find_reloads, alternative_allows_const_pool_ref): Likewise.
5581         * reload1.c (maybe_fix_stack_asms): Likewise.
5582         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
5583         * targhooks.c (default_secondary_reload): Likewise.
5584         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
5585         to EXTRA_CONSTRAINT_STR.
5586         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
5587
5588 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5589
5590         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
5591         (write_constraint_satisfied_p_array): ...this new function.
5592         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
5593         an array.
5594         (write_insn_preds_c): Update accordingly.
5595
5596 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5597
5598         * genpreds.c (write_lookup_constraint): Rename to...
5599         (write_lookup_constraint_1): ...this.
5600         (write_lookup_constraint_array): New function.
5601         (write_tm_preds_h): Define lookup_constraint as an inline function
5602         that uses write_lookup_constraint_array where possible.
5603         (write_insn_preds_c): Update for the changes above.
5604
5605 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
5606
5607         * doc/md.texi (regclass_for_constraint): Rename to...
5608         (reg_class_for_constraint): ...this.
5609         * genpreds.c (num_constraints, enum_order, register_start)
5610         (register_end, satisfied_start, memory_start, memory_end)
5611         (address_start, address_end): New variables.
5612         (add_constraint): Count the number of constraints.
5613         (choose_enum_order): New function.
5614         (write_enum_constraint_num): Iterate over enum_order.
5615         (write_regclass_for_constraint): Rename to...
5616         (write_reg_class_for_constraint_1): ...this and update output
5617         accordingly.
5618         (write_constraint_satisfied_p): Rename to...
5619         (write_constraint_satisfied_p_1): ...this and update output
5620         accordingly.  Do nothing if all extra constraints are register
5621         constraints.
5622         (write_insn_extra_memory_constraint): Delete.
5623         (write_insn_extra_address_constraint): Delete.
5624         (write_range_function): New function.
5625         (write_tm_preds_h): Define constraint_satisfied_p and
5626         reg_class_for_constraint as inline functions that do a range check
5627         before calling the out-of-line function.  Use write_range_function
5628         to implement insn_extra_{register,memory,address}_constraint,
5629         the first of which is new.
5630         (write_insn_preds_c): Update after above changes to write_* functions.
5631         (main): Call choose_enum_order.
5632
5633 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5634
5635         PR tree-optimization/61306
5636         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
5637         expression instead of its size.
5638         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
5639         false to prevent optimization when the result is unpredictable due to
5640         arithmetic right shift of signed type with highest byte is set.
5641         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
5642         (init_symbolic_number): Likewise.
5643         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
5644         when the result is unpredictable due to sign extension.
5645
5646 2014-06-11  Terry Guo  <terry.guo@arm.com>
5647
5648         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
5649         (*thumb1_addsi3): Ditto.
5650         (*thumb_subdi3): Ditto.
5651         (thumb1_subsi3_insn): Ditto.
5652         (*thumb_mulsi3): Ditto.
5653         (*thumb_mulsi3_v6): Ditto.
5654         (*thumb1_andsi3_insn): Ditto.
5655         (thumb1_bicsi3): Ditto.
5656         (*thumb1_iorsi3_insn): Ditto.
5657         (*thumb1_xorsi3_insn): Ditto.
5658         (*thumb1_ashlsi3): Ditto.
5659         (*thumb1_ashrsi3): Ditto.
5660         (*thumb1_lshrsi3): Ditto.
5661         (*thumb1_rotrsi3): Ditto.
5662         (*thumb1_negdi2): Ditto.
5663         (*thumb1_negsi2): Ditto.
5664         (*thumb1_abssi2): Ditto.
5665         (*thumb1_neg_abssi2): Ditto.
5666         (*thumb1_one_cmplsi2): Ditto.
5667         (*thumb1_zero_extendhisi2): Ditto.
5668         (*thumb1_zero_extendqisi2): Ditto.
5669         (*thumb1_zero_extendqisi2_v6): Ditto.
5670         (thumb1_extendhisi2): Ditto.
5671         (thumb1_extendqisi2): Ditto.
5672         (*thumb1_movdi_insn): Ditto.
5673         (*thumb1_movsi_insn): Ditto.
5674         (*thumb1_movhi_insn): Ditto.
5675         (thumb_movhi_clobber): Ditto.
5676         (*thumb1_movqi_insn): Ditto.
5677         (*thumb1_movhf): Ditto.
5678         (*thumb1_movsf_insn): Ditto.
5679         (*thumb_movdf_insn): Ditto.
5680         (movmem12b): Ditto.
5681         (movmem8b): Ditto.
5682         (cbranchqi4): Ditto.
5683         (cbranchsi4_insn): Ditto.
5684         (cbranchsi4_scratch): Ditto.
5685         (*negated_cbranchsi4): Ditto.
5686         (*tbit_cbranch): Ditto.
5687         (*tlobits_cbranch): Ditto.
5688         (*tstsi3_cbranch): Ditto.
5689         (*cbranchne_decr1): Ditto.
5690         (*addsi3_cbranch): Ditto.
5691         (*addsi3_cbranch_scratch): Ditto.
5692         (*thumb_cmpdi_zero): Ditto.
5693         (cstoresi_eq0_thumb1): Ditto.
5694         (cstoresi_ne0_thumb1): Ditto.
5695         (*cstoresi_eq0_thumb1_insn): Ditto.
5696         (*cstoresi_ne0_thumb1_insn): Ditto.
5697         (cstoresi_nltu_thumb1): Ditto.
5698         (cstoresi_ltu_thumb1): Ditto.
5699         (thumb1_addsi3_addgeu): Ditto.
5700         (*thumb_jump): Ditto.
5701         (*call_reg_thumb1_v5): Ditto.
5702         (*call_reg_thumb1): Ditto.
5703         (*call_value_reg_thumb1_v5): Ditto.
5704         (*call_value_reg_thumb1): Ditto.
5705         (*call_insn): Ditto.
5706         (*call_value_insn): Ditto.
5707         (thumb1_casesi_internal_pic): Ditto.
5708         (thumb1_casesi_dispatch): Ditto.
5709         (*thumb1_indirect_jump): Ditto.
5710         (prologue_thumb1_interwork): Ditto.
5711         (*epilogue_insns): Ditto.
5712         (consttable_1): Ditto.
5713         (consttable_2): Ditto.
5714         (tablejump): Ditto.
5715         (*thumb1_tablejump): Ditto.
5716         (thumb_eh_return): Ditto.
5717         (define_peephole2): Two of them are thumb1 only and got moved into
5718         new file thumb1.md.
5719         (define_split): Six of them are thumb1 only and got moved into new
5720         file thumb1.md.
5721         * config/arm/thumb1.md: New file comprised of above thumb1 only
5722         patterns.
5723
5724 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5725
5726         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
5727         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
5728         dependencies.
5729         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
5730         (aarch64_crc_builtin_datum): New struct.
5731         (aarch64_crc_builtin_data): New.
5732         (aarch64_init_crc32_builtins): New function.
5733         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
5734         (aarch64_crc32_expand_builtin): New.
5735         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
5736         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5737         __ARM_FEATURE_CRC32 when appropriate.
5738         (TARGET_CRC32): Define.
5739         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
5740         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
5741         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
5742         (aarch64_<crc_variant>): New pattern.
5743         * config/aarch64/arm_acle.h: New file.
5744         * config/aarch64/iterators.md (CRC): New int iterator.
5745         (crc_variant, crc_mode): New int attributes.
5746         * doc/aarch64-acle-intrinsics.texi: New file.
5747         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
5748         Include aarch64-acle-intrinsics.texi.
5749
5750 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
5751
5752         * tree-vect-data-refs.c (vect_grouped_store_supported): New
5753         check for stores group of length 3.
5754         (vect_permute_store_chain): New permutations for stores group of
5755         length 3.
5756         * tree-vect-stmts.c (vect_model_store_cost): Change cost
5757         of vec_perm_shuffle for the new permutations.
5758
5759 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
5760
5761         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
5762         table rewriting temporarily on targets not supporting ONE_ONLY.
5763
5764 2014-06-11  Richard Biener  <rguenther@suse.de>
5765
5766         PR middle-end/61437
5767         Revert
5768         2014-06-04  Richard Biener  <rguenther@suse.de>
5769
5770         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
5771         TREE_PUBLIC and DECL_EXTERNAL decls.
5772
5773 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
5774
5775         * varasm.c (set_implicit_section): New function.
5776         (resolve_unique_section): Use it to set implicit section
5777         for aliases, too.
5778         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
5779         (default_function_section): Likewise.
5780         (decl_binds_to_current_def_p): Constify argument.
5781         * varasm.h (decl_binds_to_current_def_p): Update prototype.
5782         * asan.c (asan_protect_global): Use
5783         symtab_get_node (decl)->implicit_section.
5784         * symtab.c (dump_symtab_base): Dump implicit sections.
5785         (verify_symtab_base): Verify sanity of sectoins and comdats.
5786         (symtab_resolve_alias): Alias share the section of its target.
5787         (set_section_1): New function.
5788         (symtab_node::set_section): Move here, recurse to aliases.
5789         (verify_symtab): Check for duplicated symtab lists.
5790         * tree-core.h (implicit_section_name_p): Remove.
5791         * tree-vect-data-refs.c: Include varasm.h.
5792         (vect_can_force_dr_alignment_p): Fix conditional on when
5793         decl bints to current definition; use
5794         symtab_get_node (decl)->implicit_section.
5795         * cgraph.c (cgraph_make_node_local_1): Fix section set.
5796         * cgraph.h (struct symtab_node): Add implicit_section.
5797         (set_section): Rename to ...
5798         (set_section_for_node): ... this one.
5799         (set_section): Declare.
5800         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
5801         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5802         input_overwrite_node, input_varpool_node): Stream implicit_section.
5803         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
5804         removal; it will fail in LTO.
5805
5806 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5807
5808         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
5809         Change second alternative type to f_mcr.
5810         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
5811         and 12th alternatives' types to f_mcr and f_mrc.
5812         (*movdi_aarch64): Same for 12th and 13th alternatives.
5813         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
5814         (aarch64_movtilow_tilow): Change type to fmov.
5815
5816 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
5817
5818         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
5819         (aarch64_save_or_restore_callee_save_registers): Fix layout.
5820
5821 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5822
5823         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
5824         New expander.
5825         (aarch64_sqrdmulh_lane<mode>): Likewise.
5826         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
5827         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
5828         (aarch64_sqdmulh_laneq<mode>): New expander.
5829         (aarch64_sqrdmulh_laneq<mode>): Likewise.
5830         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
5831         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
5832         (aarch64_sqdmulh_lane<mode>): New expander.
5833         (aarch64_sqrdmulh_lane<mode>): Likewise.
5834         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
5835         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
5836         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
5837         (aarch64_sqdmlal_laneq<mode>): Likewise.
5838         (aarch64_sqdmlsl_lane<mode>): Likewise.
5839         (aarch64_sqdmlsl_laneq<mode>): Likewise.
5840         (aarch64_sqdmlal2_lane<mode>): Likewise.
5841         (aarch64_sqdmlal2_laneq<mode>): Likewise.
5842         (aarch64_sqdmlsl2_lane<mode>): Likewise.
5843         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
5844         (aarch64_sqdmull_lane<mode>): Likewise.
5845         (aarch64_sqdmull_laneq<mode>): Likewise.
5846         (aarch64_sqdmull2_lane<mode>): Likewise.
5847         (aarch64_sqdmull2_laneq<mode>): Likewise.
5848
5849 2014-06-10  Richard Biener  <rguenther@suse.de>
5850
5851         PR tree-optimization/61438
5852         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
5853         (eliminate_dom_walker::before_dom_children): Only try to inhibit
5854         insertion of IVs if running PRE.
5855         (eliminate): Adjust.
5856         (pass_pre::execute): Likewise.
5857         (pass_fre::execute): Likewise.
5858
5859 2014-06-10  Richard Biener  <rguenther@suse.de>
5860
5861         PR middle-end/61456
5862         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
5863         Do not use the main variant for the type comparison.
5864         (ncr_compar): Likewise.
5865         (nonoverlapping_component_refs_p): Likewise.
5866
5867 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5868
5869         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
5870         REG_CFA_RESTORE mode.
5871
5872 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
5873
5874         * config/i386/i386.c (expand_vec_perm_pblendv): New.
5875         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
5876         expand_vec_perm_pblendv.
5877
5878 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5879
5880         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
5881         available.
5882         Simplify description of __crc32d and __crc32cd intrinsics.
5883         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
5884         availability.
5885
5886 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5887
5888         PR lto/61334
5889         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
5890         * config.in: Regenerate.
5891         * configure: Likewise.
5892
5893 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
5894
5895         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
5896         and public vars.
5897         (intersect_static_var_sets): Remove.
5898         (propagate): Do not prune local statics.
5899
5900 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
5901
5902         PR fortran/60928
5903         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
5904         Set lastprivate_firstprivate even if omp_private_outer_ref
5905         langhook returns true.
5906         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
5907         langhook, call unshare_expr on new_var and call
5908         build_outer_var_ref to get the last argument.
5909
5910 2014-06-10  Marek Polacek  <polacek@redhat.com>
5911
5912         PR c/60988
5913         * doc/extend.texi: Add cindex for transparent_union.
5914
5915 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5916
5917         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
5918         init_symbolic_number ().
5919
5920 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
5921
5922         PR middle-end/61141
5923         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
5924         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
5925         (verify_rtl_sharing): Likewise.
5926
5927 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
5928
5929         PR c++/54442
5930         * tree.c (build_qualified_type): Use a canonical type for
5931         TYPE_CANONICAL.
5932
5933 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5934
5935         * config/arm/arm-modes.def: Remove XFmode.
5936
5937 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
5938
5939         PR target/61062
5940         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
5941         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
5942         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
5943         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
5944         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
5945         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
5946         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
5947         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
5948         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
5949
5950 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
5951
5952         * tree-core.h (tree_decl_with_vis): Remove section_name.
5953
5954 2014-06-09  Kito Cheng  <kito@0xlab.org>
5955
5956         * ira.c (ira): Don't call init_caller_save if LRA enabled
5957         since LRA use its own infrastructure to handle that.
5958
5959 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
5960
5961         * symtab.c (dump_symtab_base): Update dumping.
5962         (symtab_make_decl_local): Clear only DECL_COMDAT.
5963         * tree-vect-data-refs.c (Check that variable is static before
5964         tampering with sections.
5965         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
5966         (cgraph_create_virtual_clone): Likewise.
5967         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
5968         (decl_section_name, set_decl_section_name): New accessors.
5969         (find_decls_types_r): Do not walk section name
5970         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
5971         (decl_comdat_group, decl_comdat_group_id): Constify.
5972         (decl_section_name, set_decl_section_name): Update.
5973         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
5974         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
5975         (cgraph_make_node_local_1): Clear section and comdat group.
5976         * cgraph.h (set_comdat_group): Sanity check.
5977         (get_section, set_section): New.
5978         * ipa-comdats.c (ipa_comdats): Use get_section.
5979         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
5980         * lto-streamer-out.c: Do not follow section names.
5981         * c-family/c-common.c (handle_section_attribute): Update.
5982         * lto-cgraph.c (lto_output_node): Output section.
5983         (lto_output_varpool_node): Likewise.
5984         (read_comdat_group): Rename to ...
5985         (read_identifier): ... this one.
5986         (read_string_cst): New function.
5987         (input_node, input_varpool_node): Input section names.
5988         * tree-emutls.c (get_emutls_init_templ_addr): Update.
5989         (new_emutls_decl): Update.
5990         (secname_for_decl): Check section names only of static vars.
5991         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
5992         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
5993         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
5994         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
5995         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
5996         * config/mcore/mcore.c (mcore_unique_section): Likewise.
5997         * config/mips/mips.c (mips16_build_function_stub): Likewise.
5998         * config/v850/v850.c (v850_insert_attributes): Likewise.
5999         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
6000         Likewise.
6001         (h8300_handle_tiny_data_attribute): Likewise.
6002         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
6003         (bfin_handle_l2_attribute): Likewise.
6004
6005 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
6006
6007         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
6008         remove static initializer.
6009
6010 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
6011
6012         * varasm.c (use_blocks_for_decl_p): Check symbol table
6013         instead of alias attribute.
6014         (place_block_symbol): Recurse on aliases.
6015
6016 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
6017
6018         * ipa-visibility.c: Include varasm.h
6019         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
6020
6021 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
6022
6023         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
6024         outputting aliases.
6025
6026 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
6027
6028         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
6029         from test_insn into GGC space escape via SET_SRC.
6030
6031 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
6032
6033         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
6034         call statement, if any.
6035         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
6036         statements, if any.  Tidy up.
6037
6038 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
6039
6040         PR target/61431
6041         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
6042         iterators, VSX_D that handles 64-bit types, and VSX_LE that
6043         handles swapping the two 64-bit double words on little endian
6044         systems.  Include V1TImode and optionally TImode in VSX_LE so that
6045         these types are properly swapped.  Change all of the insns and
6046         splits that do the 64-bit swaps to use VSX_LE.
6047         (vsx_le_perm_load_<mode>): Likewise.
6048         (vsx_le_perm_store_<mode>): Likewise.
6049         (splitters for little endian memory operations): Likewise.
6050         (vsx_xxpermdi2_le_<mode>): Likewise.
6051         (vsx_lxvd2x2_le_<mode>): Likewise.
6052         (vsx_stxvd2x2_le_<mode>): Likewise.
6053
6054 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
6055
6056         PR target/61423
6057         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
6058         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
6059         and corresponding splitters.  Zero extend general register
6060         or memory input operand to XMM temporary.  Enable for
6061         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
6062         (floatunssi<mode>2): Update expander predicate.
6063
6064 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
6065
6066         PR rtl-optimization/61325
6067         * lra-constraints.c (process_address_1): Check scale equal to one
6068         to prevent transformation: base + scale * index => base + new_reg.
6069
6070 2014-06-06  Richard Biener  <rguenther@suse.de>
6071
6072         PR tree-optimization/59299
6073         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
6074         a def operand.
6075         (nearest_common_dominator_of_uses): Likewise.
6076         (statement_sink_location): Adjust.  Support sinking loads.
6077
6078 2014-06-06  Martin Jambor  <mjambor@suse.cz>
6079
6080         * ipa-prop.c (get_place_in_agg_contents_list): New function.
6081         (build_agg_jump_func_from_list): Likewise.
6082         (determine_known_aggregate_parts): Renamed to
6083         determine_locally_known_aggregate_parts.  Moved some functionality
6084         to the two functions above, removed bound checks.
6085
6086 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
6087
6088         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
6089         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
6090         (aarch64_progress_pointer): Likewise.
6091         (aarch64_copy_one_part_and_move_pointers): Likewise.
6092         (aarch64_expand_movmen): Likewise.
6093         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
6094         * config/aarch64/aarch64.md (movmem<mode>): New.
6095
6096 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
6097
6098         * targhooks.c (default_add_stmt_cost): Call target specific
6099         hook instead of default one.
6100
6101 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6102
6103         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
6104         endianness instead of host endianness.
6105         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
6106         comments.
6107
6108 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
6109
6110         PR debug/53927
6111         * function.c (instantiate_decls): Process the saved static chain.
6112         (expand_function_start): If not optimizing, save the static chain
6113         onto the stack.
6114         * tree-nested.c (convert_all_function_calls): Always create the static
6115         chain for nested functions if not optimizing.
6116
6117 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
6118
6119         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
6120
6121 2014-06-06  Richard Biener  <rguenther@suse.de>
6122
6123         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
6124         (construct_init_block): Likewise.
6125         (construct_exit_block): Likewise.
6126         (pass_expand::execute): Likewise.
6127         * graphite.c (graphite_transforms): Replace check for current_loops
6128         with a check for > 1 loops.
6129         (pass_graphite_transforms::execute): Adjust.
6130         * ipa-split.c (split_function): Remove check for current_loops.
6131         * omp-low.c (expand_parallel_call): Likewise.
6132         (expand_omp_for_init_counts): Likewise.
6133         (extract_omp_for_update_vars): Likewise.
6134         (expand_omp_for_generic): Likewise.
6135         (expand_omp_sections): Likewise.
6136         (expand_omp_target): Likewise.
6137         * tracer.c (tail_duplicate): Likewise.
6138         (pass_tracer::execute): Likewise.
6139         * trans-mem.c (expand_transaction): Likewise.
6140         * tree-complex.c (expand_complex_div_wide): Likewise.
6141         * tree-eh.c (lower_resx): Likewise.
6142         (cleanup_empty_eh_merge_phis): Likewise.
6143         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
6144         current_loops with a check for > 1 loops.
6145         (pass_predcom::execute): Adjust.
6146         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
6147         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
6148         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
6149         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
6150         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6151         * tree-switch-conversion.c (process_switch): Likewise.
6152         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
6153         * tree-vrp.c (vrp_visit_phi_node): Likewise.
6154         (execute_vrp): Likewise.
6155         * ubsan.c (ubsan_expand_null_ifn): Likewise.
6156
6157 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
6158
6159         * rtl.h (insn_location): Declare.
6160         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
6161         with UNKNOWN_LOCATION.
6162         * emit-rtl.c (insn_location): New function.
6163         * final.c (notice_source_line): Check that the instruction has a
6164         location before retrieving it and use insn_location.
6165         * modulo-sched.c (loop_single_full_bb_p): Likewise.
6166         * print-rtl.c (print_rtx): Likewise.
6167
6168 2014-06-06  Richard Biener  <rguenther@suse.de>
6169
6170         * passes.def: Move 2nd VRP pass before phi-only-cprop.
6171
6172 2014-06-06  Christian Bruel  <christian.bruel@st.com>
6173
6174         PR tree-optimization/43934
6175         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
6176         cost.
6177
6178 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
6179
6180         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
6181         return NO_REGS for extra address and memory constraints.  Handle
6182         operands that match (or are equivalent to something that matches)
6183         extra constant constraints.  Ignore other non-register operands.
6184
6185 2014-06-06  Alan Modra  <amodra@gmail.com>
6186
6187         PR target/61300
6188         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
6189         * doc/tm.texi: Regenerate.
6190         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
6191         Use throughout in place of REG_PARM_STACK_SPACE.
6192         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
6193         "incoming" param.  Pass to rs6000_function_parms_need_stack.
6194         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
6195         prototype_p when incoming.  Use function decl when incoming
6196         to handle K&R style functions.
6197         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
6198         (INCOMING_REG_PARM_STACK_SPACE): Define.
6199
6200 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6201
6202         PR target/52472
6203         * cfgexpand.c (expand_debug_expr): Use address space of nested
6204         TREE_TYPE for ADDR_EXPR and MEM_REF.
6205
6206 2014-06-05  Jeff Law  <law@redhat.com>
6207
6208         PR tree-optimization/61289
6209         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
6210         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
6211         looking for those which match LHS.  All callers changed.
6212         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
6213         parameters and code which manipulated them.  All callers changed.
6214         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
6215         and DST_MAP parameters.  Simplify invalidation code by just calling
6216         invalidate_equivalences.  All callers changed.
6217         (thread_across_edge): Simplify now that we don't need to maintain
6218         the map of equivalences to invalidate.
6219
6220 2014-06-05  Kai Tietz  <ktietz@redhat.com>
6221             Richard Henderson  <rth@redhat.com>
6222
6223         PR target/46219
6224         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
6225         checking for !TARGET_X32.
6226         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
6227         (sibcall_intern): New define_insn, plus required peepholes.
6228         (sibcall_pop_intern): Likewise.
6229         (sibcall_value_intern): Likewise.
6230         (sibcall_value_pop_intern): Likewise.
6231
6232 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
6233
6234         * tree-inline.c (tree_function_versioning): Check DF info existence
6235         before accessing it.
6236
6237 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6238
6239         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
6240         frame_size.
6241         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
6242         aarch64_frame hard_fp_offset and frame_size.
6243         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
6244         frame_size; remove original_frame_size.
6245         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
6246         (aarch64_initial_elimination_offset): Remove frame_size and
6247         offset.  Use aarch64_frame frame_size.
6248
6249 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6250             Jiong Wang  <jiong.wang@arm.com>
6251             Renlin  <renlin.li@arm.com>
6252
6253         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
6254         initialization of R30 offset.  Update offset.  Iterate core
6255         regisers upto X30.  Remove X29, X30 specific code.
6256
6257 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6258             Jiong Wang  <jiong.wang@arm.com>
6259
6260         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
6261         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
6262         (aarch64_register_saved_on_entry): Adjust test.
6263
6264 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6265
6266         * config/aarch64/aarch64.h (machine_function): Move
6267         saved_varargs_size from here...
6268         (aarch64_frame): ... to here.
6269
6270         * config/aarch64/aarch64.c (aarch64_expand_prologue)
6271         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
6272         (aarch64_initial_elimination_offset)
6273         (aarch64_setup_incoming_varargs): Adjust location of
6274         saved_varargs_size.
6275
6276 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6277
6278         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
6279         layout comment.
6280
6281 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
6282             Prachi Godbole  <Prachi.Godbole@imgtec.com>
6283
6284         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
6285         mips32r5 entry to use PROCESSOR_P5600.
6286         * config/mips/mips-tables.opt: Regenerate.
6287         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
6288         * config/mips/mips.c (mips_fmadd_bypass): New function.
6289         (mips_rtx_cost_data): Add costs for p5600.
6290         (mips_issue_rate): Add support for p5600.
6291         (mips_multipass_dfa_lookahead): Likewise.
6292         * config/mips/mips.h (TUNE_P5600): New define.
6293         (TUNE_MACC_CHAINS): Add TUNE_P5600.
6294         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
6295         * config/mips/mips.md: Include p5600.md.
6296         (processor): Add p5600.
6297         * config/mips/p5600.md: New file.
6298
6299 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
6300
6301         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
6302         * config/i386/predicates.md (palignr_operand): New.
6303         Indicates if permutation is suitable for palignr instruction.
6304
6305 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
6306
6307         PR tree-optimization/61319
6308         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
6309         stmt belongs to loop.
6310
6311 2014-06-05  Richard Biener  <rguenther@suse.de>
6312
6313         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
6314         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
6315         (lookup_tmp_var): Adjust.
6316         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
6317
6318 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6319
6320         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
6321
6322 2014-06-05  Marek Polacek  <polacek@redhat.com>
6323
6324         PR c/49706
6325         * doc/invoke.texi: Document -Wlogical-not-parentheses.
6326
6327 2014-06-04  Tom de Vries  <tom@codesourcery.com>
6328
6329         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
6330         CONST_INT.
6331
6332 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
6333
6334         PR tree-optimization/61385
6335         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
6336
6337 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
6338
6339         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
6340         changed to use fatal_error.
6341         (main): Ensure lto_wrapper_cleanup is run atexit.
6342
6343 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
6344
6345         * lra-constraints.c (valid_address_p): Move earlier in file.
6346         (address_eliminator): New structure.
6347         (satisfies_memory_constraint_p): New function.
6348         (satisfies_address_constraint_p): Likewise.
6349         (process_alt_operands, process_address, curr_insn_transform): Use them.
6350
6351 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
6352
6353         * lra-int.h (lra_static_insn_data): Make operand_alternative a
6354         const pointer.
6355         (target_lra_int, default_target_lra_int, this_target_lra_int)
6356         (op_alt_data): Delete.
6357         * lra.h (lra_init): Delete.
6358         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
6359         (init_insn_code_data_once): Remove op_alt_data handling.
6360         (finish_insn_code_data_once): Likewise.
6361         (init_op_alt_data): Delete.
6362         (get_static_insn_data): Initialize operand_alternative to null.
6363         (free_insn_recog_data): Cast operand_alternative before freeing it.
6364         (setup_operand_alternative): Take the operand_alternative as
6365         parameter and assume it isn't already cached in the static
6366         insn data.
6367         (lra_set_insn_recog_data): Update accordingly.
6368         (lra_init): Delete.
6369         * ira.c (ira_init): Don't call lra_init.
6370         * target-globals.h (this_target_lra_int): Declare.
6371         (target_globals): Remove lra_int.
6372         (restore_target_globals): Update accordingly.
6373         * target-globals.c: Don't include lra-int.h.
6374         (default_target_globals, save_target_globals): Remove lra_int.
6375
6376 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
6377
6378         * recog.h (operand_alternative): Convert reg_class, reject,
6379         matched and matches into bitfields.
6380         (preprocess_constraints): New overload.
6381         (preprocess_insn_constraints): New function.
6382         (preprocess_constraints): Take the insn as parameter.
6383         (recog_op_alt): Change into a pointer.
6384         (target_recog): Add x_op_alt.
6385         * recog.c (asm_op_alt): New variable.
6386         (recog_op_alt): Change into a pointer.
6387         (preprocess_constraints): New overload, replacing the old function
6388         definition with one that doesn't use global state.
6389         (preprocess_insn_constraints): New function.
6390         (preprocess_constraints): Use them.  Take the insn as parameter.
6391         Use asm_op_alt for asms.
6392         (recog_init): Free existing x_op_alt entries.
6393         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
6394         pointer const.
6395         (make_early_clobber_and_input_conflicts): Likewise.
6396         (process_bb_node_lives): Pass the insn to process_constraints.
6397         * reg-stack.c (check_asm_stack_operands): Likewise.
6398         (subst_asm_stack_regs): Likewise.
6399         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
6400         * regrename.c (build_def_use): Likewise.
6401         * sched-deps.c (sched_analyze_insn): Likewise.
6402         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
6403         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
6404         (note_invalid_constants): Likewise.
6405         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6406         (ix86_legitimate_combined_insn): Make operand_alternative pointer
6407         const.
6408
6409 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
6410
6411         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
6412         * ira-lives.c (check_and_make_def_conflict): Check for disabled
6413         alternatives.
6414         (make_early_clobber_and_input_conflicts): Likewise.
6415         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6416
6417 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
6418
6419         * recog.h (alternative_class): New function.
6420         (which_op_alt): Return a const recog_op_alt.
6421         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
6422         (subst_asm_stack_regs): Likewise.
6423         * config/arm/arm.c (note_invalid_constants): Likewise.
6424         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
6425         the operand_alternative; use alternative class instead.
6426         * sel-sched.c (get_reg_class): Likewise.
6427         * regrename.c (build_def_use): Likewise.
6428         (hide_operands, restore_operands, record_out_operands): Update type
6429         accordingly.
6430
6431 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
6432
6433         * recog.h (recog_op_alt): Convert to a flat array.
6434         (which_op_alt): New function.
6435         * recog.c (recog_op_alt): Convert to a flat array.
6436         (preprocess_constraints): Update accordingly, grouping all
6437         operands of the same alternative together, rather than the
6438         other way around.
6439         * ira-lives.c (check_and_make_def_conflict): Likewise.
6440         (make_early_clobber_and_input_conflicts): Likewise.
6441         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6442         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
6443         (subst_asm_stack_regs): Likewise.
6444         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
6445         * regrename.c (hide_operands, record_out_operands): Likewise.
6446         (build_def_use): Likewise.
6447         * sel-sched.c (get_reg_class): Likewise.
6448         * config/arm/arm.c (note_invalid_constants): Likewise.
6449
6450 2014-06-04  Jason Merrill  <jason@redhat.com>
6451
6452         PR c++/51253
6453         PR c++/61382
6454         * gimplify.c (gimplify_arg): Non-static.
6455         * gimplify.h: Declare it.
6456
6457 2014-06-04  Richard Biener  <rguenther@suse.de>
6458
6459         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
6460         TREE_PUBLIC and DECL_EXTERNAL decls.
6461
6462 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
6463
6464         * regcprop.c (copyprop_hardreg_forward_1): Account for
6465         HARD_REGNO_CALL_PART_CLOBBERED.
6466
6467 2014-06-04  Richard Biener  <rguenther@suse.de>
6468
6469         * configure.ac: Check whether the underlying type of int64_t
6470         is long or long long.
6471         * configure: Regenerate.
6472         * config.in: Likewise.
6473         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
6474         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
6475
6476 2014-06-04  Richard Biener  <rguenther@suse.de>
6477
6478         PR tree-optimization/60098
6479         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
6480         we hit a kill.
6481         (dse_optimize_stmt): Simplify, now that we found a kill
6482         earlier.
6483
6484 2014-06-04  Richard Biener  <rguenther@suse.de>
6485
6486         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
6487         of accesses with non-invariant address.
6488
6489 2014-06-04  Martin Liska  <mliska@suse.cz>
6490
6491         * cgraph.h (cgraph_make_wrapper): New function introduced.
6492         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
6493         * ipa-inline.h (inline_analyze_function): The function is global.
6494         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
6495
6496 2014-06-04  Martin Liska  <mliska@suse.cz>
6497
6498         * tree.h (private_lookup_attribute_starting): New function.
6499         (lookup_attribute_starting): Likewise.
6500         * tree.c (private_lookup_attribute_starting): Likewise.
6501
6502 2014-06-04  Martin Liska  <mliska@suse.cz>
6503
6504         * cgraph.h (expand_thunk): New argument added.
6505         (address_taken_from_non_vtable_p): New global function.
6506         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
6507         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
6508         * cgraphunit.c (analyze_function): Likewise.
6509         (assemble_thunks_and_aliases): Argument added to call.
6510         (expand_thunk): New argument forces to produce GIMPLE thunk.
6511
6512 2014-06-04  Martin Liska  <mliska@suse.cz>
6513
6514         * coverage.h (coverage_compute_cfg_checksum): Argument added.
6515         * coverage.c (coverage_compute_cfg_checksum): Likewise.
6516         * profile.c (branch_prob): Likewise.
6517
6518 2014-06-04  Martin Jambor  <mjambor@suse.cz>
6519
6520         PR ipa/61340
6521         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
6522         handler for switch on an ipa_ref_use enum.
6523         * ipa-reference.c (analyze_function): Likewise.
6524
6525 2014-06-04  Kai Tietz  <ktietz@redhat.com>
6526
6527         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
6528         from old call-instruction.
6529
6530 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
6531
6532         * config/aarch64/aarch64.c (aarch64_classify_address)
6533         (aarch64_legitimize_reload_address): Support full addressing modes
6534         for vector modes.
6535         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
6536         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
6537
6538 2014-06-03  Andrew Pinski  <apinski@cavium.com>
6539
6540         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
6541         for OP0.
6542
6543 2014-06-03  Andrew Pinski  <apinski@cavium.com>
6544
6545         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
6546         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
6547
6548 2014-06-03  Kai Tietz  <ktietz@redhat.com>
6549
6550         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
6551         for 64-bit ms-abi.
6552
6553 2014-06-03  Dehao Chen  <dehao@google.com>
6554
6555         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
6556         the same loop.
6557
6558 2014-06-03  Marek Polacek  <polacek@redhat.com>
6559
6560         PR c/60439
6561         * doc/invoke.texi: Document -Wswitch-bool.
6562         * function.c (stack_protect_epilogue): Cast controlling expression of
6563         the switch to int.
6564         * gengtype.c (walk_type): Generate switch expression with its
6565         controlling expression cast to int.
6566
6567 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
6568
6569         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
6570         and attiny841.
6571         * config/avr/avr-tables.opt: Regenerate.
6572         * config/avr/t-multilib: Regenerate.
6573         * doc/avr-mmcu.texi: Regenerate.
6574
6575 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
6576             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6577
6578         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
6579         (ata6617c, ata664251): Add new avr35 devices.
6580         (ata6612c): Add new avr4 device.
6581         (ata6613c, ata6614q): Add new avr5 devices.
6582         * config/avr/avr-tables.opt: Regenerate.
6583         * config/avr/t-multilib: Regenerate.
6584         * doc/avr-mmcu.texi: Regenerate.
6585
6586 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
6587
6588         * gcc/config/aarch64/aarch64-builtins.c
6589         (aarch64_types_binop_ssu_qualifiers): New static data.
6590         (TYPES_BINOP_SSU): Define.
6591         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
6592         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
6593         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
6594         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
6595         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
6596         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
6597         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
6598         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
6599         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
6600         suffix to builtin function name, remove cast.
6601         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
6602         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
6603         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
6604
6605 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
6606
6607         * gcc/config/aarch64/aarch64-builtins.c
6608         (aarch64_types_binop_uus_qualifiers,
6609         aarch64_types_shift_to_unsigned_qualifiers,
6610         aarch64_types_unsigned_shiftacc_qualifiers): Define.
6611         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
6612         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
6613         sqshlu_n, uqshl_n): Update qualifiers.
6614         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
6615         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
6616         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
6617         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
6618         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
6619         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
6620         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
6621         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
6622         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
6623         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
6624         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
6625         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
6626         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
6627         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
6628         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
6629         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
6630         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
6631         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
6632         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
6633         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
6634         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
6635         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
6636         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
6637         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
6638         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
6639         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
6640         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
6641
6642 2014-06-03  Teresa Johnson  <tejohnson@google.com>
6643
6644         * tree-sra.c (modify_function): Record caller nodes after rebuild.
6645
6646 2014-06-02  Jason Merrill  <jason@redhat.com>
6647
6648         PR c++/61020
6649         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
6650
6651 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
6652
6653         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
6654         location == 0.
6655
6656 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
6657
6658         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
6659         New pattern.
6660         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
6661         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
6662         * config/aarch64/iterators.md (REVERSE): New iterator.
6663         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
6664         (rev_op): New int_attribute.
6665         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
6666         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
6667         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
6668         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
6669         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
6670         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
6671         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
6672         Replace temporary __asm__ with __builtin_shuffle.
6673
6674 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
6675
6676         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
6677         mips64r5.
6678         * config/mips/mips-tables.opt: Regenerate.
6679         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
6680         to use mips_isa_rev rather than ISA_MIPS32R2.
6681         * config/mips/mips.h (ISA_MIPS32R3): New define.
6682         (ISA_MIPS32R5): New define.
6683         (ISA_MIPS64R3): New define.
6684         (ISA_MIPS64R5): New define.
6685         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
6686         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
6687         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
6688         and mips64r5.
6689         (MIPS_ISA_SYNCI_SPEC): Likewise.
6690         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
6691         (LINK_SPEC): Added mips32r3 and mips32r5.
6692         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
6693         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
6694         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
6695         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
6696         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
6697         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
6698         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
6699
6700 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
6701
6702         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
6703         options.
6704         * config/mips/mips.opt (mxpa): New option.
6705         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
6706         assembler.
6707
6708 2014-06-03  Martin Jambor  <mjambor@suse.cz>
6709
6710         PR ipa/61160
6711         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
6712         thunks.
6713
6714 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6715
6716         PR tree-optimization/61328
6717         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
6718         initialization from find_bswap_or_nop_1.
6719         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
6720         in source_expr2 before using the size value the function sets. Also
6721         make use of init_symbolic_number () in both the old place and
6722         find_bswap_or_nop_load () to avoid reading uninitialized memory when
6723         doing recursion in the GIMPLE_BINARY_RHS case.
6724
6725 2014-06-03  Richard Biener  <rguenther@suse.de>
6726
6727         PR tree-optimization/61383
6728         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
6729         stmts can't trap.
6730
6731 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
6732
6733         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
6734         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
6735         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
6736         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
6737         in this file.
6738         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
6739         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
6740         * system.h: ...here and make it unconditional.
6741         * target.def (conditional_register_usage): Mention
6742         define_register_constraint instead of old-style constraint macros.
6743         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
6744         * doc/tm.texi: Regenerate.
6745         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
6746         protected by !USE_MD_CONSTRAINTS.
6747         * config/frv/frv.md: Remove quote from old version of documentation.
6748         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
6749         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
6750         CONST_DOUBLE_OK_FOR_LETTER.
6751         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
6752
6753 2014-06-02  Andrew Pinski  <apinski@cavium.com>
6754
6755         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
6756         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
6757         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
6758         file whose name depends on -mabi= and -mbig-endian.
6759         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
6760         Handle LP64 better and handle ilp32 too.
6761         (MULTILIB_OPTIONS): Delete.
6762         (MULTILIB_DIRNAMES): Delete.
6763
6764 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
6765
6766         * expr.h: Remove prototypes of functions defined in builtins.c.
6767         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
6768         Remove prototypes of functions defined in builtins.c.
6769         * builtins.h: Update prototype list to include all exported functions.
6770         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
6771         no_c99_libc_has_function): Move to targhooks.c
6772         (build_string_literal, build_call_expr_loc_array,
6773         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
6774         to tree.c.
6775         (expand_builtin_object_size, fold_builtin_object_size): Make static.
6776         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
6777         no_c99_libc_has_function): Relocate from builtins.c.
6778         * tree.c: Include builtins.h.
6779         (build_call_expr_loc_array, build_call_expr_loc_vec,
6780         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
6781         from builtins.c.
6782         * fold-const.h (fold_fma): Move prototype to builtins.h.
6783         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
6784         * asan.c: Include builtins.h.
6785         * cfgexpand.c: Likewise.
6786         * convert.c: Likewise.
6787         * emit-rtl.c: Likewise.
6788         * except.c: Likewise.
6789         * expr.c: Likewise.
6790         * fold-const.c: Likewise.
6791         * gimple-fold.c: Likewise.
6792         * gimple-ssa-strength-reduction.c: Likewise.
6793         * gimplify.c: Likewise.
6794         * ipa-inline.c: Likewise.
6795         * ipa-prop.c: Likewise.
6796         * lto-streamer-out.c: Likewise.
6797         * stmt.c: Likewise.
6798         * tree-inline.c: Likewise.
6799         * tree-object-size.c: Likewise.
6800         * tree-sra.c: Likewise.
6801         * tree-ssa-ccp.c: Likewise.
6802         * tree-ssa-forwprop.c: Likewise.
6803         * tree-ssa-loop-ivcanon.c: Likewise.
6804         * tree-ssa-loop-ivopts.c: Likewise.
6805         * tree-ssa-math-opts.c: Likewise.
6806         * tree-ssa-reassoc.c: Likewise.
6807         * tree-ssa-threadedge.c: Likewise.
6808         * tree-streamer-in.c: Likewise.
6809         * tree-vect-data-refs.c: Likewise.
6810         * tree-vect-patterns.c: Likewise.
6811         * tree-vect-stmts.c: Likewise.
6812         * config/aarch64/aarch64.c: Likewise.
6813         * config/alpha/alpha.c: Likewise.
6814         * config/arc/arc.c: Likewise.
6815         * config/arm/arm.c: Likewise.
6816         * config/avr/avr.c: Likewise.
6817         * config/bfin/bfin.c: Likewise.
6818         * config/c6x/c6x.c: Likewise.
6819         * config/cr16/cr16.c: Likewise.
6820         * config/cris/cris.c: Likewise.
6821         * config/epiphany/epiphany.c: Likewise.
6822         * config/fr30/fr30.c: Likewise.
6823         * config/frv/frv.c: Likewise.
6824         * config/h8300/h8300.c: Likewise.
6825         * config/i386/i386.c: Likewise.
6826         * config/i386/winnt.c: Likewise.
6827         * config/ia64/ia64.c: Likewise.
6828         * config/iq2000/iq2000.c: Likewise.
6829         * config/lm32/lm32.c: Likewise.
6830         * config/m32c/m32c.c: Likewise.
6831         * config/m32r/m32r.c: Likewise.
6832         * config/m68k/m68k.c: Likewise.
6833         * config/mcore/mcore.c: Likewise.
6834         * config/mep/mep.c: Likewise.
6835         * config/microblaze/microblaze.c: Likewise.
6836         * config/mips/mips.c: Likewise.
6837         * config/mmix/mmix.c: Likewise.
6838         * config/mn10300/mn10300.c: Likewise.
6839         * config/moxie/moxie.c: Likewise.
6840         * config/msp430/msp430.c: Likewise.
6841         * config/nds32/nds32.c: Likewise.
6842         * config/pa/pa.c: Likewise.
6843         * config/pdp11/pdp11.c: Likewise.
6844         * config/picochip/picochip.c: Likewise.
6845         * config/rl78/rl78.c: Likewise.
6846         * config/rs6000/rs6000.c: Likewise.
6847         * config/rx/rx.c: Likewise.
6848         * config/s390/s390.c: Likewise.
6849         * config/score/score.c: Likewise.
6850         * config/sh/sh.c: Likewise.
6851         * config/sparc/sparc.c: Likewise.
6852         * config/spu/spu.c: Likewise.
6853         * config/stormy16/stormy16.c: Likewise.
6854         * config/tilegx/tilegx.c: Likewise.
6855         * config/tilepro/tilepro.c: Likewise.
6856         * config/v850/v850.c: Likewise.
6857         * config/vax/vax.c: Likewise.
6858         * config/xtensa/xtensa.c: Likewise.
6859
6860 2014-06-02  Jeff Law  <law@redhat.com>
6861
6862         PR rtl-optimization/61094
6863         * ree.c (combine_reaching_defs): Do not reextend an insn if it
6864         was marked as do_no_reextend.  If a copy is needed to eliminate
6865         an extension, then mark it as do_not_reextend.
6866
6867 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6868
6869         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
6870
6871 2014-06-02  Richard Henderson  <rth@redhat.com>
6872
6873         PR target/61336
6874         * config/alpha/alpha.c (print_operand_address): Allow symbolic
6875         addresses inside asms.  Use output_operand_lossage instead of
6876         gcc_unreachable.
6877
6878 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
6879
6880         PR target/61239
6881         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
6882         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
6883
6884 2014-06-02  Tom de Vries  <tom@codesourcery.com>
6885
6886         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
6887         case that x has VOIDmode.
6888
6889 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
6890
6891         * varasm.c (copy_constant): Delete function.
6892         (build_constant_desc): Don't call it.
6893
6894 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6895
6896         PR target/61154
6897         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
6898         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
6899         with immediate_operand.
6900
6901 2014-06-02  Andreas Schwab  <schwab@suse.de>
6902
6903         * config/ia64/ia64.c
6904         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
6905         pending_data_specs first.
6906
6907 2014-06-02  Richard Biener  <rguenther@suse.de>
6908
6909         PR tree-optimization/61378
6910         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
6911         valueized_anything.
6912
6913 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
6914
6915         * config/i386/constraints.md (Bw): Rename from 'w'.
6916         (Bz): Rename from 'z'.
6917         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
6918
6919 2014-06-01  Kai Tietz  <ktietz@redhat.com>
6920
6921         PR target/61377
6922         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
6923         * config/i386/i386.md (sibcall_insn_operand): Use Bs
6924         instead of m constraint.
6925
6926 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
6927
6928         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
6929         a separate alternative where the scratch operand 2 is marked as
6930         early clobber.
6931
6932 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
6933
6934         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
6935         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
6936         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
6937         and __builtins_arm_get_fpscr.
6938         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
6939         __builtins_arm_get_fpscr.
6940         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
6941         __builtins_arm_ldfpscr.
6942         (arm_atomic_assign_expand_fenv): New function.
6943         * config/arm/vfp.md (set_fpscr): New pattern.
6944         (get_fpscr) : Likewise.
6945         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
6946         VUNSPEC_SET_FPSCR.
6947         * doc/extend.texi (AARCH64 Built-in Functions) : Document
6948         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
6949
6950 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
6951
6952         * asan.c (report_error_func): Add SLOW_P argument, use
6953         BUILT_IN_ASAN_*_N if set.
6954         (build_check_stmt): Likewise.
6955         (instrument_derefs): If T has insufficient alignment,
6956         force same handling as for odd sizes.
6957
6958         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
6959         BUILT_IN_ASAN_REPORT_STORE_N): New.
6960         * asan.c (struct asan_mem_ref): Change access_size type to
6961         HOST_WIDE_INT.
6962         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
6963         update_mem_ref_hash_table): Likewise.
6964         (asan_mem_ref_hasher::hash): Hash in a HWI.
6965         (report_error_func): Change size_in_bytes argument to HWI.
6966         Use *_N builtins if size_in_bytes is larger than 16 or not power of
6967         two.
6968         (build_shadow_mem_access): New function.
6969         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
6970         Handle size_in_bytes not power of two or larger than 16.
6971         (instrument_derefs): Don't give up if size_in_bytes is not
6972         power of two or is larger than 16.
6973
6974 2014-05-30  Kai Tietz  <ktietz@redhat.com>
6975
6976         PR target/60104
6977         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
6978         for sibling-tail-calls.
6979         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
6980         to its use.
6981         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
6982         (sibcall_insn_operand): Add check for sibcall_memory_operand.
6983
6984 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6985
6986         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
6987         * config/avr/avr-tables.opt: Regenerate.
6988         * config/avr/t-multilib: Regenerate.
6989         * doc/avr-mmcu.texi: Regenerate.
6990
6991 2014-05-30  Ian Lance Taylor  <iant@google.com>
6992
6993         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
6994         target("sse").
6995
6996 2014-05-30  Tom de Vries  <tom@codesourcery.com>
6997
6998         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
6999         Redefine as true.
7000
7001 2014-05-30  Tom de Vries  <tom@codesourcery.com>
7002
7003         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
7004         * lra.c (initialize_lra_reg_info_element): Add init of
7005         actual_call_used_reg_set field.
7006         (lra): Call lra_create_live_ranges before lra_inheritance for
7007         -fuse-caller-save.
7008         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
7009         -fuse-caller-save.
7010         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
7011         instead of call_used_reg_set for -fuse-caller-save.
7012         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
7013
7014 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7015
7016         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
7017         to mov_imm.
7018         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
7019
7020 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
7021
7022         * ira.c (ira_get_dup_out_num): Check for output operands at
7023         the start of the loop.  Handle cases where an included alternative
7024         follows an excluded one.
7025
7026 2014-05-29  Mike Stump  <mikestump@comcast.net>
7027
7028         PR debug/61352
7029         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
7030         post ld passes when lto is used.
7031
7032 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
7033
7034         PR rtl-optimization/61325
7035         * lra-constraints.c (process_address): Rename to process_address_1.
7036         (process_address): New function.
7037
7038 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
7039
7040         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
7041         TYPES_BINOPV): New static data.
7042         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
7043         New builtin.
7044         * config/aarch64/aarch64-simd.md (aarch64_ext,
7045         aarch64_im_lane_boundsi): New patterns.
7046         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
7047         patterns for EXT.
7048         (aarch64_evpc_ext): New function.
7049
7050         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
7051
7052         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
7053         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
7054         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
7055         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
7056         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
7057
7058 2014-05-29  Tom de Vries  <tom@codesourcery.com>
7059
7060         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
7061
7062 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
7063             Richard Sandiford  <rdsandiford@googlemail.com>
7064
7065         * arm/iterators.md (shiftable_ops): New code iterator.
7066         (t2_binop0, arith_shift_insn): New code attributes.
7067         * arm/predicates.md (shift_nomul_operator): New predicate.
7068         * arm/arm.md (insn_enabled): Delete.
7069         (enabled): Remove insn_enabled test.
7070         (*arith_shiftsi): Delete.  Replace with ...
7071         (*<arith_shift_insn>_multsi): ... new pattern.
7072         (*<arith_shift_insn>_shiftsi): ... new pattern.
7073         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
7074
7075 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
7076             Tom de Vries  <tom@codesourcery.com>
7077
7078         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
7079         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
7080         clobber.
7081         (mips_split_call): Use POST_CALL_TMP_REG.
7082         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
7083
7084 2014-05-29  Tom de Vries  <tom@codesourcery.com>
7085
7086         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
7087         with #ifdef STACK_REGS.
7088
7089 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
7090
7091         * varasm.c (get_variable_section): Walk aliases.
7092         (place_block_symbol): Walk aliases.
7093
7094 2014-05-28  Tom de Vries  <tom@codesourcery.com>
7095
7096         Revert:
7097         2014-05-28  Tom de Vries  <tom@codesourcery.com>
7098
7099         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
7100         * lra.c (initialize_lra_reg_info_element): Add init of
7101         actual_call_used_reg_set field.
7102         (lra): Call lra_create_live_ranges before lra_inheritance for
7103         -fuse-caller-save.
7104         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
7105         -fuse-caller-save.
7106         * lra-constraints.c (need_for_call_save_p): Use
7107         actual_call_used_reg_set instead of call_used_reg_set for
7108         -fuse-caller-save.
7109         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
7110
7111 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7112
7113         * doc/md.texi: Document that the % constraint character must
7114         be at the beginning of the string.
7115         * genoutput.c (validate_insn_alternatives): Check that '=',
7116         '+' and '%' only appear at the beginning of a constraint.
7117         * ira.c (commutative_constraint_p): Delete.
7118         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
7119         at the start of the string.
7120         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
7121         duplicate '='s.
7122         * config/arm/neon.md (bicdi3_neon): Likewise.
7123         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
7124         (slt_si, sltu_si): Likewise.
7125         * config/vax/vax.md (sbcdi3): Likewise.
7126         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
7127         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
7128         (mul64): Move '%' to beginning of constraint.
7129         * config/arm/arm.md (*xordi3_insn): Likewise.
7130         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
7131         (xorsi3): Likewise.
7132
7133 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7134
7135         * doc/md.texi: Document the restrictions on the "enabled" attribute.
7136
7137 2014-05-28  Jason Merrill  <jason@redhat.com>
7138
7139         PR c++/47202
7140         * cgraph.h (symtab_node::get_comdat_group_id): New.
7141         * cgraphunit.c (analyze_functions): Call it.
7142         * symtab.c (dump_symtab_node): Likewise.
7143         * tree.c (decl_comdat_group_id): New.
7144         * tree.h: Declare it.
7145         * lto-streamer-out.c (write_symbol): Use it.
7146         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
7147
7148 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7149
7150         PR bootstrap/PR61146
7151         * wide-int.cc: Do not include longlong.h when compiling with clang.
7152
7153 2014-05-28  Richard Biener  <rguenther@suse.de>
7154
7155         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
7156         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
7157         (vrp_visit_assignment_or_call): Print less vertical space.
7158         (vrp_visit_stmt): Likewise.
7159         (vrp_visit_phi_node): Likewise.  For a PHI argument with
7160         VR_VARYING range consider recording it as copy.
7161
7162 2014-05-28  Richard Biener  <rguenther@suse.de>
7163
7164         Revert
7165         2014-05-28  Richard Biener  <rguenther@suse.de>
7166
7167         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
7168
7169 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7170
7171         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
7172         sufficiently aligned and an offset is used at the same time.
7173         (expand_expr_real_1): Likewise.
7174
7175 2014-05-28  Richard Biener  <rguenther@suse.de>
7176
7177         PR middle-end/61045
7178         * fold-const.c (fold_comparison): When folding
7179         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
7180         the sign of the remaining constant operand stays the same.
7181
7182 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
7183
7184         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
7185         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
7186         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
7187         to the assembler.
7188         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
7189         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
7190         (m32bit-doubles) Likewise.
7191         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
7192         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
7193         option for RL78.
7194
7195 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7196
7197         * configure.ac ($gcc_cv_ld_clearcap): New test.
7198         * configure: Regenerate.
7199         * config.in: Regenerate.
7200         * config/sol2.opt (mclear-hwcap): New option.
7201         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
7202         * config/sol2-clearcap.map: Moved here from
7203         testsuite/gcc.target/i386/clearcap.map.
7204         * config/sol2-clearcapv2.map: Move here from
7205         gcc.target/i386/clearcapv2.map.
7206         * config/t-sol2 (install): Depend on install-clearcap-map.
7207         (install-clearcap-map): New target.
7208         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
7209         -mclear-hwcap.
7210
7211 2014-05-28  Richard Biener  <rguenther@suse.de>
7212
7213         * hwint.h (*_HALF_WIDE_INT*): Move to ...
7214         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
7215         ... here and remove the rest.
7216         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
7217
7218 2014-05-28  Richard Biener  <rguenther@suse.de>
7219
7220         PR tree-optimization/61335
7221         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
7222         new range fails, drop to varying.
7223
7224 2014-05-28  Olivier Hainque  <hainque@adacore.com>
7225
7226         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
7227         (CPP_SPEC): Add entry for -mcpu=8548.
7228         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
7229         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
7230
7231 2014-05-28  Tom de Vries  <tom@codesourcery.com>
7232
7233         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
7234         * lra.c (initialize_lra_reg_info_element): Add init of
7235         actual_call_used_reg_set field.
7236         (lra): Call lra_create_live_ranges before lra_inheritance for
7237         -fuse-caller-save.
7238         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
7239         -fuse-caller-save.
7240         * lra-constraints.c (need_for_call_save_p): Use
7241         actual_call_used_reg_set instead of call_used_reg_set for
7242         -fuse-caller-save.
7243         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
7244
7245 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
7246             Tom de Vries  <tom@codesourcery.com>
7247
7248         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
7249         to gccoptlist.
7250         (@item -fuse-caller-save): New item.
7251
7252 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
7253             Tom de Vries  <tom@codesourcery.com>
7254
7255         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
7256         OPT_fuse_caller_save.
7257
7258 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
7259             Tom de Vries  <tom@codesourcery.com>
7260
7261         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
7262         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
7263         get_call_reg_set_usage.
7264         * resource.c (mark_set_resources, mark_target_live_regs): Use
7265         get_call_reg_set_usage.
7266         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
7267         field.
7268         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
7269         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
7270         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7271         * ira-build.c (ira_create_allocno): Init
7272         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7273         (create_cap_allocno, propagate_allocno_info)
7274         (propagate_some_info_from_allocno)
7275         (copy_info_to_removed_store_destinations): Handle
7276         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7277         * ira-costs.c (ira_tune_allocno_costs): Use
7278         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
7279
7280 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
7281             Tom de Vries  <tom@codesourcery.com>
7282
7283         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
7284         and function_used_regs_valid fields.
7285         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
7286         find_all_hard_reg_sets.
7287         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
7288         (get_call_reg_set_usage): New function.
7289         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
7290         * regs.h (get_call_reg_set_usage): Declare.
7291
7292 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
7293
7294         PR libgcc/61152
7295         * config/dbx.h (License): Add Runtime Library Exception.
7296         * config/newlib-stdint.h (License): Same.
7297         * config/rtems.h (License): Same
7298         * config/initfini-array.h (License): Same
7299         * config/v850/v850.h (License): Same.
7300         * config/v850/v850-opts.h (License): Same
7301         * config/v850/rtems.h (License): Same.
7302
7303 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
7304
7305         PR target/61044
7306         * doc/extend.texi (Local Labels): Note that label differences are
7307         not supported for AVR.
7308
7309 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
7310             Olivier Hainque  <hainque@adacore.com>
7311
7312         * rtl.h (set_for_reg_notes): Declare.
7313         * emit-rtl.c (set_for_reg_notes): New function.
7314         (set_unique_reg_note): Use it.
7315         * optabs.c (add_equal_note): Likewise
7316
7317 2014-05-27  Andrew Pinski  <apinski@cavium.com>
7318
7319         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
7320         Use <w> for the register in assembly template.
7321         (stack_protect_test): Use the mode of operands[0] for the result.
7322         (stack_protect_test_<mode>): Use <w> for the register
7323         in assembly template.
7324
7325 2014-05-27  DJ Delorie  <dj@redhat.com>
7326
7327         * config/rx/rx.c (add_vector_labels): New.
7328         (rx_output_function_prologue): Call it.
7329         (rx_handle_func_attribute): Don't require empty arguments.
7330         (rx_handle_vector_attribute): New.
7331         (rx_attribute_table): Add "vector" attribute.
7332         * doc/extend.texi (interrupt, vector): Document new/changed
7333         RX-specific attributes.
7334
7335         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
7336
7337 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
7338
7339         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
7340         predicate to detect a negative quotient.
7341
7342 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
7343
7344         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
7345         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
7346         Add X - Y CMP 0 to X CMP Y transformation.
7347         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
7348
7349 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
7350
7351         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
7352         before printing.
7353
7354 2014-05-27  Steve Ellcey  <sellcey@mips.com>
7355
7356         * config/mips/mips.c: Add include of cgraph.h.
7357
7358 2014-05-27  Richard Biener  <rguenther@suse.de>
7359
7360         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
7361
7362 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
7363
7364         PR libgcc/61152
7365         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
7366         * config/arm/arm-cores.def (License): Same.
7367         * config/arm/arm-opts.h (License): Same.
7368         * config/arm/aout.h (License): Same.
7369         * config/arm/bpabi.h (License): Same.
7370         * config/arm/elf.h (License): Same.
7371         * config/arm/linux-elf.h (License): Same.
7372         * config/arm/linux-gas.h (License): Same.
7373         * config/arm/netbsd-elf.h (License): Same.
7374         * config/arm/uclinux-eabi.h (License): Same.
7375         * config/arm/uclinux-elf.h (License): Same.
7376         * config/arm/vxworks.h (License): Same.
7377
7378 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7379
7380         * config/arm/neon.md (neon_bswap<mode>): New pattern.
7381         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
7382         (arm_init_neon_builtins): Handle NEON_BSWAP.
7383         Define required type nodes.
7384         (arm_expand_neon_builtin): Handle NEON_BSWAP.
7385         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
7386         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
7387         * config/arm/iterators.md (VDQHSD): New mode iterator.
7388
7389 2014-05-27  Richard Biener  <rguenther@suse.de>
7390
7391         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
7392         Try using literal operands when comparing value-ranges failed.
7393
7394 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
7395
7396         * ira.c (commutative_operand): Adjust for change to recog_data.
7397         [Missing from previous commit.]
7398
7399 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
7400
7401         * system.h (TEST_BIT): New macro.
7402         * recog.h (alternative_mask): New type.
7403         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
7404         (recog_data_d): Replace alternative_enabled_p array with
7405         enabled_alternatives.
7406         (target_recog): New structure.
7407         (default_target_recog, this_target_recog): Declare.
7408         (get_enabled_alternatives, recog_init): Likewise.
7409         * recog.c (default_target_recog, this_target_recog): New variables.
7410         (get_enabled_alternatives): New function.
7411         (extract_insn): Use it.
7412         (recog_init): New function.
7413         (preprocess_constraints, constrain_operands): Adjust for change to
7414         recog_data.
7415         * postreload.c (reload_cse_simplify_operands): Likewise.
7416         * reload.c (find_reloads): Likewise.
7417         * ira-costs.c (record_reg_classes): Likewise.
7418         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
7419         all alternatives after a disabled one would be skipped.
7420         (ira_implicitly_set_insn_hard_regs): Likewise.
7421         * ira.c (ira_setup_alts): Adjust for change to recog_data.
7422         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
7423         with enabled_alternatives.
7424         * lra.c (free_insn_recog_data): Update accordingly.
7425         (lra_update_insn_recog_data): Likewise.
7426         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
7427         * lra-constraints.c (process_alt_operands): Likewise.  Handle
7428         only_alternative as part of the enabled mask.
7429         * target-globals.h (this_target_recog): Declare.
7430         (target_globals): Add a recog field.
7431         (restore_target_globals): Restore this_target_recog.
7432         * target-globals.c: Include recog.h.
7433         (default_target_globals): Initialize recog field.
7434         (save_target_globals): Likewise.
7435         * reginfo.c (reinit_regs): Call recog_init.
7436         * toplev.c (backend_init_target): Likewise.
7437
7438 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
7439
7440         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
7441         rather than any named insn's code.
7442
7443 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
7444
7445         PR libgcc/61152
7446         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
7447         * config/arm/arm-cores.def (License): Same.
7448
7449 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
7450
7451         * tree.h (decl_comdat_group): Declare.
7452         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
7453         * tree.c (decl_comdat_group): Here.
7454
7455 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
7456
7457         PR rtl-optimization/61222
7458         * combine.c (simplify_shift_const_1): When moving a PLUS outside
7459         the shift, truncate the PLUS operand to the result mode.
7460
7461 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
7462
7463         PR target/61271
7464         * config/i386/i386.c (ix86_rtx_costs)
7465         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
7466         Fix condition.
7467
7468 2014-05-26  Martin Jambor  <mjambor@suse.cz>
7469
7470         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
7471         subreg uses.
7472
7473 2014-05-26  Richard Biener  <rguenther@suse.de>
7474
7475         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
7476         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
7477         Provide specializations.
7478         (wi::int_traits <HOST_WIDE_INT>,
7479         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
7480
7481 2014-05-26  Alan Modra  <amodra@gmail.com>
7482
7483         PR target/61098
7484         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
7485         params and return a bool.  Remove dead code.  Update comment.
7486         Assert we have a const_int source.  Remove bogus code from
7487         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
7488         handling of constants > 2G and reg_equal note, from..
7489         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
7490         return value.  Update comment.  If we can, use a new pseudo
7491         for intermediate calculations.
7492         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
7493         prototype.
7494         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
7495         call to rs6000_emit_set_const in splitter.
7496         (movdi_internal64+2, +3): Likewise.
7497
7498 2014-05-26  Richard Biener  <rguenther@suse.de>
7499
7500         * system.h: Define __STDC_FORMAT_MACROS before
7501         including inttypes.h.
7502         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
7503         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
7504         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
7505         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
7506         HOST_WIDEST_INT_C): Remove.
7507         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
7508         if C99 inttypes.h is not available.
7509         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
7510         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
7511         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
7512         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
7513         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
7514         (struct output_info): Likewise.
7515         (print_statistics): Adjust.
7516         (dump_bitmap_statistics): Likewise.
7517         * bt-load.c (migrate_btr_defs): Print with PRId64.
7518         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
7519         (MAX_SAFE_MULTIPLIER): Adjust.
7520         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
7521         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
7522         dump_cgraph_node): Likewise.
7523         * final.c (dump_basic_block_info): Likewise.
7524         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
7525         * gcov.c (format_gcov): Likewise.
7526         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
7527         for calculation.
7528         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
7529         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
7530         (inline_small_functions, dump_overall_stats, dump_inline_stats):
7531         Use PRId64 for dumping.
7532         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
7533         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
7534         (add_allocno_hard_regs): Adjust.
7535         * loop-doloop.c (doloop_modify): Print using PRId64.
7536         * loop-iv.c (inverse): Compute in uint64_t.
7537         (determine_max_iter, iv_number_of_iterations): Likewise.
7538         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
7539         Print using PRId64.
7540         * lto-streamer-out.c (write_symbol): Use uint64_t.
7541         * mcf.c (CAP_INFINITY): Use int64_t maximum.
7542         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
7543         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
7544         * modulo-sched.c (const_iteration_count): Use int64_t.
7545         (sms_schedule): Dump using PRId64.
7546         * predict.c (dump_prediction): Likewise.
7547         * pretty-print.h (pp_widest_integer): Remove.
7548         * profile.c (get_working_sets, is_edge_inconsistent,
7549         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
7550         * tree-pretty-print.c (pp_double_int): Remove case handling
7551         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
7552         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
7553         and adjust users.
7554         (pass_optimize_bswap::execute): Remove restriction on hosts.
7555         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
7556         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
7557         * tree.c (widest_int_cst_value): Remove.
7558         * tree.h (widest_int_cst_value): Likewise.
7559         * value-prof.c (dump_histogram_value): Print using PRId64.
7560         * gengtype.c (main): Also inject int64_t.
7561         * ggc-page.c (struct max_alignment): Use int64_t.
7562         * alloc-pool.c (struct allocation_object_def): Likewise.
7563         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
7564         for computation.
7565         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
7566         * doc/tm.texi: Regenerated.
7567         * gengtype-lex.l (IWORD): Handle [u]int64_t.
7568         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
7569         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
7570         mmix_output_register_setting): Use [u]int64_t in prototypes.
7571         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
7572         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
7573         mmix_output_octa, mmix_output_shifted_value): Adjust.
7574         (mmix_intval): Adjust.  Remove unreachable case.
7575         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
7576
7577 2014-05-26  Richard Biener  <rguenther@suse.de>
7578
7579         * configure.ac: Drop __int64 type check.  Insist that we
7580         found uint64_t and int64_t.
7581         * hwint.h (HOST_BITS_PER___INT64): Remove.
7582         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
7583         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
7584         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
7585         (HOST_WIDEST_FAST_INT): Remove __int64 case.
7586         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
7587         for dst_q_src_df_rms_cdt.
7588         * configure: Regenerate.
7589         * config.in: Likewise.
7590
7591 2014-05-26  Michael Tautschnig  <mt@debian.org>
7592
7593         PR target/61249
7594         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
7595         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
7596
7597 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7598
7599         PR rtl-optimization/61278
7600         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
7601
7602 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7603
7604         PR rtl-optimization/61220
7605         Part of PR rtl-optimization/61225
7606         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
7607         insn; skip split_edge for a block with only one successor.
7608
7609 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7610
7611         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
7612         for variables.
7613
7614 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7615
7616         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
7617         (update_vtable_references): New function.
7618         (function_and_variable_visibility): Rewrite also vtable initializers.
7619         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
7620
7621 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7622
7623         * ggc.h (ggc_grow): New function.
7624         * ggc-none.c (ggc_grow): New function.
7625         * ggc-page.c (ggc_grow): Likewise.
7626
7627 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7628
7629         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
7630         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
7631         comdat_can_be_unshared_p, cgraph_externally_visible_p,
7632         varpool_externally_visible_p, can_replace_by_local_alias,
7633         update_visibility_by_resolution_info, function_and_variable_visibility,
7634         pass_data_ipa_function_and_variable_visibility,
7635         make_pass_ipa_function_and_variable_visibility,
7636         whole_program_function_and_variable_visibility,
7637         pass_data_ipa_whole_program_visibility,
7638         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
7639         * cgraph.h (cgraph_local_node_p): Declare.
7640         * ipa-visibility.c: New file.
7641         * Makefile.in (OBJS): Add ipa-visiblity.o
7642
7643 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7644
7645         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
7646         that var decl is available.
7647
7648 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7649
7650         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
7651         symtab_node pointer.
7652         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
7653         (find_decls_types_r): Do not walk COMDAT_GROUP.
7654         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
7655         * varasm.c (make_decl_one_only): Use set_comdat_group;
7656         create node if needed.
7657         * ipa-inline-transform.c (save_inline_function_body): Update
7658         way we decl->symtab mapping.
7659         * symtab.c (symtab_hash, hash_node, eq_node
7660         symtab_insert_node_to_hashtable): Remove.
7661         (symtab_register_node): Update.
7662         (symtab_unregister_node): Update.
7663         (symtab_get_node): Reimplement as inline function.
7664         (symtab_add_to_same_comdat_group): Update.
7665         (symtab_dissolve_same_comdat_group_list): Update.
7666         (dump_symtab_base): Update.
7667         (verify_symtab_base): Update.
7668         (symtab_make_decl_local): Update.
7669         (fixup_same_cpp_alias_visibility): Update.
7670         (symtab_nonoverwritable_alias): Update.
7671         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
7672         * ipa.c (update_visibility_by_resolution_info): UPdate.
7673         * bb-reorder.c: Include cgraph.h
7674         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
7675         with comdat groups.
7676         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
7677         * cgraph.c (cgraph_get_create_node): Update.
7678         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
7679         and comdat_group_.
7680         (symtab_get_node): Make inline.
7681         (symtab_insert_node_to_hashtable): Remove.
7682         (symtab_can_be_discarded): Update.
7683         (decl_comdat_group): New function.
7684         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
7685         Update.
7686         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
7687         comdat group name.
7688         (read_comdat_group): New function.
7689         (input_node, input_varpool_node): Use it.
7690         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
7691         comdat groups.
7692         * mips.c (mips_start_unique_function): Likewise.
7693         (ix86_code_end): Likewise.
7694         (rs6000_code_end): Likweise.
7695         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
7696
7697 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7698
7699         * gengtype-state.c (fatal_reading_state): Bring offline.
7700         * optabs.c (widening_optab_handler): Bring offline.
7701         * optabs.h (widening_optab_handler): Likewise.
7702         * final.c (get_attr_length_1): Likewise.
7703
7704 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
7705
7706         * sched-int.h (sd_iterator_cond): Manually tail recurse.
7707
7708 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7709
7710         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
7711         (ppc440-compare): Include shift with dot.
7712         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
7713         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
7714         without dot.
7715         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
7716         without dot.
7717         (e6500_sfx2): Include it.
7718         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
7719         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7720         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
7721         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
7722         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
7723         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
7724         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
7725         *lshiftrt_internal1le, *lshiftrt_internal1be,
7726         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
7727         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
7728         *rotldi3_internal10le, *rotldi3_internal10be,
7729         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
7730         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
7731         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
7732         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
7733         define_insns): Use type "shift" in the appropriate alternatives.
7734
7735 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7736
7737         * config/rs6000/rs6000.md (type): Add "logical".  Delete
7738         "fast_compare".
7739         (dot): Adjust comment.
7740         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
7741         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
7742         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
7743         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
7744         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
7745         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
7746         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
7747         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
7748
7749         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
7750         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
7751         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
7752         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
7753         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
7754         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
7755         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
7756         * config/rs6000/8540.md (ppc8540_su): Adjust.
7757         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7758         cell-cmp-microcoded): Adjust.
7759         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
7760         * config/rs6000/e500mc.md (e500mc_su): Adjust.
7761         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
7762         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
7763         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
7764         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
7765         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
7766         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
7767         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
7768         Adjust.
7769         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
7770         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
7771         Adjust.  Adjust comment.
7772         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
7773         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
7774
7775 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7776
7777         * config/rs6000/rs6000.md (type): Add "add".
7778         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
7779         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
7780         define_insns): Use it.
7781         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
7782
7783         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
7784         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
7785         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
7786         * config/rs6000/601.md (ppc601-integer): Adjust.
7787         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
7788         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
7789         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
7790         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
7791         * config/rs6000/8540.md (ppc8540_su): Adjust.
7792         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7793         cell-cmp-microcoded): Adjust.
7794         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
7795         * config/rs6000/e500mc.md (e500mc_su): Adjust.
7796         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
7797         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
7798         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
7799         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
7800         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
7801         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
7802         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
7803         Adjust.
7804         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
7805         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
7806         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
7807         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
7808
7809 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7810
7811         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
7812         "delayed_compare", "var_delayed_compare".
7813         (var_shift): New attribute.
7814         (cell_micro): Adjust.
7815         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
7816         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
7817         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
7818         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
7819         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
7820         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
7821         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
7822         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
7823         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
7824         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
7825         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
7826         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
7827         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
7828         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
7829         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
7830         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
7831         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
7832         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
7833         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
7834         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
7835         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
7836         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
7837         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
7838         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
7839         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
7840
7841         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
7842         * config/rs6000/440.md (ppc440-integer): Adjust.
7843         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
7844         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
7845         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
7846         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
7847         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
7848         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
7849         * config/rs6000/8540.md (ppc8540_su): Adjust.
7850         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7851         cell-cmp-microcoded): Adjust.
7852         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
7853         * config/rs6000/e500mc.md (e500mc_su): Adjust.
7854         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
7855         e500mc64_delayed): Adjust.
7856         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
7857         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
7858         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
7859         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
7860         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
7861         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
7862         power6-delayed-compare, power6-var-delayed-compare): Adjust.
7863         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
7864         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
7865         Adjust comment.
7866         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
7867         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
7868
7869 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7870
7871         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
7872         (bits): New mode_attr.
7873         (idiv_ldiv): Delete mode_attr.
7874         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
7875         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
7876         rs6000_adjust_priority, is_nonpipeline_insn,
7877         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
7878
7879         * config/rs6000/40x.md (ppc403-idiv): Adjust.
7880         * config/rs6000/440.md (ppc440-idiv): Adjust.
7881         * config/rs6000/476.md (ppc476-idiv): Adjust.
7882         * config/rs6000/601.md (ppc601-idiv): Adjust.
7883         * config/rs6000/603.md (ppc603-idiv): Adjust.
7884         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
7885         ppc620-ldiv): Adjust.
7886         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
7887         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
7888         * config/rs6000/8540.md (ppc8540_divide): Adjust.
7889         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
7890         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
7891         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
7892         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
7893         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
7894         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
7895         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
7896         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
7897         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
7898         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
7899         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
7900         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
7901         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
7902         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
7903         * config/rs6000/titan.md (titan_fxu_div): Adjust.
7904
7905 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7906
7907         * config/rs6000/rs6000.md (type): Delete "insert_word",
7908         "insert_dword".  Add "insert".
7909         (size): Update comment.
7910         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
7911         insn_must_be_first_in_group): Adjust.
7912         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
7913         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
7914         *insvsi_internal6, insvdi_internal): Adjust.
7915
7916         * config/rs6000/40x.md (ppc403-integer): Adjust.
7917         * config/rs6000/440.md (ppc440-integer): Adjust.
7918         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
7919         * config/rs6000/601.md (ppc601-integer): Adjust.
7920         * config/rs6000/603.md (ppc603-integer): Adjust.
7921         * config/rs6000/6xx.md (ppc604-integer): Adjust.
7922         * config/rs6000/7450.md (ppc7450-integer): Adjust.
7923         * config/rs6000/7xx.md (ppc750-integer): Adjust.
7924         * config/rs6000/8540.md (ppc8540_su): Adjust.
7925         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
7926         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
7927         * config/rs6000/e500mc.md (e500mc_su): Adjust.
7928         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
7929         * config/rs6000/e5500.md (e5500_sfx): Adjust.
7930         * config/rs6000/e6500.md (e6500_sfx): Adjust.
7931         * config/rs6000/mpc.md (mpccore-integer): Adjust.
7932         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
7933         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
7934         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
7935         * config/rs6000/power7.md (power7-integer): Adjust.
7936         * config/rs6000/power8.md (power8-1cyc): Adjust.
7937         * config/rs6000/rs64.md (rs64a-integer): Adjust.
7938         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
7939
7940 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7941
7942         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
7943         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
7944         (size): New attribute.
7945         (dot): New attribute.
7946         (cell_micro): Adjust.
7947         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
7948         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
7949         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
7950         umuldi3_highpart): Adjust.
7951         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
7952         rs6000_adjust_priority, is_nonpipeline_insn,
7953         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
7954
7955         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
7956         ppc405-imul3): Adjust.
7957         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
7958         * config/rs6000/476.md (ppc476-imul): Adjust.
7959         * config/rs6000/601.md (ppc601-imul): Adjust.
7960         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
7961         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
7962         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
7963         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
7964         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
7965         Adjust.
7966         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
7967         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
7968         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
7969         cell-imul): Adjust.
7970         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
7971         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
7972         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
7973         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
7974         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
7975         * config/rs6000/mpc.md (mpccore-imul): Adjust.
7976         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
7977         power4-lmul, power4-imul, power4-imul3): Adjust.
7978         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
7979         power5-lmul, power5-imul, power5-imul3): Adjust.
7980         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
7981         power6-lmul, power6-imul, power6-imul3): Adjust.
7982         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
7983         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
7984
7985         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
7986         rs64a-lmul): Adjust.
7987         * config/rs6000/titan.md (titan_imul): Adjust.
7988
7989 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
7990
7991         * config/rs6000/rs6000.md (type): Add new value "halfmul".
7992         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
7993         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
7994         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
7995         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
7996         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
7997         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
7998         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
7999         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
8000         * config/rs6000/titan.md: Delete nonsensical comment.
8001         (titan_imul): Add type imul3.
8002         (titan_mulhw): Remove type imul3; add type halfmul.
8003
8004 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
8005
8006         * config/rs6000/rs6000.md (type): Reorder, reformat.
8007
8008 2014-05-23  Martin Jambor  <mjambor@suse.cz>
8009
8010         PR tree-optimization/53787
8011         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
8012         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
8013         analysis_done, update all uses.
8014         * ipa-prop.c: Include domwalk.h
8015         (param_analysis_info): Removed.
8016         (param_aa_status): New type.
8017         (ipa_bb_info): Likewise.
8018         (func_body_info): Likewise.
8019         (ipa_get_bb_info): New function.
8020         (aa_overwalked): Likewise.
8021         (find_dominating_aa_status): Likewise.
8022         (parm_bb_aa_status_for_bb): Likewise.
8023         (parm_preserved_before_stmt_p): Changed to use new param AA info.
8024         (load_from_unmodified_param): Accept func_body_info as a parameter
8025         instead of parms_ainfo.
8026         (parm_ref_data_preserved_p): Changed to use new param AA info.
8027         (parm_ref_data_pass_through_p): Likewise.
8028         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
8029         (compute_complex_assign_jump_func): Changed to use new param AA info.
8030         (compute_complex_ancestor_jump_func): Likewise.
8031         (ipa_compute_jump_functions_for_edge): Likewise.
8032         (ipa_compute_jump_functions): Removed.
8033         (ipa_compute_jump_functions_for_bb): New function.
8034         (ipa_analyze_indirect_call_uses): Likewise, moved variable
8035         declarations down.
8036         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
8037         and info, moved variable declarations down.
8038         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
8039         node and info.
8040         (ipa_analyze_stmt_uses): Likewise.
8041         (ipa_analyze_params_uses): Removed.
8042         (ipa_analyze_params_uses_in_bb): New function.
8043         (ipa_analyze_controlled_uses): Likewise.
8044         (free_ipa_bb_info): Likewise.
8045         (analysis_dom_walker): New class.
8046         (ipa_analyze_node): Handle node-specific forbidden analysis,
8047         initialize and free func_body_info, use dominator walker.
8048         (ipcp_modif_dom_walker): New class.
8049         (ipcp_transform_function): Create and free func_body_info, use
8050         ipcp_modif_dom_walker, moved a lot of functionality there.
8051
8052 2014-05-23  Marek Polacek  <polacek@redhat.com>
8053             Jakub Jelinek  <jakub@redhat.com>
8054
8055         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
8056         * gcc.c (sanitize_spec_function): Likewise.
8057         * convert.c (convert_to_integer): Include "ubsan.h".  Add
8058         floating-point to integer instrumentation.
8059         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
8060         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
8061         SANITIZE_NONDEFAULT.
8062         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
8063         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
8064         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
8065         * ubsan.c: Include "realmpfr.h" and "dfp.h".
8066         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
8067         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
8068         float/double/long double.
8069         (ubsan_instrument_float_cast): New function.
8070         * ubsan.h (ubsan_instrument_float_cast): Declare.
8071
8072 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
8073
8074         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
8075         predicate.
8076         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
8077         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
8078         Adjust for tailcalling through registers.
8079         * config/aarch64/aarch64.h (enum reg_class): New caller save
8080         register class.
8081         (REG_CLASS_NAMES): Likewise.
8082         (REG_CLASS_CONTENTS): Likewise.
8083         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
8084         Allow tailcalling without decls.
8085
8086 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
8087
8088         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
8089         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
8090
8091         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
8092         gsi, and variables v_* to v*.
8093
8094 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
8095
8096         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
8097
8098 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
8099
8100         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
8101         * omp-low.c: Update accordingly.
8102
8103         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
8104         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
8105         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
8106         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
8107         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
8108         GF_OMP_TARGET_KIND_UPDATE.
8109
8110         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
8111         Explicitly enumerate the expected region types.
8112
8113 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8114
8115         PR other/56955
8116         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
8117         documentation; the old documentation didn't clearly state the
8118         constraints on the contents of the pointed-to storage.
8119
8120 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8121
8122         Fix bootstrap error on ia64
8123         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
8124         Return default value.
8125
8126 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8127
8128         PR tree-optimization/54733
8129         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
8130         (CMPNOP): Define.
8131         (find_bswap_or_nop_load): New.
8132         (find_bswap_1): Renamed to ...
8133         (find_bswap_or_nop_1): This. Also add support for memory source.
8134         (find_bswap): Renamed to ...
8135         (find_bswap_or_nop): This. Also add support for memory source and
8136         detection of bitwise operations equivalent to load in target
8137         endianness.
8138         (execute_optimize_bswap): Likewise. Also move its leading comment back
8139         in place and split statement transformation into ...
8140         (bswap_replace): This.
8141
8142 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
8143
8144         PR rtl-optimization/61215
8145         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
8146         simplify_gen_subreg until final substitution.
8147
8148 2014-05-23  Alan Modra  <amodra@gmail.com>
8149
8150         PR target/61231
8151         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
8152         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
8153         Use "Y" constraint rather than "m".
8154
8155 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
8156
8157         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
8158         define.
8159         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
8160         New function declaration.
8161         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
8162         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
8163         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
8164         (aarch64_init_builtins) : Initialize builtins
8165         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
8166         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
8167         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
8168         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
8169         and __builtins_aarch64_set_fpsr.
8170         (aarch64_atomic_assign_expand_fenv): New function.
8171         * config/aarch64/aarch64.md (set_fpcr): New pattern.
8172         (get_fpcr) : Likewise.
8173         (set_fpsr) : Likewise.
8174         (get_fpsr) : Likewise.
8175         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
8176          and UNSPECV_SET_FPSR.
8177         * doc/extend.texi (AARCH64 Built-in Functions) : Document
8178         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
8179         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
8180
8181 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
8182
8183         PR rtl-optimization/60969
8184         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
8185         constraints.  Set up mem cost for NO_REGS case.
8186
8187 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
8188
8189         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
8190
8191 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
8192
8193         * config/darwin.c: Include "lto-section-names.h".
8194         (LTO_SEGMENT_NAME): Don't define.
8195         * config/i386/winnt.c: Include "lto-section-names.h".
8196         * lto-streamer.c: Include "lto-section-names.h".
8197         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
8198         * lto-wrapper.c: Include "lto-section-names.h".
8199         (LTO_SECTION_NAME_PREFIX): Don't define.
8200         * lto-section-names.h: New file.
8201         * cgraphunit.c: Include "lto-section-names.h".
8202
8203 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
8204
8205         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
8206
8207 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
8208
8209         PR target/61208
8210         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
8211
8212 2014-05-22  Nick Clifton  <nickc@redhat.com>
8213
8214         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
8215
8216 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
8217
8218         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
8219         -> (T)A transformation to integer types.
8220
8221 2014-05-22  Teresa Johnson  <tejohnson@google.com>
8222
8223         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
8224         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
8225         (gcov_rewrite): Use gcov_nonruntime_assert.
8226         (gcov_open): Ditto.
8227         (gcov_write_words): Ditto.
8228         (gcov_write_length): Ditto.
8229         (gcov_read_words): Use gcov_nonruntime_assert, and remove
8230         gcc_assert from IN_LIBGCOV code.
8231         (gcov_read_summary): Use gcov_error to flag profile corruption.
8232         (gcov_sync): Use gcov_nonruntime_assert.
8233         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
8234         (gcov_histo_index): Use gcov_nonruntime_assert.
8235         (static void gcov_histogram_merge): Ditto.
8236         (compute_working_sets): Ditto.
8237         * gcov-io.h (gcov_nonruntime_assert): Define.
8238         (gcov_error): Define for !IN_LIBGCOV
8239
8240 2014-05-22  Richard Biener  <rguenther@suse.de>
8241
8242         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8243         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
8244         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
8245         and deallocation site.
8246         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8247         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
8248         passing through the incoming points-to set.
8249         (handle_lhs_call): Use flags argument instead of recomputing it.
8250         (find_func_aliases_for_call): Call handle_lhs_call with proper
8251         call return flags.
8252
8253 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
8254
8255         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
8256         all padding bits in REAL_VALUE_TYPE are cleared.
8257
8258 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8259
8260         Cleanup and improve multipass_dfa_lookahead_guard
8261         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
8262         (core2i7_first_cycle_multipass_begin,)
8263         (core2i7_first_cycle_multipass_issue,)
8264         (core2i7_first_cycle_multipass_backtrack): Update signature.
8265         * config/ia64/ia64.c
8266         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
8267         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
8268         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
8269         hook definition.
8270         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
8271         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
8272         values.
8273         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
8274         return values.
8275         * doc/tm.texi: Regenerate.
8276         * doc/tm.texi.in
8277         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
8278         * haifa-sched.c (ready_try): Make signed to allow negative values.
8279         (rebug_ready_list_1): Update.
8280         (choose_ready): Simplify.
8281         (sched_extend_ready_list): Update.
8282
8283 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8284
8285         Remove IA64 speculation tweaking flags
8286         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
8287         speculation tuning flags.
8288         (msched-prefer-non-data-spec-insns,)
8289         (msched-prefer-non-control-spec-insns): Obsolete options.
8290         * haifa-sched.c (choose_ready): Remove handling of
8291         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
8292         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
8293         and PREFER_NON_DATA_SPEC.
8294         * sel-sched.c (process_spec_exprs): Remove handling of
8295         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
8296
8297 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8298
8299         Improve scheduling debug output
8300         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
8301         (advance_one_cycle): Update.
8302         (schedule_insn, queue_to_ready): Add debug printouts.
8303         (debug_ready_list_1): New static function.
8304         (debug_ready_list): Update.
8305         (max_issue): Add debug printouts.
8306         (dump_insn_stream): New static function.
8307         (schedule_block): Use it.  Also better indent printouts.
8308
8309 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8310
8311         Fix sched_insn debug counter
8312         * haifa-sched.c (schedule_insn): Update.
8313         (struct haifa_saved_data): Add nonscheduled_insns_begin.
8314         (save_backtrack_point, restore_backtrack_point): Update.
8315         (first_nonscheduled_insn): New static function.
8316         (queue_to_ready, choose_ready): Use it.
8317         (schedule_block): Init nonscheduled_insns_begin.
8318         (sched_emit_insn): Update.
8319
8320
8321 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
8322
8323         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
8324         to GENERAL_REGS.
8325         (aarch64_secondary_reload) : LikeWise.
8326         (aarch64_class_max_nregs) : Remove CORE_REGS.
8327         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
8328         (REG_CLASS_NAMES) : Likewise.
8329         (REG_CLASS_CONTENTS) : LikeWise.
8330         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
8331
8332 2014-05-21  Guozhi Wei  <carrot@google.com>
8333
8334         PR target/61202
8335         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
8336         constraint.
8337         (vqdmulhq_n_s16): Likewise.
8338
8339 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
8340
8341         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
8342
8343 2014-05-21  Marek Polacek  <polacek@redhat.com>
8344
8345         PR sanitizer/61272
8346         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
8347
8348 2014-05-21  Martin Jambor  <mjambor@suse.cz>
8349
8350         * doc/invoke.texi (Optimize Options): Document parameters
8351         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
8352         ipa-cp-array-index-hint-bonus.
8353
8354 2014-05-21  Mark Wielaard  <mjw@redhat.com>
8355
8356         PR debug/16063
8357         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
8358         version >= 3 or not strict DWARF.
8359         * langhooks.h (struct lang_hooks_for_types): Add
8360         enum_underlying_base_type.
8361         * langhooks.c (lhd_enum_underlying_base_type): New function.
8362         * gcc/langhooks.h (struct lang_hooks_for_types): Add
8363         enum_underlying_base_type.
8364         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
8365         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
8366         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
8367
8368 2014-05-21  Richard Biener  <rguenther@suse.de>
8369
8370         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
8371
8372 2014-05-21  John Marino  <gnugcc@marino.st>
8373
8374         * config.gcc (*-*-dragonfly*): New target.
8375         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
8376         * configure: Regenerate.
8377         * config/dragonfly-stdint.h: New.
8378         * config/dragonfly.h: New.
8379         * config/dragonfly.opt: New.
8380         * config/i386/dragonfly.h: New.
8381         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
8382
8383 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
8384
8385         * tree.def (VOID_CST): New.
8386         * tree-core.h (TI_VOID): New.
8387         * tree.h (void_node): New.
8388         * tree.c (tree_node_structure_for_code, tree_code_size)
8389         (iterative_hash_expr): Handle VOID_CST.
8390         (build_common_tree_nodes): Initialize void_node.
8391
8392 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
8393
8394         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
8395         functions.
8396         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
8397
8398         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
8399         more places.
8400
8401         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
8402         flag_reorder_blocks_and_partition.
8403         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
8404
8405 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
8406
8407         PR target/54236
8408         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
8409         constraints.
8410         (*addc_r_t): Add new insn_and_split.
8411
8412 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
8413
8414         PR middle-end/61252
8415         * omp-low.c (handle_simd_reference): New function.
8416         (lower_rec_input_clauses): Use it.  Defer adding reference
8417         initialization even for reduction without placeholder if in simd,
8418         handle it properly later on.
8419
8420 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
8421
8422         PR tree-optimization/60899
8423         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
8424         assume all static symbols will have definition wile parsing and
8425         check the do have definition later in compilation; check that
8426         variable referring symbol will be output before concluding that
8427         reference is safe; be conservative for referring local statics;
8428         be more precise about when comdat is output in other partition.
8429
8430 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
8431
8432         PR bootstrap/60984
8433         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
8434         parameter.
8435         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
8436         (ipa_inline): Loop inline_to_all_callers until no more aliases
8437         are removed.
8438
8439 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
8440
8441         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
8442         set writeonly flag only for vars actually written to.
8443
8444 2014-05-20  Dehao Chen  <dehao@google.com>
8445
8446         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
8447         and callee count to get clone count.
8448         * tree-inline.c (expand_call_inline): Use callee count instead of bb
8449         count in copy_body.
8450
8451 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
8452
8453         PR rtl-optimization/61243
8454         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
8455
8456 2014-05-20  Xinliang David Li  <davidxl@google.com>
8457
8458         * cgraphunit.c (walk_polymorphic_call_targets): Add
8459         dbgcnt and fopt-info support.
8460         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
8461         * ipa-devirt.c (ipa_devirt): Ditto.
8462         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
8463         * ipa.c (walk_polymorphic_call_targets): Ditto.
8464         * gimple-fold.c (fold_gimple_assign): Ditto.
8465         (gimple_fold_call): Ditto.
8466         * dbgcnt.def: New counter.
8467
8468 2014-05-20  DJ Delorie  <dj@redhat.com>
8469
8470         * config/msp430/msp430.md (split): Don't allow subregs when
8471         splitting SImode adds.
8472         (andneghi): Fix subtraction logic.
8473         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
8474
8475 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
8476
8477         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
8478         symbols.
8479         * except.c (switch_to_exception_section, resolve_unique_section,
8480         get_named_text_section, default_function_rodata_section,
8481         align_variable, get_block_for_decl, default_section_type_flags):
8482         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
8483         * symtab.c (symtab_add_to_same_comdat_group,
8484         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
8485         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
8486         Likewise.
8487         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
8488         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
8489         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
8490         (c6x_function_in_section_p): Likewise.
8491         * config/darwin.c (machopic_select_section): Likewise.
8492         * config/arm/arm.c (arm_function_in_section_p): Likewise.
8493         * config/mips/mips.c (mips_function_rodata_section): Likewise.
8494         * config/mep/mep.c (mep_select_section): LIkewise.
8495         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
8496
8497 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
8498
8499         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
8500         EH region of calls to pure functions that can throw an exception.
8501         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
8502         (copy_reference_ops_from_call): Also copy the EH region of the call if
8503         it can throw an exception.
8504
8505 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8506
8507         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
8508         nested VEC_SELECTs that are inverses of each other.
8509
8510 2014-05-20  Richard Biener  <rguenther@suse.de>
8511
8512         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
8513         (extract_and_process_scc_for_name): not here.
8514         (cond_dom_walker::before_dom_children): Only process
8515         stmts that end the BB in interesting ways.
8516         (run_scc_vn): Mark param uses as visited.
8517
8518 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8519
8520         * config/arm/arm.md (arith_shiftsi): Do not predicate for
8521         arm_restrict_it.
8522
8523 2014-05-20  Nick Clifton  <nickc@redhat.com>
8524
8525         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
8526         (msp430_gimplify_va_arg_expr): New function.
8527         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
8528
8529         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
8530         operand 0 in order to prevent confusion about the number of
8531         registers involved.
8532
8533 2014-05-20  Richard Biener  <rguenther@suse.de>
8534
8535         PR tree-optimization/61221
8536         * tree-ssa-pre.c (el_to_update): Remove.
8537         (eliminate_dom_walker::before_dom_children): Handle released
8538         VDEFs by value-numbering them to the associated VUSE.  Update
8539         stmt immediately for substituted call address.
8540         (eliminate): Remove delayed stmt updating code.
8541         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
8542         possibly late re-numbered vuses.
8543         (vn_reference_lookup_2): Adjust.
8544         (vn_reference_lookup_pieces): Likewise.
8545         (vn_reference_lookup): Likewise.
8546
8547 2014-05-20  Richard Biener  <rguenther@suse.de>
8548
8549         * config.gcc: Remove need_64bit_hwint.
8550         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
8551         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
8552         it to be true.
8553         * config.in: Regenerate.
8554         * configure: Likewise.
8555
8556 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
8557
8558         * doc/extend.texi: Create Label Attributes section,
8559         move all label attributes into it and reference it.
8560
8561 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
8562
8563         * arm.c (thumb1_reorg): When scanning backwards skip anything
8564         that's not a proper insn.
8565
8566 2014-05-19  Richard Biener  <rguenther@suse.de>
8567
8568         PR tree-optimization/61221
8569         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8570         Do nothing for unreachable blocks.
8571         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
8572         Improve unreachability detection.
8573
8574 2014-05-19  Richard Biener  <rguenther@suse.de>
8575
8576         PR tree-optimization/61209
8577         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
8578
8579 2014-05-19  Nick Clifton  <nickc@redhat.com>
8580
8581         * except.c (init_eh): Fix computation of builtin setjmp buffer
8582         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
8583
8584 2014-05-19  Richard Biener  <rguenther@suse.de>
8585
8586         PR tree-optimization/61184
8587         * tree-vrp.c (is_negative_overflow_infinity): Use
8588         TREE_OVERFLOW_P and do that check first.
8589         (is_positive_overflow_infinity): Likewise.
8590         (is_overflow_infinity): Likewise.
8591         (vrp_operand_equal_p): Properly treat operands with
8592         differing overflow as not equal.
8593
8594 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
8595
8596         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
8597         shift simplification where it was intended.
8598
8599 2014-05-19  Christian Bruel  <christian.bruel@st.com>
8600
8601         PR target/61195
8602         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
8603
8604 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
8605
8606         PR target/61084
8607         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
8608         than wide_int.
8609
8610 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
8611
8612         * reg-notes.def (CROSSING_JUMP): Likewise.
8613         * rtl.h (rtx_def): Update comment for jump flag.
8614         (CROSSING_JUMP_P): Define.
8615         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
8616         of a REG_CROSSING_JUMP note.
8617         * cfghooks.c (tidy_fallthru_edges): Likewise.
8618         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
8619         * emit-rtl.c (try_split): Likewise.
8620         * haifa-sched.c (sched_create_recovery_edges): Likewise.
8621         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
8622         * jump.c (redirect_jump_2): Likewise.
8623         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
8624         (relax_delay_slots): Likewise.
8625         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
8626         (bbit_di): Likewise.
8627         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
8628         * config/sh/sh.md (jump_compact): Likewise.
8629         * bb-reorder.c (rotate_loop): Likewise.
8630         (pass_duplicate_computed_gotos::execute): Likewise.
8631         (add_reg_crossing_jump_notes): Rename to...
8632         (update_crossing_jump_flags): ...this.
8633         (pass_partition_blocks::execute): Update accordingly.
8634
8635 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
8636
8637         * tree.h: Remove extraneous template <>.
8638
8639 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
8640
8641         * ipa.c (symtab_remove_unreachable_nodes): Remove
8642         symbol from comdat group if its body was eliminated.
8643         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
8644         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
8645         (symtab_unregister_node): ... this one.
8646         (verify_symtab_base): More strict checking of comdats.
8647         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
8648
8649 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
8650
8651         * tree-pass.h (make_pass_ipa_comdats): New pass.
8652         * timevar.def (TV_IPA_COMDATS): New timevar.
8653         * passes.def (pass_ipa_comdats): Add.
8654         * Makefile.in (OBJS): Add ipa-comdats.o
8655         * ipa-comdats.c: New file.
8656
8657 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
8658
8659         * ipa.c (update_visibility_by_resolution_info): New function.
8660         (function_and_variable_visibility): Use it.
8661
8662 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
8663
8664         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
8665         New functions.
8666         (FOR_EACH_DEFINED_SYMBOL): New macro.
8667         (varpool_first_static_initializer, varpool_next_static_initializer,
8668         varpool_first_defined_variable, varpool_next_defined_variable):
8669         Fix comments.
8670         (symtab_in_same_comdat_p): Correctly deal with inline functions.
8671
8672 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
8673
8674         * ggc-page.c (ggc_handle_finalizers): Add comment.
8675
8676 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
8677
8678         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
8679         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
8680         (ggc_internal_cleared_alloc): Likewise.
8681         * ggc-page.c (finalizer): New class.
8682         (vec_finalizer): Likewise.
8683         (globals::finalizers): New member.
8684         (globals::vec_finalizers): Likewise.
8685         (ggc_internal_alloc): Record the finalizer if any for the block being
8686         allocated.
8687         (ggc_handle_finalizers): New function.
8688         (ggc_collect): Call ggc_handle_finalizers.
8689         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
8690         finalizer.
8691         (ggc_internal_cleared_alloc): Likewise.
8692         (finalize): New function.
8693         (need_finalization_p): Likewise.
8694         (ggc_alloc): Install the type's destructor as the finalizer if it
8695         might do something.
8696         (ggc_cleared_alloc): Likewise.
8697         (ggc_vec_alloc): Likewise.
8698         (ggc_cleared_vec_alloc): Likewise.
8699
8700 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
8701
8702         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
8703
8704 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
8705
8706         * alias.c (record_alias_subset): Adjust.
8707         * bitmap.c (bitmap_element_allocate): Likewise.
8708         (bitmap_gc_alloc_stat): Likewise.
8709         * cfg.c (init_flow): Likewise.
8710         (alloc_block): Likewise.
8711         (unchecked_make_edge): Likewise.
8712         * cfgloop.c (alloc_loop): Likewise.
8713         (flow_loops_find): Likewise.
8714         (rescan_loop_exit): Likewise.
8715         * cfgrtl.c (init_rtl_bb_info): Likewise.
8716         * cgraph.c (insert_new_cgraph_node_version): Likewise.
8717         (cgraph_allocate_node): Likewise.
8718         (cgraph_create_edge_1): Likewise.
8719         (cgraph_allocate_init_indirect_info): Likewise.
8720         * cgraphclones.c (cgraph_clone_edge): Likewise.
8721         * cgraphunit.c (add_asm_node): Likewise.
8722         (init_lowered_empty_function): Likewise.
8723         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
8724         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
8725         (alpha_use_linkage): Likewise.
8726         * config/arc/arc.c (arc_init_machine_status): Likewise.
8727         * config/arm/arm.c (arm_init_machine_status): Likewise.
8728         * config/avr/avr.c (avr_init_machine_status): Likewise.
8729         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
8730         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
8731         * config/cris/cris.c (cris_init_machine_status): Likewise.
8732         * config/darwin.c (machopic_indirection_name): Likewise.
8733         (darwin_build_constant_cfstring): Likewise.
8734         (darwin_enter_string_into_cfstring_table): Likewise.
8735         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
8736         * config/frv/frv.c (frv_init_machine_status): Likewise.
8737         * config/i386/i386.c (get_dllimport_decl): Likewise.
8738         (ix86_init_machine_status): Likewise.
8739         (assign_386_stack_local): Likewise.
8740         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
8741         (i386_pe_maybe_record_exported_symbol): Likewise.
8742         (i386_pe_record_stub): Likewise.
8743         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
8744         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
8745         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
8746         (m32c_note_pragma_address): Likewise.
8747         * config/mep/mep.c (mep_init_machine_status): Likewise.
8748         (mep_note_pragma_flag): Likewise.
8749         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
8750         (mips16_local_alias): Likewise.
8751         (mips_init_machine_status): Likewise.
8752         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
8753         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
8754         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
8755         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
8756         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
8757         * config/pa/pa.c (pa_init_machine_status): Likewise.
8758         (pa_get_deferred_plabel): Likewise.
8759         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
8760         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
8761         (rs6000_init_machine_status): Likewise.
8762         (output_toc): Likewise.
8763         * config/s390/s390.c (s390_init_machine_status): Likewise.
8764         * config/score/score.c (score_output_external): Likewise.
8765         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
8766         * config/spu/spu.c (spu_init_machine_status): Likewise.
8767         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
8768         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
8769         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
8770         * coverage.c (coverage_end_function): Likewise.
8771         * dbxout.c (dbxout_init): Likewise.
8772         * doc/gty.texi: Don't mention variable_size attribute.
8773         * dwarf2cfi.c (new_cfi): Adjust.
8774         (new_cfi_row): Likewise.
8775         (copy_cfi_row): Likewise.
8776         (create_cie_data): Likewise.
8777         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
8778         (new_loc_descr): Likewise.
8779         (find_AT_string_in_table): Likewise.
8780         (add_addr_table_entry): Likewise.
8781         (new_die): Likewise.
8782         (add_var_loc_to_decl): Likewise.
8783         (clone_die): Likewise.
8784         (clone_as_declaration): Likewise.
8785         (break_out_comdat_types): Likewise.
8786         (new_loc_list): Likewise.
8787         (add_loc_descr_to_each): Likewise.
8788         (add_location_or_const_value_attribute): Likewise.
8789         (add_linkage_name): Likewise.
8790         (lookup_filename): Likewise.
8791         (dwarf2out_var_location): Likewise.
8792         (new_line_info_table): Likewise.
8793         (dwarf2out_init): Likewise.
8794         (mem_loc_descriptor): Likewise.
8795         (loc_descriptor): Likewise.
8796         (add_const_value_attribute): Likewise.
8797         (tree_add_const_value_attribute): Likewise.
8798         (comp_dir_string): Likewise.
8799         (dwarf2out_vms_debug_main_pointer): Likewise.
8800         (string_cst_pool_decl): Likewise.
8801         * emit-rtl.c (set_mem_attrs): Likewise.
8802         (get_reg_attrs): Likewise.
8803         (start_sequence): Likewise.
8804         (init_emit): Likewise.
8805         (init_emit_regs): Likewise.
8806         * except.c (init_eh_for_function): Likewise.
8807         (gen_eh_region): Likewise.
8808         (gen_eh_region_catch): Likewise.
8809         (gen_eh_landing_pad): Likewise.
8810         (add_call_site): Likewise.
8811         * function.c (add_frame_space): Likewise.
8812         (insert_temp_slot_address): Likewise.
8813         (assign_stack_temp_for_type): Likewise.
8814         (get_hard_reg_initial_val): Likewise.
8815         (allocate_struct_function): Likewise.
8816         (prepare_function_start): Likewise.
8817         (types_used_by_var_decl_insert): Likewise.
8818         * gengtype.c (variable_size_p): Remove function.
8819         (enum alloc_quantity): Remove enum.
8820         (write_typed_alloc_def): Remove function.
8821         (write_typed_struct_alloc_def): Likewise.
8822         (write_typed_typedef_alloc_def): Likewise.
8823         (write_typed_alloc_defns): Likewise.
8824         (main): Adjust.
8825         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
8826         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
8827         * ggc.h (ggc_alloc): new function.
8828         (ggc_cleared_alloc): Likewise.
8829         (ggc_vec_alloc): Template on type of vector element, and remove
8830         element size argument.
8831         (ggc_cleared_vec_alloc): Likewise.
8832         * gimple.c (gimple_build_omp_for): Adjust.
8833         (gimple_copy): Likewise.
8834         * ipa-cp.c (get_replacement_map): Likewise.
8835         (find_aggregate_values_for_callers_subset): Likewise.
8836         (known_aggs_to_agg_replacement_list): Likewise.
8837         * ipa-devirt.c (get_odr_type): Likewise.
8838         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
8839         (read_agg_replacement_chain): Likewise.
8840         * loop-iv.c (get_simple_loop_desc): Likewise.
8841         * lto-cgraph.c (input_node_opt_summary): Likewise.
8842         * lto-section-in.c (lto_new_in_decl_state): Likewise.
8843         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
8844         (input_eh_region): Likewise.
8845         (input_eh_lp): Likewise.
8846         (input_cfg): Likewise.
8847         * optabs.c (set_optab_libfunc): Likewise.
8848         (init_tree_optimization_optabs): Likewise.
8849         (set_conv_libfunc): Likewise.
8850         * passes.c (do_per_function_toporder): Likewise.
8851         * rtl.h: Don't use variable_size gty attribute.
8852         * sese.c (if_region_set_false_region): Adjust.
8853         * stringpool.c (gt_pch_save_stringpool): Likewise.
8854         * target-globals.c (save_target_globals): Likewise.
8855         * toplev.c (general_init): Likewise.
8856         * trans-mem.c (record_tm_replacement): Likewise.
8857         (split_bb_make_tm_edge): Likewise.
8858         * tree-cfg.c (move_sese_region_to_fn): Likewise.
8859         * tree-data-ref.h (lambda_vector_new): Likewise.
8860         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
8861         * tree-iterator.c (tsi_link_before): Likewise.
8862         (tsi_link_after): Likewise.
8863         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
8864         * tree-ssa-loop-niter.c (record_estimate): Likewise.
8865         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
8866         * tree-ssa-operands.h: Don't use variable_size gty attribute.
8867         * tree-ssa.c (init_tree_ssa): Adjust.
8868         * tree-ssanames.c (set_range_info): Likewise.
8869         (get_ptr_info): Likewise.
8870         (duplicate_ssa_name_ptr_info): Likewise.
8871         (duplicate_ssa_name_range_info): Likewise.
8872         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
8873         (unpack_ts_fixed_cst_value_fields): Likewise.
8874         * tree.c (build_fixed): Likewise.
8875         (build_real): Likewise.
8876         (build_string): Likewise.
8877         (decl_priority_info): Likewise.
8878         (decl_debug_expr_insert): Likewise.
8879         (decl_value_expr_insert): Likewise.
8880         (decl_debug_args_insert): Likewise.
8881         (type_hash_add): Likewise.
8882         (build_omp_clause): Likewise.
8883         * ubsan.c (decl_for_type_insert): Likewise.
8884         * varasm.c (get_unnamed_section): Likewise.
8885         (get_noswitch_section): Likewise.
8886         (get_section): Likewise.
8887         (get_block_for_section): Likewise.
8888         (create_block_symbol): Likewise.
8889         (build_constant_desc): Likewise.
8890         (create_constant_pool): Likewise.
8891         (force_const_mem): Likewise.
8892         (record_tm_clone_pair): Likewise.
8893         * varpool.c (varpool_create_empty_node): Likewise.
8894
8895 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
8896
8897         * dwarf2out.c (tree_add_const_value_attribute): Call
8898         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
8899         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
8900         instead of ggc_internal_<x>alloc_stat.
8901         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
8902         (ggc_realloc): Likewise.
8903         * ggc-none.c (ggc_internal_alloc): Likewise.
8904         (ggc_internal_cleared_alloc): Likewise.
8905         * ggc-page.c: Likewise.
8906         * ggc.h (ggc_internal_alloc_stat): Likewise.
8907         (ggc_internal_alloc): Remove macro.
8908         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
8909         (ggc_internal_cleared_alloc): Remove macro.
8910         (GGC_RESIZEVEC): Adjust.
8911         (ggc_resizevar): Remove macro.
8912         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
8913         (ggc_internal_cleared_vec_alloc_stat): Likewise.
8914         (ggc_internal_vec_cleared_alloc): Remove macro.
8915         (ggc_alloc_atomic_stat): Drop _stat suffix.
8916         (ggc_alloc_atomic): Remove macro.
8917         (ggc_alloc_cleared_atomic): Remove macro.
8918         (ggc_alloc_string_stat): Drop _stat suffix.
8919         (ggc_alloc_string): Remove macro.
8920         (ggc_alloc_rtx_def_stat): Adjust.
8921         (ggc_alloc_tree_node_stat): Likewise.
8922         (ggc_alloc_cleared_tree_node_stat): Likewise.
8923         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
8924         (ggc_alloc_cleared_simd_clone_stat): Likewise.
8925         * gimple.c (gimple_build_omp_for): Likewise.
8926         (gimple_copy): Likewise.
8927         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
8928         * toplev.c (realloc_for_line_map): Adjust.
8929         * tree-data-ref.h (lambda_vector_new): Likewise.
8930         * tree-phinodes.c (allocate_phi_node): Likewise.
8931         * tree.c (grow_tree_vec_stat): Likewise.
8932         * vec.h (va_gc::reserve): Adjust.
8933
8934 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
8935
8936         * config/microblaze/microblaze.c (break_handler): New Declaration.
8937         (microblaze_break_function_p,microblaze_is_break_handler): New.
8938         (compute_frame_size): Use microblaze_break_function_p.
8939         Add the test of break_handler.
8940         (microblaze_function_prologue) : Add the test of variable
8941         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
8942         (microblaze_function_epilogue) : Add the test of break_handler.
8943         (microblaze_globalize_label) : Add the test of break_handler.
8944         Check the name by BREAK_HANDLER_NAME.
8945
8946         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
8947
8948         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
8949         microblaze_is_break_handler test.
8950         (call_internal1,call_value_intern): Use microblaze_break_function_p.
8951         Use SYMBOL_REF_DECL.
8952
8953         * config/microblaze/microblaze-protos.h
8954         (microblaze_break_function_p,microblaze_is_break_handler):
8955         New Declaration.
8956
8957         * doc/extend.texi (MicroBlaze break_handler Functions): Document
8958         new MicroBlaze break_handler functions.
8959
8960 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
8961
8962         * doc/extend.texi (Size of an asm): Move node text according
8963         to its @menu entry position.
8964
8965 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
8966
8967         PR tree-optimization/61140
8968         PR tree-optimization/61150
8969         PR tree-optimization/61197
8970         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
8971
8972 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
8973
8974         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
8975
8976 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
8977
8978         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
8979         __SIZEOF_INT128__ is defined.
8980
8981 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
8982
8983         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
8984         (rs6000_delegitimize_address): Use it.
8985
8986 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
8987
8988         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
8989         inplace argument.  Store the new address in the original MEM when true.
8990         * emit-rtl.c (change_address_1): Likewise.
8991         (adjust_address_1, adjust_automodify_address_1, offset_address):
8992         Update accordingly.
8993         * rtl.h (plus_constant): Add an inplace argument.
8994         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
8995         when true.  Avoid generating (plus X (const_int 0)).
8996         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
8997         in-place.  Pass true to plus_constant.
8998         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
8999
9000 2014-05-16  Dehao Chen  <dehao@google.com>
9001
9002         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
9003
9004 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
9005
9006         PR target/54089
9007         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
9008         patterns.
9009         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
9010
9011 2014-05-16  Dehao Chen  <dehao@google.com>
9012
9013         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
9014         optimize_function_for_size_p.
9015         * regs.h (REG_FREQ_FROM_BB): Likewise.
9016
9017 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
9018
9019         PR target/51244
9020         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
9021         negt_reg_operand cases.
9022         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
9023         predicate.
9024         * config/sh/predicates.md (cbranch_treg_value): Simplify.
9025
9026 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
9027
9028         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
9029         target variants.
9030
9031 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
9032
9033         Revert:
9034         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
9035
9036         * tree-cfg.c (dump_function_to_file): Dump the return type of
9037         functions, in a line to itself before the function body, mimicking
9038         the layout of a C function.
9039
9040 2014-05-16  Dehao Chen  <dehao@google.com>
9041
9042         * cfghooks.c (make_forwarder_block): Use direct computation to
9043         get fall-through edge's count and frequency.
9044
9045 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
9046
9047         * config/arc/arc.c (arc_init): Fix typo in error message.
9048         * config/i386/i386.c (ix86_expand_builtin): Likewise.
9049         (split_stack_prologue_scratch_regno): Likewise.
9050         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
9051         word from error message.
9052
9053 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
9054
9055         * ira-costs.c: Fix typo in comment.
9056
9057 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
9058
9059         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
9060
9061 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
9062
9063         * varpool.c (dump_varpool_node): Dump write-only flag.
9064         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
9065         write-only flag.
9066         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
9067         write-only variables.
9068         * ipa.c (process_references): New function.
9069         (set_readonly_bit): New function.
9070         (set_writeonly_bit): New function.
9071         (clear_addressable_bit): New function.
9072         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
9073         fix handling of aliases.
9074         * cgraph.h (struct varpool_node): Add writeonly flag.
9075
9076 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
9077
9078         PR rtl-optimization/60969
9079         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
9080         Calculate costs for this case.
9081
9082 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
9083
9084         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
9085         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
9086
9087 2014-05-16  Richard Biener  <rguenther@suse.de>
9088
9089         PR tree-optimization/61194
9090         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
9091         bool patterns ending in a COND_EXPR.
9092
9093 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9094
9095         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
9096
9097 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9098
9099         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
9100         where we were unable to cost an RTX.
9101
9102 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9103
9104         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
9105         HIGH, LO_SUM.
9106
9107 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9108             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9109
9110         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
9111
9112 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9113             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9114
9115         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
9116         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
9117
9118 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9119             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9120
9121         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
9122         operators.
9123
9124 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9125             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9126
9127         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
9128         DIV/MOD.
9129
9130 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9131             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9132
9133         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
9134         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
9135
9136 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9137             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9138
9139         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
9140         rotates and shifts.
9141
9142 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9143             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9144
9145         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
9146         ZERO_EXTEND and SIGN_EXTEND better.
9147
9148 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9149             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9150
9151         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
9152         logical operations.
9153
9154 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9155             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9156
9157         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
9158         costs when costing loads and stores to memory.
9159
9160 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9161             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
9162
9163         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
9164         for SET RTX.
9165
9166 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9167
9168         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
9169
9170 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9171             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9172
9173         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
9174         to...
9175         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
9176         well formed.
9177         (aarch64_rtx_mult_cost): New.
9178         (aarch64_rtx_costs): Use it, refactor as appropriate.
9179
9180 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9181             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9182
9183         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
9184         emit instructions, return number of instructions which would
9185         be emitted.
9186         (aarch64_add_constant): Update call to aarch64_build_constant.
9187         (aarch64_output_mi_thunk): Likewise.
9188         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
9189         a CONST_DOUBLE.
9190
9191 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9192
9193         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
9194         (TARGET_RTX_COSTS): Call it.
9195
9196 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9197
9198         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
9199         (cortexa57_vector_cost): Likewise.
9200         (cortexa57_tunings): Use them.
9201
9202 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
9203
9204         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
9205         (cpu_addrcost_table): Use it.
9206         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
9207         (aarch64_address_cost): Rewrite using aarch64_classify_address,
9208         move it.
9209
9210 2014-05-16  Richard Biener  <rguenther@suse.de>
9211
9212         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
9213         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
9214         (visit_phi): Ignore edges marked as not executable.
9215         (class cond_dom_walker): New.
9216         (cond_dom_walker::before_dom_children): Value-number
9217         control statements and mark successor edges as not
9218         executable if possible.
9219         (run_scc_vn): First walk all control statements in
9220         dominator order, marking edges as not executable.
9221         * tree-inline.c (copy_edges_for_bb): Be not confused
9222         about random edge flags.
9223
9224 2014-05-16  Richard Biener  <rguenther@suse.de>
9225
9226         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
9227
9228 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
9229
9230         PR target/61193
9231         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
9232         (__TM_simple_begin): Use it.
9233         (__TM_begin): Likewise.
9234
9235 2014-05-15  Martin Jambor  <mjambor@suse.cz>
9236
9237         PR ipa/61085
9238         * ipa-prop.c (update_indirect_edges_after_inlining): Check
9239         type_preserved flag when the indirect edge is polymorphic.
9240
9241 2014-05-15  Martin Jambor  <mjambor@suse.cz>
9242
9243         PR tree-optimization/61090
9244         * tree-sra.c (sra_modify_expr): Pass the current gsi to
9245         build_ref_for_model.
9246
9247 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9248
9249         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
9250         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
9251
9252 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
9253
9254         PR tree-optimization/61158
9255         * fold-const.c (fold_binary_loc): If X is zero-extended and
9256         shiftc >= prec, make sure zerobits is all ones instead of
9257         invoking undefined behavior.
9258
9259 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
9260
9261         * regcprop.h: New file.
9262         * regcprop.c (skip_debug_insn_p): New decl.
9263         (replace_oldest_value_reg): Check skip_debug_insn_p.
9264         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
9265         * shrink-wrap.c: Include regcprop.h.
9266         (prepare_shrink_wrap): Call
9267         copyprop_hardreg_forward_bb_without_debug_insn.
9268
9269 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
9270
9271         * shrink-wrap.h: Update comment.
9272         * shrink-wrap.c: Update comment.
9273         (next_block_for_reg): Rename to live_edge_for_reg.
9274         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
9275         (move_insn_for_shrink_wrap): Split live_edge.
9276         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
9277
9278 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
9279
9280         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
9281         Delete.
9282         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
9283         * config/sparc/sparc.md (fptype_ut699): New attribute.
9284         (in_branch_delay): Return false if -mfix-ut699 is specified and
9285         fptype_ut699 is set to single.
9286         (truncdfsf2): Add fptype_ut699 attribute.
9287         (fix_truncdfsi2): Likewise.
9288         (floatsisf2): Change fptype attribute.
9289         (fix_truncsfsi2): Likewise.
9290         (negtf2_notv9): Delete.
9291         (negtf2_v9): Likewise.
9292         (negtf2_hq): New instruction.
9293         (negtf2): New instruction and splitter.
9294         (negdf2_notv9): Rewrite.
9295         (abstf2_notv9): Delete.
9296         (abstf2_hq_v9): Likewise.
9297         (abstf2_v9): Likewise.
9298         (abstf2_hq): New instruction.
9299         (abstf2): New instruction and splitter.
9300         (absdf2_notv9): Rewrite.
9301
9302 2014-05-14  Cary Coutant  <ccoutant@google.com>
9303
9304         PR debug/61013
9305         * opts.c (common_handle_option): Don't special-case "-g".
9306         (set_debug_level): Default to at least level 2 with "-g".
9307
9308 2014-05-14  DJ Delorie  <dj@redhat.com>
9309
9310         * config/msp430/msp430.c (msp430_builtin): Add
9311         MSP430_BUILTIN_DELAY_CYCLES.
9312         (msp430_init_builtins): Register void __delay_cycles(long long).
9313         (msp430_builtin_decl): Add it.
9314         (cg_magic_constant): New.
9315         (msp430_expand_delay_cycles): New.
9316         (msp430_expand_builtin): Call it.
9317         (msp430_print_operand_raw): Change integer printing from "int" to
9318         HOST_WIDE_INT.
9319         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
9320         (delay_cycles_start): New.
9321         (delay_cycles_end): New.
9322         (delay_cycles_32): New.
9323         (delay_cycles_32x): New.
9324         (delay_cycles_16): New.
9325         (delay_cycles_16x): New.
9326         (delay_cycles_2): New.
9327         (delay_cycles_1): New.
9328         * doc/extend.texi: Document __delay_cycles().
9329
9330 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
9331
9332         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
9333         length attribute computation.
9334
9335 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
9336
9337         PR debug/61188
9338         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
9339
9340 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
9341
9342         PR target/61084
9343         * config/sparc/sparc.md: Fix types of low and high in DI constant
9344         splitter.  Use gen_int_mode in some other splitters.
9345
9346 2014-05-14  Martin Jambor  <mjambor@suse.cz>
9347
9348         PR ipa/60897
9349         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
9350
9351 2014-05-14  James Norris  <jnorris@codesourcery.com>
9352
9353         * omp-low.c (expand_parallel_call): Remove shadow variable.
9354         (expand_omp_taskreg): Likewise.
9355
9356 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
9357
9358         * common/config/i386/i386-common.c
9359         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
9360         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
9361         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
9362         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
9363         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
9364         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
9365         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
9366         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
9367         xsavecintrin.h, xsavesintrin.h.
9368         (x86_64-*-*): Ditto.
9369         * config/i386/clflushoptintrin.h: New.
9370         * config/i386/xsavecintrin.h: Ditto.
9371         * config/i386/xsavesintrin.h: Ditto.
9372         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
9373         (bit_XSAVES): Ditto.
9374         (bit_XSAVES): Ditto.
9375         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
9376         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
9377         -mno-clflushopt.
9378         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9379         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
9380         OPTION_MASK_ISA_XSAVES.
9381         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
9382         -mxsavec, -mxsaves.
9383         (PTA_CLFLUSHOPT) Define.
9384         (PTA_XSAVEC): Ditto.
9385         (PTA_XSAVES): Ditto.
9386         (ix86_option_override_internal): Handle new options.
9387         (ix86_valid_target_attribute_inner_p): Ditto.
9388         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
9389         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
9390         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
9391         (bdesc_special_args): Add __builtin_ia32_xsaves,
9392         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
9393         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
9394         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
9395         (ix86_expand_builtin): Handle new builtins.
9396         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
9397         (TARGET_CLFLUSHOPT_P): Ditto.
9398         (TARGET_XSAVEC): Ditto.
9399         (TARGET_XSAVEC_P): Ditto.
9400         (TARGET_XSAVES): Ditto.
9401         (TARGET_XSAVES_P): Ditto.
9402         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
9403         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
9404         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
9405         (ANY_XRSTOR): New.
9406         (ANY_XRSTOR64): Ditto.
9407         (xrstor): Ditto.
9408         (xrstor): Change into <xrstor>.
9409         (xrstor_rex64): Change into <xrstor>_rex64.
9410         (xrstor64): Change into <xrstor>64
9411         (clflushopt): New.
9412         * config/i386/i386.opt (mclflushopt): New.
9413         (mxsavec): Ditto.
9414         (mxsaves): Ditto.
9415         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
9416         xsavecintrin.h.
9417         * doc/invoke.texi: Document new options.
9418
9419 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
9420
9421         PR rtl-optimization/60866
9422         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
9423         Default it to -1.  Pass it down to init_simplejump_data.
9424         (init_simplejump_data): New parameter old_seqno.  Pass it down
9425         to get_seqno_for_a_jump.
9426         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
9427         initializing new jump seqno as a last resort.  Add comment.
9428         (sel_redirect_edge_and_branch): Save old seqno of the conditional
9429         jump and pass it down to sel_init_new_insn.
9430         (sel_redirect_edge_and_branch_force): Likewise.
9431
9432 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
9433
9434         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
9435         shifted values to avoid build warning.
9436
9437 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
9438
9439         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
9440         * cfgrtl.c (rtl_merge_blocks): Fix comment.
9441         (cfg_layout_merge_blocks): Likewise.
9442         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
9443
9444 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
9445
9446         PR rtl-optimization/60901
9447         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
9448         bb predecessor belongs to the same scheduling region.  Adjust comment.
9449
9450 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
9451
9452         * doc/sourcebuild.texi: (dfp_hw): Document.
9453         (p8vector_hw): Likewise.
9454         (powerpc_eabi_ok): Likewise.
9455         (powerpc_elfv2): Likewise.
9456         (powerpc_htm_ok): Likewise.
9457         (ppc_recip_hw): Likewise.
9458         (vsx_hw): Likewise.
9459
9460 2014-05-13  Cary Coutant  <ccoutant@google.com>
9461
9462         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
9463
9464 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
9465
9466         * gengtype-parse.c (require3): Eliminate in favor of...
9467         (require4): New.
9468         (require_template_declaration): Update to support optional single *
9469         on a type.
9470
9471         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
9472         (create_user_defined_type): Handle a single level of explicit
9473         pointerness within template arguments.
9474         (struct write_types_data): Add field "kind".
9475         (filter_type_name): Handle "*" character.
9476         (write_user_func_for_structure_ptr): Require a write_types_data
9477         rather than just a prefix string, so that we can look up the kind
9478         of the wtd and use it as an index into wrote_user_func_for_ptr,
9479         ensuring that such functions are written at most once.  Support
9480         subclasses by invoking the marking function of the ultimate base class.
9481         (write_user_func_for_structure_body): Require a write_types_data
9482         rather than just a prefix string, so that we can pass this to
9483         write_user_func_for_structure_ptr.
9484         (write_func_for_structure): Likewise.
9485         (ggc_wtd): Add initializer of new "kind" field.
9486         (pch_wtd): Likewise.
9487
9488         * gengtype.h (enum write_types_kinds): New.
9489         (struct type): Add field wrote_user_func_for_ptr to the "s"
9490         union member.
9491
9492 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
9493
9494         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
9495         instead of const_binop.
9496         (fold_binary_loc): Likewise.
9497
9498 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
9499
9500         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
9501         calculation to match get_ref_base_and_extent.
9502
9503 2014-05-13  Catherine Moore  <clm@codesourcery.com>
9504             Sandra Loosemore  <sandra@codesourcery.com>
9505
9506         * configure.ac: Fix assembly for explicit JALR relocation check.
9507         * configure: Regenerate.
9508
9509 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9510
9511         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
9512         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
9513         Remove associated type declarations and initialisations.
9514         (arm_expand_neon_builtin): Likewise.
9515         (neon_emit_pair_result_insn): Delete.
9516         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
9517         * config/arm/neon.md (neon_vtrn<mode>): Delete.
9518         (neon_vzip<mode>): Likewise.
9519         (neon_vuzp<mode>): Likewise.
9520
9521 2014-05-13  Richard Biener  <rguenther@suse.de>
9522
9523         PR ipa/60973
9524         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
9525         it needs revisiting whether the call still may be tail-called.
9526
9527 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9528
9529         * rtl.def (SYMBOL_REF): Remove middle "0" field.
9530         * rtl.h (block_symbol): Reduce number of fields to 2.
9531         (rtx_def): Add u2.symbol_ref_flags.
9532         (SYMBOL_REF_FLAGS): Use it.
9533         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
9534         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
9535         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
9536         Lower index of SYMBOL_REF_DATA.
9537         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
9538         Print SYMBOL_REF_FLAGS at the same time.
9539         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
9540
9541 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9542
9543         * rtl.def (VAR_LOCATION): Remove "i" field.
9544         * rtl.h (rtx_def): Add u2.var_location_status.
9545         (PAT_VAR_LOCATION_STATUS): Use it.
9546         (gen_rtx_VAR_LOCATION): Declare.
9547         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
9548         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
9549         * var-tracking.c (emit_note_insn_var_location): Remove casts.
9550
9551 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9552
9553         * rtl.def (scratch): Fix outdated comment and remove "0" field.
9554         * gengtype.c (adjust_field_rtx_def): Update accordingly.
9555
9556 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9557
9558         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
9559         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
9560         * rtl.h (rtx_def): Add insn_uid to u2 field.
9561         (RTX_FLAG_CHECK8): Delete in favor of...
9562         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
9563         (INSN_DELETED_P): Update accordingly.
9564         (INSN_UID): Use u2.insn_uid.
9565         (INSN_CHAIN_CODE_P): Define.
9566         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
9567         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
9568         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
9569         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
9570         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
9571         indices accordingly.
9572         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
9573         Update indices for insn-chain rtxes.
9574         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
9575         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
9576         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
9577         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
9578         * combine.c (try_combine): Likewise.
9579         * ira.c (setup_prohibited_mode_move_regs): Likewise.
9580
9581 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9582
9583         * rtl.def (REG): Remove middle field.
9584         * rtl.h (rtx_def): Add orignal_regno to u2.
9585         (ORIGINAL_REGNO): Use it instead of field 1.
9586         (REG_ATTRS): Lower field index accordingly.
9587         * gengtype.c (adjust_field_rtx_def): Remove handling of
9588         ORIGINAL_REGNO.  Move REG_ATTRS index down.
9589         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
9590         code that prints the REGNO.
9591
9592 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9593
9594         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
9595         GENERATOR_FILE.
9596
9597 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
9598
9599         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
9600
9601 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
9602
9603         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
9604         (alloc_iv): Lower base expressions containing ADDR_EXPR.
9605
9606 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
9607
9608         * config/aarch64/aarch64-protos.h
9609         (aarch64_hard_regno_caller_save_mode): New prototype.
9610         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
9611         New function.
9612         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
9613
9614 2014-05-13  Christian Bruel  <christian.bruel@st.com>
9615
9616         * target.def (mode_switching): New hook vector.
9617         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
9618         (mode_exit, modepriority_to_mode): Likewise.
9619         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
9620         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
9621         * target.h: Include tm.h and hard-reg-set.h.
9622         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
9623         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
9624         * doc/tm.texi Regenerate.
9625         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
9626         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
9627         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
9628         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
9629         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
9630         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
9631         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
9632         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
9633         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
9634         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
9635         (ix86_emit_mode_set): Hookify.
9636         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
9637         Delete.
9638         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
9639         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
9640         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
9641         (epiphany_mode_priority_to_mode): Remove declaration.
9642         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
9643         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
9644         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
9645         Likewise.
9646         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
9647         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
9648         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
9649
9650 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
9651
9652         PR target/61060
9653         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
9654         is const0_rtx, return immediately.  Don't test count == 0 when
9655         it is always true.
9656
9657 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
9658
9659         * Makefile.in: add shrink-wrap.o.
9660         * config/i386/i386.c: include "shrink-wrap.h"
9661         * function.c: Likewise.
9662         (requires_stack_frame_p, next_block_for_reg,
9663         move_insn_for_shrink_wrap, prepare_shrink_wrap,
9664         dup_block_and_redirect): Move to shrink-wrap.c
9665         (thread_prologue_and_epilogue_insns): Extract three code segments
9666         as functions in shrink-wrap.c
9667         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
9668         shrink-wrap.h
9669         * shrink-wrap.c: New file.
9670         * shrink-wrap.h: New file.
9671
9672 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
9673
9674         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
9675         reference to Solaris.
9676
9677 2014-05-12  Mike Stump  <mikestump@comcast.net>
9678
9679         PR other/31778
9680         * genattrtab.c (filename): Add.
9681         (convert_set_attr_alternative): Improve error message.
9682         (check_defs): Restore read_md_filename for error messages.
9683         (gen_insn): Save filename.
9684
9685 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
9686
9687         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
9688         -fno-local-ivars and -fivar-visibility.
9689         * c-family/c.opt: Make -Wshadow also implicitly enable
9690         -Wshadow-ivar.
9691
9692 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
9693
9694         * doc/tm.texi: Remove reference to deleted macro.
9695         * doc/tm.texi.in: Likewise.
9696
9697 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9698
9699         PR target/60991
9700         * config/avr/avr.c (avr_out_store_psi): Use correct constant
9701         to restore Y.
9702
9703 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
9704
9705         PR libgcc/61152
9706         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
9707         * config/arm/aout.h (License): Same.
9708         * config/arm/bpabi.h (License): Same.
9709         * config/arm/elf.h (License): Same.
9710         * config/arm/linux-elf.h (License): Same.
9711         * config/arm/linux-gas.h (License): Same.
9712         * config/arm/netbsd-elf.h (License): Same.
9713         * config/arm/uclinux-eabi.h (License): Same.
9714         * config/arm/uclinux-elf.h (License): Same.
9715         * config/arm/vxworks.h (License): Same.
9716
9717 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
9718
9719         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
9720         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
9721         number of operands to 3.
9722         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
9723         * tree-nested.c (convert_nonlocal_omp_clauses,
9724         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
9725         * gimplify.c (gimplify_scan_omp_clauses): Handle
9726         OMP_CLAUSE_LINEAR_STMT.
9727         * omp-low.c (lower_rec_input_clauses): Fix typo.
9728         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
9729         cast between Fortran boolean_type_node and C _Bool if
9730         needed.
9731
9732 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
9733
9734         PR tree-optimization/61136
9735         * wide-int.h (multiple_of_p): Define a version that doesn't return
9736         the quotient.
9737         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
9738         integer_zerop/const_binop pair.
9739         (multiple_of_p): Likewise, converting both operands to widest_int
9740         precision.
9741
9742 2014-05-09  Teresa Johnson  <tejohnson@google.com>
9743
9744         * cgraphunit.c (analyze_functions): Use correct dump file.
9745
9746 2014-05-09  Florian Weimer  <fweimer@redhat.com>
9747
9748         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
9749         expand_used_vars.
9750         (stack_protect_return_slot_p): New function.
9751         (expand_used_vars): Call stack_protect_decl_p and
9752         stack_protect_return_slot_p for -fstack-protector-strong.
9753
9754 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
9755         Andrew Haley <aph@redhat.com>
9756         Richard Sandiford <rdsandiford@googlemail.com>
9757
9758         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
9759         pages.
9760
9761 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
9762
9763         PR middle-end/61111
9764         * fold-const.c (fold_binary_loc): Changed width of mask.
9765
9766 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
9767
9768         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
9769         unsigned int initializers for regno_in, regno_out.
9770
9771 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
9772
9773         PR target/61055
9774         * config/avr/avr.md (cc): Add new attribute set_vzn.
9775         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
9776         Set cc insn attribute to set_vzn instead of set_zn for alternatives
9777         with INC, DEC or NEG.
9778         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
9779         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
9780         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
9781
9782 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9783
9784         Revert:
9785         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9786
9787         * wide-int.cc (UTItype): Define.
9788         (UDWtype): Define for appropriate W_TYPE_SIZE.
9789
9790 2014-05-09  Richard Biener  <rguenther@suse.de>
9791
9792         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
9793         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
9794         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
9795         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
9796         ssa_propagate): Adjust.
9797
9798 2014-05-08  Jeff Law  <law@redhat.com>
9799
9800         PR tree-optimization/61009
9801         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
9802         tri-state rather than a boolean.  When a block is too big to
9803         thread through, inform caller via negative return value.
9804         (thread_across_edge): If a block was too big for normal threading,
9805         then it's too big for a joiner too, so remove temporary equivalences
9806         and return immediately.
9807
9808 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9809             Matthias Klose  <doko@ubuntu.com>
9810
9811         PR driver/61106
9812         * optc-gen.awk: Fix option handling for -Wunused-parameter.
9813
9814 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
9815
9816         PR target/59952
9817         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
9818
9819 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
9820
9821         PR target/61092
9822         * config/alpha/alpha.c: Include gimple-iterator.h.
9823         (alpha_gimple_fold_builtin): New function.  Move
9824         ALPHA_BUILTIN_UMULH folding from ...
9825         (alpha_fold_builtin): ... here.
9826         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
9827
9828 2014-05-08  Wei Mi  <wmi@google.com>
9829
9830         PR target/58066
9831         * config/i386/i386.c (ix86_compute_frame_layout): Update
9832         preferred_stack_boundary for call, expanded from tls descriptor.
9833         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
9834         to depend on SP register.
9835         (*tls_local_dynamic_base_32_gnu): Ditto.
9836         (*tls_local_dynamic_32_once): Ditto.
9837         (tls_global_dynamic_64_<mode>): Set
9838         ix86_tls_descriptor_calls_expanded_in_cfun.
9839         (tls_local_dynamic_base_64_<mode>): Ditto.
9840         (tls_global_dynamic_32): Set
9841         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
9842         to depend on SP register.
9843         (tls_local_dynamic_base_32): Ditto.
9844
9845 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9846
9847         * config/arm/arm_neon.h: Update comment.
9848         * config/arm/neon-docgen.ml: Delete.
9849         * config/arm/neon-gen.ml: Delete.
9850         * doc/arm-neon-intrinsics.texi: Update comment.
9851
9852 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9853
9854         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
9855         and v4sf versions.
9856         (vand, vorr, veor, vorn, vbic): Remove.
9857         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
9858         iterator.
9859         (neon_vsub_unspec): Likewise.
9860         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
9861
9862 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9863
9864         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
9865         (vadd_s16): Likewise.
9866         (vadd_s32): Likewise.
9867         (vadd_f32): Likewise.
9868         (vadd_u8): Likewise.
9869         (vadd_u16): Likewise.
9870         (vadd_u32): Likewise.
9871         (vadd_s64): Likewise.
9872         (vadd_u64): Likewise.
9873         (vaddq_s8): Likewise.
9874         (vaddq_s16): Likewise.
9875         (vaddq_s32): Likewise.
9876         (vaddq_s64): Likewise.
9877         (vaddq_f32): Likewise.
9878         (vaddq_u8): Likewise.
9879         (vaddq_u16): Likewise.
9880         (vaddq_u32): Likewise.
9881         (vaddq_u64): Likewise.
9882         (vmul_s8): Likewise.
9883         (vmul_s16): Likewise.
9884         (vmul_s32): Likewise.
9885         (vmul_f32): Likewise.
9886         (vmul_u8): Likewise.
9887         (vmul_u16): Likewise.
9888         (vmul_u32): Likewise.
9889         (vmul_p8): Likewise.
9890         (vmulq_s8): Likewise.
9891         (vmulq_s16): Likewise.
9892         (vmulq_s32): Likewise.
9893         (vmulq_f32): Likewise.
9894         (vmulq_u8): Likewise.
9895         (vmulq_u16): Likewise.
9896         (vmulq_u32): Likewise.
9897         (vsub_s8): Likewise.
9898         (vsub_s16): Likewise.
9899         (vsub_s32): Likewise.
9900         (vsub_f32): Likewise.
9901         (vsub_u8): Likewise.
9902         (vsub_u16): Likewise.
9903         (vsub_u32): Likewise.
9904         (vsub_s64): Likewise.
9905         (vsub_u64): Likewise.
9906         (vsubq_s8): Likewise.
9907         (vsubq_s16): Likewise.
9908         (vsubq_s32): Likewise.
9909         (vsubq_s64): Likewise.
9910         (vsubq_f32): Likewise.
9911         (vsubq_u8): Likewise.
9912         (vsubq_u16): Likewise.
9913         (vsubq_u32): Likewise.
9914         (vsubq_u64): Likewise.
9915         (vand_s8): Likewise.
9916         (vand_s16): Likewise.
9917         (vand_s32): Likewise.
9918         (vand_u8): Likewise.
9919         (vand_u16): Likewise.
9920         (vand_u32): Likewise.
9921         (vand_s64): Likewise.
9922         (vand_u64): Likewise.
9923         (vandq_s8): Likewise.
9924         (vandq_s16): Likewise.
9925         (vandq_s32): Likewise.
9926         (vandq_s64): Likewise.
9927         (vandq_u8): Likewise.
9928         (vandq_u16): Likewise.
9929         (vandq_u32): Likewise.
9930         (vandq_u64): Likewise.
9931         (vorr_s8): Likewise.
9932         (vorr_s16): Likewise.
9933         (vorr_s32): Likewise.
9934         (vorr_u8): Likewise.
9935         (vorr_u16): Likewise.
9936         (vorr_u32): Likewise.
9937         (vorr_s64): Likewise.
9938         (vorr_u64): Likewise.
9939         (vorrq_s8): Likewise.
9940         (vorrq_s16): Likewise.
9941         (vorrq_s32): Likewise.
9942         (vorrq_s64): Likewise.
9943         (vorrq_u8): Likewise.
9944         (vorrq_u16): Likewise.
9945         (vorrq_u32): Likewise.
9946         (vorrq_u64): Likewise.
9947         (veor_s8): Likewise.
9948         (veor_s16): Likewise.
9949         (veor_s32): Likewise.
9950         (veor_u8): Likewise.
9951         (veor_u16): Likewise.
9952         (veor_u32): Likewise.
9953         (veor_s64): Likewise.
9954         (veor_u64): Likewise.
9955         (veorq_s8): Likewise.
9956         (veorq_s16): Likewise.
9957         (veorq_s32): Likewise.
9958         (veorq_s64): Likewise.
9959         (veorq_u8): Likewise.
9960         (veorq_u16): Likewise.
9961         (veorq_u32): Likewise.
9962         (veorq_u64): Likewise.
9963         (vbic_s8): Likewise.
9964         (vbic_s16): Likewise.
9965         (vbic_s32): Likewise.
9966         (vbic_u8): Likewise.
9967         (vbic_u16): Likewise.
9968         (vbic_u32): Likewise.
9969         (vbic_s64): Likewise.
9970         (vbic_u64): Likewise.
9971         (vbicq_s8): Likewise.
9972         (vbicq_s16): Likewise.
9973         (vbicq_s32): Likewise.
9974         (vbicq_s64): Likewise.
9975         (vbicq_u8): Likewise.
9976         (vbicq_u16): Likewise.
9977         (vbicq_u32): Likewise.
9978         (vbicq_u64): Likewise.
9979         (vorn_s8): Likewise.
9980         (vorn_s16): Likewise.
9981         (vorn_s32): Likewise.
9982         (vorn_u8): Likewise.
9983         (vorn_u16): Likewise.
9984         (vorn_u32): Likewise.
9985         (vorn_s64): Likewise.
9986         (vorn_u64): Likewise.
9987         (vornq_s8): Likewise.
9988         (vornq_s16): Likewise.
9989         (vornq_s32): Likewise.
9990         (vornq_s64): Likewise.
9991         (vornq_u8): Likewise.
9992         (vornq_u16): Likewise.
9993         (vornq_u32): Likewise.
9994         (vornq_u64): Likewise.
9995
9996 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9997
9998         * wide-int.cc (UTItype): Define.
9999         (UDWtype): Define for appropriate W_TYPE_SIZE.
10000
10001 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
10002
10003         PR tree-optimization/59100
10004         * tree-ssa-phiopt.c: Include tree-inline.h.
10005         (neutral_element_p, absorbing_element_p): New functions.
10006         (value_replacement): Handle conditional binary operations with a
10007         neutral or absorbing element.
10008
10009 2014-05-08  Richard Biener  <rguenther@suse.de>
10010
10011         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
10012         folding the expression.
10013         (valueize_expr): Remove.
10014         (visit_reference_op_load): Do not valueize the result of
10015         vn_get_expr_for.
10016         (simplify_binary_expression): Likewise.
10017         (simplify_unary_expression): Likewise.
10018
10019 2014-05-08  Richard Biener  <rguenther@suse.de>
10020
10021         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
10022         looking at TYPE_ARG_TYPES.
10023
10024 2014-05-08  Richard Biener  <rguenther@suse.de>
10025
10026         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
10027         pointer propagation special-case.
10028
10029 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
10030
10031         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
10032         core part of address expressions.
10033
10034 2014-05-08  Alan Modra  <amodra@gmail.com>
10035
10036         PR target/60737
10037         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
10038         loads and stores when -mno-strict-align at any alignment.
10039         (expand_block_clear): Similarly.  Also correct calculation of
10040         instruction count.
10041
10042 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10043
10044         PR middle-end/39246
10045         * tree-complex.c (expand_complex_move): Keep line info when expanding
10046         complex move.
10047         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
10048         of complex expression. Use new argument to display correct location
10049         for values coming from phi statement.
10050         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
10051         (warn_uninitialized_phi): Pass location of phi argument to
10052         warn_uninit.
10053         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
10054         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
10055
10056 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
10057
10058         * config/rs6000/predicates.md (indexed_address_mem): New.
10059         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
10060         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
10061         fpstore_ux, fpstore_u.
10062         (sign_extend, indexed, update): New.
10063         (cell_micro): Adjust.
10064         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
10065         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
10066         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
10067         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
10068         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
10069         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
10070         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
10071         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
10072         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
10073         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
10074         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
10075         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
10076         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
10077         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
10078         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
10079
10080         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
10081         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
10082         *vsx_extract_<mode>_store): Adjust.
10083         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
10084         is_cracked_insn, insn_must_be_first_in_group,
10085         insn_must_be_last_in_group): Adjust.
10086
10087         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
10088         Adjust.
10089         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
10090         ppc440-fpstore): Adjust.
10091         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
10092         ppc476-fpstore): Adjust.
10093         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
10094         ppc601-fpstore): Adjust.
10095         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
10096         Adjust.
10097         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
10098         Adjust.
10099         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
10100         ppc7450-fpstore): Adjust.
10101         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
10102         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
10103         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
10104         Adjust.
10105         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
10106         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
10107         cell-fpstore, cell-fpstore-update): Adjust.
10108         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
10109         ppce300c3_store, ppce300c3_fpstore): Adjust.
10110         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
10111         e500mc_fpstore): Adjust.
10112         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
10113         e500mc64_store, e500mc64_fpstore): Adjust.
10114         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
10115         e5500_fpstore): Adjust.
10116         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
10117         e6500_fpstore): Adjust.
10118         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
10119         Adjust.
10120         * config/rs6000/power4.md (power4-load, power4-load-ext,
10121         power4-load-ext-update, power4-load-ext-update-indexed,
10122         power4-load-update-indexed, power4-load-update, power4-fpload,
10123         power4-fpload-update, power4-store, power4-store-update,
10124         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
10125         Adjust.
10126         * config/rs6000/power5.md (power5-load, power5-load-ext,
10127         power5-load-ext-update, power5-load-ext-update-indexed,
10128         power5-load-update-indexed, power5-load-update, power5-fpload,
10129         power5-fpload-update, power5-store, power5-store-update,
10130         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
10131         Adjust.
10132         * config/rs6000/power6.md (power6-load, power6-load-ext,
10133         power6-load-update, power6-load-update-indexed,
10134         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
10135         power6-fpload-update, power6-store, power6-store-update,
10136         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
10137         Adjust.
10138         * config/rs6000/power7.md (power7-load, power7-load-ext,
10139         power7-load-update, power7-load-update-indexed,
10140         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
10141         power7-fpload-update, power7-store, power7-store-update,
10142         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
10143         Adjust.
10144         * config/rs6000/power8.md (power8-load, power8-load-update,
10145         power8-load-ext, power8-load-ext-update, power8-fpload,
10146         power8-fpload-update, power8-store, power8-store-update-indexed,
10147         power8-fpstore, power8-fpstore-update): Adjust.
10148         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
10149         Adjust.
10150         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
10151         titan_lsu_store, titan_lsu_fpstore): Adjust.
10152         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
10153
10154 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
10155
10156         PR target/60884
10157         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
10158         unrolled byte insns.  Emit address increments after move insns.
10159
10160 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
10161
10162         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
10163         const_gimple, rather than a gimple.
10164         (gimple_call_builtin_p): Likewise, for the three variants.
10165
10166         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
10167         (gimple_call_builtin_p): Likewise, for the three variants.
10168
10169 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
10170
10171         PR tree-optimization/61095
10172         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
10173
10174 2014-05-07  Richard Biener  <rguenther@suse.de>
10175
10176         PR tree-optimization/61034
10177         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
10178         (maybe_skip_until): Use translate to take into account
10179         lattices when trying to do disambiguations.
10180         (get_continuation_for_phi_1): Likewise.
10181         (get_continuation_for_phi): Adjust for added translate arguments.
10182         (walk_non_aliased_vuses): Likewise.
10183         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
10184         (walk_non_aliased_vuses): Likewise.
10185         (call_may_clobber_ref_p_1): Declare.
10186         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
10187         calls.  Stop early if we are only supposed to disambiguate.
10188         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
10189
10190 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
10191
10192         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
10193         Emit an error when the function has arguments.
10194
10195 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
10196
10197         * cfgloop.h (unswitch_loops): Remove.
10198         * doc/passes.texi: Remove references to loop-unswitch.c
10199         * timevar.def (TV_LOOP_UNSWITCH): Remove.
10200
10201 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
10202
10203         * tree-vect-data-refs.c (vect_grouped_load_supported): New
10204         check for loads group of length 3.
10205         (vect_permute_load_chain): New permutations for loads group of
10206         length 3.
10207         * tree-vect-stmts.c (vect_model_load_cost): Change cost
10208         of vec_perm_shuffle for the new permutations.
10209
10210 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
10211
10212         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
10213         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
10214         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
10215         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
10216         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
10217         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
10218         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
10219         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
10220
10221 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
10222
10223         * loop-unswitch.c: Delete.
10224
10225 2014-05-07  Richard Biener  <rguenther@suse.de>
10226
10227         * config.gcc: Always set need_64bit_hwint to yes.
10228
10229 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
10230
10231         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
10232         of using optimize_size.
10233
10234 2014-05-06  Mike Stump  <mikestump@comcast.net>
10235
10236         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
10237
10238 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
10239
10240         * config/i386/sse.md (*mov<mode>_internal)
10241         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
10242         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
10243         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
10244         (*<code><mode>3, *andnot<mode>3<mask_name>)
10245         (<mask_codefor><code><mode>3<mask_name>): Only consider
10246         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
10247
10248 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
10249
10250         Revert:
10251         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
10252
10253         * lra-constraints.c (valid_address_p): Move earlier in file.
10254         Add a constraint argument to the address_info version.
10255         (satisfies_memory_constraint_p): New function.
10256         (satisfies_address_constraint_p): Likewise.
10257         (process_alt_operands, curr_insn_transform): Use them.
10258         (process_address): Pass the constraint to valid_address_p when
10259         checking address operands.
10260
10261 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
10262
10263         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
10264         to their respective blocks.  Fix inadvertent use of "node".
10265
10266 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
10267
10268         * emit-rtl.c (init_derived_machine_modes): New functionm, split
10269         out from...
10270         (init_emit_once): ...here.
10271         * rtl.h (init_derived_machine_modes): Declare.
10272         * toplev.c (do_compile): Call it even if no_backend.
10273
10274 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
10275             Mike Stump  <mikestump@comcast.net>
10276             Richard Sandiford  <rdsandiford@googlemail.com>
10277             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10278
10279         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
10280         (rtx_equal_for_memref_p): Update comment.
10281         (adjust_offset_for_component_ref): Use wide-int interfaces.
10282         * builtins.c (get_object_alignment_2): Likewise.
10283         (c_readstr): Likewise.
10284         (target_char_cast): Add comment.
10285         (determine_block_size): Use wide-int interfaces.
10286         (expand_builtin_signbit): Likewise.
10287         (fold_builtin_int_roundingfn): Likewise.
10288         (fold_builtin_bitop): Likewise.
10289         (fold_builtin_bswap): Likewise.
10290         (fold_builtin_logarithm): Use signop.
10291         (fold_builtin_pow): Likewise.
10292         (fold_builtin_memory_op): Use wide-int interfaces.
10293         (fold_builtin_object_size): Likewise.
10294         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
10295         nb_iterations_estimate.
10296         (record_niter_bound): Use wide-int interfaces.
10297         (get_estimated_loop_iterations_int): Likewise.
10298         (get_estimated_loop_iterations): Likewise.
10299         (get_max_loop_iterations): Likewise.
10300         * cfgloop.h: Include wide-int.h.
10301         (struct nb_iter_bound): Change bound to widest_int.
10302         (struct loop): Change nb_iterations_upper_bound and
10303         nb_iterations_estimate to widest_int.
10304         (record_niter_bound): Switch to use widest_int.
10305         (get_estimated_loop_iterations): Likewise.
10306         (get_max_loop_iterations): Likewise.
10307         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
10308         update for wide-int.
10309         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
10310         * combine.c (try_combine): Likewise.
10311         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
10312         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
10313         interfaces.
10314         (aarch64_float_const_representable_p): Likewise.
10315         * config/arc/arc.c: Include wide-int.h.
10316         (arc_can_use_doloop_p): Use wide-int interfaces.
10317         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
10318         (vfp3_const_double_index): Likewise.
10319         * config/avr/avr.c (avr_out_round): Likewise.
10320         (avr_fold_builtin): Likewise.
10321         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
10322         (bfin_can_use_doloop_p): Likewise.
10323         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
10324         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
10325         * config/i386/i386.c: Include wide-int.h.
10326         (ix86_data_alignment): Use wide-int interfaces.
10327         (ix86_local_alignment): Likewise.
10328         (ix86_emit_swsqrtsf): Update real_from_integer.
10329         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
10330         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
10331         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
10332         (zero_constant): Likewise.
10333         (input_operand): Likewise.
10334         (splat_input_operand): Likewise.
10335         (non_logical_cint_operand): Change const_double to const_wide_int.
10336         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
10337         (easy_altivec_constant): Remove comment.
10338         (paired_expand_vector_init): Use CONSTANT_P.
10339         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
10340         (rs6000_emit_move): Update checks.
10341         (rs6000_aggregate_candidate): Use wide-int interfaces.
10342         (rs6000_expand_ternop_builtin): Likewise.
10343         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
10344         (rs6000_assemble_integer): Likewise.
10345         (rs6000_hash_constant): Likewise.
10346         (output_toc): Likewise.
10347         (rs6000_rtx_costs): Likewise.
10348         (rs6000_emit_swrsqrt); Update call to real_from_integer.
10349         * config/rs6000/rs6000-c.c: Include wide-int.h.
10350         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
10351         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
10352         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
10353         Handle CONST_WIDE_INT.
10354         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
10355         Use tree_fits_uhwi_p.
10356         * config/sparc/sparc.c: Include wide-int.h.
10357         (sparc_fold_builtin): Use wide-int interfaces.
10358         * config/vax/vax.c: Include wide-int.h.
10359         (vax_float_literal): Use real_from_integer.
10360         * coretypes.h (struct hwivec_def): New.
10361         (hwivec): New.
10362         (const_hwivec): New.
10363         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
10364         (equiv_constant): Handle CONST_WIDE_INT.
10365         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
10366         (cselib_hash_rtx): Handle CONST_WIDE_INT.
10367         * dbxout.c (stabstr_U): Use wide-int interfaces.
10368         (dbxout_type): Update to use cst_fits_shwi_p.
10369         * defaults.h (LOG2_BITS_PER_UNIT): Define.
10370         (TARGET_SUPPORTS_WIDE_INT): Add default.
10371         * dfp.c: Include wide-int.h.
10372         (decimal_real_to_integer2): Use wide-int interfaces and rename to
10373         decimal_real_to_integer.
10374         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
10375         decimal_real_to_integer.
10376         * doc/generic.texi (Constant expressions): Update for wide_int.
10377         * doc/rtl.texi (const_double): Likewise.
10378         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
10379         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
10380         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
10381         (REAL_VALUE_FROM_INT): Remove.
10382         (TARGET_SUPPORTS_WIDE_INT): New.
10383         * doc/tm.texi: Regenerate.
10384         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
10385         * double-int.h: Include wide-int.h.
10386         (struct wi::int_traits): New.
10387         * dwarf2out.c (get_full_len): New.
10388         (dw_val_equal_p): Add case dw_val_class_wide_int.
10389         (size_of_loc_descr): Likewise.
10390         (output_loc_operands): Likewise.
10391         (insert_double): Remove.
10392         (insert_wide_int): New.
10393         (add_AT_wide): New.
10394         (print_die): Add case dw_val_class_wide_int.
10395         (attr_checksum): Likewise.
10396         (attr_checksum_ordered): Likewise.
10397         (same_dw_val_p): Likewise.
10398         (size_of_die): Likewise.
10399         (value_format): Likewise.
10400         (output_die): Likewise.
10401         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
10402         Use wide-int.
10403         (clz_loc_descriptor): Use wide-int interfaces.
10404         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
10405         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
10406         (round_up_to_align): Use wide-int interfaces.
10407         (field_byte_offset): Likewise.
10408         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
10409         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
10410         CONST_DOUBLE handling.  Use wide-int interfaces.
10411         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
10412         (gen_enumeration_type_die): Use add_AT_wide.
10413         (hash_loc_operands): Add case dw_val_class_wide_int.
10414         (compare_loc_operands): Likewise.
10415         * dwarf2out.h: Include wide-int.h.
10416         (wide_int_ptr): New.
10417         (enum dw_val_class): Add dw_val_class_wide_int.
10418         (struct dw_val_struct): Add val_wide.
10419         * emit-rtl.c (const_wide_int_htab): New.
10420         (const_wide_int_htab_hash): New.
10421         (const_wide_int_htab_eq): New.
10422         (lookup_const_wide_int): New.
10423         (const_double_htab_hash): Use wide-int interfaces.
10424         (const_double_htab_eq): Likewise.
10425         (rtx_to_double_int): Conditionally compile for wide-int.
10426         (immed_double_int_const): Rename to immed_wide_int_const and
10427         update for wide-int.
10428         (immed_double_const): Conditionally compile for wide-int.
10429         (init_emit_once): Use wide-int interfaces.
10430         * explow.c (plus_constant): Likewise.
10431         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
10432         (lshift_value): Use wide-int interfaces.
10433         (expand_mult): Likewise.
10434         (choose_multiplier): Likewise.
10435         (expand_smod_pow2): Likewise.
10436         (make_tree): Likewise.
10437         * expr.c (convert_modes): Consolidate handling of constants.
10438         Use wide-int interfaces.
10439         (emit_group_load_1): Add note.
10440         (store_expr): Update comment.
10441         (get_inner_reference): Use wide-int interfaces.
10442         (expand_constructor): Update comment.
10443         (expand_expr_real_2): Use wide-int interfaces.
10444         (expand_expr_real_1): Likewise.
10445         (reduce_to_bit_field_precision): Likewise.
10446         (const_vector_from_tree): Likewise.
10447         * final.c: Include wide-int-print.h.
10448         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
10449         * fixed-value.c: Include wide-int.h.
10450         (fixed_from_string): Use wide-int interfaces.
10451         (fixed_to_decimal): Likewise.
10452         (fixed_convert_from_real): Likewise.
10453         (real_convert_from_fixed): Likewise.
10454         * fold-const.h (mem_ref_offset): Return an offset_int.
10455         (div_if_zero_remainder): Remove code parameter.
10456         * fold-const.c (div_if_zero_remainder): Remove code parameter.
10457         Use wide-int interfaces.
10458         (may_negate_without_overflow_p): Use wide-int interfaces.
10459         (negate_expr_p): Likewise.
10460         (fold_negate_expr): Likewise.
10461         (int_const_binop_1): Likewise.
10462         (const_binop): Likewise.
10463         (fold_convert_const_int_from_int): Likewise.
10464         (fold_convert_const_int_from_real): Likewise.
10465         (fold_convert_const_int_from_fixed): Likewise.
10466         (fold_convert_const_fixed_from_int): Likewise.
10467         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
10468         (sign_bit_p): Use wide-int interfaces.
10469         (make_range_step): Likewise.
10470         (build_range_check): Likewise.  Pass an integer of the correct type
10471         instead of using integer_one_node.
10472         (range_predecessor): Pass an integer of the correct type instead
10473         of using integer_one_node.
10474         (range_successor): Likewise.
10475         (merge_ranges): Likewise.
10476         (unextend): Use wide-int interfaces.
10477         (extract_muldiv_1): Likewise.
10478         (fold_div_compare): Likewise.
10479         (fold_single_bit_test): Likewise.
10480         (fold_sign_changed_comparison): Likewise.
10481         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
10482         (fold_plusminus_mult_expr): Use wide-int interfaces.
10483         (native_encode_int): Likewise.
10484         (native_interpret_int): Likewise.
10485         (fold_unary_loc): Likewise.
10486         (pointer_may_wrap_p): Likewise.
10487         (size_low_cst): Likewise.
10488         (mask_with_tz): Likewise.
10489         (fold_binary_loc): Likewise.
10490         (fold_ternary_loc): Likewise.
10491         (multiple_of_p): Likewise.
10492         (tree_call_nonnegative_warnv_p): Update calls to
10493         tree_int_cst_min_precision and real_from_integer.
10494         (fold_negate_const): Use wide-int interfaces.
10495         (fold_abs_const): Likewise.
10496         (fold_relational_const): Use tree_int_cst_lt.
10497         (round_up_loc): Use wide-int interfaces.
10498         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
10499         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
10500         * gengtype.c: Remove include of double-int.h.
10501         (do_typedef): Use wide-int interfaces.
10502         (open_base_files): Add wide-int.h.
10503         (main): Add offset_int and widest_int typedefs.
10504         * gengtype-lex.l: Handle "^".
10505         (CXX_KEYWORD): Add "static".
10506         * gengtype-parse.c (require3): New.
10507         (require_template_declaration): Handle constant template arguments
10508         and nested templates.
10509         * gengtype-state.c: Don't include "double-int.h".
10510         * genpreds.c (write_one_predicate_function): Update comment.
10511         (write_tm_constrs_h): Add check for hval and lval use in
10512         CONST_WIDE_INT.
10513         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
10514         (add_to_sequence): Likewise.
10515         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
10516         and const_double_operand.
10517         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
10518         interfaces.
10519         * gimple-fold.c (get_base_constructor): Likewise.
10520         (fold_array_ctor_reference): Likewise.
10521         (fold_nonarray_ctor_reference): Likewise.
10522         (fold_const_aggregate_ref_1): Likewise.
10523         (gimple_val_nonnegative_real_p): Likewise.
10524         (gimple_fold_indirect_ref): Likewise.
10525         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
10526         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
10527         (struct slsr_cand_d): Change index to be widest_int.
10528         (struct incr_info_d): Change incr to be widest_int.
10529         (alloc_cand_and_find_basis): Use wide-int interfaces.
10530         (slsr_process_phi): Likewise.
10531         (backtrace_base_for_ref): Likewise.  Return a widest_int.
10532         (restructure_reference): Take a widest_int instead of a double_int.
10533         (slsr_process_ref): Use wide-int interfaces.
10534         (create_mul_ssa_cand): Likewise.
10535         (create_mul_imm_cand): Likewise.
10536         (create_add_ssa_cand): Likewise.
10537         (create_add_imm_cand): Take a widest_int instead of a double_int.
10538         (slsr_process_add): Use wide-int interfaces.
10539         (slsr_process_cast): Likewise.
10540         (slsr_process_copy): Likewise.
10541         (dump_candidate): Likewise.
10542         (dump_incr_vec): Likewise.
10543         (replace_ref): Likewise.
10544         (cand_increment): Likewise.  Return a widest_int.
10545         (cand_abs_increment): Likewise.
10546         (replace_mult_candidate): Take a widest_int instead of a double_int.
10547         (replace_unconditional_candidate): Use wide-int interfaces.
10548         (incr_vec_index): Take a widest_int instead of a double_int.
10549         (create_add_on_incoming_edge): Likewise.
10550         (create_phi_basis): Use wide-int interfaces.
10551         (replace_conditional_candidate): Likewise.
10552         (record_increment): Take a widest_int instead of a double_int.
10553         (record_phi_increments): Use wide-int interfaces.
10554         (phi_incr_cost): Take a widest_int instead of a double_int.
10555         (lowest_cost_path): Likewise.
10556         (total_savings): Likewise.
10557         (analyze_increments): Use wide-int interfaces.
10558         (ncd_with_phi): Take a widest_int instead of a double_int.
10559         (ncd_of_cand_and_phis): Likewise.
10560         (nearest_common_dominator_for_cands): Likewise.
10561         (insert_initializers): Use wide-int interfaces.
10562         (all_phi_incrs_profitable): Likewise.
10563         (replace_one_candidate): Likewise.
10564         (replace_profitable_candidates): Likewise.
10565         * godump.c: Include wide-int-print.h.
10566         (go_output_typedef): Use wide-int interfaces.
10567         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
10568         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
10569         (build_loop_iteration_domains): Likewise.
10570         * hooks.h: Include wide-int.h rather than double-int.h.
10571         (hook_bool_dint_dint_uint_bool_true): Delete.
10572         (hook_bool_wint_wint_uint_bool_true): Declare.
10573         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
10574         (hook_bool_wint_wint_uint_bool_true): New.
10575         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
10576         interfaces.
10577         (ubsan_expand_si_overflow_mul_check): Likewise.
10578         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
10579         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
10580         (get_ancestor_addr_info): Likewise.
10581         (ipa_modify_call_arguments): Likewise.
10582         * loop-doloop.c (doloop_modify): Likewise.
10583         (doloop_optimize): Likewise.
10584         * loop-iv.c (iv_number_of_iterations): Likewise.
10585         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
10586         (unroll_loop_constant_iterations): Likewise.
10587         (decide_unroll_runtime_iterations): Likewise.
10588         (unroll_loop_runtime_iterations): Likewise.
10589         (decide_peel_simple): Likewise.
10590         (decide_unroll_stupid): Likewise.
10591         * lto-streamer-in.c (streamer_read_wi): Add.
10592         (input_cfg): Use wide-int interfaces.
10593         (lto_input_tree_1): Likewise.
10594         * lto-streamer-out.c (streamer_write_wi): Add.
10595         (hash_tree): Use wide-int interfaces.
10596         (output_cfg): Likewise.
10597         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
10598         (GTFILES): Add wide-int.h and signop.h.
10599         (TAGS): Look for .cc files too.
10600         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
10601         * optabs.c (expand_subword_shift): Likewise.
10602         (expand_doubleword_shift): Likewise.
10603         (expand_absneg_bit): Likewise.
10604         (expand_copysign_absneg): Likewise.
10605         (expand_copysign_bit): Likewise.
10606         * postreload.c (reload_cse_simplify_set): Likewise.
10607         * predict.c (predict_iv_comparison): Likewise.
10608         * pretty-print.h: Include wide-int-print.h.
10609         (pp_wide_int) New.
10610         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
10611         * print-tree.c: Include wide-int-print.h.
10612         (print_node_brief): Use wide-int interfaces.
10613         (print_node): Likewise.
10614         * read-rtl.c (validate_const_wide_int): New.
10615         (read_rtx_code): Add CONST_WIDE_INT case.
10616         * real.c: Include wide-int.h.
10617         (real_to_integer2): Delete.
10618         (real_to_integer): New function, returning a wide_int.
10619         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
10620         (ten_to_ptwo): Update call to real_from_integer.
10621         (real_digit): Likewise.
10622         * real.h: Include signop.h, wide-int.h and insn-modes.h.
10623         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
10624         (REAL_VALUE_TO_INT): Delete.
10625         (real_to_integer): Declare a wide-int form.
10626         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
10627         * recog.c (const_int_operand): Improve comment.
10628         (const_scalar_int_operand): New.
10629         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
10630         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
10631         (split_double): Likewise.
10632         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
10633         (rtx_size): Likewise.
10634         (rtx_alloc_stat_v): New.
10635         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
10636         (cwi_output_hex): New.
10637         (iterative_hash_rtx): Handle CONST_WIDE_INT.
10638         (cwi_check_failed_bounds): New.
10639         * rtl.def (CONST_WIDE_INT): New.
10640         * rtl.h: Include <utility> and wide-int.h.
10641         (struct hwivec_def): New.
10642         (CWI_GET_NUM_ELEM): New.
10643         (CWI_PUT_NUM_ELEM): New.
10644         (struct rtx_def): Add num_elem and hwiv.
10645         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
10646         (CASE_CONST_UNIQUE): Likewise.
10647         (CASE_CONST_ANY): Likewise.
10648         (CONST_SCALAR_INT_P): Likewise.
10649         (CONST_WIDE_INT_P): New.
10650         (CWI_ELT): New.
10651         (HWIVEC_CHECK): New.
10652         (cwi_check_failed_bounds): New.
10653         (CWI_ELT): New.
10654         (HWIVEC_CHECK): New.
10655         (CONST_WIDE_INT_VEC) New.
10656         (CONST_WIDE_INT_NUNITS) New.
10657         (CONST_WIDE_INT_ELT) New.
10658         (rtx_mode_t): New type.
10659         (wi::int_traits <rtx_mode_t>): New.
10660         (wi::shwi): New.
10661         (wi::min_value): New.
10662         (wi::max_value): New.
10663         (rtx_alloc_v) New.
10664         (const_wide_int_alloc): New.
10665         (immed_wide_int_const): New.
10666         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
10667         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
10668         * signop.h: New file.
10669         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
10670         (simplify_const_unary_operation): Use wide-int interfaces.
10671         (simplify_binary_operation_1): Likewise.
10672         (simplify_const_binary_operation): Likewise.
10673         (simplify_const_relational_operation): Likewise.
10674         (simplify_immed_subreg): Likewise.
10675         * stmt.c (expand_case): Likewise.
10676         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
10677         signop rather than a bool.
10678         * stor-layout.c (layout_type): Use wide-int interfaces.
10679         (initialize_sizetypes): Update calls to
10680         set_min_and_max_values_for_integral_type.
10681         (set_min_and_max_values_for_integral_type): Take a signop rather
10682         than a bool.  Use wide-int interfaces.
10683         (fixup_signed_type): Update accordingly.  Remove
10684         HOST_BITS_PER_DOUBLE_INT limit.
10685         (fixup_unsigned_type): Likewise.
10686         * system.h (STATIC_CONSTANT_P): New.
10687         (STATIC_ASSERT): New.
10688         * target.def (can_use_doloop_p): Take widest_ints rather than
10689         double_ints.
10690         * target.h: Include wide-int.h rather than double-int.h.
10691         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
10692         than double_ints.
10693         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
10694         rather than INT_CST_LT_UNSIGNED.
10695         (can_use_doloop_if_innermost): Take widest_ints rather than
10696         double_ints.
10697         * tree-affine.c: Include wide-int-print.h.
10698         (double_int_ext_for_comb): Delete.
10699         (wide_int_ext_for_comb): New.
10700         (aff_combination_zero): Use wide-int interfaces.
10701         (aff_combination_const): Take a widest_int instead of a double_int.
10702         (aff_combination_elt): Use wide-int interfaces.
10703         (aff_combination_scale): Take a widest_int instead of a double_int.
10704         (aff_combination_add_elt): Likewise.
10705         (aff_combination_add_cst): Likewise.
10706         (aff_combination_add): Use wide-int interfaces.
10707         (aff_combination_convert): Likewise.
10708         (tree_to_aff_combination): Likewise.
10709         (add_elt_to_tree): Take a widest_int instead of a double_int.
10710         (aff_combination_to_tree): Use wide-int interfaces.
10711         (aff_combination_remove_elt): Likewise.
10712         (aff_combination_add_product): Take a widest_int instead of
10713         a double_int.
10714         (aff_combination_mult): Use wide-int interfaces.
10715         (aff_combination_expand): Likewise.
10716         (double_int_constant_multiple_p): Delete.
10717         (wide_int_constant_multiple_p): New.
10718         (aff_combination_constant_multiple_p): Take a widest_int pointer
10719         instead of a double_int pointer.
10720         (print_aff): Use wide-int interfaces.
10721         (get_inner_reference_aff): Take a widest_int pointer
10722         instead of a double_int pointer.
10723         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
10724         * tree-affine.h: Include wide-int.h.
10725         (struct aff_comb_elt): Change type of coef to widest_int.
10726         (struct affine_tree_combination): Change type of offset to widest_int.
10727         (double_int_ext_for_comb): Delete.
10728         (wide_int_ext_for_comb): New.
10729         (aff_combination_const): Use widest_int instead of double_int.
10730         (aff_combination_scale): Likewise.
10731         (aff_combination_add_elt): Likewise.
10732         (aff_combination_constant_multiple_p): Likewise.
10733         (get_inner_reference_aff): Likewise.
10734         (aff_comb_cannot_overlap_p): Likewise.
10735         (aff_combination_zero_p): Use wide-int interfaces.
10736         * tree.c: Include tree.h.
10737         (init_ttree): Use make_int_cst.
10738         (tree_code_size): Removed code for INTEGER_CST case.
10739         (tree_size): Add INTEGER_CST case.
10740         (make_node_stat): Update comment.
10741         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
10742         (build_int_cst_type): Use wide-int interfaces.
10743         (double_int_to_tree): Likewise.
10744         (double_int_fits_to_tree_p): Delete.
10745         (force_fit_type_double): Delete.
10746         (force_fit_type): New.
10747         (int_cst_hash_hash): Use wide-int interfaces.
10748         (int_cst_hash_eq): Likewise.
10749         (build_int_cst_wide): Delete.
10750         (wide_int_to_tree): New.
10751         (cache_integer_cst): Use wide-int interfaces.
10752         (build_low_bits_mask): Likewise.
10753         (cst_and_fits_in_hwi): Likewise.
10754         (real_value_from_int_cst): Likewise.
10755         (make_int_cst_stat): New.
10756         (integer_zerop): Use wide_int interfaces.
10757         (integer_onep): Likewise.
10758         (integer_all_onesp): Likewise.
10759         (integer_pow2p): Likewise.
10760         (integer_nonzerop): Likewise.
10761         (tree_log2): Likewise.
10762         (tree_floor_log2): Likewise.
10763         (tree_ctz): Likewise.
10764         (int_size_in_bytes): Likewise.
10765         (mem_ref_offset): Return an offset_int rather than a double_int.
10766         (build_type_attribute_qual_variant): Use wide_int interfaces.
10767         (type_hash_eq): Likewise
10768         (tree_int_cst_equal): Likewise.
10769         (tree_int_cst_lt): Delete.
10770         (tree_int_cst_compare): Likewise.
10771         (tree_fits_shwi_p): Use wide_int interfaces.
10772         (tree_fits_uhwi_p): Likewise.
10773         (tree_int_cst_sign_bit): Likewise.
10774         (tree_int_cst_sgn): Likewise.
10775         (tree_int_cst_min_precision): Take a signop rather than a bool.
10776         (simple_cst_equal): Use wide_int interfaces.
10777         (compare_tree_int): Likewise.
10778         (iterative_hash_expr): Likewise.
10779         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
10780         INT_CST_LT.
10781         (get_type_static_bounds): Use wide_int interfaces.
10782         (tree_int_cst_elt_check_failed): New.
10783         (build_common_tree_nodes): Reordered to set prec before filling in
10784         value.
10785         (int_cst_value): Check cst_and_fits_in_hwi.
10786         (widest_int_cst_value): Use wide_int interfaces.
10787         (upper_bound_in_type): Likewise.
10788         (lower_bound_in_type): Likewise.
10789         (num_ending_zeros): Likewise.
10790         (drop_tree_overflow): Likewise.
10791         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
10792         (gen_conditions_for_pow_cst_base): Likewise.
10793         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
10794         (group_case_labels_stmt): Use wide-int interfaces.
10795         (verify_gimple_assign_binary): Likewise.
10796         (print_loop): Likewise.
10797         * tree-chrec.c (tree_fold_binomial): Likewise.
10798         * tree-core.h (struct tree_base): Add int_length.
10799         (struct tree_int_cst): Change rep of value.
10800         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
10801         (dr_may_alias_p): Likewise.
10802         (max_stmt_executions_tree): Likewise.
10803         * tree.def (INTEGER_CST): Update comment.
10804         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
10805         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
10806         * tree-dump.c: Include wide-int.h and wide-int-print.h.
10807         (dequeue_and_dump): Use wide-int interfaces.
10808         * tree.h: Include wide-int.h.
10809         (NULL_TREE): Moved to earlier loc in file.
10810         (TREE_INT_CST_ELT_CHECK): New.
10811         (tree_int_cst_elt_check_failed): New.
10812         (TYPE_SIGN): New.
10813         (TREE_INT_CST): Delete.
10814         (TREE_INT_CST_LOW): Use wide-int interfaces.
10815         (TREE_INT_CST_HIGH): Delete.
10816         (TREE_INT_CST_NUNITS): New.
10817         (TREE_INT_CST_EXT_NUNITS): Likewise.
10818         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
10819         (TREE_INT_CST_ELT): Likewise.
10820         (INT_CST_LT): Delete.
10821         (tree_int_cst_elt_check): New (two forms).
10822         (type_code_size): Update comment.
10823         (make_int_cst_stat, make_int_cst): New.
10824         (tree_to_double_int): Delete.
10825         (double_int_fits_to_tree_p): Delete.
10826         (force_fit_type_double): Delete.
10827         (build_int_cstu): Replace with out-of-line function.
10828         (build_int_cst_wide): Delete.
10829         (tree_int_cst_lt): Define inline.
10830         (tree_int_cst_le): New.
10831         (tree_int_cst_compare): Define inline.
10832         (tree_int_cst_min_precision): Take a signop rather than a bool.
10833         (wi::int_traits <const_tree>): New.
10834         (wi::int_traits <tree>): New.
10835         (wi::extended_tree): New.
10836         (wi::int_traits <wi::extended_tree>): New.
10837         (wi::to_widest): New.
10838         (wi::to_offset): New.
10839         (wi::fits_to_tree_p): New.
10840         (wi::min_value): New.
10841         (wi::max_value): New.
10842         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
10843         (copy_tree_body_r): Likewise.
10844         * tree-object-size.c (compute_object_offset): Likewise.
10845         (addr_object_size): Likewise.
10846         * tree-predcom.c: Include wide-int-print.h.
10847         (struct dref_d): Change type of offset to widest_int.
10848         (dump_dref): Call wide-int printer.
10849         (aff_combination_dr_offset): Use wide-int interfaces.
10850         (determine_offset): Take a widest_int pointer rather than a
10851         double_int pointer.
10852         (split_data_refs_to_components): Use wide-int interfaces.
10853         (suitable_component_p): Likewise.
10854         (order_drefs): Likewise.
10855         (add_ref_to_chain): Likewise.
10856         (valid_initializer_p): Likewise.
10857         (determine_roots_comp): Likewise.
10858         * tree-pretty-print.c: Include wide-int-print.h.
10859         (dump_generic_node): Use wide-int interfaces.
10860         * tree-sra.c (sra_ipa_modify_expr): Likewise.
10861         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
10862         (move_fixed_address_to_symbol): Likewise.
10863         (move_hint_to_base): Likewise.
10864         (move_pointer_to_base): Likewise.
10865         (move_variant_to_index): Likewise.
10866         (most_expensive_mult_to_index): Likewise.
10867         (addr_to_parts): Likewise.
10868         (copy_ref_info): Likewise.
10869         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
10870         (indirect_refs_may_alias_p): Likewise.
10871         (stmt_kills_ref_p_1): Likewise.
10872         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
10873         * tree-ssa-ccp.c: Update comment at top of file.  Include
10874         wide-int-print.h.
10875         (struct prop_value_d): Change type of mask to widest_int.
10876         (extend_mask): New function.
10877         (dump_lattice_value): Use wide-int interfaces.
10878         (get_default_value): Likewise.
10879         (set_constant_value): Likewise.
10880         (set_value_varying): Likewise.
10881         (valid_lattice_transition): Likewise.
10882         (set_lattice_value): Likewise.
10883         (value_to_double_int): Delete.
10884         (value_to_wide_int): New.
10885         (get_value_from_alignment): Use wide-int interfaces.
10886         (get_value_for_expr): Likewise.
10887         (do_dbg_cnt): Likewise.
10888         (ccp_finalize): Likewise.
10889         (ccp_lattice_meet): Likewise.
10890         (bit_value_unop_1): Use widest_ints rather than double_ints.
10891         (bit_value_binop_1): Likewise.
10892         (bit_value_unop): Use wide-int interfaces.
10893         (bit_value_binop): Likewise.
10894         (bit_value_assume_aligned): Likewise.
10895         (evaluate_stmt): Likewise.
10896         (ccp_fold_stmt): Likewise.
10897         (visit_cond_stmt): Likewise.
10898         (ccp_visit_stmt): Likewise.
10899         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
10900         (constant_pointer_difference): Likewise.
10901         (associate_pointerplus): Likewise.
10902         (combine_conversions): Likewise.
10903         * tree-ssa-loop.h: Include wide-int.h.
10904         (struct tree_niter_desc): Change type of max to widest_int.
10905         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
10906         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
10907         (remove_redundant_iv_tests): Likewise.
10908         (canonicalize_loop_induction_variables): Likewise.
10909         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
10910         (constant_multiple_of): Take a widest_int pointer instead of
10911         a double_int pointer.
10912         (get_computation_aff): Use wide-int interfaces.
10913         (ptr_difference_cost): Likewise.
10914         (difference_cost): Likewise.
10915         (get_loop_invariant_expr_id): Likewise.
10916         (get_computation_cost_at): Likewise.
10917         (iv_elimination_compare_lt): Likewise.
10918         (may_eliminate_iv): Likewise.
10919         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
10920         instead of double_int.
10921         (max_loop_iterations): Likewise.
10922         (max_stmt_executions): Likewise.
10923         (estimated_stmt_executions): Likewise.
10924         * tree-ssa-loop-niter.c: Include wide-int-print.h.
10925         (split_to_var_and_offset): Use wide-int interfaces.
10926         (determine_value_range): Likewise.
10927         (bound_difference_of_offsetted_base): Likewise.
10928         (bounds_add): Take a widest_int instead of a double_int.
10929         (number_of_iterations_ne_max): Use wide-int interfaces.
10930         (number_of_iterations_ne): Likewise.
10931         (number_of_iterations_lt_to_ne): Likewise.
10932         (assert_loop_rolls_lt): Likewise.
10933         (number_of_iterations_lt): Likewise.
10934         (number_of_iterations_le): Likewise.
10935         (number_of_iterations_cond): Likewise.
10936         (number_of_iterations_exit): Likewise.
10937         (finite_loop_p): Likewise.
10938         (derive_constant_upper_bound_assign): Likewise.
10939         (derive_constant_upper_bound): Return a widest_int.
10940         (derive_constant_upper_bound_ops): Likewise.
10941         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
10942         (record_estimate): Take a widest_int rather than a double_int.
10943         (record_nonwrapping_iv): Use wide-int interfaces.
10944         (double_int_cmp): Delete.
10945         (wide_int_cmp): New.
10946         (bound_index): Take a widest_int rather than a double_int.
10947         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
10948         (maybe_lower_iteration_bound): Likewise.
10949         (estimate_numbers_of_iterations_loop): Likewise.
10950         (estimated_loop_iterations): Take a widest_int pointer than than
10951         a double_int pointer.
10952         (estimated_loop_iterations_int): Use wide-int interfaces.
10953         (max_loop_iterations): Take a widest_int pointer than than
10954         a double_int pointer.
10955         (max_loop_iterations_int): Use wide-int interfaces.
10956         (max_stmt_executions): Take a widest_int pointer than than
10957         a double_int pointer.
10958         (estimated_stmt_executions): Likewise.
10959         (n_of_executions_at_most): Use wide-int interfaces.
10960         (scev_probably_wraps_p): Likewise.
10961         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
10962         to real_to_integer.
10963         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
10964         interfaces.
10965         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
10966         double_ints.  Adjust for trailing_wide_ints <3> representation.
10967         (set_nonzero_bits): Likewise.
10968         (get_range_info): Return wide_ints rather than double_ints.
10969         Adjust for trailing_wide_ints <3> representation.
10970         (get_nonzero_bits): Likewise.
10971         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
10972         representation.
10973         * tree-ssanames.h (struct range_info_def): Replace min, max and
10974         nonzero_bits with a trailing_wide_ints <3>.
10975         (set_range_info): Use wide_int_refs rather than double_ints.
10976         (set_nonzero_bits): Likewise.
10977         (get_range_info): Return wide_ints rather than double_ints.
10978         (get_nonzero_bits): Likewise.
10979         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
10980         * tree-ssa-pre.c (phi_translate_1): Likewise.
10981         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
10982         (acceptable_pow_call): Likewise.
10983         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
10984         interfaces.
10985         (vn_reference_fold_indirect): Likewise.
10986         (vn_reference_maybe_forwprop_address): Likewise.
10987         (valueize_refs_1): Likewise.
10988         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
10989         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
10990         tree_int_cst_lt and tree_int_cst_le.
10991         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
10992         interfaces.
10993         (streamer_alloc_tree): Likewise.
10994         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
10995         (streamer_write_tree_header): Likewise.
10996         (streamer_write_integer_cst): Likewise.
10997         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
10998         (build_constructors): Likewise.
10999         (array_value_type): Likewise.
11000         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
11001         (vect_check_gather): Likewise.
11002         * tree-vect-generic.c (build_replicated_const): Likewise.
11003         (expand_vector_divmod): Likewise.
11004         * tree-vect-loop.c (vect_transform_loop): Likewise.
11005         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
11006         (vect_do_peeling_for_alignment): Likewise.
11007         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
11008         * tree-vrp.c: Include wide-int.h.
11009         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
11010         (extract_range_from_assert): Use wide-int interfaces.
11011         (vrp_int_const_binop): Likewise.
11012         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
11013         double_int pointers.
11014         (ranges_from_anti_range): Use wide-int interfaces.
11015         (quad_int_cmp): Delete.
11016         (quad_int_pair_sort): Likewise.
11017         (extract_range_from_binary_expr_1): Use wide-int interfaces.
11018         (extract_range_from_unary_expr_1): Likewise.
11019         (adjust_range_with_scev): Likewise.
11020         (masked_increment): Take and return wide_ints rather than double_ints.
11021         (register_edge_assert_for_2): Use wide-int interfaces.
11022         (check_array_ref): Likewise.
11023         (search_for_addr_array): Likewise.
11024         (maybe_set_nonzero_bits): Likewise.
11025         (union_ranges): Pass an integer of the correct type instead of
11026         using integer_one_node.
11027         (intersect_ranges): Likewise.
11028         (simplify_truth_ops_using_ranges): Likewise.
11029         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
11030         (range_fits_type_p): Likewise.
11031         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
11032         a bool.
11033         (simplify_conversion_using_ranges): Use wide-int interfaces.
11034         (simplify_float_conversion_using_ranges): Likewise.
11035         (vrp_finalize): Likewise.
11036         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
11037         (gimple_stringops_transform): Likewise.
11038         * varasm.c (decode_addr_const): Likewise.
11039         (const_hash_1): Likewise.
11040         (const_rtx_hash_1): Likewise
11041         (output_constant): Likewise.
11042         (array_size_for_constructor): Likewise.
11043         (output_constructor_regular_field): Likewise.
11044         (output_constructor_bitfield): Likewise.
11045         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
11046         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
11047         GENERATOR_FILEs.
11048         * gencheck.c: Define BITS_PER_UNIT.
11049         * wide-int.cc: New.
11050         * wide-int.h: New.
11051         * wide-int-print.cc: New.
11052         * wide-int-print.h: New.
11053
11054 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11055
11056         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
11057
11058 2014-05-06  Richard Biener  <rguenther@suse.de>
11059
11060         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
11061         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
11062         (TODO_verify_all): Adjust.
11063         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
11064         TODO_verify_stmts and TODO_verify_rtl_sharing.
11065         * bb-reorder.c: Likewise.
11066         * cfgexpand.c: Likewise.
11067         * cprop.c: Likewise.
11068         * cse.c: Likewise.
11069         * function.c: Likewise.
11070         * fwprop.c: Likewise.
11071         * gcse.c: Likewise.
11072         * gimple-ssa-isolate-paths.c: Likewise.
11073         * gimple-ssa-strength-reduction.c: Likewise.
11074         * ipa-split.c: Likewise.
11075         * loop-init.c: Likewise.
11076         * loop-unroll.c: Likewise.
11077         * lower-subreg.c: Likewise.
11078         * modulo-sched.c: Likewise.
11079         * postreload-gcse.c: Likewise.
11080         * predict.c: Likewise.
11081         * recog.c: Likewise.
11082         * sched-rgn.c: Likewise.
11083         * store-motion.c: Likewise.
11084         * tracer.c: Likewise.
11085         * trans-mem.c: Likewise.
11086         * tree-call-cdce.c: Likewise.
11087         * tree-cfg.c: Likewise.
11088         * tree-cfgcleanup.c: Likewise.
11089         * tree-complex.c: Likewise.
11090         * tree-eh.c: Likewise.
11091         * tree-emutls.c: Likewise.
11092         * tree-if-conv.c: Likewise.
11093         * tree-into-ssa.c: Likewise.
11094         * tree-loop-distribution.c: Likewise.
11095         * tree-object-size.c: Likewise.
11096         * tree-parloops.c: Likewise.
11097         * tree-pass.h: Likewise.
11098         * tree-sra.c: Likewise.
11099         * tree-ssa-ccp.c: Likewise.
11100         * tree-ssa-copy.c: Likewise.
11101         * tree-ssa-copyrename.c: Likewise.
11102         * tree-ssa-dce.c: Likewise.
11103         * tree-ssa-dom.c: Likewise.
11104         * tree-ssa-dse.c: Likewise.
11105         * tree-ssa-forwprop.c: Likewise.
11106         * tree-ssa-ifcombine.c: Likewise.
11107         * tree-ssa-loop-ch.c: Likewise.
11108         * tree-ssa-loop-ivcanon.c: Likewise.
11109         * tree-ssa-loop.c: Likewise.
11110         * tree-ssa-math-opts.c: Likewise.
11111         * tree-ssa-phiopt.c: Likewise.
11112         * tree-ssa-phiprop.c: Likewise.
11113         * tree-ssa-pre.c: Likewise.
11114         * tree-ssa-reassoc.c: Likewise.
11115         * tree-ssa-sink.c: Likewise.
11116         * tree-ssa-strlen.c: Likewise.
11117         * tree-ssa-tail-merge.c: Likewise.
11118         * tree-ssa-uncprop.c: Likewise.
11119         * tree-switch-conversion.c: Likewise.
11120         * tree-tailcall.c: Likewise.
11121         * tree-vect-generic.c: Likewise.
11122         * tree-vectorizer.c: Likewise.
11123         * tree-vrp.c: Likewise.
11124         * tsan.c: Likewise.
11125         * var-tracking.c: Likewise.
11126         * bt-load.c: Likewise.
11127         * cfgcleanup.c: Likewise.
11128         * combine-stack-adj.c: Likewise.
11129         * combine.c: Likewise.
11130         * compare-elim.c: Likewise.
11131         * config/epiphany/resolve-sw-modes.c: Likewise.
11132         * config/i386/i386.c: Likewise.
11133         * config/mips/mips.c: Likewise.
11134         * config/s390/s390.c: Likewise.
11135         * config/sh/sh_treg_combine.cc: Likewise.
11136         * config/sparc/sparc.c: Likewise.
11137         * dce.c: Likewise.
11138         * dse.c: Likewise.
11139         * final.c: Likewise.
11140         * ifcvt.c: Likewise.
11141         * mode-switching.c: Likewise.
11142         * passes.c: Likewise.
11143         * postreload.c: Likewise.
11144         * ree.c: Likewise.
11145         * reg-stack.c: Likewise.
11146         * regcprop.c: Likewise.
11147         * regrename.c: Likewise.
11148         * web.c: Likewise.
11149
11150 2014-05-06  Richard Biener  <rguenther@suse.de>
11151
11152         PR middle-end/61070
11153         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
11154         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
11155
11156 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
11157
11158         PR ipa/60965
11159         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
11160
11161 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
11162             Tom de Vries  <tom@codesourcery.com>
11163
11164         * target.def (call_fusage_contains_non_callee_clobbers): New
11165         DEFHOOKPOD.
11166         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
11167         Hooks to @menu.
11168         (@node Miscellaneous Register Hooks): New node.
11169         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
11170         * doc/tm.texi: Regenerate.
11171
11172 2014-05-05  Marek Polacek  <polacek@redhat.com>
11173
11174         PR driver/61065
11175         * opts.c (common_handle_option): Call error_at instead of warning_at.
11176
11177 2014-05-05  Richard Biener  <rguenther@suse.de>
11178
11179         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
11180         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
11181         under the TODO_verify_il umbrella.
11182
11183 2014-05-05  Richard Biener  <rguenther@suse.de>
11184
11185         * passes.c (execute_function_todo): Move TODO_verify_flow under
11186         the TODO_verify_ul umbrella.
11187
11188 2014-05-05  Richard Biener  <rguenther@suse.de>
11189
11190         PR middle-end/61010
11191         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
11192         X & CST away from a CST that is the mask of a mode.
11193
11194 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11195
11196         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
11197         int argument to enum machine_mode.
11198         (picochip_class_max_nregs): Ditto.
11199         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
11200         (picochip_class_max_nregs): Ditto.
11201
11202 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11203
11204         * target.def: Add new target hook.
11205         * doc/tm.texi: Regenerate.
11206         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
11207         * targhooks.c (default_keep_leaf_when_profiled): New function.
11208
11209         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
11210         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
11211
11212 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
11213
11214         PR tree-optimization/60363
11215         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
11216         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
11217         (update_destination_phis): New parameter.
11218         (create_edge_and_update_destination_phis): Ditto.
11219         (ssa_fix_duplicate_block_edges): Pass new arguments.
11220         (thread_single_edge): Ditto.
11221
11222 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
11223
11224         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
11225         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
11226         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
11227         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
11228         Use RS6000_BTM_HARD_FLOAT.
11229         (BU_MISC_2): Likewise.
11230         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11231         RS6000_BTM_HARD_FLOAT.
11232         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
11233         is explicitly used.
11234         (rs6000_invalid_builtin): Add hard floating builtin support.
11235         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
11236         hard float builtins.
11237         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
11238
11239 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
11240
11241         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
11242         Add missing function* argument.
11243
11244 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
11245
11246         * lra-constraints.c (valid_address_p): Move earlier in file.
11247         Add a constraint argument to the address_info version.
11248         (satisfies_memory_constraint_p): New function.
11249         (satisfies_address_constraint_p): Likewise.
11250         (process_alt_operands, curr_insn_transform): Use them.
11251         (process_address): Pass the constraint to valid_address_p when
11252         checking address operands.
11253
11254 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
11255
11256         * config/mips/mips.c (mips_isa_rev): New variable.
11257         (mips_set_architecture): Set it.
11258         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
11259         from mips_isa_rev.
11260         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
11261         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
11262         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
11263         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
11264         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
11265         conditions in terms of mips_isa_rev.
11266         (mips_isa_rev): Declare.
11267
11268 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
11269
11270         * config/sh/sh-mem.cc: Use tabs instead of spaces.
11271         (prob_unlikely, prob_likely): Make variables const.
11272
11273 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
11274
11275         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
11276
11277 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
11278
11279         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
11280
11281 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
11282
11283         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
11284         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
11285         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
11286         functions.
11287         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
11288         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
11289         sh_pass_in_reg_p.
11290         Replace usage of ROUND_REG with sh_round_reg.
11291         Use CEIL instead of ROUND_ADVANCE.
11292
11293 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
11294
11295         PR target/61026
11296         * config/sh/sh.c: Include stdlib headers before everything else.
11297
11298 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
11299
11300         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
11301         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
11302         (gimplify_adjust_omp_clauses): Simd region is never
11303         directly nested in combined parallel.  Instead, for linear
11304         with copyin/copyout, if in combined for simd loop, make decl
11305         firstprivate/lastprivate on OMP_FOR.
11306         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
11307         expand_omp_for_static_chunk): When setting endvar, also set
11308         fd->loop.v to the same value.
11309
11310 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
11311
11312         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
11313
11314 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
11315
11316         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
11317         expression.
11318
11319 2014-05-02  Marek Polacek  <polacek@redhat.com>
11320
11321         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
11322
11323 2014-05-02  Kito Cheng  <kito@0xlab.org>
11324
11325         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
11326         to a C expression marco.
11327         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
11328         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
11329         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
11330         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
11331         HONOR_REG_ALLOC_ORDER.
11332         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
11333
11334 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11335
11336         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
11337
11338 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11339
11340         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
11341
11342 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
11343
11344         * tree-if-conv.c (is_cond_scalar_reduction): New function.
11345         (convert_scalar_cond_reduction): Likewise.
11346         (predicate_scalar_phi): Add recognition and transformation
11347         of simple conditioanl reduction to be vectorizable.
11348
11349 2014-05-01  Marek Polacek  <polacek@redhat.com>
11350
11351         PR c/43245
11352         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
11353
11354 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
11355
11356         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
11357         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
11358         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
11359         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
11360         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
11361         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
11362         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
11363         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
11364
11365 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
11366
11367         * config/arc/arc.opt (mlra): Move comment above option name
11368         to avoid mis-parsing as language options.
11369
11370 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11371
11372         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
11373         * config/sol2.h: ... here.
11374         * config/sol2-10.h: Remove.
11375
11376         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
11377         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
11378         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
11379         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
11380         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
11381         * config/sol2.h: ... here.
11382         (SECTION_NAME_FORMAT): Don't redefine.
11383         (STARTFILE_ARCH32_SPEC): Rename to ...
11384         (STARTFILE_ARCH_SPEC): ... this.
11385         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
11386         * config/sparc/sol2.h: ... here.
11387         (SECTION_NAME_FORMAT): Don't undef.
11388         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
11389         (SUBTARGET_EXTRA_SPECS): Remove.
11390         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
11391
11392         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
11393         (MD_STARTFILE_PREFIX): Remove.
11394         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
11395         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
11396         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
11397         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
11398         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
11399         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
11400         * config/i386/sol2.h: ... here.
11401         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
11402         * config/i386/sol2-bi.h: Remove.
11403         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
11404         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
11405
11406         * config/i386/t-sol2-64: Rename to ...
11407         * config/i386/t-sol2: ... this.
11408         * config/sparc/t-sol2-64: Rename to ...
11409         * config/sparc/t-sol2: ... this.
11410
11411         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
11412         sol2_tm_file_head, sol2_tm_file_tail.
11413         Include ${cpu_type}/sol2.h before sol2.h.
11414         Remove sol2-10.h.
11415         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
11416         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
11417         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
11418         Reflect i386/t-sol2-64 renaming.
11419         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
11420         Reflect sparc/t-sol2-64 renaming.
11421
11422 2014-04-30  Richard Biener  <rguenther@suse.de>
11423
11424         * passes.c (execute_function_todo): Move TODO_verify_stmts
11425         and TODO_verify_ssa under the TODO_verify_il umbrella.
11426         * tree-ssa.h (verify_ssa): Adjust prototype.
11427         * tree-ssa.c (verify_ssa): Add parameter to tell whether
11428         we should verify SSA operands.
11429         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
11430         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
11431         whether we should verify whether not throwing stmts have EH info.
11432         * graphite-scop-detection.c (create_sese_edges): Adjust.
11433         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
11434         * tree-eh.c (lower_try_finally_switch): Do not add the
11435         default case label twice.
11436
11437 2014-04-30  Marek Polacek  <polacek@redhat.com>
11438
11439         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
11440         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
11441         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
11442         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
11443
11444 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
11445
11446         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
11447         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
11448         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
11449         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
11450         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
11451         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
11452         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
11453         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
11454
11455 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
11456
11457         * tree-cfg.c (dump_function_to_file): Dump the return type of
11458         functions, in a line to itself before the function body, mimicking
11459         the layout of a C function.
11460
11461 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
11462
11463         PR tree-optimization/60971
11464         * tree-tailcall.c (process_assignment): Reject conversions which
11465         reduce precision.
11466
11467 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
11468
11469         * calls.c (initialize_argument_information): Always treat
11470         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
11471         (expand_call): Likewise.
11472         (emit_library_call_calue_1): Likewise.
11473         * expr.c (PUSH_ARGS_REVERSED): Do not define.
11474         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
11475         code accordingly.
11476
11477 2014-04-29  Nick Clifton  <nickc@redhat.com>
11478
11479         * config/msp430/msp430.md (umulsidi): Fix typo.
11480         (mulhisi3): Enable even inside interrupt handlers.
11481         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
11482         bigger return address pushed in large mode.
11483
11484 2014-04-29  Nick Clifton  <nickc@redhat.com>
11485
11486         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
11487         (arc_init_reg_tables): Use a machine_mode enum to iterate over
11488         available modes.
11489         * config/m32r/m32r.c (init_reg_tables): Likewise.
11490         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
11491         enum to hold the modes.
11492
11493 2014-04-29  Richard Biener  <rguenther@suse.de>
11494
11495         * dominance.c (free_dominance_info): Add overload with
11496         function parameter.
11497         (dom_info_state): Likewise.
11498         (dom_info_available_p): Likewise.
11499         * basic-block.h (free_dominance_info, dom_info_state,
11500         dom_info_available_p): Declare overloads.
11501         * passes.c (execute_function_todo): Verify that verifiers
11502         don't change dominator info state.  Drop dominator info
11503         for IPA pass invocations.
11504         * cgraph.c (release_function_body): Restore asserts that
11505         dominator information is released.
11506
11507 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
11508
11509         * doc/invoke.texi: Fix typo.
11510         * tree-vrp.c: Fix typos.
11511         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
11512
11513 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11514
11515         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
11516
11517 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
11518
11519         * config/aarch64/aarch64-builtins.c
11520         (aarch64_types_storestruct_lane_qualifiers): New.
11521         (TYPES_STORESTRUCT_LANE): Likewise.
11522         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
11523         (st3_lane): Likewise.
11524         (st4_lane): Likewise.
11525         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
11526         (vec_store_lanesci_lane<mode>): Likewise.
11527         (vec_store_lanesxi_lane<mode>): Likewise.
11528         (aarch64_st2_lane<VQ:mode>): Likewise.
11529         (aarch64_st3_lane<VQ:mode>): Likewise.
11530         (aarch64_st4_lane<VQ:mode>): Likewise.
11531         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
11532         * config/aarch64/arm_neon.h
11533         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
11534         use new macro arguments.
11535         (__ST3_LANE_FUNC): Likewise.
11536         (__ST4_LANE_FUNC): Likewise.
11537         * config/aarch64/iterators.md (V_TWO_ELEM): New.
11538         (V_THREE_ELEM): Likewise.
11539         (V_FOUR_ELEM): Likewise.
11540
11541 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
11542
11543         * doc/gimple.texi: Replace the description of the now-defunct
11544         union gimple_statement_d with a diagram showing the
11545         gimple_statement_base class hierarchy and its relationships to
11546         the GSS_ and GIMPLE_ enums.
11547
11548 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
11549
11550         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
11551         * config/aarch64/aarch64.c
11552         (aarch64_cannot_change_mode_class): Weaken conditions.
11553         (aarch64_modes_tieable_p): New.
11554         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
11555
11556 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
11557
11558         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
11559         (loadsync_<mode>): Change mode.
11560         (load_quadpti, store_quadpti): New.
11561         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
11562         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
11563
11564 2014-04-28  Martin Jambor  <mjambor@suse.cz>
11565
11566         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
11567         same alias type as the original statement.
11568         (subreplacement_assignment_data): New type.
11569         (handle_unscalarized_data_in_subtree): New type of parameter,
11570         generate new memory accesses with same alias type as the original
11571         statement.
11572         (load_assign_lhs_subreplacements): Likewise.
11573         (sra_modify_constructor_assign): Generate new memory accesses with
11574         same alias type as the original statement.
11575
11576 2014-04-28  Richard Biener  <rguenther@suse.de>
11577
11578         * tree-pass.h (TODO_verify_il): Define.
11579         (TODO_verify_all): Complete properly.
11580         * passes.c (execute_function_todo): Move existing loop-closed
11581         SSA verification under TODO_verify_il.
11582         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
11583         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
11584         Fix tree sharing issue.
11585
11586 2014-04-28  Richard Biener  <rguenther@suse.de>
11587
11588         PR middle-end/60092
11589         * builtins.def (DEF_C11_BUILTIN): Add.
11590         (BUILT_IN_ALIGNED_ALLOC): Likewise.
11591         * coretypes.h (enum function_class): Add function_c11_misc.
11592         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11593         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
11594         (call_may_clobber_ref_p_1): Likewise.
11595         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11596         (mark_all_reaching_defs_necessary_1): Likewise.
11597         (propagate_necessity): Likewise.
11598         (eliminate_unnecessary_stmts): Likewise.
11599         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
11600
11601 2014-04-28  Richard Biener  <rguenther@suse.de>
11602
11603         * tree-vrp.c (vrp_var_may_overflow): Remove.
11604         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
11605         with overflow immediately bump to one before that value and
11606         let iteration figure out overflow status.
11607
11608 2014-04-28  Richard Biener  <rguenther@suse.de>
11609
11610         * configure.ac: Do valgrind header checks unconditionally.
11611         Add --enable-valgrind-annotations.
11612         * system.h: Guard valgrind header inclusion with
11613         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
11614         * alloc-pool.c (pool_alloc, pool_free): Use
11615         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
11616         to guard possibly dead code.
11617         * config.in: Regenerated.
11618         * configure: Likewise.
11619
11620 2014-04-28  Jeff Law  <law@redhat.com>
11621
11622         PR tree-optimization/60902
11623         * tree-ssa-threadedge.c
11624         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
11625         over real defs when invalidating outputs from statements that do not
11626         produce useful outputs for threading.
11627
11628 2014-04-28  Richard Biener  <rguenther@suse.de>
11629
11630         PR tree-optimization/60979
11631         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
11632         SCOPs that end in a block with a successor with abnormal
11633         predecessors.
11634
11635 2014-04-28  Richard Biener  <rguenther@suse.de>
11636
11637         * tree-pass.h (execute_pass_list): Adjust prototype.
11638         * passes.c (pass_manager::execute_early_local_passes): Adjust.
11639         (do_per_function): Change callback signature, push all actual
11640         work to the callbals.
11641         (do_per_function_toporder): Likewise.
11642         (execute_function_dump): Adjust.
11643         (execute_function_todo): Likewise.
11644         (clear_last_verified): Likewise.
11645         (verify_curr_properties): Likewise.
11646         (update_properties_after_pass): Likewise.
11647         (execute_pass_list_1): Split out from ...
11648         (execute_pass_list): ... here.  Adjust.
11649         (execute_ipa_pass_list): Likewise.
11650         * cgraphunit.c (cgraph_add_new_function): Adjust.
11651         (analyze_function): Likewise.
11652         (expand_function): Likewise.
11653         * cgraph.c (release_function_body): Free dominance info
11654         here instead of asserting it was magically freed elsewhere.
11655
11656 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11657
11658         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
11659         * configure: Regenerate.
11660         * config/sparc/sparc.opt (muser-mode): New option.
11661         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
11662         for LEON3.
11663         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
11664         * doc/invoke.texi (SPARC options): Document -muser-mode.
11665
11666 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
11667
11668         * cselib.c (find_slot_memmode): Delete.
11669         (cselib_hasher): Change compare_type to a struct.
11670         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
11671         constants.
11672         (preserve_constants_and_equivs): Adjust for new compare_type.
11673         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
11674         (wrap_constant): Delete.
11675         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
11676
11677 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
11678
11679         * doc/install.texi (Building with profile feedback): Remove
11680         outdated sentence.
11681
11682 2014-04-26  Tom de Vries  <tom@codesourcery.com>
11683
11684         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
11685         array accesses.
11686
11687 2014-04-25  Cary Coutant  <ccoutant@google.com>
11688
11689         PR debug/60929
11690         * dwarf2out.c (should_move_die_to_comdat): A type definition
11691         can contain a subprogram definition, but don't move it to a
11692         comdat unit.
11693         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
11694         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
11695         from original DIE.
11696         (clone_tree_hash): Rename to...
11697         (clone_tree_partial): ...this; change callers.  Copy
11698         DW_TAG_subprogram DIEs as declarations.
11699         (copy_decls_walk): Don't copy children of a declaration into a
11700         type unit.
11701
11702 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
11703
11704         PR target/60969
11705         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
11706         alternative 12.
11707
11708 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
11709
11710         * config/arm/predicates.md (call_insn_operand): Add long_call check.
11711         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
11712         reg for long_call.
11713         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
11714         restriction.
11715
11716 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11717
11718         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
11719
11720 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11721
11722         PR tree-optimization/60930
11723         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
11724         creating a multiply candidate by folding two constant
11725         multiplicands when the result overflows.
11726
11727 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
11728
11729         PR tree-optimization/60960
11730         * tree-vect-generic.c (expand_vector_operation): Only call
11731         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
11732
11733 2014-04-25  Tom de Vries  <tom@codesourcery.com>
11734
11735         * expr.c (clobber_reg_mode): New function.
11736         * expr.h (clobber_reg): New function.
11737
11738 2014-04-25  Tom de Vries  <tom@codesourcery.com>
11739
11740         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
11741         clobbers.
11742
11743 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
11744             Tom de Vries  <tom@codesourcery.com>
11745
11746         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
11747         handle.
11748         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
11749         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
11750         new argument to find_all_hard_reg_sets call.
11751
11752 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11753
11754         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
11755         Use HOST_WIDE_INT_C for mask literal.
11756         (aarch_rev16_shleft_mask_imm_p): Likewise.
11757
11758 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
11759
11760         PR target/60941
11761         * config/sparc/sparc.md (ashlsi3_extend): Delete.
11762
11763 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
11764
11765         PR preprocessor/56540
11766         * config/i386/i386-c.c (ix86_target_macros): Define
11767         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
11768
11769 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11770
11771         * configure.ac (tga_func): Remove.
11772         (LIB_TLS_SPEC): Remove.
11773         * configure: Regenerate.
11774         * config.in: Regenerate.
11775         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
11776
11777 2014-04-25  Richard Biener  <rguenther@suse.de>
11778
11779         PR ipa/60912
11780         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
11781         call stmt use/clobber sets during stmt walk instead of
11782         walking the possibly incomplete set of caller edges.
11783
11784 2014-04-25  Richard Biener  <rguenther@suse.de>
11785
11786         PR ipa/60911
11787         * passes.c (apply_ipa_transforms): Inline into only caller ...
11788         (execute_one_pass): ... here.  Properly bring in function
11789         bodies for nodes we want to apply IPA transforms to.
11790
11791 2014-04-24  Cong Hou  <congh@google.com>
11792
11793         PR tree-optimization/60896
11794         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
11795         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
11796         (vect_mark_pattern_stmts): Set the def type of all statements in
11797         PATTERN_DEF_SEQ as vect_internal_def.
11798
11799 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11800
11801         * doc/extend.texi (PowerPC Built-in Functions): Document new
11802         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
11803         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
11804
11805         * config/rs6000/predicates.md (const_0_to_3_operand): New
11806         predicate to match 0..3 integer constants.
11807
11808         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
11809         to support adding miscellaneous builtin functions.
11810         (BU_DFP_MISC_2): Likewise.
11811         (BU_P7_MISC_1): Likewise.
11812         (BU_P7_MISC_2): Likewise.
11813         (BU_P8V_MISC_3): Likewise.
11814         (BU_MISC_1): Likewise.
11815         (BU_MISC_2): Likewise.
11816         (DIVWE): Add extended divide builtin functions.
11817         (DIVWEO): Likewise.
11818         (DIVWEU): Likewise.
11819         (DIVWEUO): Likewise.
11820         (DIVDE): Likewise.
11821         (DIVDEO): Likewise.
11822         (DIVDEU): Likewise.
11823         (DIVDEUO): Likewise.
11824         (DXEX): Add decimal floating-point builtin functions.
11825         (DXEXQ): Likewise.
11826         (DDEDPD): Likewise.
11827         (DDEDPDQ): Likewise.
11828         (DENBCD): Likewise.
11829         (DENBCDQ): Likewise.
11830         (DIEX): Likewise.
11831         (DIEXQ): Likewise.
11832         (DSCLI): Likewise.
11833         (DSCLIQ): Likewise.
11834         (DSCRI): Likewise.
11835         (DSCRIQ): Likewise.
11836         (CDTBCD): Add new BCD builtin functions.
11837         (CBCDTD): Likewise.
11838         (ADDG6S): Likewise.
11839         (BCDADD): Likewise.
11840         (BCDADD_LT): Likewise.
11841         (BCDADD_EQ): Likewise.
11842         (BCDADD_GT): Likewise.
11843         (BCDADD_OV): Likewise.
11844         (BCDSUB): Likewise.
11845         (BCDSUB_LT): Likewise.
11846         (BCDSUB_EQ): Likewise.
11847         (BCDSUB_GT): Likewise.
11848         (BCDSUB_OV): Likewise.
11849         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
11850         (UNPACK_TD): Likewise.
11851         (PACK_TF): Likewise.
11852         (UNPACK_TF): Likewise.
11853         (UNPACK_TF_0): Likewise.
11854         (UNPACK_TF_1): Likewise.
11855         (PACK_V1TI): Likewise.
11856         (UNPACK_V1TI): Likewise.
11857
11858         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
11859         support for decimal floating point builtin functions.
11860         (rs6000_expand_ternop_builtin): Add checks for the new builtin
11861         functions that take constant arguments.
11862         (rs6000_invalid_builtin): Add decimal floating point builtin support.
11863         (rs6000_init_builtins): Setup long double, _Decimal64, and
11864         _Decimal128 types for new builtin functions.
11865         (builtin_function_type): Set the unsigned flags appropriately for
11866         the new builtin functions.
11867         (rs6000_opt_masks): Add support for decimal floating point builtin
11868         functions.
11869
11870         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
11871         floating point builtin functions.
11872         (RS6000_BTM_COMMON): Likewise.
11873         (RS6000_BTI_long_double): Likewise.
11874         (RS6000_BTI_dfloat64): Likewise.
11875         (RS6000_BTI_dfloat128): Likewise.
11876         (long_double_type_internal_node): Likewise.
11877         (dfloat64_type_internal_node): Likewise.
11878         (dfloat128_type_internal_node): Likewise.
11879
11880         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
11881         2.07 bcd arithmetic instructions.
11882         (UNSPEC_BCDSUB): Likewise.
11883         (UNSPEC_BCD_OVERFLOW): Likewise.
11884         (UNSPEC_BCD_ADD_SUB): Likewise.
11885         (bcd_add_sub): Likewise.
11886         (BCD_TEST): Likewise.
11887         (bcd<bcd_add_sub>): Likewise.
11888         (bcd<bcd_add_sub>_test): Likewise.
11889         (bcd<bcd_add_sub>_test2): Likewise.
11890         (bcd<bcd_add_sub>_<code>): Likewise.
11891         (peephole2 for combined bcd ops): Likewise.
11892
11893         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
11894         decimal floating point builtin functions.
11895         (UNSPEC_DENBCD): Likewise.
11896         (UNSPEC_DXEX): Likewise.
11897         (UNSPEC_DIEX): Likewise.
11898         (UNSPEC_DSCLI): Likewise.
11899         (UNSPEC_DSCRI): Likewise.
11900         (D64_D128): Likewise.
11901         (dfp_suffix): Likewise.
11902         (dfp_ddedpd_<mode>): Likewise.
11903         (dfp_denbcd_<mode>): Likewise.
11904         (dfp_dxex_<mode>): Likewise.
11905         (dfp_diex_<mode>): Likewise.
11906         (dfp_dscli_<mode>): Likewise.
11907         (dfp_dscri_<mode>): Likewise.
11908
11909         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
11910         builtin functions.
11911         (UNSPEC_CDTBCD): Likewise.
11912         (UNSPEC_CBCDTD): Likewise.
11913         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
11914         (UNSPEC_DIVEO): Likewise.
11915         (UNSPEC_DIVEU): Likewise.
11916         (UNSPEC_DIVEUO): Likewise.
11917         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
11918         pack/unpack 128-bit types.
11919         (UNSPEC_PACK_128BIT): Likewise.
11920         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
11921         (udiv<mode>3): Use idiv_ldiv mode attribute.
11922         (div<mode>3): Likewise.
11923         (addg6s): Add new BCD builtin functions.
11924         (cdtbcd): Likewise.
11925         (cbcdtd): Likewise.
11926         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
11927         (div_extend): Likewise.
11928         (div<div_extend>_<mode>"): Likewise.
11929         (FP128_64): Add support for new builtin functions to pack/unpack
11930         128-bit types.
11931         (unpack<mode>): Likewise.
11932         (unpacktf_0): Likewise.
11933         (unpacktf_1): Likewise.
11934         (unpack<mode>_dm): Likewise.
11935         (unpack<mode>_nodm): Likewise.
11936         (pack<mode>): Likewise.
11937         (unpackv1ti): Likewise.
11938         (packv1ti): Likewise.
11939
11940 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
11941
11942         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
11943         is disabled.
11944
11945 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
11946
11947         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
11948         * gimplify.c (omp_is_private): Change last argument's type to int.
11949         Only diagnose lastprivate if the simd argument is 1, only diagnose
11950         linear if the simd argument is 2.
11951         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
11952         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
11953         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
11954         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
11955         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
11956         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
11957         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
11958         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
11959         * tree-nested.c (convert_nonlocal_omp_clauses,
11960         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
11961
11962 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
11963
11964         PR target/60822
11965         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
11966         operand 1.
11967
11968 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
11969
11970         * flag-types.h (enum ivar_visibility): Add.
11971
11972 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
11973
11974         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
11975         function * argument.
11976
11977 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
11978
11979         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
11980
11981 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
11982             Tom de Vries  <tom@codesourcery.com>
11983
11984         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
11985         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
11986         reg-note.
11987         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
11988         * emit-rtl.c (try_split): Same.
11989
11990 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
11991             Tom de Vries  <tom@codesourcery.com>
11992
11993         * common.opt (fuse-caller-save): New option.
11994
11995 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
11996
11997         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
11998         elements for big-endian.
11999
12000 2014-04-24  Richard Biener  <rguenther@suse.de>
12001
12002         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
12003         during TER and instead use the sepops interface for expanding
12004         non-GIMPLE_SINGLE_RHS.
12005
12006 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12007
12008         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
12009         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
12010
12011 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12012
12013         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
12014         assembler 64-bit option.
12015         * configure: Regenerate.
12016
12017 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12018
12019         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
12020         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
12021         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
12022         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
12023         (TARGET_CRYPTO): Take TARGET_SIMD into account.
12024
12025 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12026
12027         * config/aarch64/aarch64-builtins.c
12028         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
12029         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
12030         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
12031         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
12032         builtins.
12033         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
12034         (Vrevsuff): New mode attribute.
12035
12036 2014-04-24  Terry Guo  <terry.guo@arm.com>
12037
12038         * config/arm/arm.h (machine_function): Define variable
12039         after_arm_reorg here.
12040         * config/arm/arm.c (after_arm_reorg): Remove the definition.
12041         (arm_split_constant): Update the way to access variable
12042         after_arm_reorg.
12043         (arm_reorg): Ditto.
12044         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
12045
12046 2014-04-23  Tom de Vries  <tom@codesourcery.com>
12047
12048         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
12049
12050 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
12051
12052         * is-a.h: Update comments to reflect the following changes to the
12053         "pointerness" of the API, making the template parameter match the
12054         return type, allowing use of is-a.h with typedefs of pointers.
12055         (is_a_helper::cast): Return a T rather then a pointer to a T, so
12056         that the return type matches the parameter to the is_a_helper.
12057         (as_a): Likewise.
12058         (dyn_cast): Likewise.
12059
12060         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
12061         pointer from the is-a.h API.
12062
12063         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
12064         (is_a_helper <cgraph_node *>::test): ...this, matching change to
12065         is-a.h API.
12066         (is_a_helper <varpool_node>::test): Likewise, convert to...
12067         (is_a_helper <varpool_node *>::test): ...this.
12068
12069         (varpool_first_variable): Update for removal of implicit pointer
12070         from the is-a.h API.
12071         (varpool_next_variable): Likewise.
12072         (varpool_first_static_initializer): Likewise.
12073         (varpool_next_static_initializer): Likewise.
12074         (varpool_first_defined_variable): Likewise.
12075         (varpool_next_defined_variable): Likewise.
12076         (cgraph_first_defined_function): Likewise.
12077         (cgraph_next_defined_function): Likewise.
12078         (cgraph_first_function): Likewise.
12079         (cgraph_next_function): Likewise.
12080         (cgraph_first_function_with_gimple_body): Likewise.
12081         (cgraph_next_function_with_gimple_body): Likewise.
12082         (cgraph_alias_target): Likewise.
12083         (varpool_alias_target): Likewise.
12084         (cgraph_function_or_thunk_node): Likewise.
12085         (varpool_variable_node): Likewise.
12086         (symtab_real_symbol_p): Likewise.
12087         * cgraphunit.c (referred_to_p): Likewise.
12088         (analyze_functions): Likewise.
12089         (handle_alias_pairs): Likewise.
12090         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
12091         * gimple-ssa.h (gimple_vuse_op): Likewise.
12092         (gimple_vdef_op): Likewise.
12093         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
12094         * gimple.c (gimple_build_asm_1): Likewise.
12095         (gimple_build_try): Likewise.
12096         (gimple_build_resx): Likewise.
12097         (gimple_build_eh_dispatch): Likewise.
12098         (gimple_build_omp_for): Likewise.
12099         (gimple_omp_for_set_clauses): Likewise.
12100
12101         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
12102         (is_a_helper <gimple_statement_asm *>::test): ...this.
12103         (is_a_helper <gimple_statement_bind>::test): Convert to...
12104         (is_a_helper <gimple_statement_bind *>::test): ...this.
12105         (is_a_helper <gimple_statement_call>::test): Convert to...
12106         (is_a_helper <gimple_statement_call *>::test): ...this.
12107         (is_a_helper <gimple_statement_catch>::test): Convert to...
12108         (is_a_helper <gimple_statement_catch *>::test): ...this.
12109         (is_a_helper <gimple_statement_resx>::test): Convert to...
12110         (is_a_helper <gimple_statement_resx *>::test): ...this.
12111         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
12112         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
12113         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
12114         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
12115         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
12116         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
12117         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
12118         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
12119         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
12120         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
12121         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
12122         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
12123         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
12124         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
12125         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
12126         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
12127         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
12128         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
12129         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
12130         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
12131         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
12132         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
12133         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
12134         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
12135         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
12136         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
12137         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
12138         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
12139         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
12140         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
12141         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
12142         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
12143         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
12144         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
12145         (is_a_helper <gimple_statement_phi>::test): Convert to...
12146         (is_a_helper <gimple_statement_phi *>::test): ...this.
12147         (is_a_helper <gimple_statement_transaction>::test): Convert to...
12148         (is_a_helper <gimple_statement_transaction *>::test): ...this.
12149         (is_a_helper <gimple_statement_try>::test): Convert to...
12150         (is_a_helper <gimple_statement_try *>::test): ...this.
12151         (is_a_helper <gimple_statement_wce>::test): Convert to...
12152         (is_a_helper <gimple_statement_wce *>::test): ...this.
12153         (is_a_helper <const gimple_statement_asm>::test): Convert to...
12154         (is_a_helper <const gimple_statement_asm *>::test): ...this.
12155         (is_a_helper <const gimple_statement_bind>::test): Convert to...
12156         (is_a_helper <const gimple_statement_bind *>::test): ...this.
12157         (is_a_helper <const gimple_statement_call>::test): Convert to...
12158         (is_a_helper <const gimple_statement_call *>::test): ...this.
12159         (is_a_helper <const gimple_statement_catch>::test): Convert to...
12160         (is_a_helper <const gimple_statement_catch *>::test): ...this.
12161         (is_a_helper <const gimple_statement_resx>::test): Convert to...
12162         (is_a_helper <const gimple_statement_resx *>::test): ...this.
12163         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
12164         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
12165         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
12166         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
12167         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
12168         Convert to...
12169         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
12170         ...this.
12171         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
12172         Convert to...
12173         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
12174         ...this.
12175         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
12176         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
12177         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
12178         to...
12179         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
12180         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
12181         to...
12182         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
12183         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
12184         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
12185         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
12186         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
12187         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
12188         to...
12189         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
12190         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
12191         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
12192         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
12193         to...
12194         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
12195         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
12196         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
12197         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
12198         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
12199         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
12200         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
12201         (is_a_helper <const gimple_statement_phi>::test): Convert to...
12202         (is_a_helper <const gimple_statement_phi *>::test): ...this.
12203         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
12204         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
12205         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
12206         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
12207         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
12208         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
12209         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
12210         to...
12211         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
12212         ...this.
12213         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
12214         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
12215
12216         (gimple_use_ops): Update for removal of implicit pointer from the
12217         is-a.h API.
12218         (gimple_set_use_ops): Likewise.
12219         (gimple_vuse): Likewise.
12220         (gimple_vdef): Likewise.
12221         (gimple_vuse_ptr): Likewise.
12222         (gimple_vdef_ptr): Likewise.
12223         (gimple_set_vuse): Likewise.
12224         (gimple_set_vdef): Likewise.
12225         (gimple_omp_return_set_lhs): Likewise.
12226         (gimple_omp_return_lhs): Likewise.
12227         (gimple_omp_return_lhs_ptr): Likewise.
12228         (gimple_call_fntype): Likewise.
12229         (gimple_call_set_fntype): Likewise.
12230         (gimple_call_set_internal_fn): Likewise.
12231         (gimple_call_use_set): Likewise.
12232         (gimple_call_clobber_set): Likewise.
12233         (gimple_bind_vars): Likewise.
12234         (gimple_bind_set_vars): Likewise.
12235         (gimple_bind_body_ptr): Likewise.
12236         (gimple_bind_set_body): Likewise.
12237         (gimple_bind_add_stmt): Likewise.
12238         (gimple_bind_block): Likewise.
12239         (gimple_bind_set_block): Likewise.
12240         (gimple_asm_ninputs): Likewise.
12241         (gimple_asm_noutputs): Likewise.
12242         (gimple_asm_nclobbers): Likewise.
12243         (gimple_asm_nlabels): Likewise.
12244         (gimple_asm_input_op): Likewise.
12245         (gimple_asm_input_op_ptr): Likewise.
12246         (gimple_asm_output_op): Likewise.
12247         (gimple_asm_output_op_ptr): Likewise.
12248         (gimple_asm_set_output_op): Likewise.
12249         (gimple_asm_clobber_op): Likewise.
12250         (gimple_asm_set_clobber_op): Likewise.
12251         (gimple_asm_label_op): Likewise.
12252         (gimple_asm_set_label_op): Likewise.
12253         (gimple_asm_string): Likewise.
12254         (gimple_catch_types): Likewise.
12255         (gimple_catch_types_ptr): Likewise.
12256         (gimple_catch_handler_ptr): Likewise.
12257         (gimple_catch_set_types): Likewise.
12258         (gimple_catch_set_handler): Likewise.
12259         (gimple_eh_filter_types): Likewise.
12260         (gimple_eh_filter_types_ptr): Likewise.
12261         (gimple_eh_filter_failure_ptr): Likewise.
12262         (gimple_eh_filter_set_types): Likewise.
12263         (gimple_eh_filter_set_failure): Likewise.
12264         (gimple_eh_must_not_throw_fndecl): Likewise.
12265         (gimple_eh_must_not_throw_set_fndecl): Likewise.
12266         (gimple_eh_else_n_body_ptr): Likewise.
12267         (gimple_eh_else_e_body_ptr): Likewise.
12268         (gimple_eh_else_set_n_body): Likewise.
12269         (gimple_eh_else_set_e_body): Likewise.
12270         (gimple_try_eval_ptr): Likewise.
12271         (gimple_try_cleanup_ptr): Likewise.
12272         (gimple_try_set_eval): Likewise.
12273         (gimple_try_set_cleanup): Likewise.
12274         (gimple_wce_cleanup_ptr): Likewise.
12275         (gimple_wce_set_cleanup): Likewise.
12276         (gimple_phi_capacity): Likewise.
12277         (gimple_phi_num_args): Likewise.
12278         (gimple_phi_result): Likewise.
12279         (gimple_phi_result_ptr): Likewise.
12280         (gimple_phi_set_result): Likewise.
12281         (gimple_phi_arg): Likewise.
12282         (gimple_phi_set_arg): Likewise.
12283         (gimple_resx_region): Likewise.
12284         (gimple_resx_set_region): Likewise.
12285         (gimple_eh_dispatch_region): Likewise.
12286         (gimple_eh_dispatch_set_region): Likewise.
12287         (gimple_omp_critical_name): Likewise.
12288         (gimple_omp_critical_name_ptr): Likewise.
12289         (gimple_omp_critical_set_name): Likewise.
12290         (gimple_omp_for_clauses): Likewise.
12291         (gimple_omp_for_clauses_ptr): Likewise.
12292         (gimple_omp_for_set_clauses): Likewise.
12293         (gimple_omp_for_collapse): Likewise.
12294         (gimple_omp_for_index): Likewise.
12295         (gimple_omp_for_index_ptr): Likewise.
12296         (gimple_omp_for_set_index): Likewise.
12297         (gimple_omp_for_initial): Likewise.
12298         (gimple_omp_for_initial_ptr): Likewise.
12299         (gimple_omp_for_set_initial): Likewise.
12300         (gimple_omp_for_final): Likewise.
12301         (gimple_omp_for_final_ptr): Likewise.
12302         (gimple_omp_for_set_final): Likewise.
12303         (gimple_omp_for_incr): Likewise.
12304         (gimple_omp_for_incr_ptr): Likewise.
12305         (gimple_omp_for_set_incr): Likewise.
12306         (gimple_omp_for_pre_body_ptr): Likewise.
12307         (gimple_omp_for_set_pre_body): Likewise.
12308         (gimple_omp_parallel_clauses): Likewise.
12309         (gimple_omp_parallel_clauses_ptr): Likewise.
12310         (gimple_omp_parallel_set_clauses): Likewise.
12311         (gimple_omp_parallel_child_fn): Likewise.
12312         (gimple_omp_parallel_child_fn_ptr): Likewise.
12313         (gimple_omp_parallel_set_child_fn): Likewise.
12314         (gimple_omp_parallel_data_arg): Likewise.
12315         (gimple_omp_parallel_data_arg_ptr): Likewise.
12316         (gimple_omp_parallel_set_data_arg): Likewise.
12317         (gimple_omp_task_clauses): Likewise.
12318         (gimple_omp_task_clauses_ptr): Likewise.
12319         (gimple_omp_task_set_clauses): Likewise.
12320         (gimple_omp_task_child_fn): Likewise.
12321         (gimple_omp_task_child_fn_ptr): Likewise.
12322         (gimple_omp_task_set_child_fn): Likewise.
12323         (gimple_omp_task_data_arg): Likewise.
12324         (gimple_omp_task_data_arg_ptr): Likewise.
12325         (gimple_omp_task_set_data_arg): Likewise.
12326         (gimple_omp_taskreg_clauses): Likewise.
12327         (gimple_omp_taskreg_clauses_ptr): Likewise.
12328         (gimple_omp_taskreg_set_clauses): Likewise.
12329         (gimple_omp_taskreg_child_fn): Likewise.
12330         (gimple_omp_taskreg_child_fn_ptr): Likewise.
12331         (gimple_omp_taskreg_set_child_fn): Likewise.
12332         (gimple_omp_taskreg_data_arg): Likewise.
12333         (gimple_omp_taskreg_data_arg_ptr): Likewise.
12334         (gimple_omp_taskreg_set_data_arg): Likewise.
12335         (gimple_omp_task_copy_fn): Likewise.
12336         (gimple_omp_task_copy_fn_ptr): Likewise.
12337         (gimple_omp_task_set_copy_fn): Likewise.
12338         (gimple_omp_task_arg_size): Likewise.
12339         (gimple_omp_task_arg_size_ptr): Likewise.
12340         (gimple_omp_task_set_arg_size): Likewise.
12341         (gimple_omp_task_arg_align): Likewise.
12342         (gimple_omp_task_arg_align_ptr): Likewise.
12343         (gimple_omp_task_set_arg_align): Likewise.
12344         (gimple_omp_single_clauses): Likewise.
12345         (gimple_omp_single_clauses_ptr): Likewise.
12346         (gimple_omp_single_set_clauses): Likewise.
12347         (gimple_omp_target_clauses): Likewise.
12348         (gimple_omp_target_clauses_ptr): Likewise.
12349         (gimple_omp_target_set_clauses): Likewise.
12350         (gimple_omp_target_child_fn): Likewise.
12351         (gimple_omp_target_child_fn_ptr): Likewise.
12352         (gimple_omp_target_set_child_fn): Likewise.
12353         (gimple_omp_target_data_arg): Likewise.
12354         (gimple_omp_target_data_arg_ptr): Likewise.
12355         (gimple_omp_target_set_data_arg): Likewise.
12356         (gimple_omp_teams_clauses): Likewise.
12357         (gimple_omp_teams_clauses_ptr): Likewise.
12358         (gimple_omp_teams_set_clauses): Likewise.
12359         (gimple_omp_sections_clauses): Likewise.
12360         (gimple_omp_sections_clauses_ptr): Likewise.
12361         (gimple_omp_sections_set_clauses): Likewise.
12362         (gimple_omp_sections_control): Likewise.
12363         (gimple_omp_sections_control_ptr): Likewise.
12364         (gimple_omp_sections_set_control): Likewise.
12365         (gimple_omp_for_set_cond): Likewise.
12366         (gimple_omp_for_cond): Likewise.
12367         (gimple_omp_atomic_store_set_val): Likewise.
12368         (gimple_omp_atomic_store_val): Likewise.
12369         (gimple_omp_atomic_store_val_ptr): Likewise.
12370         (gimple_omp_atomic_load_set_lhs): Likewise.
12371         (gimple_omp_atomic_load_lhs): Likewise.
12372         (gimple_omp_atomic_load_lhs_ptr): Likewise.
12373         (gimple_omp_atomic_load_set_rhs): Likewise.
12374         (gimple_omp_atomic_load_rhs): Likewise.
12375         (gimple_omp_atomic_load_rhs_ptr): Likewise.
12376         (gimple_omp_continue_control_def): Likewise.
12377         (gimple_omp_continue_control_def_ptr): Likewise.
12378         (gimple_omp_continue_set_control_def): Likewise.
12379         (gimple_omp_continue_control_use): Likewise.
12380         (gimple_omp_continue_control_use_ptr): Likewise.
12381         (gimple_omp_continue_set_control_use): Likewise.
12382         (gimple_transaction_body_ptr): Likewise.
12383         (gimple_transaction_label): Likewise.
12384         (gimple_transaction_label_ptr): Likewise.
12385         (gimple_transaction_set_body): Likewise.
12386         (gimple_transaction_set_label): Likewise.
12387
12388         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
12389         * ipa-inline-analysis.c (inline_write_summary): Likewise.
12390         * ipa-ref.c (ipa_record_reference): Likewise.
12391         * ipa-reference.c (analyze_function): Likewise.
12392         (ipa_reference_write_optimization_summary): Likewise.
12393         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
12394         (address_taken_from_non_vtable_p): Likewise.
12395         (comdat_can_be_unshared_p_1): Likewise.
12396         * lto-cgraph.c (lto_output_ref): Likewise.
12397         (add_references): Likewise.
12398         (compute_ltrans_boundary): Likewise.
12399         (output_symtab): Likewise.
12400         (input_ref): Likewise.
12401         (input_cgraph_1): Likewise.
12402         (output_cgraph_opt_summary): Likewise.
12403         * lto-streamer-out.c (lto_output): Likewise.
12404         (output_symbol_p): Likewise.
12405         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
12406         (lsei_start_function_in_partition): Likewise.
12407         (lsei_next_variable_in_partition): Likewise.
12408         (lsei_start_variable_in_partition): Likewise.
12409         * symtab.c (insert_to_assembler_name_hash): Likewise.
12410         (unlink_from_assembler_name_hash): Likewise.
12411         (symtab_unregister_node): Likewise.
12412         (symtab_remove_node): Likewise.
12413         (dump_symtab_node): Likewise.
12414         (verify_symtab_base): Likewise.
12415         (verify_symtab_node): Likewise.
12416         (symtab_make_decl_local): Likewise.
12417         (symtab_alias_ultimate_target): Likewise.
12418         (symtab_resolve_alias): Likewise.
12419         (symtab_get_symbol_partitioning_class): Likewise.
12420         * tree-phinodes.c (allocate_phi_node): Likewise.
12421         (reserve_phi_args_for_new_edge): Likewise.
12422         (remove_phi_args): Likewise.
12423         * varpool.c (varpool_node_for_asm): Likewise.
12424         (varpool_remove_unreferenced_decls): Likewise.
12425
12426 2014-04-23  Jeff Law  <law@redhat.com>
12427
12428         PR tree-optimization/60902
12429         * tree-ssa-threadedge.c
12430         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
12431         invalidate outputs from statements that do not produce useful
12432         outputs for threading.
12433
12434 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
12435
12436         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
12437         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
12438         machine descriptions for Stack Smashing Protector.
12439
12440 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
12441
12442         * aarch64.md (<optab>_rol<mode>3): New pattern.
12443         (<optab>_rolsi3_uxtw): Likewise.
12444         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
12445
12446 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
12447
12448         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
12449         (arm_cortex_a12_tune): Likewise.
12450
12451 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12452
12453         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
12454
12455 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12456
12457         * config/arm/arm.md (arm_rev16si2): New pattern.
12458         (arm_rev16si2_alt): Likewise.
12459         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
12460
12461 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12462
12463         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
12464         (rev16<mode>2_alt): Likewise.
12465         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
12466         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
12467         (aarch_rev16_shleft_mask_imm_p): Likewise.
12468         (aarch_rev16_p_1): Likewise.
12469         (aarch_rev16_p): Likewise.
12470         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
12471         (aarch_rev16_shright_mask_imm_p): Likewise.
12472         (aarch_rev16_shleft_mask_imm_p): Likewise.
12473
12474 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12475
12476         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
12477         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
12478         rev cost.
12479         (cortex_a53_extra_costs): Likewise.
12480         (cortex_a57_extra_costs): Likewise.
12481         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
12482         (cortexa7_extra_costs): Likewise.
12483         (cortexa8_extra_costs): Likewise.
12484         (cortexa12_extra_costs): Likewise.
12485         (cortexa15_extra_costs): Likewise.
12486         (v7m_extra_costs): Likewise.
12487         (arm_new_rtx_costs): Handle BSWAP.
12488
12489 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12490
12491         * config/arm/arm.c (cortexa8_extra_costs): New table.
12492         (arm_cortex_a8_tune): New tuning struct.
12493         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
12494
12495 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12496
12497         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
12498
12499 2014-04-23  Richard Biener  <rguenther@suse.de>
12500
12501         * Makefile.in (OBJS): Remove loop-unswitch.o.
12502         * tree-pass.h (make_pass_rtl_unswitch): Remove.
12503         * passes.def (pass_rtl_unswitch): Likewise.
12504         * loop-init.c (gate_rtl_unswitch): Likewise.
12505         (rtl_unswitch): Likewise.
12506         (pass_data_rtl_unswitch): Likewise.
12507         (pass_rtl_unswitch): Likewise.
12508         (make_pass_rtl_unswitch): Likewise.
12509         * rtl.h (reversed_condition): Likewise.
12510         (compare_and_jump_seq): Likewise.
12511         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
12512         and make static.
12513         * loop-unroll.c (compare_and_jump_seq): Likewise.
12514
12515 2014-04-23  Richard Biener  <rguenther@suse.de>
12516
12517         PR tree-optimization/60903
12518         * tree-ssa-loop-im.c (analyze_memory_references): Remove
12519         commented code block.
12520         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
12521         loop flags to newly created BBs and edges.
12522
12523 2014-04-23  Nick Clifton  <nickc@redhat.com>
12524
12525         * config/msp430/msp430.c (msp430_handle_option): Move function
12526         to msp430-common.c
12527         (msp430_option_override): Simplify mcu and mcpu option handling.
12528         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
12529         support for -mhwmult command line option.
12530         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
12531         -mhwmult command line option.
12532         (msp430_hwmult_enabled): Delete.
12533         (msp43o_output_labelref): Add support for -mhwmult command line option.
12534         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
12535         (umulsidi3): Likewise.
12536         * config/msp430/msp430.opt (mmcu): Add Report attribute.
12537         (mcpu, mlarge, msmall): Likewise.
12538         (mhwmult): New option.
12539         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
12540         prototype.
12541         (msp430_is_f5_mcu): Remove prototype.
12542         (msp430_use_f5_series_hwmult): Add prototype.
12543         * config/msp430/msp430-opts.h: New file.
12544         * common/config/msp430: New directory.
12545         * common/config/msp430/msp430-common.c: New file.
12546         * config.gcc (msp430): Remove target_has_targetm_common.
12547         * doc/invoke.texi: Document -mhwmult command line option.
12548
12549 2014-04-23  Nick Clifton  <nickc@redhat.com>
12550
12551         * config/i386/cygwin.h (ENDFILE_SPEC): Include
12552         default-manifest.o if it can be found in the search path.
12553         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
12554
12555 2014-04-23  Terry Guo  <terry.guo@arm.com>
12556
12557         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
12558
12559 2014-04-23  Richard Biener  <rguenther@suse.de>
12560
12561         PR middle-end/60895
12562         * tree-inline.c (declare_return_variable): Use mark_addressable.
12563
12564 2014-04-23  Richard Biener  <rguenther@suse.de>
12565
12566         PR middle-end/60891
12567         * loop-init.c (loop_optimizer_init): Make sure to apply
12568         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
12569
12570 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
12571
12572         PR sanitizer/60275
12573         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
12574         New options.
12575         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
12576         if flag_sanitize_undefined_trap_on_error.
12577         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
12578         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
12579         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
12580         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
12581         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
12582         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
12583         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
12584         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
12585         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
12586         * ubsan.c (ubsan_instrument_unreachable): Return
12587         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
12588         (ubsan_expand_null_ifn): Emit __builtin_trap ()
12589         if flag_sanitize_undefined_trap_on_error and
12590         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
12591         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
12592         instrument_bool_enum_load): Emit __builtin_trap () if
12593         flag_sanitize_undefined_trap_on_error and
12594         __builtin_handle_*_abort () if !flag_sanitize_recover.
12595         * doc/invoke.texi (-fsanitize-recover,
12596         -fsanitize-undefined-trap-on-error): Document.
12597
12598 2014-04-22  Christian Bruel  <christian.bruel@st.com>
12599
12600         * config/sh/sh.md (mov<mode>): Replace movQIHI.
12601          Force immediates to SImode.
12602
12603 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
12604
12605         * config/nios2/nios2.md (UNSPEC_ROUND): New.
12606         (lroundsfsi2): New.
12607         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
12608         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
12609         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
12610         (nios2_fpu_insn): Add entry for round.
12611         (N2FPU_NO_ERRNO_P): Define.
12612         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
12613         flag_errno_math.
12614         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
12615
12616 2014-04-22  Richard Henderson  <rth@redhat.com>
12617
12618         * config/aarch64/aarch64 (addti3, subti3): New expanders.
12619         (add<GPI>3_compare0): Remove leading * from name.
12620         (add<GPI>3_carryin): Likewise.
12621         (sub<GPI>3_compare0): Likewise.
12622         (sub<GPI>3_carryin): Likewise.
12623         (<su_optab>mulditi3): New expander.
12624         (multi3): New expander.
12625         (madd<GPI>): Remove leading * from name.
12626
12627 2014-04-22  Martin Jambor  <mjambor@suse.cz>
12628
12629         * cgraphclones.c (cgraph_function_versioning): Copy
12630         ipa_transforms_to_apply instead of asserting it is empty.
12631
12632 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
12633
12634         PR target/60868
12635         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
12636         on count_exp to get mode.
12637
12638 2014-04-22  Andrew Pinski  <apinski@cavium.com>
12639
12640         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12641         Handle TLS for ILP32.
12642         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
12643         (tlsie_small_<mode>): this and handle PTR.
12644         (tlsie_small_sidi): New pattern.
12645         (tlsle_small): Change to an expand to handle ILP32.
12646         (tlsle_small_<mode>): New pattern.
12647         (tlsdesc_small): Rename to ...
12648         (tlsdesc_small_<mode>): this and handle PTR.
12649
12650 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12651
12652         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
12653
12654 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
12655
12656         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
12657         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
12658         (aarch64_types_signed_poly_qualifiers): Likewise.
12659         (aarch64_types_unsigned_signed_qualifiers): Likewise.
12660         (aarch64_types_poly_signed_qualifiers): Likewise.
12661         (TYPES_REINTERP_SS): Type macro added.
12662         (TYPES_REINTERP_SU): Likewise.
12663         (TYPES_REINTERP_SP): Likewise.
12664         (TYPES_REINTERP_US): Likewise.
12665         (TYPES_REINTERP_PS): Likewise.
12666         (aarch64_fold_builtin): New expression folding added.
12667         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
12668         Declarations removed.
12669         (REINTERP_SS): Declarations added.
12670         (REINTERP_US): Likewise.
12671         (REINTERP_PS): Likewise.
12672         (REINTERP_SU): Likewise.
12673         (REINTERP_SP): Likewise.
12674         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
12675         (vreinterpretq_p8_f64): Likewise.
12676         (vreinterpret_p16_f64): Likewise.
12677         (vreinterpretq_p16_f64): Likewise.
12678         (vreinterpret_f32_f64): Likewise.
12679         (vreinterpretq_f32_f64): Likewise.
12680         (vreinterpret_f64_f32): Likewise.
12681         (vreinterpret_f64_p8): Likewise.
12682         (vreinterpret_f64_p16): Likewise.
12683         (vreinterpret_f64_s8): Likewise.
12684         (vreinterpret_f64_s16): Likewise.
12685         (vreinterpret_f64_s32): Likewise.
12686         (vreinterpret_f64_s64): Likewise.
12687         (vreinterpret_f64_u8): Likewise.
12688         (vreinterpret_f64_u16): Likewise.
12689         (vreinterpret_f64_u32): Likewise.
12690         (vreinterpret_f64_u64): Likewise.
12691         (vreinterpretq_f64_f32): Likewise.
12692         (vreinterpretq_f64_p8): Likewise.
12693         (vreinterpretq_f64_p16): Likewise.
12694         (vreinterpretq_f64_s8): Likewise.
12695         (vreinterpretq_f64_s16): Likewise.
12696         (vreinterpretq_f64_s32): Likewise.
12697         (vreinterpretq_f64_s64): Likewise.
12698         (vreinterpretq_f64_u8): Likewise.
12699         (vreinterpretq_f64_u16): Likewise.
12700         (vreinterpretq_f64_u32): Likewise.
12701         (vreinterpretq_f64_u64): Likewise.
12702         (vreinterpret_s64_f64): Likewise.
12703         (vreinterpretq_s64_f64): Likewise.
12704         (vreinterpret_u64_f64): Likewise.
12705         (vreinterpretq_u64_f64): Likewise.
12706         (vreinterpret_s8_f64): Likewise.
12707         (vreinterpretq_s8_f64): Likewise.
12708         (vreinterpret_s16_f64): Likewise.
12709         (vreinterpretq_s16_f64): Likewise.
12710         (vreinterpret_s32_f64): Likewise.
12711         (vreinterpretq_s32_f64): Likewise.
12712         (vreinterpret_u8_f64): Likewise.
12713         (vreinterpretq_u8_f64): Likewise.
12714         (vreinterpret_u16_f64): Likewise.
12715         (vreinterpretq_u16_f64): Likewise.
12716         (vreinterpret_u32_f64): Likewise.
12717         (vreinterpretq_u32_f64): Likewise.
12718
12719 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
12720
12721         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
12722         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
12723         (vreinterpret_p8_s8): Likewise.
12724         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
12725         (vreinterpret_p8_s16): Likewise.
12726         (vreinterpret_p8_s32): Likewise.
12727         (vreinterpret_p8_s64): Likewise.
12728         (vreinterpret_p8_f32): Likewise.
12729         (vreinterpret_p8_u8): Likewise.
12730         (vreinterpret_p8_u16): Likewise.
12731         (vreinterpret_p8_u32): Likewise.
12732         (vreinterpret_p8_u64): Likewise.
12733         (vreinterpret_p8_p16): Likewise.
12734         (vreinterpretq_p8_s8): Likewise.
12735         (vreinterpretq_p8_s16): Likewise.
12736         (vreinterpretq_p8_s32): Likewise.
12737         (vreinterpretq_p8_s64): Likewise.
12738         (vreinterpretq_p8_f32): Likewise.
12739         (vreinterpretq_p8_u8): Likewise.
12740         (vreinterpretq_p8_u16): Likewise.
12741         (vreinterpretq_p8_u32): Likewise.
12742         (vreinterpretq_p8_u64): Likewise.
12743         (vreinterpretq_p8_p16): Likewise.
12744         (vreinterpret_p16_s8): Likewise.
12745         (vreinterpret_p16_s16): Likewise.
12746         (vreinterpret_p16_s32): Likewise.
12747         (vreinterpret_p16_s64): Likewise.
12748         (vreinterpret_p16_f32): Likewise.
12749         (vreinterpret_p16_u8): Likewise.
12750         (vreinterpret_p16_u16): Likewise.
12751         (vreinterpret_p16_u32): Likewise.
12752         (vreinterpret_p16_u64): Likewise.
12753         (vreinterpret_p16_p8): Likewise.
12754         (vreinterpretq_p16_s8): Likewise.
12755         (vreinterpretq_p16_s16): Likewise.
12756         (vreinterpretq_p16_s32): Likewise.
12757         (vreinterpretq_p16_s64): Likewise.
12758         (vreinterpretq_p16_f32): Likewise.
12759         (vreinterpretq_p16_u8): Likewise.
12760         (vreinterpretq_p16_u16): Likewise.
12761         (vreinterpretq_p16_u32): Likewise.
12762         (vreinterpretq_p16_u64): Likewise.
12763         (vreinterpretq_p16_p8): Likewise.
12764         (vreinterpret_f32_s8): Likewise.
12765         (vreinterpret_f32_s16): Likewise.
12766         (vreinterpret_f32_s32): Likewise.
12767         (vreinterpret_f32_s64): Likewise.
12768         (vreinterpret_f32_u8): Likewise.
12769         (vreinterpret_f32_u16): Likewise.
12770         (vreinterpret_f32_u32): Likewise.
12771         (vreinterpret_f32_u64): Likewise.
12772         (vreinterpret_f32_p8): Likewise.
12773         (vreinterpret_f32_p16): Likewise.
12774         (vreinterpretq_f32_s8): Likewise.
12775         (vreinterpretq_f32_s16): Likewise.
12776         (vreinterpretq_f32_s32): Likewise.
12777         (vreinterpretq_f32_s64): Likewise.
12778         (vreinterpretq_f32_u8): Likewise.
12779         (vreinterpretq_f32_u16): Likewise.
12780         (vreinterpretq_f32_u32): Likewise.
12781         (vreinterpretq_f32_u64): Likewise.
12782         (vreinterpretq_f32_p8): Likewise.
12783         (vreinterpretq_f32_p16): Likewise.
12784         (vreinterpret_s64_s8): Likewise.
12785         (vreinterpret_s64_s16): Likewise.
12786         (vreinterpret_s64_s32): Likewise.
12787         (vreinterpret_s64_f32): Likewise.
12788         (vreinterpret_s64_u8): Likewise.
12789         (vreinterpret_s64_u16): Likewise.
12790         (vreinterpret_s64_u32): Likewise.
12791         (vreinterpret_s64_u64): Likewise.
12792         (vreinterpret_s64_p8): Likewise.
12793         (vreinterpret_s64_p16): Likewise.
12794         (vreinterpretq_s64_s8): Likewise.
12795         (vreinterpretq_s64_s16): Likewise.
12796         (vreinterpretq_s64_s32): Likewise.
12797         (vreinterpretq_s64_f32): Likewise.
12798         (vreinterpretq_s64_u8): Likewise.
12799         (vreinterpretq_s64_u16): Likewise.
12800         (vreinterpretq_s64_u32): Likewise.
12801         (vreinterpretq_s64_u64): Likewise.
12802         (vreinterpretq_s64_p8): Likewise.
12803         (vreinterpretq_s64_p16): Likewise.
12804         (vreinterpret_u64_s8): Likewise.
12805         (vreinterpret_u64_s16): Likewise.
12806         (vreinterpret_u64_s32): Likewise.
12807         (vreinterpret_u64_s64): Likewise.
12808         (vreinterpret_u64_f32): Likewise.
12809         (vreinterpret_u64_u8): Likewise.
12810         (vreinterpret_u64_u16): Likewise.
12811         (vreinterpret_u64_u32): Likewise.
12812         (vreinterpret_u64_p8): Likewise.
12813         (vreinterpret_u64_p16): Likewise.
12814         (vreinterpretq_u64_s8): Likewise.
12815         (vreinterpretq_u64_s16): Likewise.
12816         (vreinterpretq_u64_s32): Likewise.
12817         (vreinterpretq_u64_s64): Likewise.
12818         (vreinterpretq_u64_f32): Likewise.
12819         (vreinterpretq_u64_u8): Likewise.
12820         (vreinterpretq_u64_u16): Likewise.
12821         (vreinterpretq_u64_u32): Likewise.
12822         (vreinterpretq_u64_p8): Likewise.
12823         (vreinterpretq_u64_p16): Likewise.
12824         (vreinterpret_s8_s16): Likewise.
12825         (vreinterpret_s8_s32): Likewise.
12826         (vreinterpret_s8_s64): Likewise.
12827         (vreinterpret_s8_f32): Likewise.
12828         (vreinterpret_s8_u8): Likewise.
12829         (vreinterpret_s8_u16): Likewise.
12830         (vreinterpret_s8_u32): Likewise.
12831         (vreinterpret_s8_u64): Likewise.
12832         (vreinterpret_s8_p8): Likewise.
12833         (vreinterpret_s8_p16): Likewise.
12834         (vreinterpretq_s8_s16): Likewise.
12835         (vreinterpretq_s8_s32): Likewise.
12836         (vreinterpretq_s8_s64): Likewise.
12837         (vreinterpretq_s8_f32): Likewise.
12838         (vreinterpretq_s8_u8): Likewise.
12839         (vreinterpretq_s8_u16): Likewise.
12840         (vreinterpretq_s8_u32): Likewise.
12841         (vreinterpretq_s8_u64): Likewise.
12842         (vreinterpretq_s8_p8): Likewise.
12843         (vreinterpretq_s8_p16): Likewise.
12844         (vreinterpret_s16_s8): Likewise.
12845         (vreinterpret_s16_s32): Likewise.
12846         (vreinterpret_s16_s64): Likewise.
12847         (vreinterpret_s16_f32): Likewise.
12848         (vreinterpret_s16_u8): Likewise.
12849         (vreinterpret_s16_u16): Likewise.
12850         (vreinterpret_s16_u32): Likewise.
12851         (vreinterpret_s16_u64): Likewise.
12852         (vreinterpret_s16_p8): Likewise.
12853         (vreinterpret_s16_p16): Likewise.
12854         (vreinterpretq_s16_s8): Likewise.
12855         (vreinterpretq_s16_s32): Likewise.
12856         (vreinterpretq_s16_s64): Likewise.
12857         (vreinterpretq_s16_f32): Likewise.
12858         (vreinterpretq_s16_u8): Likewise.
12859         (vreinterpretq_s16_u16): Likewise.
12860         (vreinterpretq_s16_u32): Likewise.
12861         (vreinterpretq_s16_u64): Likewise.
12862         (vreinterpretq_s16_p8): Likewise.
12863         (vreinterpretq_s16_p16): Likewise.
12864         (vreinterpret_s32_s8): Likewise.
12865         (vreinterpret_s32_s16): Likewise.
12866         (vreinterpret_s32_s64): Likewise.
12867         (vreinterpret_s32_f32): Likewise.
12868         (vreinterpret_s32_u8): Likewise.
12869         (vreinterpret_s32_u16): Likewise.
12870         (vreinterpret_s32_u32): Likewise.
12871         (vreinterpret_s32_u64): Likewise.
12872         (vreinterpret_s32_p8): Likewise.
12873         (vreinterpret_s32_p16): Likewise.
12874         (vreinterpretq_s32_s8): Likewise.
12875         (vreinterpretq_s32_s16): Likewise.
12876         (vreinterpretq_s32_s64): Likewise.
12877         (vreinterpretq_s32_f32): Likewise.
12878         (vreinterpretq_s32_u8): Likewise.
12879         (vreinterpretq_s32_u16): Likewise.
12880         (vreinterpretq_s32_u32): Likewise.
12881         (vreinterpretq_s32_u64): Likewise.
12882         (vreinterpretq_s32_p8): Likewise.
12883         (vreinterpretq_s32_p16): Likewise.
12884         (vreinterpret_u8_s8): Likewise.
12885         (vreinterpret_u8_s16): Likewise.
12886         (vreinterpret_u8_s32): Likewise.
12887         (vreinterpret_u8_s64): Likewise.
12888         (vreinterpret_u8_f32): Likewise.
12889         (vreinterpret_u8_u16): Likewise.
12890         (vreinterpret_u8_u32): Likewise.
12891         (vreinterpret_u8_u64): Likewise.
12892         (vreinterpret_u8_p8): Likewise.
12893         (vreinterpret_u8_p16): Likewise.
12894         (vreinterpretq_u8_s8): Likewise.
12895         (vreinterpretq_u8_s16): Likewise.
12896         (vreinterpretq_u8_s32): Likewise.
12897         (vreinterpretq_u8_s64): Likewise.
12898         (vreinterpretq_u8_f32): Likewise.
12899         (vreinterpretq_u8_u16): Likewise.
12900         (vreinterpretq_u8_u32): Likewise.
12901         (vreinterpretq_u8_u64): Likewise.
12902         (vreinterpretq_u8_p8): Likewise.
12903         (vreinterpretq_u8_p16): Likewise.
12904         (vreinterpret_u16_s8): Likewise.
12905         (vreinterpret_u16_s16): Likewise.
12906         (vreinterpret_u16_s32): Likewise.
12907         (vreinterpret_u16_s64): Likewise.
12908         (vreinterpret_u16_f32): Likewise.
12909         (vreinterpret_u16_u8): Likewise.
12910         (vreinterpret_u16_u32): Likewise.
12911         (vreinterpret_u16_u64): Likewise.
12912         (vreinterpret_u16_p8): Likewise.
12913         (vreinterpret_u16_p16): Likewise.
12914         (vreinterpretq_u16_s8): Likewise.
12915         (vreinterpretq_u16_s16): Likewise.
12916         (vreinterpretq_u16_s32): Likewise.
12917         (vreinterpretq_u16_s64): Likewise.
12918         (vreinterpretq_u16_f32): Likewise.
12919         (vreinterpretq_u16_u8): Likewise.
12920         (vreinterpretq_u16_u32): Likewise.
12921         (vreinterpretq_u16_u64): Likewise.
12922         (vreinterpretq_u16_p8): Likewise.
12923         (vreinterpretq_u16_p16): Likewise.
12924         (vreinterpret_u32_s8): Likewise.
12925         (vreinterpret_u32_s16): Likewise.
12926         (vreinterpret_u32_s32): Likewise.
12927         (vreinterpret_u32_s64): Likewise.
12928         (vreinterpret_u32_f32): Likewise.
12929         (vreinterpret_u32_u8): Likewise.
12930         (vreinterpret_u32_u16): Likewise.
12931         (vreinterpret_u32_u64): Likewise.
12932         (vreinterpret_u32_p8): Likewise.
12933         (vreinterpret_u32_p16): Likewise.
12934         (vreinterpretq_u32_s8): Likewise.
12935         (vreinterpretq_u32_s16): Likewise.
12936         (vreinterpretq_u32_s32): Likewise.
12937         (vreinterpretq_u32_s64): Likewise.
12938         (vreinterpretq_u32_f32): Likewise.
12939         (vreinterpretq_u32_u8): Likewise.
12940         (vreinterpretq_u32_u16): Likewise.
12941         (vreinterpretq_u32_u64): Likewise.
12942         (vreinterpretq_u32_p8): Likewise.
12943         (vreinterpretq_u32_p16): Likewise.
12944
12945 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
12946
12947         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
12948         Pattern extended.
12949         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
12950         (sqabs): Likewise.
12951         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
12952         (vqnegd_s64): Likewise.
12953         (vqabs_s64): Likewise.
12954         (vqabsd_s64): Likewise.
12955
12956 2014-04-22  Richard Henderson  <rth@redhat.com>
12957
12958         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
12959         computation to the top of the loop.
12960
12961 2014-04-22  Renlin  <renlin.li@arm.com>
12962             Jiong Wang  <jiong.wang@arm.com>
12963
12964         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
12965         * config/aarch64/aarch64.c (aarch64_layout_frame)
12966         (aarch64_initial_elimination_offset): Likewise.
12967
12968 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12969
12970         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
12971         Fix indentation.
12972
12973 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
12974
12975         * machmode.h (bitwise_mode_for_mode): Declare.
12976         * stor-layout.h (bitwise_type_for_mode): Likewise.
12977         * stor-layout.c (bitwise_mode_for_mode): New function.
12978         (bitwise_type_for_mode): Likewise.
12979         * builtins.c (fold_builtin_memory_op): Use it instead of
12980         int_mode_for_mode and build_nonstandard_integer_type.
12981
12982 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12983
12984         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
12985         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
12986         (*-*-solaris2*): Simplify.
12987         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
12988         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
12989         *-*-solaris2.9* handling.
12990
12991         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
12992         as bug.
12993         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
12994         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
12995         handling, simplify.
12996         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
12997         * configure: Regenerate.
12998
12999         * config/i386/sol2-9.h: Remove.
13000
13001         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
13002         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
13003         Remove Solaris 9 references.
13004
13005 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
13006
13007         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
13008         (floatuns<GPI:mode><GPF:mode>2): Remove.
13009         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
13010         and floatuns conversions.
13011         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
13012         and floatuns conversions.
13013         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
13014         (w1,w2): New mode attributes for inequal width conversions.
13015
13016 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
13017
13018         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
13019         the output asm format.
13020
13021 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
13022
13023         * config/aarch64/aarch64-simd.md
13024         (aarch64_cm<optab>di): Always split.
13025         (*aarch64_cm<optab>di): New.
13026         (aarch64_cmtstdi): Always split.
13027         (*aarch64_cmtstdi): New.
13028
13029 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
13030
13031         PR tree-optimization/60823
13032         * omp-low.c (ipa_simd_modify_function_body): Go through
13033         all SSA_NAMEs and for those refering to vector arguments
13034         which are going to be replaced adjust SSA_NAME_VAR and,
13035         if it is a default definition, change it into a non-default
13036         definition assigned at the beginning of function from new_decl.
13037         (ipa_simd_modify_stmt_ops): Rewritten.
13038         * tree-dfa.c (set_ssa_default_def): When removing default def,
13039         check for NULL loc instead of NULL *loc.
13040
13041 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13042
13043         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
13044         restrictions on core registers for DImode values in Thumb2.
13045
13046 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
13047
13048         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
13049         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
13050
13051 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
13052
13053         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
13054         (*iordi_notzesidi_di): Likewise.
13055         (*iordi_notsesidi_di): Likewise.
13056
13057 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
13058
13059         * config/arm/arm-protos.h (tune_params): New struct members.
13060         * config/arm/arm.c: Initialise tune_params per processor.
13061         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
13062         for speed, based on new tune_params.
13063
13064 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
13065
13066         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
13067         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
13068         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
13069         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
13070         * config/aarch64/arm_neon.h (vrnd_f64): Added.
13071         (vrnda_f64): Likewise.
13072         (vrndi_f64): Likewise.
13073         (vrndm_f64): Likewise.
13074         (vrndn_f64): Likewise.
13075         (vrndp_f64): Likewise.
13076         (vrndx_f64): Likewise.
13077
13078 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13079
13080         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
13081         GET_MODE_SIZE argument is enum machine_mode.
13082
13083 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
13084
13085         PR target/60910
13086         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
13087         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
13088
13089 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
13090
13091         PR middle-end/60281
13092         * asan.c (asan_emit_stack_protection): Force the base to align to
13093         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
13094         appropriate bits if STRICT_ALIGNMENT.
13095         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
13096         when asan is on.
13097         (expand_used_vars): Leave a space in the stack frame for alignment
13098         if STRICT_ALIGNMENT.
13099
13100 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
13101
13102         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
13103         than a gimple.
13104         (gimple_store_p): Likewise.
13105         (gimple_assign_load_p): Likewise.
13106         (gimple_assign_cast_p): Likewise.
13107         (gimple_clobber_p): Likewise.
13108
13109         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
13110         rather than a gimple.
13111         (gimple_assign_cast_p): Likewise.
13112
13113 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
13114
13115         PR target/60735
13116         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
13117         If mode is DDmode and TARGET_E500_DOUBLE allow move.
13118
13119         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
13120         more debug information for E500 if -mdebug=reg.
13121
13122 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
13123
13124         PR target/60909
13125         * config/i386/i386.c (ix86_expand_builtin)
13126         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
13127         register for target RTX.
13128         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
13129
13130 2014-04-18  Cong Hou  <congh@google.com>
13131
13132         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
13133         the widen-mult pattern by handling two operands with different sizes,
13134         and operands whose size is smaller than half of the result type.
13135
13136 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
13137
13138         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
13139         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
13140         (do_estimate_edge_time): Compute it.
13141         * ipa-inline.c (want_inline_small_function_p): Bypass
13142         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
13143
13144 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
13145
13146         * ipa-inline.c (spec_rem): New static variable.
13147         (dump_overall_stats): New function.
13148         (dump_inline_stats): New function.
13149
13150 2014-04-18  Richard Henderson  <rth@redhat.com>
13151
13152         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
13153         to GET_MODE_SIZE, not a reg_class_t.
13154
13155 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13156
13157         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
13158         (vsx_xxmrglw_<mode>): Likewise.
13159
13160 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
13161
13162         PR target/60876
13163         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
13164         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
13165         (rs6000_init_hard_regno_mode_ok): Likewise.
13166
13167 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
13168
13169         * ipa-inline.c (inline_small_functions): Account only non-cold
13170         functions.
13171         * doc/invoke.texi (inline-unit-growth): Update documentation.
13172
13173 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
13174
13175         * config/rs6000/rs6000.md (addti3, subti3): New.
13176
13177 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
13178
13179         PR target/60863
13180         * config/i386/i386.c (ix86_expand_clear): Remove outdated
13181         comment.  Check optimize_insn_for_size_p instead of
13182         optimize_insn_for_speed_p.
13183
13184 2014-04-17  Martin Jambor  <mjambor@suse.cz>
13185
13186         * gimple-iterator.c (gsi_start_edge): New function.
13187         * gimple-iterator.h (gsi_start_edge): Declare.
13188         * tree-sra.c (single_non_eh_succ): New function.
13189         (disqualify_ops_if_throwing_stmt): Renamed to
13190         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
13191         having one non-EH successor BB.
13192         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
13193         generate loads into replacements.
13194         (sra_modify_assign): Likewise and and also use the simple path for
13195         such statements.
13196         (sra_modify_function_body): Commit statements on edges.
13197
13198 2014-04-17  Richard Biener  <rguenther@suse.de>
13199
13200         PR middle-end/60849
13201         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
13202         comparison results and add clarifying comment.
13203
13204 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
13205
13206         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
13207         (blank_mode): Initialize it.
13208         (emit_mode_size_inline, emit_mode_nunits_inline,
13209         emit_mode_inner_inline): New functions.
13210         (emit_insn_modes_h): Call them and surround their output with
13211         #if GCC_VERSION >= 4001 ... #endif.
13212         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
13213         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
13214         mode_* arrays if the argument is __builtin_constant_p.
13215         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
13216         is enum machine_mode.
13217
13218 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
13219
13220         * passes.c (opt_pass::execute): Adjust.
13221         (pass_manager::execute_pass_mode_switching): Likewise.
13222         (early_local_passes::execute): Likewise.
13223         (execute_one_pass): Pass cfun to the pass's execute method.
13224         * tree-pass.h (opt_pass::execute): Add function * argument.
13225         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13226         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13227         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13228         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13229         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13230         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
13231         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
13232         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
13233         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
13234         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
13235         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
13236         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
13237         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
13238         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
13239         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
13240         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
13241         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
13242         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
13243         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13244         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13245         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13246         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13247         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13248         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13249         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13250         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13251         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13252         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13253         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
13254         Adjust.
13255
13256 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
13257
13258         * passes.c (opt_pass::gate): Take function * argument.
13259         (gate_all_early_local_passes): Merge into
13260         (early_local_passes::gate): this.
13261         (gate_all_early_optimizations): Merge into
13262         (all_early_optimizations::gate): this.
13263         (gate_all_optimizations): Mege into
13264         (all_optimizations::gate): this.
13265         (gate_all_optimizations_g): Merge into
13266         (all_optimizations_g::gate): this.
13267         (gate_rest_of_compilation): Mege into
13268         (rest_of_compilation::gate): this.
13269         (gate_postreload): Merge into
13270         (postreload::gate): this.
13271         (dump_one_pass): Pass cfun to the pass's gate method.
13272         (execute_ipa_summary_passes): Likewise.
13273         (execute_one_pass): Likewise.
13274         (ipa_write_summaries_2): Likewise.
13275         (ipa_write_optimization_summaries_1): Likewise.
13276         (ipa_read_summaries_1): Likewise.
13277         (ipa_read_optimization_summaries_1): Likewise.
13278         (execute_ipa_stmt_fixups): Likewise.
13279         * tree-pass.h (opt_pass::gate): Add function * argument.
13280         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
13281         combine-stack-adj.c, combine.c, compare-elim.c,
13282         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13283         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
13284         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
13285         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
13286         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
13287         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
13288         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
13289         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
13290         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13291         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
13292         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
13293         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
13294         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
13295         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
13296         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13297         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13298         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13299         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13300         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13301         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13302         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13303         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13304         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13305         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
13306         var-tracking.c, vtable-verify.c, web.c: Adjust.
13307
13308 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
13309
13310         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
13311         * configure: Regenerate.
13312
13313 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
13314
13315         * passes.c (dump_one_pass): don't check pass->has_gate.
13316         (execute_ipa_summary_passes): Likewise.
13317         (execute_one_pass): Likewise.
13318         (ipa_write_summaries_2): Likewise.
13319         (ipa_write_optimization_summaries_1): Likewise.
13320         (ipa_read_optimization_summaries_1): Likewise.
13321         (execute_ipa_stmt_fixups): Likewise.
13322         * tree-pass.h (pass_data::has_gate): Remove.
13323         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13324         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13325         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13326         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13327         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13328         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13329         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13330         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13331         gimple-low.c, gimple-ssa-isolate-paths.c,
13332         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13333         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13334         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
13335         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
13336         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
13337         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
13338         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
13339         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
13340         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
13341         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
13342         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
13343         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13344         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13345         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13346         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13347         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13348         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13349         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13350         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13351         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13352         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13353         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
13354         Adjust.
13355
13356 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
13357
13358         * pass_manager.h (pass_manager::register_dump_files_1): Remove
13359         declaration.
13360         * passes.c (pass_manager::register_dump_files_1): Merge into
13361         (pass_manager::register_dump_files): this, and remove its handling of
13362         properties since the pass always has the properties anyway.
13363         (pass_manager::pass_manager): Adjust.
13364
13365 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
13366
13367         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
13368         * passes.c (pass_manager::register_dump_files_1): Remove dead code
13369         dealing with properties.
13370         (pass_manager::register_dump_files): Adjust.
13371
13372 2014-03-20  Mark Wielaard  <mjw@redhat.com>
13373
13374         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
13375         then represent the bound as normal constant value.
13376
13377 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
13378
13379         PR target/60847
13380         Forward port from 4.8 branch
13381         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
13382
13383         * config/i386/bmiintrin.h (_blsi_u32): New.
13384         (_blsi_u64): Ditto.
13385         (_blsr_u32): Ditto.
13386         (_blsr_u64): Ditto.
13387         (_blsmsk_u32): Ditto.
13388         (_blsmsk_u64): Ditto.
13389         (_tzcnt_u32): Ditto.
13390         (_tzcnt_u64): Ditto.
13391
13392 2014-04-17  Kito Cheng  <kito@0xlab.org>
13393
13394         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
13395
13396 2014-04-17  Richard Biener  <rguenther@suse.de>
13397
13398         PR middle-end/60849
13399         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
13400         boolean results for comparisons.
13401
13402 2014-04-17  Richard Biener  <rguenther@suse.de>
13403
13404         PR tree-optimization/60836
13405         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
13406         initial PHI args to be gimple values.
13407
13408 2014-04-17  Richard Biener  <rguenther@suse.de>
13409
13410         PR tree-optimization/60841
13411         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
13412         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
13413         of stmts to SLP build.
13414         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
13415         (vect_analyze_slp): Likewise.
13416         (vect_analyze_slp_instance): Likewise.
13417         (vect_build_slp_tree): Limit overall SLP tree growth.
13418         * tree-vectorizer.h (vect_analyze_data_refs,
13419         vect_analyze_slp): Adjust prototypes.
13420
13421 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
13422
13423         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
13424         Silvermont.
13425
13426 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
13427
13428         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
13429         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
13430         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
13431         for TARGET_SLOW_PSHUFB
13432
13433 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
13434
13435         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
13436         * config/i386/i386.c (intel_cost): Ditto.
13437
13438 2014-04-17  Joey Ye  <joey.ye@arm.com>
13439
13440         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
13441
13442 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
13443
13444         * opts.c (common_handle_option): Disable -fipa-reference coorectly
13445         with -fuse-profile.
13446
13447 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
13448
13449         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
13450         (type_all_derivations_known_p): New predicate.
13451         (type_all_ctors_visible_p): New predicate.
13452         (type_possibly_instantiated_p): New predicate.
13453         (get_odr_type): Compute all_derivations_known.
13454         (dump_odr_type): Dump the flag.
13455         (maybe_record_type): Cleanup.
13456         (record_target_from_binfo): Add bases_to_consider array;
13457         record bases for types w/o instances and skip CXX destructor.
13458         (possible_polymorphic_call_targets_1): Add bases_to_consider
13459         and consider_construction parameters; check if type may have instance.
13460         (get_polymorphic_call_info): Set maybe_in_construction to true
13461         when we know nothing.
13462         (record_targets_from_bases): Skip CXX destructors; they are
13463         never called for types in construction.
13464         (possible_polymorphic_call_targets): Do not record target when
13465         type may not have instance.
13466
13467 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
13468
13469         PR ipa/60854
13470         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
13471         external aliases alive, too.
13472
13473 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
13474
13475         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
13476         definition.
13477
13478 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
13479
13480         * final.c (compute_alignments): Do not apply loop alignment to a block
13481         falling through to the exit.
13482
13483 2014-04-16  Catherine Moore  <clm@codesourcery.com>
13484
13485         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
13486         Adjust constraints for microMIPS store patterns.
13487
13488 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
13489
13490         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
13491
13492 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
13493
13494         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
13495         (append_use): Run at -O0.
13496         (append_vdef): Likewise.
13497         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
13498         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
13499
13500 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
13501
13502         PR tree-optimization/60844
13503         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
13504         (propagate_op_to_single_use, remove_visited_stmt_chain,
13505         linearize_expr, repropagate_negates, reassociate_bb): Use it
13506         instead of gsi_remove.
13507
13508 2014-04-16  Martin Jambor  <mjambor@suse.cz>
13509
13510         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
13511         ipa_transforms_to_apply.
13512         (cgraph_function_versioning): Assert that old_node has empty
13513         ipa_transforms_to_apply.
13514         * trans-mem.c (ipa_tm_create_version): Likewise.
13515         * tree-inline.c (tree_function_versioning): Do not duplicate
13516         ipa_transforms_to_apply.
13517
13518 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13519
13520         PR target/60817
13521         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
13522         x86_64-*-* cases.
13523         Pass necessary as flags on 64-bit Solaris/x86.
13524         Use lowercase relocs for x86_64-*-*.
13525         * configure: Regenerate.
13526
13527 2014-04-15  Jan Hubicka  <jh@suse.cz>
13528
13529         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
13530         (maybe_record_node, likely_target_p): Use it.
13531
13532 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13533
13534         PR target/60839
13535         Revert following patch
13536
13537         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13538
13539         PR target/60735
13540         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
13541         software floating point or no floating point registers, do not
13542         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
13543         in GPRs that occurs after we tested for GPRs that would never be
13544         true.
13545
13546         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
13547         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
13548         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
13549         specifically allow DDmode, since that does not use the SPE SIMD
13550         instructions.
13551
13552 2014-03-21  Mark Wielaard  <mjw@redhat.com>
13553
13554         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
13555         as unsigned or int depending on type and value used.
13556
13557 2014-04-15  Richard Biener  <rguenther@suse.de>
13558
13559         PR rtl-optimization/56965
13560         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
13561         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
13562         ... here.
13563         * alias.c (true_dependence_1): Do not call
13564         nonoverlapping_component_refs_p.
13565         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
13566         nonoverlapping_component_refs_p.
13567         (indirect_refs_may_alias_p): Likewise.
13568
13569 2014-04-15  Teresa Johnson  <tejohnson@google.com>
13570
13571         * cfg.c (dump_bb_info): Fix flags check.
13572         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
13573
13574 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13575
13576         PR rtl-optimization/60663
13577         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
13578         avoid 0 cost.
13579
13580 2014-04-15  Richard Biener  <rguenther@suse.de>
13581
13582         * lto-streamer.h (LTO_major_version): Bump to 4.
13583
13584 2014-04-15  Richard Biener  <rguenther@suse.de>
13585
13586         * common.opt (lto_partition_model): New enum.
13587         (flto-partition=): Merge separate options with a single with argument,
13588         add -flto-partition=one support.
13589         * flag-types.h (enum lto_partition_model): Declare.
13590         * opts.c (finish_options): Remove duplicate -flto-partition=
13591         option check.
13592         * lto-wrapper.c (run_gcc): Adjust.
13593
13594 2014-04-15  Richard Biener  <rguenther@suse.de>
13595
13596         * alias.c (ncr_compar): New function.
13597         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
13598
13599 2014-04-15  Richard Biener  <rguenther@suse.de>
13600
13601         * alias.c (record_component_aliases): Do not walk BINFOs.
13602
13603 2014-04-15  Richard Biener  <rguenther@suse.de>
13604
13605         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13606         Add struct function argument and adjust.
13607         (find_func_aliases_for_call): Likewise.
13608         (find_func_aliases): Likewise.
13609         (find_func_clobbers): Likewise.
13610         (intra_create_variable_infos): Likewise.
13611         (compute_points_to_sets): Likewise.
13612         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
13613
13614 2014-04-15  Richard Biener  <rguenther@suse.de>
13615
13616         * tree.c (iterative_hash_expr): Use enum tree_code_class
13617         to store TREE_CODE_CLASS.
13618         (tree_block): Likewise.
13619         (tree_set_block): Likewise.
13620         * tree.h (fold_build_pointer_plus_loc): Use
13621         convert_to_ptrofftype_loc.
13622
13623 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
13624
13625         PR plugins/59335
13626         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
13627         added in 4.9.
13628
13629 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
13630
13631         * cfgloop.h (struct loop): Move force_vectorize down.
13632         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
13633         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
13634         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
13635         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
13636         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
13637         * tree-core.h (enum annot_expr_kind): Add new kind values.
13638         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
13639         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
13640         kinds.
13641         * tree.def (ANNOTATE_EXPR): Tweak comment.
13642
13643 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
13644
13645         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
13646         cxa_pure_virtual).
13647
13648 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
13649
13650         * tree.h (TYPE_IDENTIFIER): Declare.
13651         * tree.c (subrange_type_for_debug_p): Use it.
13652         * godump.c (go_format_type): Likewise.
13653         * dwarf2out.c (is_cxx_auto, modified_type_die,
13654         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
13655         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
13656
13657 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
13658
13659         PR lto/60820
13660         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
13661
13662 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
13663
13664         * config/i386/i386.c (examine_argument): Return bool.  Return true if
13665         parameter should be passed in memory.
13666         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
13667         (construct_container): Update calls to examine_argument.
13668         (function_arg_advance_64): Ditto.
13669         (return_in_memory_32): Merge with ix86_return_in_memory.
13670         (return_in_memory_64): Ditto.
13671         (return_in_memory_ms_64): Ditto.
13672
13673 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
13674
13675         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
13676         * coverage.c (coverage_compute_profile_id): Handle externally visible
13677         symbols.
13678
13679 2014-04-14  Martin Jambor  <mjambor@suse.cz>
13680
13681         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
13682         DECL_DISREGARD_INLINE_LIMITS functions.
13683
13684 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
13685
13686         PR target/60827
13687         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
13688
13689 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
13690
13691         PR target/60827
13692         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
13693         optimize_insn_for_speed_p instead of
13694         optimize_function_for_speed_p.
13695
13696 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
13697
13698         * doc/invoke.texi (free): Document AArch64.
13699
13700 2014-04-14  Richard Biener  <rguenther@suse.de>
13701
13702         PR tree-optimization/60042
13703         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
13704         (insert_into_preds_of_block): Do not prevent PHI insertion
13705         for REFERENCE exprs here ...
13706         (eliminate_dom_walker::before_dom_children): ... but prevent
13707         their use here under similar conditions when applied to the
13708         IL after PRE optimizations.
13709
13710 2014-04-14  Richard Biener  <rguenther@suse.de>
13711
13712         * passes.def: Move early points-to after early SRA.
13713
13714 2014-04-14  Richard Biener  <rguenther@suse.de>
13715
13716         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
13717         check for which sign-changes we allow when forwarding
13718         a converted value into a switch.
13719
13720 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
13721
13722         * stor-layout.c (place_field): Finalize non-constant offset for the
13723         field, if any.
13724
13725 2014-04-14  Richard Biener  <rguenther@suse.de>
13726
13727         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
13728         as argument.
13729         (expand_switch_using_bit_tests_p): Likewise.
13730         (process_switch): Compute and pass on speed_p based on the
13731         switch stmt.
13732         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
13733         optimize_bb_for_speed_p.
13734
13735 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
13736
13737         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
13738         * function.h (struct function): Rename has_force_vect_loops into
13739         has_force_vectorize_loops.
13740         * lto-streamer-in.c (input_cfg): Adjust for renaming.
13741         (input_struct_function_base): Likewise.
13742         * lto-streamer-out.c (output_cfg): Likewise.
13743         (output_struct_function_base): Likewise.
13744         * omp-low.c (expand_omp_simd): Likewise.
13745         * tree-cfg.c (move_sese_region_to_fn): Likewise.
13746         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
13747         (version_loop_for_if_conversion): Likewise.
13748         (tree_if_conversion): Likewise.
13749         (main_tree_if_conversion): Likewise.
13750         (gate_tree_if_conversion): Likewise.
13751         * tree-inline.c (copy_loops): Likewise.
13752         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
13753         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
13754         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
13755         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
13756         * tree-vectorizer.c (vectorize_loops): Likewise.
13757         * tree-vectorizer.h (unlimited_cost_model): Likewise.
13758
13759 2014-04-14  Richard Biener  <rguenther@suse.de>
13760
13761         PR lto/60720
13762         * lto-streamer-out.c (wrap_refs): New function.
13763         (lto_output): Wrap symbol references in global initializes in
13764         type-preserving MEM_REFs.
13765
13766 2014-04-14  Christian Bruel  <christian.bruel@st.com>
13767
13768         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
13769
13770 2014-04-14  Christian Bruel  <christian.bruel@st.com>
13771
13772         * config/sh/sh.md (setmemqi): New expand pattern.
13773         * config/sh/sh.h (CLEAR_RATIO): Define.
13774         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
13775         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
13776
13777 2014-04-14  Richard Biener  <rguenther@suse.de>
13778
13779         PR middle-end/55022
13780         * fold-const.c (negate_expr_p): Don't negate directional rounding
13781         division.
13782         (fold_negate_expr): Likewise.
13783
13784 2014-04-14  Richard Biener  <rguenther@suse.de>
13785
13786         PR tree-optimization/59817
13787         PR tree-optimization/60453
13788         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
13789         recursion to catch all CHRECs in the scalar evolution and restrict
13790         the predicate for the remains appropriately.
13791
13792 2014-04-12  Catherine Moore  <clm@codesourcery.com>
13793
13794         * config/mips/constraints.md: Add new register constraint "kb".
13795         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
13796         (*movhi_internal): Likewise.
13797         (*movqi_internal): Likewise.
13798         * config/mips/mips.h (M16_STORE_REGS): New register class.
13799         (REG_CLASS_NAMES): Add M16_STORE_REGS.
13800         (REG_CLASS_CONTENTS): Likewise.
13801         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
13802
13803 2014-04-11  Tobias Burnus  <burnus@net-b.de>
13804
13805         PR c/60194
13806         * doc/invoke.texi (-Wformat-signedness): Document it.
13807         (Wformat=2): Mention that this enables -Wformat-signedness.
13808
13809 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
13810
13811         * common/config/epiphany/epiphany-common.c
13812         (epiphany_option_optimization_table): Enable section anchors by
13813         default at -O1 or higher.
13814         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
13815         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
13816         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
13817         carries no extra cost.
13818         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
13819         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
13820         * config/epiphany/predicates.md (memclob_operand): New predicate.
13821         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
13822         Use memclob_operand predicate and X constraint for operand 3.
13823
13824 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
13825
13826         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
13827         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
13828         its operands.
13829
13830 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
13831
13832         PR rtl-optimization/60651
13833         * mode-switching.c (optimize_mode_switching): Make sure to emit
13834         sets of a lower numbered entity before sets of a higher numbered
13835         entity to a mode of the same or lower priority.
13836         When creating a seginfo for a basic block that starts with a code
13837         label, move the insertion point past the code label.
13838         (new_seginfo): Document and enforce requirement that
13839         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
13840         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
13841         * doc/tm.texi: Regenerate.
13842
13843 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
13844
13845         PR target/60811
13846         * config/arc/arc.c (arc_save_restore): Fix assert typo.
13847
13848 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
13849
13850         * BASE-VER: Set to 4.10.0.
13851
13852 2014-04-11  Tobias Burnus  <burnus@net-b.de>
13853
13854         PR other/59055
13855         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
13856         * doc/gcc.texi (Service): Update description in the @menu
13857         * doc/invoke.texi (Option Summary): Remove misplaced and
13858         duplicated @menu.
13859
13860 2014-04-11  Steve Ellcey  <sellcey@mips.com>
13861             Jakub Jelinek  <jakub@redhat.com>
13862
13863         PR middle-end/60556
13864         * expr.c (convert_move): Use emit_store_flag_force instead of
13865         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
13866         argument to it.
13867
13868 2014-04-11  Richard Biener  <rguenther@suse.de>
13869
13870         PR middle-end/60797
13871         * varasm.c (assemble_alias): Avoid endless error reporting
13872         recursion by setting TREE_ASM_WRITTEN.
13873
13874 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13875
13876         * config/s390/s390.md: Add a splitter for NOT rtx.
13877
13878 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
13879
13880         PR rtl-optimization/60663
13881         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
13882
13883 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
13884             Jakub Jelinek  <jakub@redhat.com>
13885
13886         PR lto/60567
13887         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
13888         flag from decl_node to node.
13889
13890 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13891
13892         PR debug/60655
13893         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
13894         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
13895         ameliorating the cases where it can be.
13896
13897 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
13898
13899         Revert
13900         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
13901
13902         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13903         (loadsync_<mode>): Change mode.
13904         (load_quadpti, store_quadpti): New.
13905         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13906         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13907         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
13908
13909 2014-04-09  Cong Hou  <congh@google.com>
13910
13911         PR testsuite/60773
13912         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
13913         documentation.
13914
13915 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13916
13917         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
13918         instead of vnor to exploit possible fusion opportunity in the
13919         future.
13920         (altivec_expand_vec_perm_const_le): Likewise.
13921
13922 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
13923
13924         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13925         (loadsync_<mode>): Change mode.
13926         (load_quadpti, store_quadpti): New.
13927         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13928         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13929
13930 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
13931
13932         PR target/60763
13933         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
13934         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
13935         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
13936
13937 2014-04-08  Richard Biener  <rguenther@suse.de>
13938
13939         PR middle-end/60706
13940         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
13941         a 64bit widest int print double-int similar to on HWI64 hosts.
13942
13943 2014-04-08  Richard Biener  <rguenther@suse.de>
13944
13945         PR tree-optimization/60785
13946         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
13947         default defs properly.
13948
13949 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
13950
13951         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
13952         (Weffc++): Likewise.
13953
13954 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
13955
13956         * ipa-devirt.c (maybe_record_node): When node is not recorded,
13957         set completep to false rather than true.
13958
13959 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
13960
13961         PR target/60504
13962         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
13963         ARM_TARGET2_DWARF_FORMAT.
13964
13965 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
13966
13967         PR target/60609
13968         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
13969         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
13970         ADDR_DIFF_VEC.
13971
13972 2014-04-07  Richard Biener  <rguenther@suse.de>
13973
13974         PR tree-optimization/60766
13975         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
13976         (may_eliminate_iv): Convert cand_value_at result to desired type.
13977
13978 2014-04-07  Jason Merrill  <jason@redhat.com>
13979
13980         PR c++/60731
13981         * common.opt (-fno-gnu-unique): Add.
13982         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
13983
13984 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13985
13986         * haifa-sched.c: Fix outdated function reference and minor
13987         grammar errors in introductory comment.
13988
13989 2014-04-07  Richard Biener  <rguenther@suse.de>
13990
13991         PR middle-end/60750
13992         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
13993         for noreturn calls.
13994         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
13995
13996 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
13997
13998         PR debug/55794
13999         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
14000         size accounting for thunks.
14001         (pa_asm_output_mi_thunk): Use final_start_function() and
14002         final_end_function() to output function start and end directives.
14003
14004 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
14005
14006         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
14007         device specific ISA/ feature information. Remove short_sp and
14008         errata_skip ds.  Add avr_device_specific_features enum to have device
14009         specific info.
14010         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
14011         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
14012         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
14013         updated device specific info.
14014         * config/avr/avr-mcus.def: Merge device specific details to
14015         dev_attribute field.
14016         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
14017         errata_skip.
14018         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
14019         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
14020         assembler if RMW isa supported by current device.
14021         * config/avr/genmultilib.awk: Update as device info structure changed.
14022         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
14023
14024 2014-04-04  Cong Hou  <congh@google.com>
14025
14026         PR tree-optimization/60656
14027         * tree-vect-stmts.c (supportable_widening_operation):
14028         Fix a bug that elements in a vector with vect_used_by_reduction
14029         property are incorrectly reordered when the operation on it is not
14030         consistant with the one in reduction operation.
14031
14032 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
14033
14034         PR rtl-optimization/60155
14035         * gcse.c (record_set_data): New function.
14036         (single_set_gcse): New function.
14037         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
14038         (hoist_code): Likewise.
14039         (get_pressure_class_and_nregs): Likewise.
14040
14041 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
14042
14043         * explow.c (probe_stack_range): Emit a final optimization blockage.
14044
14045 2014-04-04  Anthony Green  <green@moxielogic.com>
14046
14047         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
14048         typos.
14049
14050 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
14051
14052         PR ipa/59626
14053         * lto-cgraph.c (input_overwrite_node): Check that partitioning
14054         flags are set only during streaming.
14055         * ipa.c (process_references, walk_polymorphic_call_targets,
14056         symtab_remove_unreachable_nodes): Drop bodies of always inline
14057         after early inlining.
14058         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
14059
14060 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
14061         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14062
14063         PR debug/60655
14064         * dwarf2out.c (const_ok_for_output_1): Reject expressions
14065         containing a NOT.
14066
14067 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14068
14069         PR bootstrap/60743
14070         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
14071         duration.
14072         (cortex_a53_fdivd): Likewise.
14073
14074 2014-04-04  Martin Jambor  <mjambor@suse.cz>
14075
14076         PR ipa/60640
14077         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
14078         Adjust all callers.
14079         * cgraph.c (clone_of_p): Also return true if thunks match.
14080         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
14081         cgraph_function_or_thunk_node and an obsolete comment.
14082         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
14083         file.
14084         (build_function_decl_skip_args): Likewise.
14085         (set_new_clone_decl_and_node_flags): New function.
14086         (duplicate_thunk_for_node): Likewise.
14087         (redirect_edge_duplicating_thunks): Likewise.
14088         (cgraph_clone_node): New parameter args_to_skip, pass it to
14089         redirect_edge_duplicating_thunks which is called instead of
14090         cgraph_redirect_edge_callee.
14091         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
14092         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
14093
14094 2014-04-04  Jeff Law  <law@redhat.com>
14095
14096         PR target/60657
14097         * config/arm/predicates.md (const_int_I_operand): New predicate.
14098         (const_int_M_operand): Similarly.
14099         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
14100         const_int_operand.
14101         (insv_t2, extv_reg, extzv_t2): Likewise.
14102         (load_multiple_with_writeback): Similarly for const_int_I_operand.
14103         (pop_multiple_with_writeback_and_return): Likewise.
14104         (vfp_pop_multiple_with_writeback): Likewise
14105
14106 2014-04-04  Richard Biener  <rguenther@suse.de>
14107
14108         PR ipa/60746
14109         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
14110         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
14111         non-GIMPLE_LABELs.
14112         * gimplify.h (gimple_add_tmp_var_fn): Declare.
14113         * gimplify.c (gimple_add_tmp_var_fn): New function.
14114         * gimple-expr.h (create_tmp_reg_fn): Declare.
14115         * gimple-expr.c (create_tmp_reg_fn): New function.
14116         * gimple-low.c (record_vars_into): Don't change cfun.
14117         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
14118         code generation without cfun.
14119
14120 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
14121
14122         PR bootstrap/60719
14123         * Makefile.in (install-driver): Fix shell scripting.
14124
14125 2014-04-03  Cong Hou  <congh@google.com>
14126
14127         PR tree-optimization/60505
14128         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
14129         threshold of number of iterations below which no vectorization
14130         will be done.
14131         * tree-vect-loop.c (new_loop_vec_info):
14132         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
14133         * tree-vect-loop.c (vect_analyze_loop_operations):
14134         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
14135         * tree-vect-loop.c (vect_transform_loop):
14136         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
14137         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
14138         of iterations of the loop and see if we should build the epilogue.
14139
14140 2014-04-03  Richard Biener  <rguenther@suse.de>
14141
14142         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
14143         (streamer_tree_cache_create): Adjust.
14144         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
14145         to allow optional nodes array.
14146         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
14147         (streamer_tree_cache_append): Likewise.
14148         (streamer_tree_cache_create): Create nodes array optionally
14149         as specified by parameter.
14150         * lto-streamer-out.c (create_output_block): Avoid maintaining
14151         the node array in the writer cache.
14152         (DFS_write_tree): Remove assertion.
14153         (produce_asm_for_decls): Free the out decl state hash table early.
14154         * lto-streamer-in.c (lto_data_in_create): Adjust for
14155         streamer_tree_cache_create prototype change.
14156
14157 2014-04-03  Richard Biener  <rguenther@suse.de>
14158
14159         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
14160         set TREE_CHAIN to NULL_TREE.
14161
14162 2014-04-03  Richard Biener  <rguenther@suse.de>
14163
14164         PR tree-optimization/60740
14165         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
14166         over all GIMPLE_COND operands.
14167
14168 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
14169
14170         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
14171         (Weffc++): Remove Scott's numbering, merge lists and reference
14172         Wnon-virtual-dtor.
14173
14174 2014-04-03  Nick Clifton  <nickc@redhat.com>
14175
14176         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
14177         properly.
14178
14179 2014-04-03  Martin Jambor  <mjambor@suse.cz>
14180
14181         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
14182         mention gcc_unreachable before failing.
14183         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
14184         removed symbols.
14185
14186 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
14187
14188         PR ipa/60659
14189         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
14190         inconsistent code and instead mark the context inconsistent.
14191         (possible_polymorphic_call_targets): For inconsistent contexts
14192         return empty complete list.
14193
14194 2014-04-02  Anthony Green  <green@moxielogic.com>
14195
14196         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
14197         (extendqisi2, extendhisi2): Define.
14198         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
14199         (WCHAR_TYPE): Change to unsigned int.
14200
14201 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14202
14203         PR tree-optimization/60733
14204         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
14205         insertion point for PHI candidates to be the end of the feeding
14206         block for the PHI argument.
14207
14208 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
14209
14210         PR rtl-optimization/60650
14211         * lra-constraints.c (process_alt_operands): Decrease reject for
14212         earlyclobber matching.
14213
14214 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14215
14216         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
14217
14218 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14219
14220         * config/spu/spu.c (pad_bb): Do not crash when the last
14221         insn is CODE_FOR_blockage.
14222
14223 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14224
14225         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
14226         lies outside the target mode.
14227
14228 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14229
14230         PR target/60735
14231         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
14232         software floating point or no floating point registers, do not
14233         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
14234         in GPRs that occurs after we tested for GPRs that would never be
14235         true.
14236
14237         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
14238         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
14239         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
14240         specifically allow DDmode, since that does not use the SPE SIMD
14241         instructions.
14242
14243 2014-04-02  Richard Biener  <rguenther@suse.de>
14244
14245         PR middle-end/60729
14246         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
14247         MODE_INTs.  Properly use negv_optab.
14248         (expand_abs): Likewise.
14249
14250 2014-04-02  Richard Biener  <rguenther@suse.de>
14251
14252         PR bootstrap/60719
14253         * Makefile.in (install-driver): Guard extra installs with special
14254         names properly.
14255
14256 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
14257
14258         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14259         Document vec_vgbbd.
14260
14261 2014-04-01  Richard Henderson  <rth@redhat.com>
14262
14263         PR target/60704
14264         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
14265         alternative enabled before register allocation.
14266
14267 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
14268
14269         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
14270         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
14271         typo.
14272         (nios2_large_got_address): Remove unneeded 'sym' parameter.
14273         (nios2_got_address): Update nios2_large_got_address call site.
14274         (nios2_delegitimize_address): New function.
14275         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
14276         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
14277         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
14278
14279 2014-04-01  Martin Husemann  <martin@duskware.de>
14280
14281         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
14282         for -mabi=32.
14283
14284 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
14285
14286         PR rtl-optimization/60604
14287         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
14288         check from register_operand.
14289         (register_operand): Redefine in terms of general_operand.
14290         (nonmemory_operand): Use register_operand for the non-constant cases.
14291
14292 2014-04-01  Richard Biener  <rguenther@suse.de>
14293
14294         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
14295
14296 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14297
14298         * doc/invoke.texi (mapp-regs): Clarify.
14299
14300 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
14301
14302         * config/i386/avx512fintrin.h (__v32hi): Define type.
14303         (__v64qi): Likewise.
14304         (_mm512_set1_epi8): Define.
14305         (_mm512_set1_epi16): Define.
14306         (_mm512_set4_epi32): Define.
14307         (_mm512_set4_epi64): Define.
14308         (_mm512_set4_pd): Define.
14309         (_mm512_set4_ps): Define.
14310         (_mm512_setr4_epi64): Define.
14311         (_mm512_setr4_epi32): Define.
14312         (_mm512_setr4_pd): Define.
14313         (_mm512_setr4_ps): Define.
14314         (_mm512_setzero_epi32): Define.
14315
14316 2014-03-31  Martin Jambor  <mjambor@suse.cz>
14317
14318         PR middle-end/60647
14319         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
14320         callsite_arguments_match_p.  Updated all callers.  Also check types of
14321         corresponding formal parameters and actual arguments.
14322         (not_all_callers_have_enough_arguments_p) Renamed to
14323         some_callers_have_mismatched_arguments_p.
14324
14325 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
14326
14327         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
14328
14329 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
14330
14331         PR target/60034
14332         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
14333         section anchor.
14334
14335 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
14336
14337         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
14338         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
14339         Split out
14340         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
14341         Use FMAMODE_NOVF512 mode iterator.
14342         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
14343         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
14344         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
14345         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
14346         Split out
14347         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
14348         Use VF_128_256 mode iterator.
14349         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
14350         Ditto.
14351
14352 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
14353
14354         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
14355         static chain if needed.
14356
14357 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
14358
14359         PR target/60697
14360         * lra-constraints.c (index_part_to_reg): New.
14361         (process_address): Use it.
14362
14363 2014-03-27  Jeff Law  <law@redhat.com>
14364             Jakub Jelinek  <jakub@redhat.com>
14365
14366         PR target/60648
14367         * expr.c (do_tablejump): Use simplify_gen_binary rather than
14368         gen_rtx_{PLUS,MULT} to build up the address expression.
14369
14370         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
14371         creating non-canonical RTL.
14372
14373 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
14374
14375         PR ipa/60243
14376         * ipa-inline.c (want_inline_small_function_p): Short circuit large
14377         functions; reorganize to make cheap checks first.
14378         (inline_small_functions): Do not estimate growth when dumping;
14379         it is expensive.
14380         * ipa-inline.h (inline_summary): Add min_size.
14381         (growth_likely_positive): New function.
14382         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
14383         (set_cond_stmt_execution_predicate): Cleanup.
14384         (estimate_edge_size_and_time): Compute min_size.
14385         (estimate_calls_size_and_time): Likewise.
14386         (estimate_node_size_and_time): Likewise.
14387         (inline_update_overall_summary): Update min_size.
14388         (do_estimate_edge_time): Likewise.
14389         (do_estimate_edge_size): Update.
14390         (do_estimate_edge_hints): Update.
14391         (growth_likely_positive): New function.
14392
14393 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
14394
14395         PR target/60693
14396         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
14397         also if addr has VOIDmode.
14398
14399 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14400
14401         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
14402         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
14403         Declare extern.
14404         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
14405         instructions as well as AdvancedSIMD loads.
14406
14407 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14408
14409         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
14410         Use crypto_aese type.
14411         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
14412         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
14413         crypto_aese, crypto_aesmc.  Move to types.md.
14414         * config/arm/types.md (crypto_aes): Split into crypto_aese,
14415         crypto_aesmc.
14416         * config/arm/iterators.md (crypto_type): Likewise.
14417
14418 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
14419
14420         * cgraph.c: Include expr.h and tree-dfa.h.
14421         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
14422         remove LHS.
14423
14424 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
14425
14426         PR target/60675
14427         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
14428         regs from checking multi-reg pseudos.
14429
14430 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14431
14432         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
14433
14434 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14435
14436         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
14437         if it would clobber the stack pointer, even temporarily.
14438
14439 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
14440
14441         * mode-switching.c: Make small adjustments to the top comment.
14442
14443 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
14444
14445         * config/rs6000/constraints.md (wD constraint): New constraint to
14446         match the constant integer to get the top DImode/DFmode out of a
14447         vector in a VSX register.
14448
14449         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
14450         match the constant integer to get the top DImode/DFmode out of a
14451         vector in a VSX register.
14452
14453         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
14454         for ISA 2.07.
14455
14456         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14457         vbpermq builtins.
14458
14459         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
14460         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
14461
14462         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
14463         Optimize vec_extract of 64-bit values, where the value being
14464         extracted is in the top word, where we can use scalar
14465         instructions.  Add direct move and store support.  Combine the big
14466         endian/little endian vector select load support into a single insn.
14467         (vsx_extract_<mode>_internal1): Likewise.
14468         (vsx_extract_<mode>_internal2): Likewise.
14469         (vsx_extract_<mode>_load): Likewise.
14470         (vsx_extract_<mode>_store): Likewise.
14471         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
14472         combined into vsx_extract_<mode>_load.
14473         (vsx_extract_<mode>_one_le): Likewise.
14474
14475         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
14476         define the top 64-bit vector element.
14477
14478         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
14479         constraint.
14480
14481         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14482         Document vec_vbpermq builtin.
14483
14484         PR target/60672
14485         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
14486         enable use of xxsldwi and xxpermdi builtin functions.
14487         (vec_xxpermdi): Likewise.
14488
14489         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14490         Document use of vec_xxsldwi and vec_xxpermdi builtins.
14491
14492 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
14493
14494         PR rtl-optimization/60650
14495         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
14496         first_p.  Use it.
14497         (find_spills_for): New.
14498         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
14499         Spill all pseudos on the second iteration.
14500
14501 2014-03-27  Marek Polacek  <polacek@redhat.com>
14502
14503         PR c/50347
14504         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
14505         types.
14506
14507 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14508
14509         * config/s390/s390.c (s390_can_use_return_insn): Check for
14510         call-saved FPRs on 31 bit.
14511
14512 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
14513
14514         PR middle-end/60682
14515         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
14516         if they need regimplification, just drop them instead of
14517         calling gimple_regimplify_operands on them.
14518
14519 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14520
14521         PR target/60580
14522         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
14523         (aarch64_frame_pointer_required): Adjust logic.
14524         (aarch64_can_eliminate): Adjust logic.
14525         (aarch64_override_options_after_change): Adjust logic.
14526
14527 2014-03-27  Dehao Chen  <dehao@google.com>
14528
14529         * ipa-inline.c (early_inliner): Update node's inline info.
14530
14531 2014-03-26  Dehao Chen  <dehao@google.com>
14532
14533         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
14534         compiler inserted conditional jumps for NAN float check.
14535
14536 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
14537
14538         * ubsan.h (ubsan_create_data): Change second argument's type
14539         to const location_t *.
14540         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
14541         _("<unknown>").
14542         (ubsan_create_data): Change second argument to const location_t *PLOC.
14543         Create Loc field whenever PLOC is non-NULL.
14544         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
14545         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
14546         callers.
14547
14548         PR other/59545
14549         * real.c (real_to_integer2): Change type of low to UHWI.
14550
14551 2014-03-26  Tobias Burnus  <burnus@net-b.de>
14552
14553         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
14554         (CILK_SELF_SPECS): New define.
14555         (driver_self_specs): Use it.
14556
14557 2014-03-26  Richard Biener  <rguenther@suse.de>
14558
14559         * tree-pretty-print.c (percent_K_format): Implement special
14560         case for LTO and its stripped down BLOCK tree.
14561
14562 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
14563
14564         PR sanitizer/60636
14565         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
14566
14567         * tree-vrp.c (simplify_internal_call_using_ranges): If only
14568         one range is range_int_cst_p, but not both, at least optimize
14569         addition/subtraction of 0 and multiplication by 0 or 1.
14570         * gimple-fold.c (gimple_fold_call): Fold
14571         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
14572         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
14573         INTEGER_CSTs, try to fold at least x * 0 and y - y.
14574
14575 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
14576
14577         PR rtl-optimization/60452
14578         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
14579         <case REG>: Return 1 for invalid offsets from the frame pointer.
14580
14581 2014-03-26  Marek Polacek  <polacek@redhat.com>
14582
14583         PR c/37428
14584         * doc/extend.texi (C Extensions): Mention variable-length arrays in
14585         a structure/union.
14586
14587 2014-03-26  Marek Polacek  <polacek@redhat.com>
14588
14589         PR c/39525
14590         * doc/extend.texi (Designated Inits): Describe what happens to omitted
14591         field members.
14592
14593 2014-03-26  Marek Polacek  <polacek@redhat.com>
14594
14595         PR other/59545
14596         * ira-color.c (update_conflict_hard_regno_costs): Perform the
14597         multiplication in unsigned type.
14598
14599 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
14600
14601         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
14602
14603 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
14604
14605         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
14606
14607 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
14608
14609         PR ipa/60315
14610         * cif-code.def (UNREACHABLE) New code.
14611         * ipa-inline.c (inline_small_functions): Skip edges to
14612         __builtlin_unreachable.
14613         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
14614         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
14615         predicate to __bulitin_unreachable.
14616         (set_cond_stmt_execution_predicate): Fix issue when
14617         invert_tree_comparison returns ERROR_MARK.
14618         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
14619         propagate to inline clones.
14620         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
14621         to unreachable.
14622         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
14623         * cgraphclones.c (cgraph_clone_node): If call destination is already
14624         ureachable, do not redirect it back.
14625         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
14626         unreachable.
14627
14628 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
14629
14630         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
14631         Do not modify inline clones.
14632
14633 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
14634
14635         * config/i386/i386.md (general_sext_operand): New mode attr.
14636         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
14637         don't generate (sign_extend (const_int)).
14638         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
14639         operands[2].  Use We constraint instead of <i> and
14640         <general_sext_operand> predicate instead of <general_operand>.
14641         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
14642         * config/i386/constraints.md (We): New constraint.
14643         * config/i386/predicates.md (x86_64_sext_operand,
14644         sext_operand): New predicates.
14645
14646 2014-03-25  Martin Jambor  <mjambor@suse.cz>
14647
14648         PR ipa/60600
14649         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
14650         inconsistent devirtualizations to __builtin_unreachable.
14651
14652 2014-03-25  Marek Polacek  <polacek@redhat.com>
14653
14654         PR c/35449
14655         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
14656
14657 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
14658
14659         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
14660         order of elements for big-endian.
14661
14662 2014-03-25  Richard Biener  <rguenther@suse.de>
14663
14664         PR middle-end/60635
14665         * gimplify-me.c (gimple_regimplify_operands): Update the
14666         re-gimplifed stmt.
14667
14668 2014-03-25  Martin Jambor  <mjambor@suse.cz>
14669
14670         PR ipa/59176
14671         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
14672         (lto_output_varpool_node): Likewise.
14673         (input_overwrite_node): Likewise.
14674         (input_varpool_node): Likewise.
14675
14676 2014-03-25  Richard Biener  <rguenther@suse.de>
14677
14678         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
14679         (run_gcc): Likewise.
14680
14681 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
14682
14683         * combine.c (simplify_compare_const): Add MODE argument.
14684         Handle mode_width 0 as very large mode_width.
14685         (try_combine, simplify_comparison): Adjust callers.
14686
14687         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
14688         type to avoid signed integer overflow.
14689         * explow.c (plus_constant): Likewise.
14690
14691 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14692
14693         * doc/generic.texi: Correct typos.
14694
14695 2014-03-24  Tobias Burnus  <burnus@net-b.de>
14696
14697         * doc/invoke.texi (-flto): Expand section about
14698         using static libraries with LTO.
14699
14700 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14701
14702         PR rtl-optimization/60501
14703         * optabs.def (addptr3_optab): New optab.
14704         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
14705         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
14706         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
14707
14708         * lra.c (emit_add3_insn): Use the addptr pattern if available.
14709
14710         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
14711
14712 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
14713
14714         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
14715         _mm512_set1_pd.
14716
14717         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
14718         (_mm256_undefined_ps): Define.
14719         (_mm256_undefined_pd): Define.
14720         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
14721         (_mm_undefined_pd): Define.
14722         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
14723         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
14724         (_mm512_undefined_ps): Define.
14725         (_mm512_undefined_pd): Define.
14726         Use _mm*_undefined_*.
14727         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
14728
14729 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
14730
14731         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
14732         (lshr_simd): DI mode added.
14733         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
14734         (aarch64_ushr_simddi): Likewise.
14735         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
14736         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
14737         (vshrd_n_u64): Likewise.
14738
14739 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14740
14741         * Makefile.in (s-macro_list): Depend on cc1.
14742
14743 2014-03-23  Teresa Johnson  <tejohnson@google.com>
14744
14745         * ipa-utils.c (ipa_print_order): Use specified dump file.
14746
14747 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
14748
14749         PR rtl-optimization/60601
14750         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
14751
14752         * gcc.c (eval_spec_function): Initialize save_growing_value.
14753
14754 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
14755
14756         PR sanitizer/60613
14757         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
14758         code == MINUS_EXPR, never swap op0 with op1.
14759
14760         * toplev.c (init_local_tick): Avoid signed integer multiplication
14761         overflow.
14762         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
14763         shift by first operand's bitsize.
14764
14765 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
14766
14767         PR target/60610
14768         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
14769         redefine to 1 or 0.
14770         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
14771         TARGET_ISA_64BIT_P(x).
14772
14773 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14774
14775         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
14776         pattern for vector nor instead of subtract from splat(-1).
14777         (altivec_expand_vec_perm_const_le): Likewise.
14778
14779 2014-03-21  Richard Henderson  <rth@twiddle.net>
14780
14781         PR target/60598
14782         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
14783         related insns after epilogue_completed.
14784
14785 2014-03-21  Martin Jambor  <mjambor@suse.cz>
14786
14787         PR ipa/59176
14788         * cgraph.h (symtab_node): New flag body_removed.
14789         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
14790         when removing bodies.
14791         * symtab.c (dump_symtab_base): Dump body_removed flag.
14792         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
14793         had their bodies removed.
14794
14795 2014-03-21  Martin Jambor  <mjambor@suse.cz>
14796
14797         PR ipa/60419
14798         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
14799         in the border.
14800
14801 2014-03-21  Richard Biener  <rguenther@suse.de>
14802
14803         PR tree-optimization/60577
14804         * tree-core.h (struct tree_base): Document nothrow_flag use
14805         in DECL_NONALIASED.
14806         * tree.h (DECL_NONALIASED): New.
14807         (may_be_aliased): Adjust.
14808         * coverage.c (build_var): Set DECL_NONALIASED.
14809
14810 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14811
14812         * expr.c (expand_expr_real_1): Remove outdated comment.
14813
14814 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
14815
14816         PR middle-end/60597
14817         * ira.c (adjust_cleared_regs): Call copy_rtx on
14818         *reg_equiv[REGNO (loc)].src_p before passing it to
14819         simplify_replace_fn_rtx.
14820
14821         PR target/60568
14822         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
14823         into CONST, put pic register as first operand of PLUS.  Use
14824         gen_const_mem for both 32-bit and 64-bit PIC got loads.
14825
14826 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14827
14828         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
14829
14830 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14831
14832         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
14833         around for store forwarding issue in the FPU on the UT699.
14834         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
14835         loads and operations if -mfix-ut699 is specified.
14836         (divtf3_hq): Tweak attribute.
14837         (sqrttf2_hq): Likewise.
14838
14839 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14840
14841         * calls.c (store_one_arg): Remove incorrect const qualification on the
14842         type of the temporary.
14843         * cfgexpand.c (expand_return): Likewise.
14844         * expr.c (expand_constructor): Likewise.
14845         (expand_expr_real_1): Likewise.
14846
14847 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14848
14849         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
14850         of parts.
14851
14852 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
14853
14854         PR target/60039
14855         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
14856
14857 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
14858
14859         * config/arm/aarch-common-protos.h
14860         (alu_cost_table): Fix spelling of "extend".
14861         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
14862
14863 2014-03-19  Richard Biener  <rguenther@suse.de>
14864
14865         PR middle-end/60553
14866         * tree-core.h (tree_type_common): Re-order pointer members
14867         to reduce recursion depth during GC walks.
14868
14869 2014-03-19  Marek Polacek  <polacek@redhat.com>
14870
14871         PR sanitizer/60569
14872         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
14873         before accessing it.
14874
14875 2014-03-19  Richard Biener  <rguenther@suse.de>
14876
14877         PR lto/59543
14878         * lto-streamer-in.c (input_function): In WPA stage do not drop
14879         debug stmts.
14880
14881 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
14882
14883         PR tree-optimization/60559
14884         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
14885         with build_zero_cst assignment.
14886
14887 2014-03-18  Kai Tietz  <ktietz@redhat.com>
14888
14889         PR rtl-optimization/56356
14890         * sdbout.c (sdbout_parms): Verify that parms'
14891         incoming argument is valid.
14892         (sdbout_reg_parms): Likewise.
14893
14894 2014-03-18  Richard Henderson  <rth@redhat.com>
14895
14896         PR target/60562
14897         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
14898         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
14899         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
14900
14901 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
14902
14903         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
14904         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
14905         Italicize plugin event names in description.  Explain that
14906         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
14907         Remind that no GCC functions should be called after PLUGIN_FINISH.
14908         Explain what pragmas with expansion are.
14909
14910 2014-03-18  Martin Liska  <mliska@suse.cz>
14911
14912         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
14913         gimple call statement is update.
14914         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
14915         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
14916
14917 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
14918
14919         PR sanitizer/60557
14920         * ubsan.c (ubsan_instrument_unreachable): Call
14921         initialize_sanitizer_builtins.
14922         (ubsan_pass): Likewise.
14923
14924         PR sanitizer/60535
14925         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
14926         varpool_finalize_decl instead of rest_of_decl_compilation.
14927
14928 2014-03-18  Richard Biener  <rguenther@suse.de>
14929
14930         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
14931         by using bitmap_and_compl instead of bitmap_and_compl_into.
14932         (df_rd_transfer_function): Likewise.
14933
14934 2014-03-18  Richard Biener  <rguenther@suse.de>
14935
14936         * doc/lto.texi (fresolution): Fix typo.
14937
14938 2014-03-18  Richard Biener  <rguenther@suse.de>
14939
14940         * doc/invoke.texi (flto): Update for changes in 4.9.
14941
14942 2014-03-18  Richard Biener  <rguenther@suse.de>
14943
14944         * doc/loop.texi: Remove section on the removed lambda framework.
14945         Update loop docs with recent changes in preserving loop structure.
14946
14947 2014-03-18  Richard Biener  <rguenther@suse.de>
14948
14949         * doc/lto.texi (-fresolution): Document.
14950
14951 2014-03-18  Richard Biener  <rguenther@suse.de>
14952
14953         * doc/contrib.texi: Adjust my name.
14954
14955 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
14956
14957         PR ipa/58721
14958         * internal-fn.c: Include diagnostic-core.h.
14959         (expand_BUILTIN_EXPECT): New function.
14960         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
14961         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
14962         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
14963         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
14964         IFN_BUILTIN_EXPECT.
14965         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
14966         Revert 3 argument __builtin_expect code.
14967         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
14968         * gimple-fold.c (gimple_fold_call): Likewise.
14969         * tree.h (fold_builtin_expect): New prototype.
14970         * builtins.c (build_builtin_expect_predicate): Add predictor
14971         argument, if non-NULL, create 3 argument __builtin_expect.
14972         (fold_builtin_expect): No longer static.  Add ARG2 argument,
14973         pass it through to build_builtin_expect_predicate.
14974         (fold_builtin_2): Adjust caller.
14975         (fold_builtin_3): Handle BUILT_IN_EXPECT.
14976         * internal-fn.def (BUILTIN_EXPECT): New.
14977
14978 2014-03-18  Tobias Burnus  <burnus@net-b.de>
14979
14980         PR ipa/58721
14981         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
14982         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
14983         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
14984
14985 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
14986
14987         PR ipa/58721
14988         * predict.c (combine_predictions_for_bb): Fix up formatting.
14989         (expr_expected_value_1, expr_expected_value): Add predictor argument,
14990         fill what it points to if non-NULL.
14991         (tree_predict_by_opcode): Adjust caller, use the predictor.
14992         * predict.def (PRED_COMPARE_AND_SWAP): Add.
14993
14994 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
14995
14996         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
14997         proper constant for the store mode.
14998
14999 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
15000
15001         * symtab.c (change_decl_assembler_name): Fix transparent alias
15002         chain construction.
15003
15004 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
15005
15006         * config/aarch64/aarch64.c: Correct the comments about the
15007         aarch64 stack layout.
15008
15009 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
15010
15011         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
15012         check for GF_OMP_FOR_KIND_FOR.
15013
15014 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
15015
15016         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
15017         ymm and zmm register names.
15018
15019 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
15020
15021         PR target/60516
15022         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
15023         note creation for the 2010-08-31 changes.
15024
15025 2014-03-17  Marek Polacek  <polacek@redhat.com>
15026
15027         PR middle-end/60534
15028         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
15029         as -fno-tree-loop-vectorize.
15030         (expand_omp_simd): Likewise.
15031
15032 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
15033
15034         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
15035         (eligible_for_call_delay): New prototype.
15036         * config/sparc/sparc.c (tls_call_delay): Rename into...
15037         (eligible_for_call_delay): ...this.  Return false if the instruction
15038         cannot be put in the delay slot of a branch.
15039         (eligible_for_restore_insn): Simplify.
15040         (eligible_for_return_delay): Return false if the instruction cannot be
15041         put in the delay slot of a branch and simplify.
15042         (eligible_for_sibcall_delay): Return false if the instruction cannot be
15043         put in the delay slot of a branch.
15044         * config/sparc/sparc.md (fix_ut699): New attribute.
15045         (tls_call_delay): Delete.
15046         (in_call_delay): Reimplement.
15047         (eligible_for_sibcall_delay): Rename into...
15048         (in_sibcall_delay): ...this.
15049         (eligible_for_return_delay): Rename into...
15050         (in_return_delay): ...this.
15051         (in_branch_delay): Reimplement.
15052         (in_uncond_branch_delay): Delete.
15053         (in_annul_branch_delay): Delete.
15054
15055 2014-03-14  Richard Henderson  <rth@redhat.com>
15056
15057         PR target/60525
15058         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
15059         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
15060         (*floathi<X87MODEF>2_i387_with_temp): Remove.
15061         (floathi splitters): Remove.
15062         (float<SWI48x>xf2): New pattern.
15063         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
15064         code that tried to handle DImode for 32-bit, but which was excluded
15065         by the pattern's condition.  Drop allocation of stack temporary.
15066         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
15067         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
15068         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
15069         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
15070         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
15071         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
15072         (*float<SWI48><MODEF>2_sse_interunit): Remove.
15073         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
15074         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
15075         (*float<SWI48x><X87MODEF>2_i387): Remove.
15076         (all float _with_temp splitters): Remove.
15077         (*float<SWI48x><MODEF>2_i387): New pattern.
15078         (*float<SWI48><MODEF>2_sse): New pattern.
15079         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
15080         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
15081
15082 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
15083             Marek Polacek  <polacek@redhat.com>
15084
15085         PR middle-end/60484
15086         * common.opt (dump_base_name_prefixed): New Variable.
15087         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
15088         if x_dump_base_name_prefixed is already set, set it at the end.
15089
15090 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
15091
15092         PR rtl-optimization/60508
15093         * lra-constraints.c (get_reload_reg): Add new parameter
15094         in_subreg_p.
15095         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
15096         Pass the new parameter values.
15097
15098 2014-03-14  Richard Biener  <rguenther@suse.de>
15099
15100         * common.opt: Revert unintented changes from r205065.
15101         * opts.c: Likewise.
15102
15103 2014-03-14  Richard Biener  <rguenther@suse.de>
15104
15105         PR middle-end/60518
15106         * cfghooks.c (split_block): Properly adjust all loops the
15107         block was a latch of.
15108
15109 2014-03-14  Martin Jambor  <mjambor@suse.cz>
15110
15111         PR lto/60461
15112         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
15113         and simplify it.
15114
15115 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
15116
15117         PR target/59396
15118         * config/avr/avr.c (avr_set_current_function): Pass function name
15119         through default_strip_name_encoding before sanity checking instead
15120         of skipping the first char of the assembler name.
15121
15122 2014-03-13  Richard Henderson  <rth@redhat.com>
15123
15124         PR debug/60438
15125         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
15126         (ix86_force_to_memory, ix86_free_from_memory): Remove.
15127         * config/i386/i386-protos.h: Likewise.
15128         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
15129         in the expander instead of a splitter.
15130         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
15131         any possibility of requiring a memory.
15132         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
15133         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
15134         (fp branch splitters): Update for ix86_split_fp_branch.
15135         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
15136         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
15137         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
15138         (*fop_<MODEF>_2_i387): Remove f/r alternative.
15139         (*fop_<MODEF>_3_i387): Likewise.
15140         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
15141         (splitters for the fop_* register patterns): Remove.
15142         (fscalexf4_i387): Rename from *fscalexf4_i387.
15143         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
15144
15145 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
15146
15147         PR tree-optimization/59779
15148         * tree-dfa.c (get_ref_base_and_extent): Use double_int
15149         type for bitsize and maxsize instead of HOST_WIDE_INT.
15150
15151 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
15152
15153         PR rtl-optimization/57320
15154         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
15155         the CFG after thread_prologue_and_epilogue_insns.
15156
15157 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
15158
15159         PR rtl-optimization/57189
15160         * lra-constraints.c (process_alt_operands): Disfavor spilling
15161         vector pseudos.
15162
15163 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
15164
15165         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
15166
15167 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
15168
15169         PR tree-optimization/59025
15170         PR middle-end/60418
15171         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
15172         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
15173
15174 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
15175
15176         PR target/60486
15177         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
15178         calls of avr_out_plus_1.
15179
15180 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
15181
15182         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
15183         BB's single pred and update the father loop's latch info later.
15184
15185 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15186
15187         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
15188         (VEC_M): Likewise.
15189         (VEC_N): Likewise.
15190         (VEC_R): Likewise.
15191         (VEC_base): Likewise.
15192         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
15193         registers, we need to swap double words in little endian mode.
15194
15195         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
15196         to be a container mode for 128-bit integer operations added in ISA
15197         2.07.  Unlike TImode and PTImode, the preferred register set is
15198         the Altivec/VMX registers for the 128-bit operations.
15199
15200         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
15201         declarations.
15202         (rs6000_split_128bit_ok_p): Likewise.
15203
15204         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
15205         macros for creating ISA 2.07 normal and overloaded builtin
15206         functions with 3 arguments.
15207         (BU_P8V_OVERLOAD_3): Likewise.
15208         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
15209         for use as overloaded functions.
15210         (VPERM_1TI_UNS): Likewise.
15211         (VSEL_1TI): Likewise.
15212         (VSEL_1TI_UNS): Likewise.
15213         (ST_INTERNAL_1ti): Likewise.
15214         (LD_INTERNAL_1ti): Likewise.
15215         (XXSEL_1TI): Likewise.
15216         (XXSEL_1TI_UNS): Likewise.
15217         (VPERM_1TI): Likewise.
15218         (VPERM_1TI_UNS): Likewise.
15219         (XXPERMDI_1TI): Likewise.
15220         (SET_1TI): Likewise.
15221         (LXVD2X_V1TI): Likewise.
15222         (STXVD2X_V1TI): Likewise.
15223         (VEC_INIT_V1TI): Likewise.
15224         (VEC_SET_V1TI): Likewise.
15225         (VEC_EXT_V1TI): Likewise.
15226         (EQV_V1TI): Likewise.
15227         (NAND_V1TI): Likewise.
15228         (ORC_V1TI): Likewise.
15229         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
15230         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
15231         overloaded builtin.
15232         (VADDUQM): Likewise.
15233         (VSUBCUQ): Likewise.
15234         (VADDEUQM): Likewise.
15235         (VADDECUQ): Likewise.
15236         (VSUBEUQM): Likewise.
15237         (VSUBECUQ): Likewise.
15238
15239         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
15240         __int128_t and __uint128_t types.
15241         (__uint128_type): Likewise.
15242         (altivec_categorize_keyword): Add support for vector __int128_t,
15243         vector __uint128_t, vector __int128, and vector unsigned __int128
15244         as a container type for TImode operations that need to be done in
15245         VSX/Altivec registers.
15246         (rs6000_macro_to_expand): Likewise.
15247         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
15248         to support 128-bit integer instructions vaddcuq, vadduqm,
15249         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
15250         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
15251
15252         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
15253         for V1TImode, and set up preferences to use VSX/Altivec registers.
15254         Setup VSX reload handlers.
15255         (rs6000_debug_reg_global): Likewise.
15256         (rs6000_init_hard_regno_mode_ok): Likewise.
15257         (rs6000_preferred_simd_mode): Likewise.
15258         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
15259         (easy_altivec_constant): Likewise.
15260         (output_vec_const_move): Likewise.
15261         (rs6000_expand_vector_set): Convert V1TImode set and extract to
15262         simple move.
15263         (rs6000_expand_vector_extract): Likewise.
15264         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
15265         addressing.
15266         (rs6000_const_vec): Add support for V1TImode.
15267         (rs6000_emit_le_vsx_load): Swap double words when loading or
15268         storing TImode/V1TImode.
15269         (rs6000_emit_le_vsx_store): Likewise.
15270         (rs6000_emit_le_vsx_move): Likewise.
15271         (rs6000_emit_move): Add support for V1TImode.
15272         (altivec_expand_ld_builtin): Likewise.
15273         (altivec_expand_st_builtin): Likewise.
15274         (altivec_expand_vec_init_builtin): Likewise.
15275         (altivec_expand_builtin): Likewise.
15276         (rs6000_init_builtins): Add support for V1TImode type.  Add
15277         support for ISA 2.07 128-bit integer builtins.  Define type names
15278         for the VSX/Altivec vector types.
15279         (altivec_init_builtins): Add support for overloaded vector
15280         functions with V1TImode type.
15281         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
15282         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
15283         external function.
15284         (rs6000_split_128bit_ok_p): Likewise.
15285         (rs6000_handle_altivec_attribute): Create V1TImode from vector
15286         __int128_t and vector __uint128_t.
15287
15288         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
15289         and mode attributes.
15290         (VSX_M): Likewise.
15291         (VSX_M2): Likewise.
15292         (VSm): Likewise.
15293         (VSs): Likewise.
15294         (VSr): Likewise.
15295         (VSv): Likewise.
15296         (VS_scalar): Likewise.
15297         (VS_double): Likewise.
15298         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
15299
15300         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
15301         we support the ISA 2.07 128-bit integer arithmetic instructions.
15302         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
15303         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
15304         and TImode types for use with the builtin functions.
15305         (V1TI_type_node): Likewise.
15306         (unsigned_V1TI_type_node): Likewise.
15307         (intTI_type_internal_node): Likewise.
15308         (uintTI_type_internal_node): Likewise.
15309
15310         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
15311         128-bit builtin functions.
15312         (UNSPEC_VADDEUQM): Likewise.
15313         (UNSPEC_VADDECUQ): Likewise.
15314         (UNSPEC_VSUBCUQ): Likewise.
15315         (UNSPEC_VSUBEUQM): Likewise.
15316         (UNSPEC_VSUBECUQ): Likewise.
15317         (VM): Add V1TImode to vector mode iterators.
15318         (VM2): Likewise.
15319         (VI_unit): Likewise.
15320         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
15321         (altivec_vaddcuq): Likewise.
15322         (altivec_vsubuqm): Likewise.
15323         (altivec_vsubcuq): Likewise.
15324         (altivec_vaddeuqm): Likewise.
15325         (altivec_vaddecuq): Likewise.
15326         (altivec_vsubeuqm): Likewise.
15327         (altivec_vsubecuq): Likewise.
15328
15329         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
15330         mode iterators.
15331         (BOOL_128): Likewise.
15332         (BOOL_REGS_OUTPUT): Likewise.
15333         (BOOL_REGS_OP1): Likewise.
15334         (BOOL_REGS_OP2): Likewise.
15335         (BOOL_REGS_UNARY): Likewise.
15336         (BOOL_REGS_AND_CR0): Likewise.
15337
15338         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
15339         128-bit integer builtin support.
15340         (vec_vadduqm): Likewise.
15341         (vec_vaddecuq): Likewise.
15342         (vec_vaddeuqm): Likewise.
15343         (vec_vsubecuq): Likewise.
15344         (vec_vsubeuqm): Likewise.
15345         (vec_vsubcuq): Likewise.
15346         (vec_vsubuqm): Likewise.
15347
15348         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
15349         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
15350         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
15351         128-bit integer add/subtract to ISA 2.07.
15352
15353 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
15354
15355         * config/arc/arc.c (arc_predicate_delay_insns):
15356         Fix third argument passed to conditionalize_nonjump.
15357
15358 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
15359
15360         * config/aarch64/aarch64-builtins.c
15361         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
15362         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
15363         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
15364         instead of __builtin_lfloor.
15365         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
15366
15367 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
15368
15369         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
15370         (tree_ssa_ifcombine_bb_1): New function.
15371         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
15372         is an empty forwarder block to then_bb or vice versa and then_bb
15373         and else_bb are effectively swapped.
15374
15375 2014-03-12  Christian Bruel  <christian.bruel@st.com>
15376
15377         PR target/60264
15378         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
15379         REG_CFA_DEF_CFA note.
15380         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
15381         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
15382
15383 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15384
15385         PR tree-optimization/60454
15386         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
15387
15388 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15389
15390         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
15391         Do not define target_cpu_default2 to generic.
15392         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
15393         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
15394         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
15395
15396 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
15397             Marc Glisse  <marc.glisse@inria.fr>
15398
15399         PR tree-optimization/60502
15400         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
15401         instead of build_low_bits_mask.
15402
15403 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
15404
15405         PR middle-end/60482
15406         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
15407         if there are multiple uses, but op doesn't live on E edge.
15408         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
15409         clobber stmts before __builtin_unreachable.
15410
15411 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
15412
15413         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
15414         hard_frame_pointer_rtx.
15415         * cse.c (cse_insn): Remove volatile check.
15416         * cselib.c (cselib_process_insn): Likewise.
15417         * dse.c (scan_insn): Likewise.
15418
15419 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
15420
15421         * config/arc/arc.c (conditionalize_nonjump): New function,
15422         broken out of ...
15423         (arc_ifcvt): ... this.
15424         (arc_predicate_delay_insns): Use it.
15425
15426 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
15427
15428         * config/arc/predicates.md (extend_operand): During/after reload,
15429         allow const_int_operand.
15430         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
15431         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
15432         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
15433         to "i".
15434         (umulsi3_highpart_i): Likewise.
15435
15436 2014-03-11  Richard Biener  <rguenther@suse.de>
15437
15438         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
15439         Add asserts to guard possible wrong-code bugs.
15440
15441 2014-03-11  Richard Biener  <rguenther@suse.de>
15442
15443         PR tree-optimization/60429
15444         PR tree-optimization/60485
15445         * tree-ssa-structalias.c (set_union_with_increment): Properly
15446         take into account all fields that overlap the shifted vars.
15447         (do_sd_constraint): Likewise.
15448         (do_ds_constraint): Likewise.
15449         (get_constraint_for_ptr_offset): Likewise.
15450
15451 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
15452
15453         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
15454         (nios2_compute_frame_layout):
15455         Add calculation of cfun->machine->fp_save_offset.
15456         (nios2_expand_prologue): Correct setting of frame pointer register
15457         in prologue.
15458         (nios2_expand_epilogue): Update recovery of stack pointer from
15459         frame pointer accordingly.
15460         (nios2_initial_elimination_offset): Update calculation of offset
15461         for eliminating to HARD_FRAME_POINTER_REGNUM.
15462
15463 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
15464
15465         PR ipa/60457
15466         * ipa.c (symtab_remove_unreachable_nodes): Don't call
15467         cgraph_get_create_node on VAR_DECLs.
15468
15469 2014-03-10  Richard Biener  <rguenther@suse.de>
15470
15471         PR middle-end/60474
15472         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
15473
15474 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
15475
15476         * config/vms/vms.opt (vms_float_format): New variable.
15477
15478 2014-03-08  Tobias Burnus  <burnus@net-b.de>
15479
15480         * doc/invoke.texi (-fcilkplus): Update implementation status.
15481
15482 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
15483             Richard Biener  <rguenther@suse.de>
15484
15485         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
15486         consistently accross all TUs.
15487         (run_gcc): Enable -fshort-double automatically at link at link-time
15488         and disallow override.
15489
15490 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
15491
15492         PR target/58271
15493         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
15494         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
15495         if they can't be used.
15496
15497 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15498
15499         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
15500         for Solaris 11/x86 ld.
15501         * configure: Regenerate.
15502
15503 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15504
15505         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
15506         (LIB_TLS_SPEC): Save as ld_tls_libs.
15507         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
15508         (HAVE_AS_IX86_TLSLDM): New test.
15509         * configure, config.in: Regenerate.
15510         * config/i386/i386.c (legitimize_tls_address): Fall back to
15511         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
15512         cannot support TLS_MODEL_LOCAL_DYNAMIC.
15513         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
15514         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
15515
15516 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
15517
15518         * common.opt (fira-loop-pressure): Mark as optimization.
15519
15520 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
15521
15522         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
15523         an OpenMP mappable type.
15524
15525 2014-03-06  Matthias Klose  <doko@ubuntu.com>
15526
15527         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
15528         MULTILIB_OSDIRNAMES is not defined.
15529
15530 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
15531             Meador Inge  <meadori@codesourcery.com>
15532
15533         PR target/58595
15534         * config/arm/arm.c (arm_tls_symbol_p): Remove.
15535         (arm_legitimize_address): Call legitimize_tls_address for any
15536         arm_tls_referenced_p expression, handle constant addend.  Call it
15537         before testing for !TARGET_ARM.
15538         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
15539
15540 2014-03-06  Richard Biener  <rguenther@suse.de>
15541
15542         PR middle-end/60445
15543         PR lto/60424
15544         PR lto/60427
15545         Revert
15546         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
15547
15548         * tree-streamer.c (record_common_node): Assert we don't record
15549         nodes with type double.
15550         (preload_common_node): Skip type double, complex double and double
15551         pointer since it is now frontend dependent due to fshort-double option.
15552
15553 2014-03-06  Richard Biener  <rguenther@suse.de>
15554
15555         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
15556         or -fno-lto is specified and the linker has full plugin support.
15557         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
15558         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
15559         * lto-wrapper.c (merge_and_complain): Merge compile-time
15560         optimization levels.
15561         (run_gcc): And pass it through to the link options.
15562
15563 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
15564
15565         PR debug/60381
15566         Revert:
15567         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
15568         PR debug/59992
15569         * cselib.c (remove_useless_values): Skip to avoid quadratic
15570         behavior if the condition moved from...
15571         (cselib_process_insn): ... here holds.
15572
15573 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
15574
15575         PR plugins/59335
15576         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
15577         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
15578
15579         PR plugins/59335
15580         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
15581         (TM_H): Add x86-tune.def.
15582
15583 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15584
15585         * config/aarch64/aarch64.c (generic_tunings):
15586         Use cortexa57_extra_costs.
15587
15588 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
15589
15590         PR lto/60404
15591         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
15592         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
15593         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
15594         cost for in_lto_p.
15595
15596 2014-03-04  Heiher  <r@hev.cc>
15597
15598         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
15599         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
15600
15601 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
15602
15603         * config/i386/predicates.md (const2356_operand): Change to ...
15604         (const2367_operand): ... this.
15605         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
15606         const2367_operand.
15607         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
15608         (*avx512pf_scatterpf<mode>sf): Ditto.
15609         (avx512pf_scatterpf<mode>df): Ditto.
15610         (*avx512pf_scatterpf<mode>df_mask): Ditto.
15611         (*avx512pf_scatterpf<mode>df): Ditto.
15612         * config/i386/i386.c (ix86_expand_builtin): Update
15613         incorrect hint operand error message.
15614
15615 2014-03-04  Richard Biener  <rguenther@suse.de>
15616
15617         * lto-section-in.c (lto_get_section_data): Fix const cast.
15618
15619 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
15620
15621         * tree-streamer.c (record_common_node): Assert we don't record
15622         nodes with type double.
15623         (preload_common_node): Skip type double, complex double and double
15624         pointer since it is now frontend dependent due to fshort-double option.
15625
15626 2014-03-04  Richard Biener  <rguenther@suse.de>
15627
15628         PR lto/60405
15629         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
15630         (lto_input_toplevel_asms): Likewise.
15631         * lto-section-in.c (lto_get_section_data): Instead do it here
15632         for every section.
15633
15634 2014-03-04  Richard Biener  <rguenther@suse.de>
15635
15636         PR tree-optimization/60382
15637         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
15638         dead PHIs a reduction.
15639
15640 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
15641
15642         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
15643         hint value.
15644         (_mm_prefetch): Move out of GCC target("sse") pragma.
15645         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
15646         GCC target("prfchw") pragma.
15647         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
15648         for locality <= 2.
15649         * config/i386/i386.c (ix86_option_override_internal): Enable
15650         -mprfchw with -mprefetchwt1.
15651
15652 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
15653
15654         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
15655         Mark as varying.
15656
15657 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
15658
15659         * opts.h (CL_PCH_IGNORE): Define.
15660         * targhooks.c (option_affects_pch_p):
15661         Return false for options that have CL_PCH_IGNORE set.
15662         * opt-functions.awk: Process PchIgnore.
15663         * doc/options.texi: Document PchIgnore.
15664
15665         * config/arc/arc.opt (misize): Add PchIgnore property.
15666
15667 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15668
15669         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
15670         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
15671         constraint on constants to permit them being loaded into
15672         GENERAL_REGS or BASE_REGS.
15673
15674 2014-03-03  Nick Clifton  <nickc@redhat.com>
15675
15676         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
15677         anti-cacnonical alternatives.
15678         (negandhi3_real): New pattern.
15679         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
15680
15681 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15682
15683         * config/avr/avr-mcus.def: Remove atxmega16x1.
15684         * config/avr/avr-tables.opt: Regenerate.
15685         * config/avr/t-multilib: Regenerate.
15686         * doc/avr-mmcu.texi: Regenerate.
15687
15688 2014-03-03  Tobias Grosser  <tobias@grosser.es>
15689             Mircea Namolaru  <mircea.namolaru@inria.fr>
15690
15691         PR tree-optimization/58028
15692         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
15693         scalar dimensions.
15694
15695 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15696
15697         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
15698         not handled by recognizers.
15699
15700 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
15701
15702         PR middle-end/60175
15703         * function.c (expand_function_end): Don't emit
15704         clobber_return_register sequence if clobber_after is a BARRIER.
15705         * cfgexpand.c (construct_exit_block): Append instructions before
15706         return_label to prev_bb.
15707
15708 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15709
15710         * config/rs6000/constraints.md: Document reserved use of "wc".
15711
15712 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
15713
15714         PR ipa/60150
15715         * ipa.c (function_and_variable_visibility): When dissolving comdat
15716         group, also set all symbols to local.
15717
15718 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
15719
15720         PR ipa/60306
15721
15722         Revert:
15723         2013-12-14  Jan Hubicka  <jh@suse.cz>
15724         PR middle-end/58477
15725         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
15726
15727 2014-03-02  Jon Beniston  <jon@beniston.com>
15728
15729         PR bootstrap/48230
15730         PR bootstrap/50927
15731         PR bootstrap/52466
15732         PR target/46898
15733         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
15734           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
15735         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
15736         (simple_return, *simple_return): New patterns
15737         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
15738         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
15739
15740 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
15741
15742         * dwarf2out.c (gen_subprogram_die): Tidy.
15743
15744 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
15745
15746         PR target/60071
15747         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
15748         (*mov_t_msb_neg_negc): ... this new insn.
15749
15750 2014-02-28  Jason Merrill  <jason@redhat.com>
15751
15752         PR c++/58678
15753         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
15754         function.
15755
15756 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
15757
15758         PR c++/60314
15759         * dwarf2out.c (decltype_auto_die): New static.
15760         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
15761         (gen_type_die_with_usage): Handle 'decltype(auto)'.
15762         (is_cxx_auto): Likewise.
15763
15764 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
15765
15766         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
15767         we are not using general regs only.
15768
15769 2014-02-28  Richard Biener  <rguenther@suse.de>
15770
15771         PR target/60280
15772         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
15773         previous fix and only allow to remove trivial pre-headers
15774         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
15775         (remove_forwarder_block): Properly update the latch of a loop.
15776
15777 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
15778
15779         PR debug/59992
15780         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
15781         (cselib_preserved_hash_table): New.
15782         (preserve_constants_and_equivs): Move preserved vals to it.
15783         (cselib_find_slot): Look it up first.
15784         (cselib_init): Initialize it.
15785         (cselib_finish): Release it.
15786         (dump_cselib_table): Dump it.
15787
15788 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
15789
15790         PR debug/59992
15791         * cselib.c (remove_useless_values): Skip to avoid quadratic
15792         behavior if the condition moved from...
15793         (cselib_process_insn): ... here holds.
15794
15795 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
15796
15797         PR debug/57232
15798         * var-tracking.c (vt_initialize): Apply the same condition to
15799         preserve the CFA base value.
15800
15801 2014-02-28  Joey Ye  <joey.ye@arm.com>
15802
15803         PR target/PR60169
15804         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
15805         if reload in progress or completed.
15806
15807 2014-02-28  Tobias Burnus  <burnus@net-b.de>
15808
15809         PR middle-end/60147
15810         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
15811         NAMELIST_DECL.
15812
15813 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15814
15815         * doc/tm.texi.in (Condition Code Status): Update documention for
15816         relative locations of cc0-setter and cc0-user.
15817
15818 2014-02-27  Jeff Law  <law@redhat.com>
15819
15820         PR rtl-optimization/52714
15821         * combine.c (try_combine): When splitting an unrecognized PARALLEL
15822         into two independent simple sets, if I3 is a jump, ensure the
15823         pattern we place into I3 is a (set (pc) ...).
15824
15825 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
15826             Jeff Law  <law@redhat.com>
15827
15828         PR rtl-optimization/49847
15829         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
15830         are in different blocks.
15831         * doc/tm.texi (Condition Code Status): Update documention for
15832         relative locations of cc0-setter and cc0-user.
15833
15834 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
15835
15836         PR target/59222
15837         * lra.c (lra_emit_add): Check SUBREG too.
15838
15839 2014-02-27  Andreas Schwab  <schwab@suse.de>
15840
15841         * config/m68k/m68k.c (m68k_option_override): Disable
15842         -flive-range-shrinkage for classic m68k.
15843         (m68k_override_options_after_change): Likewise.
15844
15845 2014-02-27  Marek Polacek  <polacek@redhat.com>
15846
15847         PR middle-end/59223
15848         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
15849         -Wmaybe-uninitialized.
15850
15851 2014-02-27  Alan Modra  <amodra@gmail.com>
15852
15853         PR target/57936
15854         * reload1.c (emit_input_reload_insns): When reload_override_in,
15855         set old to rl->in_reg when rl->in_reg is a subreg.
15856
15857 2014-02-26  Richard Biener  <rguenther@suse.de>
15858
15859         PR bootstrap/60343
15860         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
15861
15862 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
15863
15864         * common/config/i386/predicates.md (const1256_operand): Remove.
15865         (const2356_operand): New.
15866         (const_1_to_2_operand): Remove.
15867         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
15868         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
15869         (*avx512pf_gatherpf<mode>sf): Ditto.
15870         (avx512pf_gatherpf<mode>df): Ditto.
15871         (*avx512pf_gatherpf<mode>df_mask): Ditto.
15872         (*avx512pf_gatherpf<mode>df): Ditto.
15873         (avx512pf_scatterpf<mode>sf): Ditto.
15874         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
15875         (*avx512pf_scatterpf<mode>sf): Ditto.
15876         (avx512pf_scatterpf<mode>df): Ditto.
15877         (*avx512pf_scatterpf<mode>df_mask): Ditto.
15878         (*avx512pf_scatterpf<mode>df): Ditto.
15879         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
15880
15881 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
15882
15883         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
15884         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
15885         (_mm512_mask_testn_epi64_mask): Move to ...
15886         * config/i386/avx512cdintrin.h: Here.
15887         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
15888         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
15889         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
15890         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
15891         TARGET_AVX512F from TARGET_AVX512CD.
15892
15893 2014-02-26  Richard Biener  <rguenther@suse.de>
15894
15895         PR ipa/60327
15896         * ipa.c (walk_polymorphic_call_targets): Properly guard
15897         call to inline_update_overall_summary.
15898
15899 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
15900
15901         PR target/60280
15902         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
15903         and latches only if requested.  Fix latch if it is removed.
15904         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
15905         LOOPS_HAVE_PREHEADERS.
15906
15907 2014-02-25  Andrew Pinski  <apinski@cavium.com>
15908
15909         * builtins.c (expand_builtin_thread_pointer): Create a new target
15910         when the target is NULL.
15911
15912 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
15913
15914         PR rtl-optimization/60317
15915         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
15916         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
15917         * lra-assigns.c: Include params.h.
15918         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
15919         other reload pseudos considerations.
15920
15921 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15922
15923         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
15924         to use canonical form for nor<mode>3.
15925
15926 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15927
15928         PR target/55426
15929         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
15930         conversions.
15931
15932 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
15933
15934         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
15935         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
15936         (ix86_handle_option): Handle OPT_mprefetchwt1.
15937         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
15938         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15939         PREFETCHWT1 CPUID.
15940         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15941         OPTION_MASK_ISA_PREFETCHWT1.
15942         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
15943         (PTA_PREFETCHWT1): New.
15944         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
15945         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
15946         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
15947         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
15948         (*prefetch_avx512pf_<mode>_: Change into ...
15949         (*prefetch_prefetchwt1_<mode>: This.
15950         * config/i386/i386.opt (mprefetchwt1): New.
15951         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
15952         (_mm_prefetch): Handle intent to write.
15953         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
15954
15955 2014-02-25  Richard Biener  <rguenther@suse.de>
15956
15957         PR middle-end/60291
15958         * emit-rtl.c (mem_attrs_htab): Remove.
15959         (mem_attrs_htab_hash): Likewise.
15960         (mem_attrs_htab_eq): Likewise.
15961         (set_mem_attrs): Always allocate new mem-attrs when something changed.
15962         (init_emit_once): Do not allocate mem_attrs_htab.
15963
15964 2014-02-25  Richard Biener  <rguenther@suse.de>
15965
15966         PR lto/60319
15967         * lto-opts.c (lto_write_options): Output non-explicit conservative
15968         -fwrapv, -fno-trapv and -fno-strict-overflow.
15969         * lto-wrapper.c (merge_and_complain): Handle merging those options.
15970         (run_gcc): And pass them through.
15971
15972 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
15973
15974         * sel-sched.c (calculate_new_fences): New parameter ptime.
15975         Calculate it as a maximum over all fence cycles.
15976         (sel_sched_region_2): Adjust the call to calculate_new_fences.
15977         Print the final schedule timing when sched_verbose.
15978
15979 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
15980
15981         PR rtl-optimization/60292
15982         * sel-sched.c (fill_vec_av_set): Do not reset target availability
15983         bit fot the fence instruction.
15984
15985 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
15986
15987         * calls.h: Fix typo in comment.
15988
15989 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
15990
15991         * config/pa/pa.c (pa_output_move_double): Don't valididate when
15992         adjusting offsetable addresses.
15993
15994 2014-02-24  Guozhi Wei  <carrot@google.com>
15995
15996         * sparseset.h (sparseset_pop): Fix the wrong index.
15997
15998 2014-02-24  Walter Lee  <walt@tilera.com>
15999
16000         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
16001         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
16002         triplet.
16003         * common/config/tilegx/tilegx-common.c
16004         (TARGET_DEFAULT_TARGET_FLAGS): Define.
16005         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
16006         (LINK_SPEC): Ditto.
16007         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
16008         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
16009         (tilegx_gimplify_va_arg_expr): Handle big endian.
16010         (tilegx_expand_unaligned_load): Ditto.
16011         (tilegx_expand_unaligned_store): Ditto.
16012         (TARGET_RETURN_IN_MSB): New.
16013         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
16014         (TARGET_ENDIAN_DEFAULT): New.
16015         (TARGET_BIG_ENDIAN): Handle big endian.
16016         (BYTES_BIG_ENDIAN): Ditto.
16017         (WORDS_BIG_ENDIAN): Ditto.
16018         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
16019         (ENDIAN_SPEC): New.
16020         (EXTRA_SPECS): New.
16021         * config/tilegx/tilegx.md (extv): Handle big endian.
16022         (extzv): Ditto.
16023         (insn_st<n>): Ditto.
16024         (insn_st<n>_add<bitsuffix>): Ditto.
16025         (insn_stnt<n>): Ditto.
16026         (insn_stnt<n>_add<bitsuffix>):Ditto.
16027         (vec_interleave_highv8qi): Handle big endian.
16028         (vec_interleave_highv8qi_be): New.
16029         (vec_interleave_highv8qi_le): New.
16030         (insn_v1int_h): Handle big endian.
16031         (vec_interleave_lowv8qi): Handle big endian.
16032         (vec_interleave_lowv8qi_be): New.
16033         (vec_interleave_lowv8qi_le): New.
16034         (insn_v1int_l): Handle big endian.
16035         (vec_interleave_highv4hi): Handle big endian.
16036         (vec_interleave_highv4hi_be): New.
16037         (vec_interleave_highv4hi_le): New.
16038         (insn_v2int_h): Handle big endian.
16039         (vec_interleave_lowv4hi): Handle big endian.
16040         (vec_interleave_lowv4hi_be): New.
16041         (vec_interleave_lowv4hi_le): New.
16042         (insn_v2int_l): Handle big endian.
16043         (vec_interleave_highv2si): Handle big endian.
16044         (vec_interleave_highv2si_be): New.
16045         (vec_interleave_highv2si_le): New.
16046         (insn_v4int_h): Handle big endian.
16047         (vec_interleave_lowv2si): Handle big endian.
16048         (vec_interleave_lowv2si_be): New.
16049         (vec_interleave_lowv2si_le): New.
16050         (insn_v4int_l): Handle big endian.
16051         * config/tilegx/tilegx.opt (mbig-endian): New option.
16052         (mlittle-endian): New option.
16053         * doc/install.texi: Document tilegxbe-linux.
16054         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
16055
16056 2014-02-24  Martin Jambor  <mjambor@suse.cz>
16057
16058         PR ipa/60266
16059         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
16060         there are no parameter descriptors.
16061
16062 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
16063
16064         PR rtl-optimization/60268
16065         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
16066         initialization to ...
16067         (sched_rgn_init): ... here.
16068         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
16069
16070 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
16071
16072         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
16073         names.
16074
16075 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
16076
16077         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
16078         definition.
16079
16080 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
16081
16082         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
16083         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
16084
16085 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
16086
16087         * config/microblaze/predicates.md: Add cmp_op predicate.
16088         * config/microblaze/microblaze.md: Add branch_compare instruction
16089         which uses cmp_op predicate and emits cmp insn before branch.
16090         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
16091         to microblaze_expand_conditional_branch and consolidate logic.
16092         (microblaze_expand_conditional_branch): emit branch_compare
16093         insn instead of handling cmp op separate from branch insn.
16094
16095 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16096
16097         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
16098         to permit subregs.
16099
16100 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16101
16102         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
16103         define_insn with define_expand and new define_insn
16104         *altivec_lve<VI_char>x_internal.
16105         (altivec_stve<VI_char>x): Replace define_insn with define_expand
16106         and new define_insn *altivec_stve<VI_char>x_internal.
16107         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
16108         prototype.
16109         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
16110         lve*x built-ins.
16111         (altivec_expand_stvex_be): New function.
16112
16113 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
16114
16115         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
16116         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
16117         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
16118         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
16119
16120 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
16121
16122         PR target/60298
16123         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
16124         instead of emit_move_insn.
16125
16126 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16127
16128         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
16129         vspltw with vsldoi.
16130         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
16131         gen_altivec_vsumsws.
16132
16133 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16134
16135         * config/rs6000/altivec.md (altivec_lvxl): Rename as
16136         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
16137         (altivec_lvxl_<mode>): New define_expand incorporating
16138         -maltivec=be semantics where needed.
16139         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
16140         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
16141         semantics where needed.
16142         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
16143         (altivec_stvx_<mode>): New define_expand incorporating
16144         -maltivec=be semantics where needed.
16145         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
16146         VM2 iterator instead of V4SI.
16147         (altivec_stvxl_<mode>): New define_expand incorporating
16148         -maltivec=be semantics where needed.
16149         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
16150         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
16151         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
16152         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
16153         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
16154         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
16155         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
16156         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
16157         ALTIVEC_BUILTIN_STVXL.
16158         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
16159         (altivec_expand_stvx_be): Likewise.
16160         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
16161         (altivec_expand_lvx_be): Likewise.
16162         (altivec_expand_stvx_be): Likewise.
16163         (altivec_expand_builtin): Add cases for
16164         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
16165         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
16166         (altivec_init_builtins): Add definitions for
16167         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
16168         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
16169
16170 2014-02-21  Catherine Moore  <clm@codesourcery.com>
16171
16172         * doc/invoke.texi (mvirt, mno-virt): Document.
16173         * config/mips/mips.opt (mvirt): New option.
16174         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
16175
16176 2014-02-21  Richard Biener  <rguenther@suse.de>
16177
16178         PR tree-optimization/60276
16179         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
16180         (STMT_VINFO_MIN_NEG_DIST): New macro.
16181         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
16182         STMT_VINFO_MIN_NEG_DIST.
16183         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
16184         made for negative dependence distances still hold.
16185
16186 2014-02-21  Richard Biener  <rguenther@suse.de>
16187
16188         PR middle-end/60291
16189         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
16190         DECL_INITIAL for globals not in the current function context.
16191
16192 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
16193
16194         PR tree-optimization/56490
16195         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
16196         * tree-ssa-uninit.c: Include params.h.
16197         (compute_control_dep_chain): Add num_calls argument, return false
16198         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
16199         num_calls to recursive call.
16200         (find_predicates): Change dep_chain into normal array,
16201         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
16202         variable and adjust compute_control_dep_chain caller.
16203         (find_def_preds): Likewise.
16204
16205 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
16206
16207         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
16208         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
16209
16210 2014-02-21  Nick Clifton  <nickc@redhat.com>
16211
16212         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
16213         (pushhi1): Likewise.
16214         (popqi1): Add mode to pre_dec.
16215         (pophi1): Likewise.
16216
16217 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
16218
16219         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
16220         mode for mask of V8SFmode permutation.
16221
16222 2014-02-20  Richard Henderson  <rth@redhat.com>
16223
16224         PR c++/60272
16225         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
16226         a new pseudo for OLDVAL.
16227
16228 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
16229
16230         PR target/57896
16231         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
16232         gen_reg_rtx if d->testing_p.
16233         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
16234         if d->testing_p and we will certainly return true.
16235         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
16236         if d->testing_p.
16237
16238 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
16239
16240         * emit-rtl.c (gen_reg_rtx): Assert that
16241         crtl->emit.regno_pointer_align_length is non-zero.
16242
16243 2014-02-20  Richard Henderson  <rth@redhat.com>
16244
16245         PR c++/60272
16246         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
16247         on failure the store back into EXPECT.
16248
16249 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
16250             Sandra Loosemore  <sandra@codesourcery.com>
16251
16252         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
16253         * config/nios2/nios2.c (nios2_function_profiler): Add
16254         -fPIC (flag_pic == 2) support.
16255         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
16256         (nios2_large_offset_p): New function.
16257         (nios2_unspec_reloc_p): Move up position, update to use
16258         nios2_large_offset_p.
16259         (nios2_unspec_address): Remove function.
16260         (nios2_unspec_offset): New function.
16261         (nios2_large_got_address): New function.
16262         (nios2_got_address): Add large offset support.
16263         (nios2_legitimize_tls_address): Update usage of removed and new
16264         functions.
16265         (nios2_symbol_binds_local_p): New function.
16266         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
16267         (nios2_legitimize_address): Update to use nios2_large_offset_p.
16268         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
16269         (nios2_print_operand): Merge H/L processing, add hiadj/lo
16270         processing for (const (unspec ...)).
16271         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
16272
16273 2014-02-20  Richard Biener  <rguenther@suse.de>
16274
16275         * tree-cfg.c (replace_uses_by): Mark altered BBs before
16276         doing the substitution.
16277         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
16278
16279 2014-02-20  Martin Jambor  <mjambor@suse.cz>
16280
16281         PR ipa/55260
16282         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
16283         info when checking whether lattices are bottom.
16284
16285 2014-02-20  Richard Biener  <rguenther@suse.de>
16286
16287         PR middle-end/60221
16288         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
16289         regions at -O0.
16290
16291 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
16292
16293         PR ipa/58555
16294         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
16295         parameter specifying the scaling.
16296         (inline_call): Update.
16297         (want_inline_recursively): Guard division by zero.
16298         (recursive_inlining): Update.
16299         * ipa-inline.h (clone_inlined_nodes): Update.
16300
16301 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
16302
16303         PR target/60204
16304         * config/i386/i386.c (classify_argument): Pass structures of size
16305         64 bytes or less in register.
16306
16307 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
16308             Kirill Yukhin  <kirill.yukhin@intel.com>
16309
16310         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
16311         (_mm_rcp28_round_ss): Ditto.
16312         (_mm_rsqrt28_round_sd): Ditto.
16313         (_mm_rsqrt28_round_ss): Ditto.
16314         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
16315         (_mm_rcp14_round_ss): Ditto.
16316         (_mm_rsqrt14_round_sd): Ditto.
16317         (_mm_rsqrt14_round_ss): Ditto.
16318         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
16319         the first input operand, get rid of match_dup.
16320         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
16321         attribute to sse.
16322         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
16323         Ditto.
16324         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
16325         operand as the first input operand, set type attribute.
16326         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
16327         Set type attribute.
16328         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
16329         operand as the first input operand, set type attribute.
16330
16331 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16332
16333         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
16334         bit of zero.
16335
16336 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
16337
16338         PR target/60207
16339         * config/i386/i386.c (construct_container): Remove TFmode check
16340         for X86_64_INTEGER_CLASS.
16341
16342 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
16343
16344         PR target/59794
16345         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
16346         only when -Wpsabi is enabled.
16347
16348 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
16349
16350          PR target/59799
16351         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
16352         passing arrays in registers are the same as for structs, so remove the
16353         special case for them.
16354
16355 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
16356
16357         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
16358         destination type, extract only the valid bits if the source type is not
16359         integral and has a different mode.
16360
16361 2014-02-19  Richard Biener  <rguenther@suse.de>
16362
16363         PR ipa/60243
16364         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
16365         for all calls.
16366
16367 2014-02-19  Richard Biener  <rguenther@suse.de>
16368
16369         PR ipa/60243
16370         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
16371         (ipa_modify_call_arguments): Emit an argument load explicitely and
16372         preserve virtual SSA form there and for the replacement call.
16373         Do not update SSA form nor free dominance info.
16374
16375 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
16376
16377         * ipa.c (function_and_variable_visibility): Also clear WEAK
16378         flag when disolving COMDAT_GROUP.
16379
16380 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
16381
16382         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
16383         * ipa-prop.c (ipa_set_jf_known_type): Return early when
16384         not devirtualizing.
16385         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
16386         do more sanity checks.
16387         (detect_type_change): Return true when giving up early.
16388         (compute_complex_assign_jump_func): Fix type parameter of
16389         ipa_set_ancestor_jf.
16390         (compute_complex_ancestor_jump_func): Likewise.
16391         (update_jump_functions_after_inlining): Fix updating of
16392         ancestor function.
16393         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
16394
16395 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
16396
16397         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
16398         inline clones when edge disappears.
16399
16400 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
16401
16402         PR target/60203
16403         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
16404         Split 64-bit moves into 2 patterns.  Do not allow the use of
16405         direct move for TDmode in little endian, since the decimal value
16406         has little endian bytes within a word, but the 64-bit pieces are
16407         ordered in a big endian fashion, and normal subreg's of TDmode are
16408         not allowed.
16409         (mov<mode>_64bit_dm): Likewise.
16410         (movtd_64bit_nodm): Likewise.
16411
16412 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
16413
16414         PR tree-optimization/60174
16415         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
16416         statement of an SSA_NAME that occurs in an abnormal PHI node.
16417
16418 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
16419
16420         PR sanitizer/60142
16421         * final.c (SEEN_BB): Remove.
16422         (SEEN_NOTE, SEEN_EMITTED): Renumber.
16423         (final_scan_insn): Don't force_source_line on second
16424         NOTE_INSN_BASIC_BLOCK.
16425
16426 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
16427
16428         PR target/60205
16429         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
16430         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
16431         (type_natural_mode): Warn ABI change when %zmm register is not
16432         available for AVX512F vector value passing.
16433
16434 2014-02-18  Kai Tietz  <ktietz@redhat.com>
16435
16436         PR target/60193
16437         * config/i386/i386.c (ix86_expand_prologue): Use value in
16438         rax register as displacement when restoring %r10 or %rax.
16439         Fix wrong offset when restoring both registers.
16440
16441 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
16442
16443         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
16444         assertion with conditional return.
16445
16446 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
16447             Uros Bizjak  <ubizjak@gmail.com>
16448
16449         PR driver/60233
16450         * config/i386/driver-i386.c (host_detect_local_cpu): If
16451         YMM state is not saved by the OS, also clear has_f16c.  Move
16452         CPUID 0x80000001 handling before YMM state saving checking.
16453
16454 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
16455
16456         PR rtl-optimization/58960
16457         * haifa-sched.c (alloc_global_sched_pressure_data): New,
16458         factored out from ...
16459         (sched_init): ... here.
16460         (free_global_sched_pressure_data): New, factored out from ...
16461         (sched_finish): ... here.
16462         * sched-int.h (free_global_sched_pressure_data): Declare.
16463         * sched-rgn.c (nr_regions_initial): New static global.
16464         (haifa_find_rgns): Initialize it.
16465         (schedule_region): Disable sched-pressure for the newly
16466         generated regions.
16467
16468 2014-02-17  Richard Biener  <rguenther@suse.de>
16469
16470         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
16471         release SSA defs of pattern stmts.
16472
16473 2014-02-17  Richard Biener  <rguenther@suse.de>
16474
16475         * tree-inline.c (expand_call_inline): Release the virtual
16476         operand defined by the call we are about to inline.
16477
16478 2014-02-17  Richard Biener  <rguenther@suse.de>
16479
16480         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
16481
16482 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
16483             Ilya Tocar  <ilya.tocar@intel.com>
16484
16485         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
16486         arguments order in builtin.
16487         (_mm512_permutexvar_epi64): Ditto.
16488         (_mm512_mask_permutexvar_epi64): Ditto
16489         (_mm512_maskz_permutexvar_epi32): Ditto
16490         (_mm512_permutexvar_epi32): Ditto
16491         (_mm512_mask_permutexvar_epi32): Ditto
16492
16493 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16494
16495         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
16496         (p8_vmrgow): Likewise.
16497
16498 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16499
16500         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
16501         endian targets.
16502
16503 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
16504
16505         PR target/60203
16506         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
16507         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
16508         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
16509         using direct move instructions on ISA 2.07.  Also adjust
16510         instruction length for 64-bit.
16511         (mov<mode>_64bit, TFmode/TDmode): Likewise.
16512         (mov<mode>_32bit, TFmode/TDmode): Likewise.
16513
16514 2014-02-15  Alan Modra  <amodra@gmail.com>
16515
16516         PR target/58675
16517         PR target/57935
16518         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
16519         find_replacement on parts of insn rtl that might be reloaded.
16520
16521 2014-02-15  Richard Biener  <rguenther@suse.de>
16522
16523         PR tree-optimization/60183
16524         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
16525         (tree_ssa_phiprop): Calculate and free post-dominators.
16526
16527 2014-02-14  Jeff Law  <law@redhat.com>
16528
16529         PR rtl-optimization/60131
16530         * ree.c (get_extended_src_reg): New function.
16531         (combine_reaching_defs): Use it rather than assuming location of REG.
16532         (find_and_remove_re): Verify first operand of extension is
16533         a REG before adding the insns to the copy list.
16534
16535 2014-02-14  Roland McGrath  <mcgrathr@google.com>
16536
16537         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
16538         * configure: Regenerated.
16539         * config.in: Regenerated.
16540         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
16541         instead of ASM_SHORT.
16542
16543 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
16544             Richard Earnshaw  <rearnsha@arm.com>
16545
16546         PR rtl-optimization/59535
16547         * lra-constraints.c (process_alt_operands): Encourage alternative
16548         when unassigned pseudo class is superset of the alternative class.
16549         (inherit_reload_reg): Don't inherit when optimizing for code size.
16550         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
16551         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
16552         modes not less than 4 for Thumb1.
16553
16554 2014-02-14  Kyle McMartin  <kyle@redhat.com>
16555
16556         PR pch/60010
16557         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
16558
16559 2014-02-14  Richard Biener  <rguenther@suse.de>
16560
16561         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
16562         (get_frame_arg): Drop the assert with langhook types_compatible_p.
16563         Do not strip INDIRECT_REFs.
16564
16565 2014-02-14  Richard Biener  <rguenther@suse.de>
16566
16567         PR lto/60179
16568         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
16569         DECL_FUNCTION_SPECIFIC_TARGET.
16570         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
16571         * tree-streamer-out.c (pack_ts_target_option): Remove.
16572         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
16573         (write_ts_function_decl_tree_pointers): Do not stream
16574         DECL_FUNCTION_SPECIFIC_TARGET.
16575         * tree-streamer-in.c (unpack_ts_target_option): Remove.
16576         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
16577         (lto_input_ts_function_decl_tree_pointers): Do not stream
16578         DECL_FUNCTION_SPECIFIC_TARGET.
16579
16580 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
16581
16582         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
16583         (get_initial_def_for_induction, vectorizable_induction): Ignore
16584         debug stmts when looking for exit_phi.
16585         (vectorizable_live_operation): Fix up condition.
16586
16587 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
16588
16589         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
16590         nreverse() because it changes the content of original tree list.
16591
16592 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
16593
16594         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
16595         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
16596
16597 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
16598
16599         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
16600         GNU coding standards.
16601
16602 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
16603
16604         PR debug/60152
16605         * dwarf2out.c (gen_subprogram_die): Don't call
16606         add_calling_convention_attribute if subr_die is old_die.
16607
16608 2014-02-13  Sharad Singhai  <singhai@google.com>
16609
16610         * doc/optinfo.texi: Fix order of nodes.
16611
16612 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
16613
16614         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
16615         operands[2], not operands[3].
16616
16617 2014-02-13  Richard Biener  <rguenther@suse.de>
16618
16619         PR bootstrap/59878
16620         * doc/install.texi (ISL): Update recommended version to 0.12.2,
16621         mention the possibility of an in-tree build.
16622         (CLooG): Update recommended version to 0.18.1, mention the
16623         possibility of an in-tree build and clarify that the ISL
16624         bundled with CLooG does not work.
16625
16626 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
16627
16628         PR target/43546
16629         * expr.c (compress_float_constant): If x is a hard register,
16630         extend into a pseudo and then move to x.
16631
16632 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16633
16634         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
16635         caused by bad second argument to warning_at() with -mhotpatch and
16636         nested functions (e.g. with gfortran).
16637
16638 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
16639
16640         * opts.c (option_name): Remove "enabled by default" rider.
16641
16642 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
16643
16644         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
16645
16646 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
16647             Uros Bizjak  <ubizjak@gmail.com>
16648
16649         PR target/60151
16650         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
16651         * configure: Regenerated.
16652
16653 2014-02-12  Richard Biener  <rguenther@suse.de>
16654
16655         * vec.c (vec_prefix::calculate_allocation): Move as
16656         inline variant to vec.h.
16657         (vec_prefix::calculate_allocation_1): New out-of-line version.
16658         * vec.h (vec_prefix::calculate_allocation_1): Declare.
16659         (vec_prefix::m_has_auto_buf): Rename to ...
16660         (vec_prefix::m_using_auto_storage): ... this.
16661         (vec_prefix::calculate_allocation): Inline the easy cases
16662         and dispatch to calculate_allocation_1 which doesn't need the
16663         prefix address.
16664         (va_heap::reserve): Use gcc_checking_assert.
16665         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
16666         m_using_auto_storage.
16667         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
16668         member and adjust.
16669         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
16670         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
16671         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
16672
16673 2014-02-12  Richard Biener  <rguenther@suse.de>
16674
16675         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
16676         when we found a dependence.
16677
16678 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
16679
16680         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
16681         common code...
16682         (maybe_fold_stmt): ... into this new function.
16683         * omp-low.c (lower_omp): Update comment.
16684
16685         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
16686         last use.
16687
16688         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
16689         dereference.
16690
16691 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
16692
16693         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
16694         identifiers in comments.
16695         (cortexa53_extra_costs): Likewise.
16696         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
16697         (cortexa7_extra_costs): Likewise.
16698         (cortexa12_extra_costs): Likewise.
16699         (cortexa15_extra_costs): Likewise.
16700         (v7m_extra_costs): Likewise.
16701
16702 2014-02-12  Richard Biener  <rguenther@suse.de>
16703
16704         PR middle-end/60092
16705         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
16706         of posix_memalign being successful.
16707         (lower_stmt): Restrict lowering of posix_memalign to when
16708         -ftree-bit-ccp is enabled.
16709
16710 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16711
16712         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
16713         arg_loc.
16714         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16715
16716 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
16717
16718         PR rtl-optimization/60116
16719         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
16720         other_insn once the combination has been validated.
16721
16722 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
16723
16724         PR lto/59468
16725         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
16726         and wrapper.
16727         * ipa-devirt.c: Include demangle.h
16728         (odr_violation_reported): New static variable.
16729         (add_type_duplicate): Update odr_violations.
16730         (maybe_record_node): Add completep parameter; update it.
16731         (record_target_from_binfo): Add COMPLETEP parameter;
16732         update it as needed.
16733         (possible_polymorphic_call_targets_1): Likewise.
16734         (struct polymorphic_call_target_d): Add nonconstruction_targets;
16735         rename FINAL to COMPLETE.
16736         (record_targets_from_bases): Sanity check we found the binfo;
16737         fix COMPLETEP updating.
16738         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
16739         parameter, fix computing of COMPLETEP.
16740         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
16741         at LTO time do demangling.
16742         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
16743         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
16744         parameter.
16745         (gimple_get_virt_method_for_binfo): Likewise.
16746         * gimple-fold.h (gimple_get_virt_method_for_binfo,
16747         gimple_get_virt_method_for_vtable): Update prototypes.
16748
16749 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
16750
16751         PR target/49008
16752         * genautomata.c (add_presence_absence): Fix typo with
16753         {final_}presence_list.
16754
16755 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
16756
16757         PR target/60137
16758         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
16759         for VSX/Altivec vectors that land in GPR registers.
16760
16761 2014-02-11  Richard Henderson  <rth@redhat.com>
16762             Jakub Jelinek  <jakub@redhat.com>
16763
16764         PR debug/59776
16765         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
16766         around drhs if type conversion to lacc->type is not useless.
16767
16768 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16769
16770         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
16771         tuning struct.
16772         (cortex-a57.cortex-a53): Likewise.
16773         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
16774
16775 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16776
16777         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
16778         arm_restrict_it.
16779
16780 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
16781
16782         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
16783         add_options_for_arm_vfp3.
16784
16785 2014-02-11  Jeff Law  <law@redhat.com>
16786
16787         PR middle-end/54041
16788         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
16789         object with an undesirable mode.
16790
16791 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16792
16793         PR libgomp/60107
16794         * config/i386/sol2-9.h: New file.
16795         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
16796         *-*-solaris2.9*): Use it.
16797
16798 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
16799
16800         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
16801         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
16802
16803 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
16804
16805         * config/microblaze/microblaze.c: Extend mcpu version format
16806
16807 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
16808
16809         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
16810
16811 2014-02-10  Richard Henderson  <rth@redhat.com>
16812
16813         PR target/59927
16814         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
16815         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
16816         ms-abi vs -mno-accumulate-outgoing-args.
16817         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
16818         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
16819         respect to ms-abi.
16820
16821 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16822
16823         PR middle-end/60080
16824         * cfgexpand.c (expand_asm_operands): Attach source location to
16825         ASM_INPUT rtx objects.
16826         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
16827
16828 2014-02-10  Nick Clifton  <nickc@redhat.com>
16829
16830         * config/mn10300/mn10300.c (popcount): New function.
16831         (mn10300_expand_prologue): Include saved registers in stack usage
16832         count.
16833
16834 2014-02-10  Jeff Law  <law@redhat.com>
16835
16836         PR middle-end/52306
16837         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
16838         when changing the SET_DEST of a prior insn to avoid an input reload.
16839
16840 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16841
16842         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
16843         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
16844         -mcall-openbsd, or -mcall-linux.
16845         (CC1_ENDIAN_BIG_SPEC): Remove.
16846         (CC1_ENDIAN_LITTLE_SPEC): Remove.
16847         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
16848         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
16849         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
16850         and %cc1_endian_default.
16851         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
16852
16853 2014-02-10  Richard Biener  <rguenther@suse.de>
16854
16855         PR tree-optimization/60115
16856         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
16857         MEM_REF handling.  Properly verify that the accesses are not
16858         out of the objects bound.
16859
16860 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16861
16862         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
16863         coretex to cortex.
16864
16865 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
16866
16867         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
16868         proper constants and fix formatting.
16869         (possible_polymorphic_call_targets): Fix formatting.
16870
16871 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
16872             Ilya Tocar  <ilya.tocar@intel.com>
16873
16874         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
16875         (_mm512_loadu_epi32): Renamed into...
16876         (_mm512_loadu_si512): This.
16877         (_mm512_storeu_epi32): Renamed into...
16878         (_mm512_storeu_si512): This.
16879         (_mm512_maskz_ceil_ps): Removed.
16880         (_mm512_maskz_ceil_pd): Ditto.
16881         (_mm512_maskz_floor_ps): Ditto.
16882         (_mm512_maskz_floor_pd): Ditto.
16883         (_mm512_floor_round_ps): Ditto.
16884         (_mm512_floor_round_pd): Ditto.
16885         (_mm512_ceil_round_ps): Ditto.
16886         (_mm512_ceil_round_pd): Ditto.
16887         (_mm512_mask_floor_round_ps): Ditto.
16888         (_mm512_mask_floor_round_pd): Ditto.
16889         (_mm512_mask_ceil_round_ps): Ditto.
16890         (_mm512_mask_ceil_round_pd): Ditto.
16891         (_mm512_maskz_floor_round_ps): Ditto.
16892         (_mm512_maskz_floor_round_pd): Ditto.
16893         (_mm512_maskz_ceil_round_ps): Ditto.
16894         (_mm512_maskz_ceil_round_pd): Ditto.
16895         (_mm512_expand_pd): Ditto.
16896         (_mm512_expand_ps): Ditto.
16897         * config/i386/i386.c (ix86_builtins): Remove
16898         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
16899         (bdesc_args): Ditto.
16900         * config/i386/predicates.md (const1256_operand): New.
16901         (const_1_to_2_operand): Ditto.
16902         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
16903         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
16904         (*avx512pf_gatherpf<mode>sf): Ditto.
16905         (avx512pf_gatherpf<mode>df): Ditto.
16906         (*avx512pf_gatherpf<mode>df_mask): Ditto.
16907         (*avx512pf_gatherpf<mode>df): Ditto.
16908         (avx512pf_scatterpf<mode>sf): Ditto.
16909         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
16910         (*avx512pf_scatterpf<mode>sf): Ditto.
16911         (avx512pf_scatterpf<mode>df): Ditto.
16912         (*avx512pf_scatterpf<mode>df_mask): Ditto.
16913         (*avx512pf_scatterpf<mode>df): Ditto.
16914         (avx512f_expand<mode>): Removed.
16915         (<shift_insn><mode>3<mask_name>): Change predicate type.
16916
16917 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
16918
16919         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
16920         not at the end of datarefs vector use ordered_remove to avoid
16921         reordering datarefs vector.
16922
16923         PR c/59984
16924         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
16925         mark local addressable non-static vars as GOVD_PRIVATE
16926         instead of GOVD_LOCAL.
16927         * omp-low.c (lower_omp_for): Move gimple_bind_vars
16928         and BLOCK_VARS of gimple_bind_block to new_stmt rather
16929         than copying them.
16930
16931         PR middle-end/60092
16932         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
16933         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
16934         assume_aligned or alloc_align attributes.
16935         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
16936         arguments.  Handle also assume_aligned and alloc_align attributes.
16937         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
16938         calls to functions with assume_aligned or alloc_align attributes.
16939         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
16940
16941 2014-02-08  Terry Guo  <terry.guo@arm.com>
16942
16943         * doc/invoke.texi: Document ARM -march=armv7e-m.
16944
16945 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
16946
16947         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
16948         flag on __cilkrts_rethrow builtin.
16949
16950         PR ipa/60026
16951         * ipa-cp.c (determine_versionability): Fail at -O0
16952         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
16953         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
16954
16955         Revert:
16956         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
16957
16958         PR ipa/60026
16959         * tree-inline.c (copy_forbidden): Fail for
16960         __attribute__((optimize (0))) functions.
16961
16962 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
16963
16964         * varpool.c: Include pointer-set.h.
16965         (varpool_remove_unreferenced_decls): Variables in other partitions
16966         will not be output; be however careful to not lose information
16967         about partitioning.
16968
16969 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
16970
16971         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
16972         lookup in the vtable constructor.
16973
16974 2014-02-07  Jeff Law  <law@redhat.com>
16975
16976         PR target/40977
16977         * config/m68k/m68k.md (ashldi_extsi): Turn into a
16978         define_insn_and_split.
16979
16980         * ipa-inline.c (inline_small_functions): Fix typos.
16981
16982 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
16983
16984         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
16985         (s390_can_use_return_insn): Declare.
16986         * config/s390/s390.h (EPILOGUE_USES): Define.
16987         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
16988         instructions.
16989         (s390_chunkify_start): Handle return JUMP_LABELs.
16990         (s390_early_mach): Emit a main_pool instruction on the entry edge.
16991         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
16992         (s390_can_use_return_insn): New functions.
16993         (s390_fix_long_loop_prediction): Handle conditional returns.
16994         (TARGET_SET_UP_BY_PROLOGUE): Define.
16995         * config/s390/s390.md (ANY_RETURN): New code iterator.
16996         (*creturn, *csimple_return, return, simple_return): New patterns.
16997
16998 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
16999
17000         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
17001         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
17002         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
17003         REG_CFA_RESTORE list when deciding not to restore a register.
17004
17005 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
17006
17007         * config/s390/s390.c: Include tree-pass.h and context.h.
17008         (s390_early_mach): New function, split out from...
17009         (s390_emit_prologue): ...here.
17010         (pass_data_s390_early_mach): New pass structure.
17011         (pass_s390_early_mach): New class.
17012         (s390_option_override): Create and register early_mach pass.
17013         Move to end of file.
17014
17015 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
17016
17017         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
17018         to match for the exit block.
17019
17020 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17021
17022         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
17023         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
17024         Reject misaligned operands.
17025
17026 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17027
17028         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
17029
17030 2014-02-07  Richard Biener  <rguenther@suse.de>
17031
17032         PR middle-end/60092
17033         * gimple-low.c (lower_builtin_posix_memalign): New function.
17034         (lower_stmt): Call it to lower posix_memalign in a way
17035         to make alignment info accessible.
17036
17037 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
17038
17039         PR c++/60082
17040         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
17041         __builtin_setjmp_receiver.
17042
17043 2014-02-07  Richard Biener  <rguenther@suse.de>
17044
17045         PR middle-end/60092
17046         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
17047         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
17048         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17049         Handle BUILT_IN_POSIX_MEMALIGN.
17050         (find_func_clobbers): Likewise.
17051         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
17052         (call_may_clobber_ref_p_1): Likewise.
17053
17054 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
17055
17056         PR ipa/59918
17057         * ipa-devirt.c (record_target_from_binfo): Remove overactive
17058         sanity check.
17059
17060 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
17061
17062         PR ipa/59469
17063         * lto-cgraph.c (lto_output_node): Use
17064         symtab_get_symbol_partitioning_class.
17065         (lto_output_varpool_node): likewise.
17066         (symtab_get_symbol_partitioning_class): Move here from
17067         lto/lto-partition.c
17068         * cgraph.h (symbol_partitioning_class): Likewise.
17069         (symtab_get_symbol_partitioning_class): Declare.
17070
17071 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
17072
17073         * ggc.h (ggc_internal_cleared_alloc): New macro.
17074         * vec.h (vec_safe_copy): Handle memory stats.
17075         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
17076         * target-globals.c (save_target_globals): Likewise.
17077
17078 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
17079
17080         PR target/60077
17081         * expr.c (emit_move_resolve_push): Export; be bit more selective
17082         on when to clear alias set.
17083         * expr.h (emit_move_resolve_push): Declare.
17084         * function.h (struct function): Add tail_call_marked.
17085         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
17086         * config/i386/i386-protos.h (ix86_expand_push): Remove.
17087         * config/i386/i386.md (TImode move expander): De not call
17088         ix86_expand_push.
17089         (FP push expanders): Preserve memory attributes.
17090         * config/i386/sse.md (push<mode>1): Remove.
17091         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
17092         (ix86_expand_push): Remove.
17093         * config/i386/mmx.md (push<mode>1): Remove.
17094
17095 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
17096
17097         PR rtl-optimization/60030
17098         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
17099         lopart with paradoxical subreg before shifting it up by hprec.
17100
17101 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17102
17103         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
17104         Remove extra newline at end of file.
17105         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
17106         (arm_issue_rate): Handle cortexa57.
17107         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
17108         (cortex-a57.cortex-a53): Likewise.
17109
17110 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
17111
17112         PR target/59575
17113         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
17114         don't record in REG_FRAME_RELATED_EXPR registers not set in that
17115         bitmask.
17116         (arm_expand_prologue): Adjust all callers.
17117         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
17118         info, registers also at the lowest numbered registers side.  Use
17119         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
17120         XEXP.
17121
17122         PR debug/59992
17123         * var-tracking.c (adjust_mems): Before adding a SET to
17124         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
17125
17126 2014-02-06  Alan Modra  <amodra@gmail.com>
17127
17128         PR target/60032
17129         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
17130         change SDmode to DDmode when lra_in_progress.
17131
17132 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
17133
17134         PR middle-end/59150
17135         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
17136         free_data_ref on the dr first, and before goto again also set dr
17137         to the next dr.  For simd_lane_access, free old datarefs[i] before
17138         overwriting it.  For get_vectype_for_scalar_type failure, don't
17139         free_data_ref if simd_lane_access.
17140
17141         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
17142
17143         PR target/60062
17144         * tree.h (opts_for_fn): New inline function.
17145         (opt_for_fn): Define.
17146         * config/i386/i386.c (ix86_function_regparm): Use
17147         opt_for_fn (decl, optimize) instead of optimize.
17148
17149 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17150
17151         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
17152         for SYMBOL_REF in large memory model.
17153
17154 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17155
17156         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
17157         and crypto support.
17158         (cortex-a57): Likewise.
17159         (cortex-a57.cortex-a53): Likewise.
17160
17161 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
17162             Kugan Vivekanandarajah  <kuganv@linaro.org>
17163
17164         * config/arm/arm.c (arm_vector_alignment_reachable): Check
17165         unaligned_access.
17166         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
17167
17168 2014-02-06  Richard Biener  <rguenther@suse.de>
17169
17170         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
17171         set_loop_copy and initialize_original_copy_tables.
17172
17173 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
17174
17175         * config/aarch64/aarch64-simd.md
17176         (aarch64_ashr_simddi): Change QI to SI.
17177
17178 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
17179             Jakub Jelinek  <jakub@redhat.com>
17180
17181         PR middle-end/60013
17182         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
17183         of the dataflow.
17184
17185 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17186
17187         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
17188         CODE_FOR_altivec_vpku[hw]um to
17189         CODE_FOR_altivec_vpku[hw]um_direct.
17190         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
17191         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
17192         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
17193         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
17194
17195 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17196
17197         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
17198         generation for -maltivec=be.
17199         (altivec_vsumsws): Simplify redundant test.
17200
17201 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17202
17203         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
17204         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
17205         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
17206         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
17207         gen_altivec_vpkuwum.
17208         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
17209         BYTES_BIG_ENDIAN.
17210         (altivec_vpks<VI_char>ss): Likewise.
17211         (altivec_vpks<VI_char>us): Likewise.
17212         (altivec_vpku<VI_char>us): Likewise.
17213         (altivec_vpku<VI_char>um): Likewise.
17214         (altivec_vpku<VI_char>um_direct): New (copy of
17215         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
17216         internal use).
17217         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
17218         target is little endian and -maltivec=be is not specified.
17219         (*altivec_vupkhs<VU_char>_direct): New (copy of
17220         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
17221         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
17222         target is little endian and -maltivec=be is not specified.
17223         (*altivec_vupkls<VU_char>_direct): New (copy of
17224         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
17225         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
17226         little endian and -maltivec=be is not specified.
17227         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
17228         little endian and -maltivec=be is not specified.
17229
17230 2014-02-05  Richard Henderson  <rth@redhat.com>
17231
17232         PR debug/52727
17233         * combine-stack-adj.c: Revert r206943.
17234         * sched-int.h (struct deps_desc): Add last_args_size.
17235         * sched-deps.c (init_deps): Initialize it.
17236         (sched_analyze_insn): Add OUTPUT dependencies between insns that
17237         contain REG_ARGS_SIZE notes.
17238
17239 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
17240
17241         * lto-cgraph.c (asm_nodes_output): Make global.
17242         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
17243         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
17244         (driver_handle_option): Handle OPT_fwpa.
17245
17246 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
17247
17248         PR ipa/59947
17249         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
17250         a comment typo and formatting issue.  If odr_hash hasn't been
17251         created, return vNULL and set *completep to false.
17252
17253         PR middle-end/57499
17254         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
17255         bb with no successors.
17256
17257 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
17258
17259         PR target/59718
17260         * doc/invoke.texi (-march): Clarify documentation for ARM.
17261         (-mtune): Likewise.
17262         (-mcpu): Likewise.
17263
17264 2014-02-05  Richard Biener  <rguenther@suse.de>
17265
17266         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
17267         when not vectorizing because of too many alias checks.
17268         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
17269         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
17270
17271 2014-02-05  Nick Clifton  <nickc@redhat.com>
17272
17273         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
17274         accept extended registers in any mode when compiling for the MN10300.
17275
17276 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
17277
17278         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
17279         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
17280         sanitization attributes.
17281         (can_inline_edge_p): Likewise.
17282         (sanitize_attrs_match_for_inline_p): New function.
17283
17284 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
17285
17286         * ipa-prop.c (detect_type_change): Shor circuit testing of
17287         type changes on THIS pointer.
17288
17289 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
17290
17291         PR target/59777
17292         * config/pa/pa.c (legitimize_tls_address): Return original address
17293         if not passed a SYMBOL_REF rtx.
17294         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
17295         addresses.
17296         (pa_emit_move_sequence): Simplify TLS source operands.
17297         (pa_legitimate_constant_p): Reject all TLS constants.
17298         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
17299         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
17300
17301 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
17302
17303         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
17304         groups when we know they are controlled by LTO.
17305         * varasm.c (default_binds_local_p_1): If object is in other partition,
17306         it will be resolved locally.
17307
17308 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17309
17310         * config/host-linux.c (linux_gt_pch_use_address): Don't
17311         use SSIZE_MAX because it is not always defined.
17312
17313 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
17314
17315         PR bootstrap/59913
17316         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
17317         threshold for pseudo splitting.
17318         (update_ebb_live_info): Process call argument hard registers and
17319         hard registers from insn definition too.
17320         (max_small_class_regs_num): New constant.
17321         (inherit_in_ebb): Update live hard regs through EBBs.  Update
17322         reloads_num only for small register classes.  Don't split for
17323         outputs of jumps.
17324
17325 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
17326
17327         PR ipa/60058
17328         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
17329         is non-null.
17330
17331 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
17332
17333         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
17334         visibility is safe.
17335
17336 2014-02-04  Marek Polacek  <polacek@redhat.com>
17337
17338         * gdbinit.in (pel): Define.
17339
17340 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17341
17342         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
17343         behavior.
17344
17345 2014-02-04  Richard Biener  <rguenther@suse.de>
17346
17347         PR lto/59723
17348         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
17349         in function context local.
17350         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
17351         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
17352         similar to LTO_imported_decl_ref.
17353
17354 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
17355
17356         PR tree-optimization/60002
17357         * cgraphclones.c (build_function_decl_skip_args): Clear
17358         DECL_LANG_SPECIFIC.
17359
17360         PR tree-optimization/60023
17361         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
17362         false to gsi_replace.
17363         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
17364         has been in some EH region and vec_stmt could throw, add
17365         vec_stmt into the same EH region.
17366         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
17367         has no lhs, ignore it.
17368         * internal-fn.c (expand_MASK_LOAD): Likewise.
17369
17370         PR ipa/60026
17371         * tree-inline.c (copy_forbidden): Fail for
17372         __attribute__((optimize (0))) functions.
17373
17374         PR other/58712
17375         * omp-low.c (simd_clone_struct_copy): If from->inbranch
17376         is set, copy one less argument.
17377         (expand_simd_clones): Don't subtract clone_info->inbranch
17378         from simd_clone_struct_alloc argument.
17379
17380         PR rtl-optimization/57915
17381         * recog.c (simplify_while_replacing): If all unary/binary/relational
17382         operation arguments are constant, attempt to simplify those.
17383
17384         PR middle-end/59261
17385         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
17386         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
17387
17388 2014-02-04  Richard Biener  <rguenther@suse.de>
17389
17390         PR tree-optimization/60012
17391         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
17392         TBAA disambiguation to all DDRs.
17393
17394 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17395
17396         PR target/59788
17397         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
17398         (LINK_SPEC): Use it for -shared, -shared-libgcc.
17399
17400 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
17401
17402         PR ipa/59882
17403         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
17404
17405 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
17406
17407         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
17408         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
17409
17410 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
17411
17412         PR ipa/59831
17413         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
17414         to figure out targets of polymorphic calls with known decl.
17415         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17416         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
17417         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
17418         (get_polymorphic_call_info): ... here.
17419         (get_polymorphic_call_info_from_invariant): New function.
17420
17421 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
17422
17423         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
17424         lookup via vtable pointer; check for type consistency
17425         and turn inconsitent facts into UNREACHABLE.
17426         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17427         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
17428         type inconsistent querries; return UNREACHABLE instead.
17429
17430 2014-02-03  Richard Henderson  <rth@twiddle.net>
17431
17432         PR tree-opt/59924
17433         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
17434         already processed this node.
17435         (normalize_one_pred_1): Pass along mark_set.
17436         (normalize_one_pred): Create and destroy a pointer_set_t.
17437         (normalize_one_pred_chain): Likewise.
17438
17439 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
17440
17441         PR gcov-profile/58602
17442         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
17443
17444 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
17445
17446         PR ipa/59831
17447         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
17448         -fno-devirtualize; try to devirtualize by the knowledge of
17449         virtual table pointer given by aggregate propagation.
17450         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17451         (ipa_print_node_jump_functions): Dump also offset that
17452         is relevant for polymorphic calls.
17453         (determine_known_aggregate_parts): Add arg_type parameter; use it
17454         instead of determining the type from pointer type.
17455         (ipa_compute_jump_functions_for_edge): Update call of
17456         determine_known_aggregate_parts.
17457         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
17458         (gimple_get_virt_method_for_binfo): ... here; simplify using
17459         vtable_pointer_value_to_vtable.
17460         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
17461         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
17462         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
17463         (vtable_pointer_value_to_vtable): Break out from ...; handle also
17464         POINTER_PLUS_EXPR.
17465         (vtable_pointer_value_to_binfo): ... here.
17466         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
17467
17468 2014-02-03  Teresa Johnson  <tejohnson@google.com>
17469
17470         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
17471         redef of outer loop index variable.
17472
17473 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
17474
17475         PR c++/53017
17476         PR c++/59211
17477         * doc/extend.texi (Function Attributes): Typo.
17478
17479 2014-02-03  Cong Hou  <congh@google.com>
17480
17481         PR tree-optimization/60000
17482         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
17483         if the vectorized statement is a store.  A store statement can only
17484         appear at the end of pattern statements.
17485
17486 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
17487
17488         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
17489         (ix86_option_override_internal): Default long double to 64-bit for
17490         32-bit Bionic and to 128-bit for 64-bit Bionic.
17491
17492         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
17493         TARGET_LONG_DOUBLE_128 is true.
17494         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
17495
17496         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
17497         (mlong-double-64): Negate -mlong-double-128.
17498         (mlong-double-128): New option.
17499
17500         * config/i386/i386-c.c (ix86_target_macros): Define
17501         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
17502
17503         * doc/invoke.texi: Document -mlong-double-128.
17504
17505 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
17506
17507         PR rtl-optimization/60024
17508         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
17509
17510 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
17511
17512         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
17513
17514 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
17515
17516         PR rtl-optimization/57662
17517         * sel-sched.c (code_motion_path_driver): Do not mark already not
17518         existing blocks in the visiting bitmap.
17519
17520 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
17521
17522         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
17523         on the insn being emitted.
17524
17525 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
17526             Will Deacon  <will.deacon@arm.com>
17527
17528         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
17529
17530 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17531
17532         * config/arm/arm-tables.opt: Regenerate.
17533
17534 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17535
17536         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
17537         for vector types other than V16QImode.
17538         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
17539         define_expand, and call altivec_expand_vec_perm_le when producing
17540         code with little endian element order.
17541         (*altivec_vperm_<mode>_internal): New insn having previous
17542         behavior of altivec_vperm_<mode>.
17543         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
17544         altivec_expand_vec_perm_le when producing code with little endian
17545         element order.
17546         (*altivec_vperm_<mode>_uns_internal): New insn having previous
17547         behavior of altivec_vperm_<mode>_uns.
17548
17549 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17550
17551         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
17552         (altivec_vsumsws): Add handling for -maltivec=be with a little
17553         endian target.
17554         (altivec_vsumsws_direct): New.
17555         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
17556         gen_altivec_vsumsws.
17557
17558 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
17559
17560         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
17561         vtable_pointer_value_to_binfo): New functions.
17562         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
17563         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
17564
17565 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
17566
17567         * config/nios2/nios2.md (load_got_register): Initialize GOT
17568         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
17569         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
17570
17571 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
17572
17573         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
17574         preserverd by passthrough, do not propagate the type.
17575
17576 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
17577
17578         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
17579         (mips_atomic_assign_expand_fenv): New function.
17580         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
17581
17582 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
17583
17584         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
17585         (__builtin_mips_set_fcsr): Likewise.
17586         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
17587         MIPS_USI_FTYPE_VOID.
17588         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
17589         (mips16_expand_set_fcsr): Likewise.
17590         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
17591         (mips16_set_fcsr_stub): Likewise.
17592         (mips16_get_fcsr_one_only_stub): New class.
17593         (mips16_set_fcsr_one_only_stub): Likewise.
17594         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
17595         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
17596         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
17597         (hard_float): New availability predicate.
17598         (mips_builtins): Add get_fcsr and set_fcsr.
17599         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
17600         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
17601         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
17602         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
17603         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
17604         patterns.
17605
17606 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
17607
17608         * config/mips/mips.c (mips_one_only_stub): New class.
17609         (mips_need_mips16_rdhwr_p): Replace with...
17610         (mips16_rdhwr_stub): ...this new variable.
17611         (mips16_stub_call_address): New function.
17612         (mips16_rdhwr_one_only_stub): New class.
17613         (mips_expand_thread_pointer): Use mips16_stub_call_address.
17614         (mips_output_mips16_rdhwr): Delete.
17615         (mips_finish_stub): New function.
17616         (mips_code_end): Use it to handle rdhwr stubs.
17617
17618 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
17619
17620         PR target/60017
17621         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
17622         when calculating size of integer atomic types.
17623
17624 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
17625
17626         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
17627
17628 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
17629
17630         PR tree-optimization/60003
17631         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
17632         * profile.c (branch_prob): Use gimple_call_builtin_p
17633         to check for BUILT_IN_SETJMP_RECEIVER.
17634         * tree-inline.c (copy_bb): Call notice_special_calls.
17635
17636 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
17637
17638         PR bootstrap/59985
17639         * lra-constraints.c (process_alt_operands): Update reload_sum only
17640         on the first pass.
17641
17642 2014-01-31  Richard Henderson  <rth@redhat.com>
17643
17644         PR middle-end/60004
17645         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
17646         until after else_eh is processed.
17647
17648 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
17649
17650         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
17651         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
17652         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
17653         in smmintrin.h, remove them.
17654         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
17655         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
17656         * config/i386/i386.md (ROUND_SAE): Fix value.
17657         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
17658         (const48_operand): New.
17659         * config/i386/subst.md (round), (round_expand): Use
17660         const_4_or_8_to_11_operand.
17661         (round_saeonly), (round_saeonly_expand): Use const48_operand.
17662
17663 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
17664
17665         * config/i386/constraints.md (Yk): Swap meaning with k.
17666         * config/i386/i386.md (movhi_internal): Change Yk to k.
17667         (movqi_internal): Ditto.
17668         (*k<logic><mode>): Ditto.
17669         (*andhi_1): Ditto.
17670         (*andqi_1): Ditto.
17671         (kandn<mode>): Ditto.
17672         (*<code>hi_1): Ditto.
17673         (*<code>qi_1): Ditto.
17674         (kxnor<mode>): Ditto.
17675         (kortestzhi): Ditto.
17676         (kortestchi): Ditto.
17677         (kunpckhi): Ditto.
17678         (*one_cmplhi2_1): Ditto.
17679         (*one_cmplqi2_1): Ditto.
17680         * config/i386/sse.md (): Change k to Yk.
17681         (avx512f_load<mode>_mask): Ditto.
17682         (avx512f_blendm<mode>): Ditto.
17683         (avx512f_store<mode>_mask): Ditto.
17684         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
17685         (avx512f_storedqu<mode>_mask): Ditto.
17686         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
17687         Ditto.
17688         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
17689         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
17690         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
17691         (avx512f_maskcmp<mode>3): Ditto.
17692         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
17693         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
17694         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
17695         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
17696         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
17697         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
17698         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
17699         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
17700         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
17701         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
17702         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
17703         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
17704         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
17705         (vec_extract_lo_<mode>_maskm): Ditto.
17706         (vec_extract_hi_<mode>_maskm): Ditto.
17707         (avx512f_vternlog<mode>_mask): Ditto.
17708         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
17709         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
17710         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
17711         (avx512f_<code>v8div16qi2_mask): Ditto.
17712         (avx512f_<code>v8div16qi2_mask_store): Ditto.
17713         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
17714         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
17715         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
17716         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
17717         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
17718         (*avx512pf_gatherpf<mode>df_mask): Ditto.
17719         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17720         (*avx512pf_scatterpf<mode>df_mask): Ditto.
17721         (avx512cd_maskb_vec_dupv8di): Ditto.
17722         (avx512cd_maskw_vec_dupv16si): Ditto.
17723         (avx512f_vpermi2var<mode>3_maskz): Ditto.
17724         (avx512f_vpermi2var<mode>3_mask): Ditto.
17725         (avx512f_vpermi2var<mode>3_mask): Ditto.
17726         (avx512f_vpermt2var<mode>3_maskz): Ditto.
17727         (*avx512f_gathersi<mode>): Ditto.
17728         (*avx512f_gathersi<mode>_2): Ditto.
17729         (*avx512f_gatherdi<mode>): Ditto.
17730         (*avx512f_gatherdi<mode>_2): Ditto.
17731         (*avx512f_scattersi<mode>): Ditto.
17732         (*avx512f_scatterdi<mode>): Ditto.
17733         (avx512f_compress<mode>_mask): Ditto.
17734         (avx512f_compressstore<mode>_mask): Ditto.
17735         (avx512f_expand<mode>_mask): Ditto.
17736         * config/i386/subst.md (mask): Change k to Yk.
17737         (mask_scalar_merge): Ditto.
17738         (sd): Ditto.
17739
17740 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
17741
17742         * doc/extend.texi (Vector Extensions): Document ?: in C++.
17743
17744 2014-01-31  Richard Biener  <rguenther@suse.de>
17745
17746         PR middle-end/59990
17747         * builtins.c (fold_builtin_memory_op): Make sure to not
17748         use a floating-point mode or a boolean or enumeral type for
17749         the copy operation.
17750
17751 2014-01-30  DJ Delorie  <dj@redhat.com>
17752
17753         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
17754         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
17755         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
17756         whenever main() has an epilogue.
17757
17758 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17759
17760         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
17761         unused variable "field".
17762         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
17763         (vsx_mergeh_<mode>): Likewise.
17764         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
17765         (altivec_vmrghh): Likewise.
17766         (altivec_vmrghw): Likewise.
17767         (altivec_vmrglb): Likewise.
17768         (altivec_vmrglh): Likewise.
17769         (altivec_vmrglw): Likewise.
17770         (altivec_vspltb): Add missing uses.
17771         (altivec_vsplth): Likewise.
17772         (altivec_vspltw): Likewise.
17773         (altivec_vspltsf): Likewise.
17774
17775 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
17776
17777         PR target/59923
17778         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
17779         frame related instructions.
17780
17781 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
17782
17783         PR rtl-optimization/59959
17784         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
17785         any reload of register whose subreg is invalid.
17786
17787 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
17788
17789         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
17790         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
17791         Add missing return type - void.
17792
17793 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17794
17795         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
17796         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
17797         remove element index adjustment for endian (now handled in vsx.md
17798         and altivec.md).
17799         (altivec_expand_vec_perm_const): Use
17800         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
17801         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
17802         (vsx_xxspltw_<mode>): Adjust element index for little endian.
17803         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
17804         define_expand and a new define_insn *altivec_vspltb_internal;
17805         adjust for -maltivec=be on a little endian target.
17806         (altivec_vspltb_direct): New.
17807         (altivec_vsplth): Divide into a define_expand and a new
17808         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
17809         little endian target.
17810         (altivec_vsplth_direct): New.
17811         (altivec_vspltw): Divide into a define_expand and a new
17812         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
17813         little endian target.
17814         (altivec_vspltw_direct): New.
17815         (altivec_vspltsf): Divide into a define_expand and a new
17816         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
17817         a little endian target.
17818
17819 2014-01-30  Richard Biener  <rguenther@suse.de>
17820
17821         PR tree-optimization/59993
17822         * tree-ssa-forwprop.c (associate_pointerplus): Check we
17823         can propagate form the earlier stmt and avoid the transform
17824         when the intermediate result is needed.
17825
17826 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
17827
17828         * README.Portability: Fix typo.
17829
17830 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
17831
17832         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
17833         comparison_operator with ordered_comparison_operator.
17834
17835 2014-01-30  Nick Clifton  <nickc@redhat.com>
17836
17837         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
17838         Rename to mn10300_store_multiple_regs.
17839         * config/mn10300/mn10300.c: Likewise.
17840         * config/mn10300/mn10300.md (store_movm): Fix typo: call
17841         store_multiple_regs.
17842         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
17843         Call mn10300_store_multiple_regs.
17844
17845 2014-01-30  Nick Clifton  <nickc@redhat.com>
17846             DJ Delorie  <dj@redhat.com>
17847
17848         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
17849         %fp 2 to keep registers after it properly word-aligned.
17850         (rl78_alloc_physical_registers_umul): Handle the case where both
17851         input operands are the same.
17852
17853 2014-01-30  Richard Biener  <rguenther@suse.de>
17854
17855         PR tree-optimization/59903
17856         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
17857         check properly.
17858
17859 2014-01-30  Jason Merrill  <jason@redhat.com>
17860
17861         PR c++/59633
17862         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
17863
17864         PR c++/59645
17865         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
17866
17867 2014-01-30  Richard Biener  <rguenther@suse.de>
17868
17869         PR tree-optimization/59951
17870         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
17871
17872 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
17873
17874         PR target/59784
17875         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
17876         SFmode to DFmode case.
17877
17878 2014-01-29  DJ Delorie  <dj@redhat.com>
17879
17880         * config/msp430/msp430.opt (-minrt): New.
17881         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
17882         if -minrt given.
17883         (ENDFILE_SPEC): Likewise.
17884
17885 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
17886
17887         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
17888         (estimate_function_body_sizes): Use it.
17889
17890 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
17891
17892         PR c++/58561
17893         * dwarf2out.c (is_cxx_auto): New.
17894         (is_base_type): Use it.
17895         (gen_type_die_with_usage): Likewise.
17896
17897 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17898
17899         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
17900         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
17901         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
17902         -maltivec=be with LE targets.
17903         (vsx_mergeh_<mode>): Likewise.
17904         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
17905         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
17906         (altivec_vmrghb): Replace with define_expand and new
17907         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
17908         (altivec_vmrghb_direct): New define_insn.
17909         (altivec_vmrghh): Replace with define_expand and new
17910         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
17911         (altivec_vmrghh_direct): New define_insn.
17912         (altivec_vmrghw): Replace with define_expand and new
17913         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
17914         (altivec_vmrghw_direct): New define_insn.
17915         (*altivec_vmrghsf): Adjust for endianness.
17916         (altivec_vmrglb): Replace with define_expand and new
17917         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
17918         (altivec_vmrglb_direct): New define_insn.
17919         (altivec_vmrglh): Replace with define_expand and new
17920         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
17921         (altivec_vmrglh_direct): New define_insn.
17922         (altivec_vmrglw): Replace with define_expand and new
17923         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
17924         (altivec_vmrglw_direct): New define_insn.
17925         (*altivec_vmrglsf): Adjust for endianness.
17926         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
17927         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
17928         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
17929         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
17930         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
17931         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
17932         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
17933         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
17934
17935 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17936
17937         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
17938         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
17939         whitespace.
17940
17941 2014-01-29  Richard Biener  <rguenther@suse.de>
17942
17943         PR tree-optimization/58742
17944         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
17945         associate_pointerplus_align.
17946         (associate_pointerplus_diff): New function.
17947         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
17948         and associate_pointerplus_diff.
17949
17950 2014-01-29  Richard Biener  <rguenther@suse.de>
17951
17952         * lto-streamer.h (LTO_major_version): Bump to 3.
17953         (LTO_minor_version): Reset to 0.
17954
17955 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
17956
17957         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
17958         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
17959         (arm_file_start): Generate correct asm header for armv7ve.
17960         * config/arm/bpabi.h: Add multilib support for armv7ve.
17961         * config/arm/driver-arm.c: Change the architectures of cortex-a7
17962         and cortex-a15 to armv7ve.
17963         * config/arm/t-aprofile: Add multilib support for armv7ve.
17964         * doc/invoke.texi: Document -march=armv7ve.
17965
17966 2014-01-29  Richard Biener  <rguenther@suse.de>
17967
17968         PR tree-optimization/58742
17969         * tree-ssa-forwprop.c (associate_plusminus): Return true
17970         if we changed sth, defer EH cleanup to ...
17971         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
17972         (simplify_mult): New function.
17973
17974 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
17975
17976         PR middle-end/59917
17977         PR tree-optimization/59920
17978         * tree.c (build_common_builtin_nodes): Remove
17979         __builtin_setjmp_dispatcher initialization.
17980         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
17981         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
17982         instead of gsi_after_labels + manually skipping debug stmts.
17983         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
17984         ignore bbs with IFN_ABNORMAL_DISPATCHER.
17985         * tree-inline.c (copy_edges_for_bb): Remove
17986         can_make_abnormal_goto argument, instead add abnormal_goto_dest
17987         argument.  Ignore computed_goto_p stmts.  Don't call
17988         make_abnormal_goto_edges.  If a call might need abnormal edges
17989         for non-local gotos, see if it already has an edge to
17990         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
17991         with true argument, don't do anything then, otherwise add
17992         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
17993         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
17994         caller.
17995         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
17996         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
17997         (lower_stmt): Don't set data->calls_builtin_setjmp.
17998         (lower_builtin_setjmp): Adjust comment.
17999         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
18000         * tree-cfg.c (found_computed_goto): Remove.
18001         (factor_computed_gotos): Remove.
18002         (make_goto_expr_edges): Return bool, true for computed gotos.
18003         Don't call make_abnormal_goto_edges.
18004         (build_gimple_cfg): Don't set found_computed_goto, don't call
18005         factor_computed_gotos.
18006         (computed_goto_p): No longer static.
18007         (make_blocks): Don't set found_computed_goto.
18008         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
18009         (make_edges): If make_goto_expr_edges returns true, push bb
18010         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
18011         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
18012         vector.  Record mapping between bbs and OpenMP regions if there
18013         are any, adjust make_gimple_omp_edges caller.  Call
18014         handle_abnormal_edges.
18015         (make_abnormal_goto_edges): Remove.
18016         * tree-cfg.h (make_abnormal_goto_edges): Remove.
18017         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
18018         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
18019         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
18020         * internal-fn.def (ABNORMAL_DISPATCHER): New.
18021         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
18022         filling *region also set *region_idx to (*region)->entry->index.
18023
18024         PR other/58712
18025         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
18026         For REGs set ORIGINAL_REGNO.
18027
18028 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
18029
18030         * doc/md.texi: Mention that a target shouldn't implement
18031         vec_widen_(s|u)mul_even/odd pair if it is less efficient
18032         than hi/lo pair.
18033
18034 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
18035
18036         PR tree-optimization/59594
18037         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
18038         a copy of the datarefs vector rather than the vector itself.
18039
18040 2014-01-28  Jason Merrill  <jason@redhat.com>
18041
18042         PR c++/53756
18043         * dwarf2out.c (auto_die): New static.
18044         (gen_type_die_with_usage): Handle C++1y 'auto'.
18045         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
18046         on definition.
18047
18048 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
18049
18050         PR target/59672
18051         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
18052         (SPEC_X32): Likewise.
18053         (SPEC_64): Likewise.
18054         * config/i386/i386.c (ix86_option_override_internal): Turn off
18055         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
18056         for TARGET_16BIT.
18057         (x86_file_start): Output .code16gcc for TARGET_16BIT.
18058         * config/i386/i386.h (TARGET_16BIT): New macro.
18059         (TARGET_16BIT_P): Likewise.
18060         * config/i386/i386.opt: Add m16.
18061         * doc/invoke.texi: Document -m16.
18062
18063 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
18064
18065         PR preprocessor/59935
18066         * input.c (location_get_source_line): Bail out on when line number
18067         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
18068
18069 2014-01-28  Richard Biener  <rguenther@suse.de>
18070
18071         PR tree-optimization/58742
18072         * tree-ssa-forwprop.c (associate_plusminus): Handle
18073         pointer subtraction of the form (T)(P + A) - (T)P.
18074
18075 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18076
18077         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
18078         at const_int_cost.
18079
18080 2014-01-28  Richard Biener  <rguenther@suse.de>
18081
18082         Revert
18083         2014-01-28  Richard Biener  <rguenther@suse.de>
18084
18085         PR rtl-optimization/45364
18086         PR rtl-optimization/59890
18087         * var-tracking.c (local_get_addr_clear_given_value): Handle
18088         already cleared slot.
18089         (val_reset): Handle not allocated local_get_addr_cache.
18090         (vt_find_locations): Use post-order on the inverted CFG.
18091
18092 2014-01-28  Richard Biener  <rguenther@suse.de>
18093
18094         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
18095
18096 2014-01-28  Richard Biener  <rguenther@suse.de>
18097
18098         PR rtl-optimization/45364
18099         PR rtl-optimization/59890
18100         * var-tracking.c (local_get_addr_clear_given_value): Handle
18101         already cleared slot.
18102         (val_reset): Handle not allocated local_get_addr_cache.
18103         (vt_find_locations): Use post-order on the inverted CFG.
18104
18105 2014-01-28  Alan Modra  <amodra@gmail.com>
18106
18107         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
18108         * configure.ac <recursive call for build != host>: Define
18109         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
18110         and LD_FOR_BUILD too.
18111         * configure: Regenerate.
18112
18113 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
18114
18115         * config/i386/i386.c (get_builtin_code_for_version): Separate
18116         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
18117         Broadwell from Haswell.
18118
18119 2014-01-27  Steve Ellcey  <sellcey@mips.com>
18120
18121         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
18122         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
18123         * config/mips/mips.c (mips_option_override): Change setting
18124         of TARGET_DSP.
18125         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
18126         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
18127         Change from Mask to Var.
18128
18129 2014-01-27  Jeff Law  <law@redhat.com>
18130
18131         * ipa-inline.c (inline_small_functions): Fix typo.
18132
18133 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
18134
18135         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
18136         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
18137         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
18138         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
18139         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
18140         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
18141         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
18142         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
18143         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
18144         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
18145         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
18146         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
18147         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
18148         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
18149         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
18150         (_mm512_storeu_epi64): Ditto.
18151         (_mm512_cmpge_epi32_mask): Ditto.
18152         (_mm512_cmpge_epu32_mask): Ditto.
18153         (_mm512_cmpge_epi64_mask): Ditto.
18154         (_mm512_cmpge_epu64_mask): Ditto.
18155         (_mm512_cmple_epi32_mask): Ditto.
18156         (_mm512_cmple_epu32_mask): Ditto.
18157         (_mm512_cmple_epi64_mask): Ditto.
18158         (_mm512_cmple_epu64_mask): Ditto.
18159         (_mm512_cmplt_epi32_mask): Ditto.
18160         (_mm512_cmplt_epu32_mask): Ditto.
18161         (_mm512_cmplt_epi64_mask): Ditto.
18162         (_mm512_cmplt_epu64_mask): Ditto.
18163         (_mm512_cmpneq_epi32_mask): Ditto.
18164         (_mm512_cmpneq_epu32_mask): Ditto.
18165         (_mm512_cmpneq_epi64_mask): Ditto.
18166         (_mm512_cmpneq_epu64_mask): Ditto.
18167         (_mm512_expand_pd): Ditto.
18168         (_mm512_expand_ps): Ditto.
18169         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
18170         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
18171         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
18172         * config/i386/i386.c (ix86_builtins): Add
18173         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
18174         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
18175         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
18176         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
18177         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
18178         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
18179         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
18180         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
18181         IX86_BUILTIN_PMOVUSQW512_MEM.
18182         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
18183         __builtin_ia32_pmovsqd512mem_mask,
18184         __builtin_ia32_pmovqd512mem_mask,
18185         __builtin_ia32_pmovusqw512mem_mask,
18186         __builtin_ia32_pmovsqw512mem_mask,
18187         __builtin_ia32_pmovqw512mem_mask,
18188         __builtin_ia32_pmovusdw512mem_mask,
18189         __builtin_ia32_pmovsdw512mem_mask,
18190         __builtin_ia32_pmovdw512mem_mask,
18191         __builtin_ia32_pmovqb512mem_mask,
18192         __builtin_ia32_pmovusqb512mem_mask,
18193         __builtin_ia32_pmovsqb512mem_mask,
18194         __builtin_ia32_pmovusdb512mem_mask,
18195         __builtin_ia32_pmovsdb512mem_mask,
18196         __builtin_ia32_pmovdb512mem_mask.
18197         (bdesc_args): Add __builtin_ia32_expanddf512,
18198         __builtin_ia32_expandsf512.
18199         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
18200         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
18201         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
18202         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
18203         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
18204         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
18205         (avx512f_<code>v8div16qi2_mask_store): This.
18206         (avx512f_expand<mode>): New.
18207
18208 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
18209
18210         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
18211         New.
18212         (_mm512_mask_prefetch_i64gather_pd): Ditto.
18213         (_mm512_prefetch_i32scatter_pd): Ditto.
18214         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
18215         (_mm512_prefetch_i64scatter_pd): Ditto.
18216         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
18217         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
18218         (_mm512_mask_prefetch_i64gather_ps): Ditto.
18219         (_mm512_prefetch_i32scatter_ps): Ditto.
18220         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
18221         (_mm512_prefetch_i64scatter_ps): Ditto.
18222         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
18223         * config/i386/i386-builtin-types.def: Define
18224         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
18225         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
18226         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
18227         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
18228         IX86_BUILTIN_SCATTERPFQPD.
18229         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
18230         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
18231         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
18232         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
18233         __builtin_ia32_scatterpfqps.
18234         (ix86_expand_builtin): Expand new built-ins.
18235         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
18236         fix memory access data type.
18237         (*avx512pf_gatherpf<mode>_mask): Ditto.
18238         (*avx512pf_gatherpf<mode>): Ditto.
18239         (avx512pf_scatterpf<mode>): Ditto.
18240         (*avx512pf_scatterpf<mode>_mask): Ditto.
18241         (*avx512pf_scatterpf<mode>): Ditto.
18242         (GATHER_SCATTER_SF_MEM_MODE): New.
18243         (avx512pf_gatherpf<mode>df): Ditto.
18244         (*avx512pf_gatherpf<mode>df_mask): Ditto.
18245         (*avx512pf_scatterpf<mode>df): Ditto.
18246
18247 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
18248
18249         PR bootstrap/59934
18250         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
18251         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
18252         reached.
18253
18254 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
18255
18256         * common/config/arm/arm-common.c
18257         (arm_rewrite_mcpu): Handle multiple names.
18258         * config/arm/arm.h
18259         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
18260
18261 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
18262
18263         * gimple-builder.h (create_gimple_tmp): Delete.
18264
18265 2014-01-27  Christian Bruel  <christian.bruel@st.com>
18266
18267         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
18268         words comparisons.
18269
18270 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
18271
18272         * config/pa/pa.md (call): Generate indirect long calls to non-local
18273         functions when outputing 32-bit code.
18274         (call_value): Likewise except for special call to buggy powf function.
18275
18276         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
18277         portable runtime and PIC indirect calls.
18278         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
18279         and PIC call sequences.  Use ldo instead of blr to set return register
18280         in PIC call sequence.
18281
18282 2014-01-25  Walter Lee  <walt@tilera.com>
18283
18284         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
18285         avoid clobbering a live register.
18286
18287 2014-01-25  Walter Lee  <walt@tilera.com>
18288
18289         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
18290         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
18291         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
18292         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
18293
18294 2014-01-25  Walter Lee  <walt@tilera.com>
18295
18296         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
18297         arguments on even registers.
18298         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
18299         STACK_BOUNDARY.
18300         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
18301         (BIGGEST_ALIGNMENT): Ditto.
18302         (BIGGEST_FIELD_ALIGNMENT): Ditto.
18303
18304 2014-01-25  Walter Lee  <walt@tilera.com>
18305
18306         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
18307         insns before bundling.
18308         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
18309
18310 2014-01-25  Walter Lee  <walt@tilera.com>
18311
18312         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
18313         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
18314         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
18315
18316 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
18317
18318         * config/mips/constraints.md (kl): Delete.
18319         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
18320         define expands, using...
18321         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
18322         instructions for MIPS16.
18323         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
18324         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
18325
18326 2014-01-25  Walter Lee  <walt@tilera.com>
18327
18328         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
18329         (clzdi2): Ditto.
18330         (ffsdi2): Ditto.
18331
18332 2014-01-25  Walter Lee  <walt@tilera.com>
18333
18334         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
18335         (TARGET_EXPAND_TO_RTL_HOOK): Define.
18336
18337 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
18338
18339         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
18340         Handle XOR.
18341
18342 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
18343
18344         * print-rtl.c (in_call_function_usage): New var.
18345         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
18346         EXPR_LIST mode as mode and not as reg note name.
18347
18348         PR middle-end/59561
18349         * cfgloopmanip.c (copy_loop_info): If
18350         loop->warned_aggressive_loop_optimizations, make sure
18351         the flag is set in target loop too.
18352
18353 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
18354
18355         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
18356         flag_cilkplus.
18357         * builtins.def: Likewise.
18358         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
18359         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
18360         * ira.c (ira_setup_eliminable_regset): Likewise.
18361         * omp-low.c (gate_expand_omp): Likewise.
18362         (execute_lower_omp): Likewise.
18363         (diagnose_sb_0): Likewise.
18364         (gate_diagnose_omp_blocks): Likewise.
18365         (simd_clone_clauses_extract): Likewise.
18366         (gate): Likewise.
18367
18368 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18369
18370         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
18371         correction for little endian...
18372         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
18373         here.
18374
18375 2014-01-24  Jeff Law  <law@redhat.com>
18376
18377         PR tree-optimization/59919
18378         * tree-vrp.c (find_assert_locations_1): Do not register asserts
18379         for non-returning calls.
18380
18381 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
18382
18383         * common/config/aarch64/aarch64-common.c
18384         (aarch64_rewrite_mcpu): Handle multiple names.
18385         * config/aarch64/aarch64.h
18386         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
18387
18388 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
18389
18390         * input.c (add_file_to_cache_tab): Handle the case where fopen
18391         returns NULL.
18392
18393 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
18394
18395         PR target/59929
18396         * config/i386/i386.md (pushsf splitter): Get stack adjustment
18397         from push operand if code of push isn't PRE_DEC.
18398
18399 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
18400
18401         PR target/59909
18402         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18403         -mquad-memory-atomic.  Update -mquad-memory documentation to say
18404         it is only used for non-atomic loads/stores.
18405
18406         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
18407         -mquad-memory or -mquad-memory-atomic switches.
18408
18409         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
18410         -mquad-memory-atomic to ISA 2.07 support.
18411
18412         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
18413         to separate support of normal quad word memory operations (ldq, stq)
18414         from the atomic quad word memory operations.
18415
18416         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18417         support to separate non-atomic quad word operations from atomic
18418         quad word operations.  Disable non-atomic quad word operations in
18419         little endian mode so that we don't have to swap words after the
18420         load and before the store.
18421         (quad_load_store_p): Add comment about atomic quad word support.
18422         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
18423         options printed with -mdebug=reg.
18424
18425         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
18426         -mquad-memory-atomic as the test for whether we have quad word
18427         atomic instructions.
18428         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
18429         or -mp8-vector are used, allow byte/half-word atomic operations.
18430
18431         * config/rs6000/sync.md (load_lockedti): Insure that the address
18432         is a proper indexed or indirect address for the lqarx instruction.
18433         On little endian systems, swap the hi/lo registers after the lqarx
18434         instruction.
18435         (load_lockedpti): Use indexed_or_indirect_operand predicate to
18436         insure the address is valid for the lqarx instruction.
18437         (store_conditionalti): Insure that the address is a proper indexed
18438         or indirect address for the stqcrx. instruction.  On little endian
18439         systems, swap the hi/lo registers before doing the stqcrx.
18440         instruction.
18441         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
18442         insure the address is valid for the stqcrx. instruction.
18443
18444         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
18445         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
18446         type of quad memory support is available.
18447
18448 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
18449
18450         PR regression/59915
18451         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
18452         there is a danger of looping.
18453
18454 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
18455
18456         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
18457         force flag_ira_loop_pressure if set via command line.
18458
18459 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
18460
18461         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
18462         (ashr_simd): New builtin handling DI mode.
18463         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
18464         (aarch64_sshr_simddi): New match pattern.
18465         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
18466         (vshrd_n_s64): Likewise.
18467         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
18468
18469 2014-01-23  Nick Clifton  <nickc@redhat.com>
18470
18471         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
18472         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
18473         favour of mcu specific scripts.
18474         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
18475         430x multilibs.
18476
18477 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
18478             Alex Velenko  <Alex.Velenko@arm.com>
18479
18480         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
18481         (vaddv_s16): Likewise.
18482         (vaddv_s32): Likewise.
18483         (vaddv_u8): Likewise.
18484         (vaddv_u16): Likewise.
18485         (vaddv_u32): Likewise.
18486         (vaddvq_s8): Likewise.
18487         (vaddvq_s16): Likewise.
18488         (vaddvq_s32): Likewise.
18489         (vaddvq_s64): Likewise.
18490         (vaddvq_u8): Likewise.
18491         (vaddvq_u16): Likewise.
18492         (vaddvq_u32): Likewise.
18493         (vaddvq_u64): Likewise.
18494         (vaddv_f32): Likewise.
18495         (vaddvq_f32): Likewise.
18496         (vaddvq_f64): Likewise.
18497         (vmaxv_f32): Likewise.
18498         (vmaxv_s8): Likewise.
18499         (vmaxv_s16): Likewise.
18500         (vmaxv_s32): Likewise.
18501         (vmaxv_u8): Likewise.
18502         (vmaxv_u16): Likewise.
18503         (vmaxv_u32): Likewise.
18504         (vmaxvq_f32): Likewise.
18505         (vmaxvq_f64): Likewise.
18506         (vmaxvq_s8): Likewise.
18507         (vmaxvq_s16): Likewise.
18508         (vmaxvq_s32): Likewise.
18509         (vmaxvq_u8): Likewise.
18510         (vmaxvq_u16): Likewise.
18511         (vmaxvq_u32): Likewise.
18512         (vmaxnmv_f32): Likewise.
18513         (vmaxnmvq_f32): Likewise.
18514         (vmaxnmvq_f64): Likewise.
18515         (vminv_f32): Likewise.
18516         (vminv_s8): Likewise.
18517         (vminv_s16): Likewise.
18518         (vminv_s32): Likewise.
18519         (vminv_u8): Likewise.
18520         (vminv_u16): Likewise.
18521         (vminv_u32): Likewise.
18522         (vminvq_f32): Likewise.
18523         (vminvq_f64): Likewise.
18524         (vminvq_s8): Likewise.
18525         (vminvq_s16): Likewise.
18526         (vminvq_s32): Likewise.
18527         (vminvq_u8): Likewise.
18528         (vminvq_u16): Likewise.
18529         (vminvq_u32): Likewise.
18530         (vminnmv_f32): Likewise.
18531         (vminnmvq_f32): Likewise.
18532         (vminnmvq_f64): Likewise.
18533
18534 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
18535
18536         * config/aarch64/aarch64-simd.md
18537         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
18538         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
18539         (*aarch64_mul3_elt<mode>): Likewise.
18540         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
18541         (*aarch64_mul3_elt_to_64v2df): Likewise.
18542         (*aarch64_mla_elt<mode>): Likewise.
18543         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
18544         (*aarch64_mls_elt<mode>): Likewise.
18545         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
18546         (*aarch64_fma4_elt<mode>): Likewise.
18547         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
18548         (*aarch64_fma4_elt_to_64v2df): Likewise.
18549         (*aarch64_fnma4_elt<mode>): Likewise.
18550         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
18551         (*aarch64_fnma4_elt_to_64v2df): Likewise.
18552         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
18553         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
18554         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
18555         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
18556         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
18557         (aarch64_sqdmull_lane<mode>_internal): Likewise.
18558         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
18559
18560 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
18561
18562         * config/aarch64/aarch64-simd.md
18563         (aarch64_be_checked_get_lane<mode>): New define_expand.
18564         * config/aarch64/aarch64-simd-builtins.def
18565         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
18566         New builtin definition.
18567         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
18568         Use new safe be builtin.
18569
18570 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
18571
18572         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
18573         New define_insn.
18574         (aarch64_be_st1<mode>): Likewise.
18575         (aarch_ld1<VALL:mode>): Define_expand modified.
18576         (aarch_st1<VALL:mode>): Likewise.
18577         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
18578         (UNSPEC_ST1): Likewise.
18579
18580 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
18581
18582         * config/microblaze/microblaze.md: Add trap insn and attribute
18583
18584 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
18585
18586         PR preprocessor/58580
18587         * input.h (location_get_source_line): Take an additional line_size
18588         parameter.
18589         (void diagnostics_file_cache_fini): Declare new function.
18590         * input.c (struct fcache): New type.
18591         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
18592         New static constants.
18593         (diagnostic_file_cache_init, total_lines_num)
18594         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
18595         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
18596         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
18597         (get_next_line, read_next_line, goto_next_line, read_line_num):
18598         New static function definitions.
18599         (diagnostic_file_cache_fini): New function.
18600         (location_get_source_line): Take an additional output line_len
18601         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
18602         read_line_num.
18603         * diagnostic.c (diagnostic_finish): Call
18604         diagnostic_file_cache_fini.
18605         (adjust_line): Take an additional input parameter for the length
18606         of the line, rather than calculating it with strlen.
18607         (diagnostic_show_locus): Adjust the use of
18608         location_get_source_line and adjust_line with respect to their new
18609         signature.  While displaying a line now, do not stop at the first
18610         null byte.  Rather, display the zero byte as a space and keep
18611         going until we reach the size of the line.
18612         * Makefile.in: Add vec.o to OBJS-libcommon
18613
18614 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
18615             Ilya Tocar  <ilya.tocar@intel.com>
18616
18617         * config/i386/avx512fintrin.h (_mm512_kmov): New.
18618         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
18619         (__builtin_ia32_kmov16): Ditto.
18620         * config/i386/i386.md (UNSPEC_KMOV): New.
18621         (kmovw): Ditto.
18622
18623 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
18624
18625         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
18626         (_mm512_storeu_si512): Ditto.
18627
18628 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
18629
18630         PR target/52125
18631         * rtl.h (get_referenced_operands): Declare.
18632         * recog.c (get_referenced_operands): New function.
18633         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
18634         operands have been referenced when recording LO_SUM references.
18635
18636 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
18637
18638         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
18639
18640 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
18641
18642         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
18643         Enable for generic and recent AMD targets.
18644
18645 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
18646
18647         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
18648         ARG_SIZE note when adjustment was eliminated.
18649
18650 2014-01-22  Jeff Law  <law@redhat.com>
18651
18652         PR tree-optimization/59597
18653         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
18654         in file.  Accept new argument REGISTERING and use it to modify
18655         dump output appropriately.
18656         (register_jump_thread): Corresponding changes.
18657         (mark_threaded_blocks): Reinstate code to cancel unprofitable
18658         thread paths involving joiner blocks.  Add code to dump cancelled
18659         jump threading paths.
18660
18661 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
18662
18663         PR rtl-optimization/59477
18664         * lra-constraints.c (inherit_in_ebb): Process call for living hard
18665         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
18666
18667 2014-01-22  Tom Tromey  <tromey@redhat.com>
18668
18669         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
18670         PARAMS.
18671         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
18672
18673 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
18674
18675         PR rtl-optimization/59896
18676         * lra-constraints.c (process_alt_operands): Check unused note for
18677         matched operands of insn with no output reloads.
18678
18679 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
18680
18681         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
18682         (mips_move_from_gpr_cost): Likewise.
18683
18684 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
18685
18686         PR rtl-optimization/59858
18687         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
18688         ira_class_hard_regs_num.
18689         (process_alt_operands): Increase reject for dying matched operand.
18690
18691 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
18692
18693         PR target/59003
18694         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
18695         smaller than size, perform several stores or loads and stores
18696         at dst + count - size to store or copy all of size bytes, rather
18697         than just last modesize bytes.
18698
18699 2014-01-20  DJ Delorie  <dj@redhat.com>
18700
18701         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
18702         that CLOBBERs are REGs before propogating their values.
18703
18704 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
18705
18706         PR middle-end/59789
18707         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
18708         (cgraph_inline_failed_type): New function.
18709         * cgraph.h (DEFCIFCODE): Add type.
18710         (cgraph_inline_failed_type_t): New enum.
18711         (cgraph_inline_failed_type): New prototype.
18712         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
18713         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
18714         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
18715         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
18716         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
18717         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
18718         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
18719         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
18720         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
18721         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
18722         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
18723         OPTIMIZATION_MISMATCH.
18724         * tree-inline.c (expand_call_inline): Emit errors during
18725         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
18726
18727 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
18728
18729         PR target/59685
18730         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
18731         mode attribute in insn output.
18732
18733 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
18734
18735         * output.h (output_constant): Delete.
18736         * varasm.c (output_constant): Make private.
18737
18738 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
18739
18740         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
18741
18742 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
18743
18744         PR middle-end/59860
18745         * tree.h (fold_builtin_strcat): New prototype.
18746         * builtins.c (fold_builtin_strcat): No longer static.  Add len
18747         argument, if non-NULL, don't call c_strlen.  Optimize
18748         directly into __builtin_memcpy instead of __builtin_strcpy.
18749         (fold_builtin_2): Adjust fold_builtin_strcat caller.
18750         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
18751
18752 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
18753
18754         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
18755         for SImode_address_operand operands, having only a REG argument.
18756
18757 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18758
18759         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
18760         loader name using mbig-endian.
18761         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
18762
18763 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
18764
18765         * doc/invoke.texi (-march): Clarify documentation for AArch64.
18766         (-mtune): Likewise.
18767         (-mcpu): Likewise.
18768
18769 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
18770
18771         * config/aarch64/aarch64-protos.h
18772         (aarch64_cannot_change_mode_class_ptr): Declare.
18773         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
18774         aarch64_cannot_change_mode_class_ptr): New.
18775         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
18776         backend hook aarch64_cannot_change_mode_class.
18777
18778 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
18779
18780         * common/config/aarch64/aarch64-common.c
18781         (aarch64_handle_option): Don't handle any option order logic here.
18782         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
18783         selected_cpu, warn on architecture version mismatch.
18784         (aarch64_override_options): Fix parsing order for option strings.
18785
18786 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18787             Iain Sandoe  <iain@codesourcery.com>
18788
18789         PR bootstrap/59496
18790         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
18791         warning.  Amend comment to reflect current functionality.
18792
18793 2014-01-20  Richard Biener  <rguenther@suse.de>
18794
18795         PR middle-end/59860
18796         * builtins.c (fold_builtin_strcat): Remove case better handled
18797         by tree-ssa-strlen.c.
18798
18799 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
18800
18801         * config/aarch64/aarch64.opt
18802         (mcpu, march, mtune): Make case-insensitive.
18803
18804 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
18805
18806         PR target/59880
18807         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
18808         if operands[1] is a REG or ZERO_EXTEND of a REG.
18809
18810 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
18811
18812         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
18813
18814 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
18815
18816         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
18817         long non-pic millicode calls.
18818
18819 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18820
18821         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
18822
18823 2014-01-19  Kito Cheng  <kito@0xlab.org>
18824
18825         * builtins.c (expand_movstr): Check movstr expand done or fail.
18826
18827 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
18828             H.J. Lu  <hongjiu.lu@intel.com>
18829
18830         PR target/59379
18831         * config/i386/i386.md (*lea<mode>): Zero-extend return register
18832         to DImode for zero-extended addresses.
18833
18834 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
18835
18836         PR rtl-optimization/57763
18837         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
18838         on the new indirect jump_insn and increment LABEL_NUSES (label).
18839
18840 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
18841
18842         PR bootstrap/59580
18843         PR bootstrap/59583
18844         * config.gcc (x86_archs): New variable.
18845         (x86_64_archs): Likewise.
18846         (x86_cpus): Likewise.
18847         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
18848         --with-arch/--with-cpu= options.
18849         Support --with-arch=/--with-cpu={nehalem,westmere,
18850         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
18851
18852 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
18853
18854         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
18855         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
18856
18857 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
18858
18859         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
18860
18861 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
18862
18863         PR target/58944
18864         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
18865         clear cpp_get_options (parse_in)->warn_unused_macros for
18866         ix86_target_macros_internal with cpp_define.
18867
18868 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
18869
18870         * jump.c (delete_related_insns): Keep (use (insn))s.
18871         * reorg.c (redundant_insn): Check for barriers too.
18872
18873 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18874
18875         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
18876
18877 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
18878
18879         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
18880         call to $$dyncall when TARGET_LONG_CALLS is true.
18881
18882 2014-01-17  Jeff Law  <law@redhat.com>
18883
18884         * ree.c (combine_set_extension): Temporarily disable test for
18885         changing number of hard registers.
18886
18887 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
18888
18889         PR middle-end/58125
18890         * ipa-inline-analysis.c (inline_free_summary):
18891         Do not free summary of aliases.
18892
18893 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
18894
18895         PR middle-end/59706
18896         * gimplify.c (gimplify_expr): Use create_tmp_var
18897         instead of create_tmp_var_raw.  If cond doesn't have
18898         integral type, don't add the IFN_ANNOTATE builtin at all.
18899
18900 2014-01-17  Martin Jambor  <mjambor@suse.cz>
18901
18902         PR ipa/59736
18903         * ipa-cp.c (prev_edge_clone): New variable.
18904         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
18905         Also resize prev_edge_clone vector.
18906         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
18907         (ipcp_edge_removal_hook): New function.
18908         (ipcp_driver): Register ipcp_edge_removal_hook.
18909
18910 2014-01-17  Andrew Pinski  <apinski@cavium.com>
18911             Steve Ellcey  <sellcey@mips.com>
18912
18913         PR target/59462
18914         * config/mips/mips.c (mips_print_operand): Check operand mode instead
18915         of operator mode.
18916
18917 2014-01-17  Jeff Law  <law@redhat.com>
18918
18919         PR middle-end/57904
18920         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
18921         so that pass_ccp runs first.
18922
18923 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18924
18925         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
18926         (ix86_adjust_cost): Use !TARGET_XXX.
18927         (do_reorder_for_imul): Likewise.
18928         (swap_top_of_ready_list): Likewise.
18929         (ix86_sched_reorder): Likewise.
18930
18931 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18932
18933         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18934         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
18935         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
18936         (intel_memset): New.  Duplicate slm_memset.
18937         (intel_cost): New.  Duplicate slm_cost.
18938         (m_INTEL): New macro.
18939         (processor_target_table): Add "intel".
18940         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
18941         with PROCESSOR_INTEL for "intel".
18942         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
18943         PROCESSOR_SILVERMONT.
18944         (ix86_issue_rate): Likewise.
18945         (ix86_adjust_cost): Likewise.
18946         (ia32_multipass_dfa_lookahead): Likewise.
18947         (swap_top_of_ready_list): Likewise.
18948         (ix86_sched_reorder): Likewise.
18949         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
18950         instead of TARGET_OPT_AGU.
18951         * config/i386/i386.h (TARGET_INTEL): New.
18952         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
18953         (processor_type): Add PROCESSOR_INTEL.
18954         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
18955         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
18956
18957 2014-01-17  Marek Polacek  <polacek@redhat.com>
18958
18959         PR c/58346
18960         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
18961         size is zero.
18962
18963 2014-01-17  Richard Biener  <rguenther@suse.de>
18964
18965         PR tree-optimization/46590
18966         * opts.c (default_options_table): Add entries for
18967         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
18968         all enabled at -O1 but not for -Og.
18969         * common.opt (fbranch-count-reg): Remove Init(1).
18970         (fmove-loop-invariants): Likewise.
18971         (ftree-pta): Likewise.
18972
18973 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
18974
18975         * config/i386/i386.c (ix86_data_alignment): For compatibility with
18976         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
18977         decls to at least the GCC 4.8 used alignments.
18978
18979         PR fortran/59440
18980         * tree-nested.c (convert_nonlocal_reference_stmt,
18981         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
18982         of GIMPLE_BIND stmts, adjust associated decls.
18983
18984 2014-01-17  Richard Biener  <rguenther@suse.de>
18985
18986         PR tree-optimization/46590
18987         * vec.h (vec<>::bseach): New member function implementing
18988         binary search according to C89 bsearch.
18989         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
18990         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
18991         bitmap pointer again.  Make accesses_in_loop a flat array.
18992         (mem_ref_obstack): New global.
18993         (outermost_indep_loop): Adjust for mem_ref->stored changes.
18994         (mark_ref_stored): Likewise.
18995         (ref_indep_loop_p_2): Likewise.
18996         (set_ref_stored_in_loop): New helper function.
18997         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
18998         (memref_free): Adjust.
18999         (record_mem_ref_loc): Simplify.
19000         (gather_mem_refs_stmt): Adjust.
19001         (sort_locs_in_loop_postorder_cmp): New function.
19002         (analyze_memory_references): Sort accesses_in_loop after
19003         loop postorder number.
19004         (find_ref_loc_in_loop_cmp): New function.
19005         (for_all_locs_in_loop): Find relevant cluster of locs in
19006         accesses_in_loop and iterate without recursion.
19007         (execute_sm): Avoid uninit warning.
19008         (struct ref_always_accessed): Simplify.
19009         (ref_always_accessed::operator ()): Likewise.
19010         (ref_always_accessed_p): Likewise.
19011         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
19012         loop postorder numbers here.
19013         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
19014         numbers.
19015
19016 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
19017
19018         PR c++/57945
19019         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
19020         on decls for which assemble_alias has been called.
19021
19022 2014-01-17  Nick Clifton  <nickc@redhat.com>
19023
19024         * config/msp430/msp430.opt: (mcpu): New option.
19025         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
19026         (msp430_option_override): Parse target_cpu.  If the MCU name
19027         matches a generic string, clear target_mcu.
19028         (msp430_attr): Allow numeric interrupt values up to 63.
19029         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
19030         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
19031         option.
19032         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
19033         Add mcpu matches.
19034         * config/msp430/msp430.md (popm): Use %J rather than %I.
19035         (addsi3): Use msp430_nonimmediate_operand for operand 2.
19036         (addhi_cy_i): Use immediate_operand for operand 2.
19037         * doc/invoke.texi: Document -mcpu option.
19038
19039 2014-01-17  Richard Biener  <rguenther@suse.de>
19040
19041         PR rtl-optimization/38518
19042         * df.h (df_analyze_loop): Declare.
19043         * df-core.c: Include cfgloop.h.
19044         (df_analyze_1): Split out main part of df_analyze.
19045         (df_analyze): Adjust.
19046         (loop_inverted_post_order_compute): New function.
19047         (loop_post_order_compute): Likewise.
19048         (df_analyze_loop): New function avoiding whole-function
19049         postorder computes.
19050         * loop-invariant.c (find_defs): Use df_analyze_loop.
19051         (find_invariants): Adjust.
19052         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
19053
19054 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
19055
19056         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
19057         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
19058
19059 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
19060
19061         * ipa-ref.c (ipa_remove_stmt_references): Fix references
19062         traversal when removing references.
19063
19064 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
19065
19066         PR ipa/59775
19067         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
19068
19069 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
19070
19071         PR middle-end/56791
19072         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
19073         pushing a reload for an autoinc when we had previously reloaded an
19074         inner part of the address.
19075
19076 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
19077
19078         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
19079         field.
19080         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
19081         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
19082         when not giving up or versioning for alias only because of
19083         loop->safelen.
19084         (vect_analyze_data_ref_dependences): Set to true.
19085         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
19086         is a GIMPLE_PHI.
19087         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
19088         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
19089         to the condition.
19090
19091         PR middle-end/58344
19092         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
19093
19094         PR target/59839
19095         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
19096         operand 0 predicate for gathers, use a new pseudo as subtarget.
19097
19098 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
19099
19100         PR middle-end/59609
19101         * lra-constraints.c (process_alt_operands): Add printing debug info.
19102         Check absence of input/output reloads for matched operands too.
19103
19104 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
19105
19106         PR rtl-optimization/59835
19107         * ira.c (ira_init_register_move_cost): Increase cost for
19108         impossible modes.
19109
19110 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
19111
19112         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
19113
19114 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
19115
19116         PR target/59780
19117         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
19118         non-register objects.  Use gen_(high/low)part more consistently.
19119         Fix assertions.
19120
19121 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
19122
19123         PR target/59844
19124         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
19125         endian support, remove tests for WORDS_BIG_ENDIAN.
19126         (p8_mfvsrd_3_<mode>): Likewise.
19127         (reload_gpr_from_vsx<mode>): Likewise.
19128         (reload_gpr_from_vsxsf): Likewise.
19129         (p8_mfvsrd_4_disf): Likewise.
19130
19131 2014-01-16  Richard Biener  <rguenther@suse.de>
19132
19133         PR rtl-optimization/46590
19134         * lcm.c (compute_antinout_edge): Use postorder iteration.
19135         (compute_laterin): Use inverted postorder iteration.
19136
19137 2014-01-16  Nick Clifton  <nickc@redhat.com>
19138
19139         PR middle-end/28865
19140         * varasm.c (output_constant): Return the number of bytes actually
19141         emitted.
19142         (output_constructor_array_range): Update the field size with the
19143         number of bytes emitted by output_constant.
19144         (output_constructor_regular_field): Likewise.  Also do not
19145         complain if the total number of bytes emitted is now greater
19146         than the expected fieldpos.
19147         * output.h (output_constant): Update prototype and descriptive comment.
19148
19149 2014-01-16  Marek Polacek  <polacek@redhat.com>
19150
19151         PR middle-end/59827
19152         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
19153         it is error_mark_node.
19154
19155 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
19156
19157         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
19158         VALID_AVX256_REG_OR_OI_MODE.
19159
19160 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
19161
19162         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
19163         current procedure should be profiled.
19164
19165 2014-01-15  Andrew Pinski  <apinski@cavium.com>
19166
19167         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
19168         of moving from/to the STACK_REG register class.
19169
19170 2014-01-15  Richard Henderson  <rth@redhat.com>
19171
19172         PR debug/54694
19173         * reginfo.c (global_regs_decl): Globalize.
19174         * rtl.h (global_regs_decl): Declare.
19175         * ira.c (do_reload): Diagnose frame_pointer_needed and it
19176         reserved via global_regs.
19177
19178 2014-01-15  Teresa Johnson  <tejohnson@google.com>
19179
19180         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
19181
19182 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19183
19184         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
19185         and vmulosh rather than call gen_vec_widen_smult_*.
19186         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
19187         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
19188         (vec_widen_smult_even_v16qi): Likewise.
19189         (vec_widen_umult_even_v8hi): Likewise.
19190         (vec_widen_smult_even_v8hi): Likewise.
19191         (vec_widen_umult_odd_v16qi): Likewise.
19192         (vec_widen_smult_odd_v16qi): Likewise.
19193         (vec_widen_umult_odd_v8hi): Likewise.
19194         (vec_widen_smult_odd_v8hi): Likewise.
19195         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
19196         vmuloub rather than call gen_vec_widen_umult_*.
19197         (vec_widen_umult_lo_v16qi): Likewise.
19198         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
19199         vmulosb rather than call gen_vec_widen_smult_*.
19200         (vec_widen_smult_lo_v16qi): Likewise.
19201         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
19202         rather than call gen_vec_widen_umult_*.
19203         (vec_widen_umult_lo_v8hi): Likewise.
19204         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
19205         rather than call gen_vec_widen_smult_*.
19206         (vec_widen_smult_lo_v8hi): Likewise.
19207
19208 2014-01-15  Jeff Law  <law@redhat.com>
19209
19210         PR tree-optimization/59747
19211         * ree.c (find_and_remove_re): Properly handle case where a second
19212         eliminated extension requires widening a copy created for elimination
19213         of a prior extension.
19214         (combine_set_extension): Ensure that the number of hard regs needed
19215         for a destination register does not change when we widen it.
19216
19217 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
19218
19219         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
19220         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
19221         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
19222         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
19223         (avr-*-rtems*): Likewise.
19224         (bfin*-rtems*): Likewise.
19225         (moxie-*-rtems*): Likewise.
19226         (h8300-*-rtems*): Likewise.
19227         (i[34567]86-*-rtems*): Likewise.
19228         (lm32-*-rtems*): Likewise.
19229         (m32r-*-rtems*): Likewise.
19230         (m68k-*-rtems*): Likewise.
19231         (microblaze*-*-rtems*): Likewise.
19232         (mips*-*-rtems*): Likewise.
19233         (powerpc-*-rtems*): Likewise.
19234         (sh-*-rtems*): Likewise.
19235         (sparc-*-rtems*): Likewise.
19236         (sparc64-*-rtems*): Likewise.
19237         (v850-*-rtems*): Likewise.
19238         (m32c-*-rtems*): Likewise.
19239
19240 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
19241
19242         PR rtl-optimization/59511
19243         * ira.c (ira_init_register_move_cost): Use memory costs for some
19244         cases of register move cost calculations.
19245         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
19246         instead of BB frequency.
19247         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
19248         * lra-assigns.c (find_hard_regno_for): Ditto.
19249
19250 2014-01-15  Richard Biener  <rguenther@suse.de>
19251
19252         PR tree-optimization/59822
19253         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
19254         (vectorizable_load): Use it to hoist defs of uses of invariant
19255         loads out of the loop.
19256
19257 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
19258             Kugan Vivekanandarajah  <kuganv@linaro.org>
19259
19260         PR target/59695
19261         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
19262         truncation.
19263
19264 2014-01-15  Richard Biener  <rguenther@suse.de>
19265
19266         PR rtl-optimization/59802
19267         * lcm.c (compute_available): Use inverted postorder to seed
19268         the initial worklist.
19269
19270 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19271
19272         PR target/59803
19273         * config/s390/s390.c (s390_preferred_reload_class): Don't return
19274         ADDR_REGS for invalid symrefs in non-PIC code.
19275
19276 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
19277
19278         PR other/58712
19279         * builtins.c (determine_block_size): Initialize *probable_max_size
19280         even if len_rtx is CONST_INT.
19281
19282 2014-01-14  Andrew Pinski  <apinski@cavium.com>
19283
19284         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
19285         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
19286         (cortexa53_tunings): Likewise.
19287         (aarch64_sched_issue_rate): New function.
19288         (TARGET_SCHED_ISSUE_RATE): Define.
19289
19290 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
19291
19292         * ira-costs.c (find_costs_and_classes): Add missed
19293         ira_init_register_move_cost_if_necessary.
19294
19295 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
19296
19297         PR target/59787
19298         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
19299
19300 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
19301
19302         PR target/59794
19303         * config/i386/i386.c (type_natural_mode): Add a bool parameter
19304         to indicate if type is used for function return value.  Warn ABI
19305         change if the vector mode isn't available for function return value.
19306         (ix86_function_arg_advance): Pass false to type_natural_mode.
19307         (ix86_function_arg): Likewise.
19308         (ix86_gimplify_va_arg): Likewise.
19309         (function_arg_32): Don't warn ABI change.
19310         (ix86_function_value): Pass true to type_natural_mode.
19311         (ix86_return_in_memory): Likewise.
19312         (ix86_struct_value_rtx): Removed.
19313         (TARGET_STRUCT_VALUE_RTX): Likewise.
19314
19315 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
19316
19317         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
19318         converting a conditional jump into a conditional return.
19319
19320 2014-01-14  Richard Biener  <rguenther@suse.de>
19321
19322         PR tree-optimization/58921
19323         PR tree-optimization/59006
19324         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
19325         hoisting invariant stmts.
19326         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
19327         invariant loads on the preheader edge if possible.
19328
19329 2014-01-14  Joey Ye  <joey.ye@arm.com>
19330
19331         * doc/plugin.texi (Building GCC plugins): Update to C++.
19332
19333 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
19334
19335         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
19336         (_mm_rcp28_round_ss): Ditto.
19337         (_mm_rsqrt28_round_sd): Ditto.
19338         (_mm_rsqrt28_round_ss): Ditto.
19339         (_mm_rcp28_sd): Ditto.
19340         (_mm_rcp28_ss): Ditto.
19341         (_mm_rsqrt28_sd): Ditto.
19342         (_mm_rsqrt28_ss): Ditto.
19343         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
19344         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
19345         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
19346         (IX86_BUILTIN_RCP28SD): Ditto.
19347         (IX86_BUILTIN_RCP28SS): Ditto.
19348         (IX86_BUILTIN_RSQRT28SD): Ditto.
19349         (IX86_BUILTIN_RSQRT28SS): Ditto.
19350         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
19351         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
19352         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
19353         (ix86_expand_special_args_builtin): Expand new FTYPE.
19354         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
19355         (srcp14<mode>): Make insn unary.
19356         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
19357         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
19358         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
19359         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
19360         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
19361         Fix rounding: make it SAE only.
19362         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
19363         Ditto.
19364         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
19365         Ditto.
19366         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
19367         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
19368         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
19369         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
19370         (round_saeonly_mask_scalar_operand4): Ditto.
19371         (round_saeonly_mask_scalar_op3): Ditto.
19372         (round_saeonly_mask_scalar_op4): Ditto.
19373
19374 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19375
19376         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19377         Implement -maltivec=be for vec_insert and vec_extract.
19378
19379 2014-01-10  DJ Delorie  <dj@redhat.com>
19380
19381         * config/msp430/msp430.md (call_internal): Don't allow memory
19382         references with SP as the base register.
19383         (call_value_internal): Likewise.
19384         * config/msp430/constraints.md (Yc): New.  For memory references
19385         that don't use SP as a base register.
19386
19387         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
19388         "an integer without a # prefix"
19389         * config/msp430/msp430.md (epilogue_helper): Use it.
19390
19391 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
19392
19393         PR target/59617
19394         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
19395         AVX512F gather builtins.
19396         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
19397         on gather decls with INTEGER_TYPE masktype.
19398         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
19399         directly into the builtin rather than hoisting it before loop.
19400
19401         PR tree-optimization/59387
19402         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
19403         (scev_const_prop): If folded_casts and type has undefined overflow,
19404         use force_gimple_operand instead of force_gimple_operand_gsi and
19405         for each added stmt if it is assign with
19406         arith_code_with_undefined_signed_overflow, call
19407         rewrite_to_defined_overflow.
19408         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
19409         gimple-fold.h instead.
19410         (arith_code_with_undefined_signed_overflow,
19411         rewrite_to_defined_overflow): Moved to ...
19412         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
19413         rewrite_to_defined_overflow): ... here.  No longer static.
19414         Include gimplify-me.h.
19415         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
19416         rewrite_to_defined_overflow): New prototypes.
19417
19418 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19419
19420         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
19421
19422 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
19423
19424         * builtins.c (get_object_alignment_2): Minor tweak.
19425         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
19426
19427 2014-01-13  Christian Bruel  <christian.bruel@st.com>
19428
19429         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
19430         optimized non constant lengths.
19431
19432 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
19433
19434         PR libgomp/59194
19435         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
19436         load as __atomic_load_N if possible.
19437
19438 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
19439
19440         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
19441         target parameter.
19442         (rs6000_expand_builtin): Adjust call.
19443
19444 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
19445
19446         PR target/58115
19447         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
19448         * config/rs6000/rs6000.c: Include target-globals.h.
19449         (rs6000_set_current_function): Instead of doing target_reinit
19450         unconditionally, use save_target_globals_default_opts and
19451         restore_target_globals.
19452
19453         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
19454         FPSCR.
19455         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
19456         (rs6000_expand_builtin): Handle mffs and mtfsf.
19457         (rs6000_init_builtins): Define mffs and mtfsf.
19458         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
19459         (rs6000_mffs): New pattern.
19460         (rs6000_mtfsf): New pattern.
19461
19462 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
19463
19464         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
19465         Start narrowing with START.  Apply candidate-use pair
19466         and check overall cost in narrowing.
19467         (iv_ca_prune): Pass new argument.
19468
19469 2014-01-10  Jeff Law  <law@redhat.com>
19470
19471         PR middle-end/59743
19472         * ree.c (combine_reaching_defs): Ensure the defining statement
19473         occurs before the extension when optimizing extensions with
19474         different source and destination hard registers.
19475
19476 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
19477
19478         PR ipa/58585
19479         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
19480         vtables into the type inheritance graph.
19481
19482 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
19483
19484         PR rtl-optimization/59754
19485         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
19486         modes in the REGNO != REGNO case.
19487
19488 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19489
19490         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
19491
19492 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
19493
19494         PR tree-optimization/59745
19495         * tree-predcom.c (tree_predictive_commoning_loop): Call
19496         free_affine_expand_cache if giving up because components is NULL.
19497
19498         * target-globals.c (save_target_globals): Allocate < 4KB structs using
19499         GC in payload of target_globals struct instead of allocating them on
19500         the heap and the larger structs separately using GC.
19501         * target-globals.h (struct target_globals): Make regs, hard_regs,
19502         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
19503         of GTY((skip)) and change type to void *.
19504         (reset_target_globals): Cast loads from those fields to corresponding
19505         types.
19506
19507 2014-01-10  Steve Ellcey  <sellcey@mips.com>
19508
19509         PR plugins/59335
19510         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
19511         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
19512         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
19513
19514 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
19515
19516         PR target/59744
19517         * aarch64-modes.def (CC_Zmode): New flags mode.
19518         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
19519         represents an equality.
19520         (aarch64_get_condition_code): Handle CC_Zmode.
19521         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
19522
19523 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19524
19525         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
19526         extraction in good case.
19527
19528 2014-01-10  Richard Biener  <rguenther@suse.de>
19529
19530         PR tree-optimization/59374
19531         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
19532         checking after SLP discovery.  Mark stmts not participating
19533         in any SLP instance properly.
19534
19535 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19536
19537         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
19538         when handling a SET rtx.
19539
19540 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19541
19542         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
19543         (cortex-a57): Likewise.
19544         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
19545
19546 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19547
19548         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
19549         non-iwmmxt builtins.
19550
19551 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
19552
19553         PR ipa/58252
19554         PR ipa/59226
19555         * ipa-devirt.c record_target_from_binfo): Take as argument
19556         stack of binfos and lookup matching one for virtual inheritance.
19557         (possible_polymorphic_call_targets_1): Update.
19558
19559 2014-01-10  Huacai Chen  <chenhc@lemote.com>
19560
19561         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
19562         kernel strings for Loongson-2E/2F/3A.
19563
19564 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
19565
19566         PR middle-end/59670
19567         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
19568         is_gimple_call before calling gimple_call_internal_p.
19569
19570 2014-01-09  Steve Ellcey  <sellcey@mips.com>
19571
19572         * Makefile.in (TREE_FLOW_H): Remove.
19573         (TREE_SSA_H): Add file names from tree-flow.h.
19574         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
19575         * tree.h: Remove tree-flow.h reference.
19576         * hash-table.h: Remove tree-flow.h reference.
19577         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
19578         reference with tree-ssa-loop.h.
19579
19580 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19581
19582         * doc/invoke.texi: Add -maltivec={be,le} options, and document
19583         default element-order behavior for -maltivec.
19584         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
19585         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
19586         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
19587         when targeting big endian, at least for now.
19588         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
19589
19590 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
19591
19592         PR middle-end/47735
19593         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
19594         var satisfies use_register_for_decl, just take into account type
19595         alignment, rather than decl alignment.
19596
19597         PR tree-optimization/59622
19598         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
19599         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
19600         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
19601         Don't devirtualize for inplace at all.  For targets.length () == 1,
19602         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
19603
19604 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
19605
19606         * config/i386/i386.md (cpu): Remove the unused btver1.
19607
19608 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
19609
19610         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
19611
19612 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
19613
19614         PR target/58115
19615         * tree-core.h (struct target_globals): New forward declaration.
19616         (struct tree_target_option): Add globals field.
19617         * tree.h (TREE_TARGET_GLOBALS): Define.
19618         (prepare_target_option_nodes_for_pch): New prototype.
19619         * target-globals.h (struct target_globals): Define even if
19620         !SWITCHABLE_TARGET.
19621         * tree.c (prepare_target_option_node_for_pch,
19622         prepare_target_option_nodes_for_pch): New functions.
19623         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
19624         * config/i386/i386.c: Include target-globals.h.
19625         (ix86_set_current_function): Instead of doing target_reinit
19626         unconditionally, use save_target_globals_default_opts and
19627         restore_target_globals.
19628
19629 2014-01-09  Richard Biener  <rguenther@suse.de>
19630
19631         PR tree-optimization/59715
19632         * tree-cfg.h (split_critical_edges): Declare.
19633         * tree-cfg.c (split_critical_edges): Export.
19634         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
19635
19636 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
19637
19638         * cfgexpand.c (expand_stack_vars): Optionally disable
19639         asan stack protection.
19640         (expand_used_vars): Likewise.
19641         (partition_stack_vars): Likewise.
19642         * asan.c (asan_emit_stack_protection): Optionally disable
19643         after return stack usage.
19644         (instrument_derefs): Optionally disable memory access instrumentation.
19645         (instrument_builtin_call): Likewise.
19646         (instrument_strlen_call): Likewise.
19647         (asan_protect_global): Optionally disable global variables protection.
19648         * doc/invoke.texi: Added doc for new options.
19649         * params.def: Added new options.
19650         * params.h: Likewise.
19651
19652 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
19653
19654         PR rtl-optimization/59724
19655         * ifcvt.c (cond_exec_process_if_block): Don't call
19656         flow_find_head_matching_sequence with 0 longest_match.
19657         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
19658         non-active insns if !stop_after.
19659         (try_head_merge_bb): Revert 2014-01-07 changes.
19660
19661 2014-01-08  Jeff Law  <law@redhat.com>
19662
19663         * ree.c (get_sub_rtx): New function, extracted from...
19664         (merge_def_and_ext): Here.
19665         (combine_reaching_defs): Use get_sub_rtx.
19666
19667 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
19668
19669         * cgraph.h (varpool_variable_node): Do not choke on null node.
19670
19671 2014-01-08  Catherine Moore  <clm@codesourcery.com>
19672
19673         * config/mips/mips.md (simple_return): Attempt to use JRC
19674         for microMIPS.
19675         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
19676
19677 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
19678
19679         PR rtl-optimization/59137
19680         * reorg.c (steal_delay_list_from_target): Call update_block for
19681         elided insns.
19682         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
19683
19684 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19685
19686         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
19687         two duplicate entries.
19688
19689 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
19690
19691         Revert:
19692         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
19693
19694         * config/mips/mips.c (mips_truncated_op_cost): New function.
19695         (mips_rtx_costs): Adjust test for BADDU.
19696         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
19697
19698         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
19699
19700         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
19701         (*baddu_si): ...this new pattern.
19702
19703 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
19704
19705         PR ipa/59722
19706         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
19707
19708 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19709
19710         PR middle-end/57748
19711         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
19712         inner_reference_p.
19713         (expand_expr, expand_normal): Adjust.
19714         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
19715         inner_reference_p. Use inner_reference_p to expand inner references.
19716         (store_expr): Adjust.
19717         * cfgexpand.c (expand_call_stmt): Adjust.
19718
19719 2014-01-08  Rong Xu  <xur@google.com>
19720
19721         * gcov-io.c (gcov_var): Move from gcov-io.h.
19722         (gcov_position): Ditto.
19723         (gcov_is_error): Ditto.
19724         (gcov_rewrite): Ditto.
19725         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
19726         only part to libgcc/libgcov.h.
19727
19728 2014-01-08  Marek Polacek  <polacek@redhat.com>
19729
19730         PR middle-end/59669
19731         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
19732
19733 2014-01-08  Marek Polacek  <polacek@redhat.com>
19734
19735         PR sanitizer/59667
19736         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
19737
19738 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
19739
19740         PR rtl-optimization/59649
19741         * stor-layout.c (get_mode_bounds): For BImode return
19742         0 and STORE_FLAG_VALUE.
19743
19744 2014-01-08  Richard Biener  <rguenther@suse.de>
19745
19746         PR middle-end/59630
19747         * gimple.h (is_gimple_builtin_call): Remove.
19748         (gimple_builtin_call_types_compatible_p): New.
19749         (gimple_call_builtin_p): New overload.
19750         * gimple.c (is_gimple_builtin_call): Remove.
19751         (validate_call): Rename to ...
19752         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
19753         check return types.
19754         (validate_type): New static function.
19755         (gimple_call_builtin_p): New overload and adjust.
19756         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
19757         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
19758         (gimple_fold_stmt_to_constant_1): Likewise.
19759         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
19760
19761 2014-01-08  Richard Biener  <rguenther@suse.de>
19762
19763         PR middle-end/59471
19764         * gimplify.c (gimplify_expr): Gimplify register-register type
19765         VIEW_CONVERT_EXPRs to separate stmts.
19766
19767 2014-01-07  Jeff Law  <law@redhat.com>
19768
19769         PR middle-end/53623
19770         * ree.c (combine_set_extension): Handle case where source
19771         and destination registers in an extension insn are different.
19772         (combine_reaching_defs): Allow source and destination registers
19773         in extension to be different under limited circumstances.
19774         (add_removable_extension): Remove restriction that the
19775         source and destination registers in the extension are the same.
19776         (find_and_remove_re): Emit a copy from the extension's
19777         destination to its source after the defining insn if
19778         the source and destination registers are different.
19779
19780         PR middle-end/59285
19781         * ifcvt.c (merge_if_block): If we are merging a block with more than
19782         one successor with a block with no successors, remove any BARRIER
19783         after the second block.
19784
19785 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
19786
19787         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
19788
19789 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
19790
19791         PR target/59652
19792         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
19793         for 14-bit register offsets when INT14_OK_STRICT is false.
19794
19795 2014-01-07  Roland Stigge  <stigge@antcom.de>
19796             Michael Meissner  <meissner@linux.vnet.ibm.com>
19797
19798         PR 57386/target
19799         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
19800         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
19801
19802 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
19803
19804         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
19805         -mcpu.
19806
19807 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
19808
19809         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
19810         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
19811         rtx is const0_rtx or not.
19812
19813 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
19814
19815         PR target/58115
19816         * target-globals.c (save_target_globals): Remove this_fn_optab
19817         handling.
19818         * toplev.c: Include optabs.h.
19819         (target_reinit): Temporarily restore the global options if another
19820         set of options are in force.
19821
19822 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
19823
19824         PR rtl-optimization/58668
19825         * cfgcleanup.c (flow_find_cross_jump): Don't count
19826         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
19827         to determine what is counted.
19828         (flow_find_head_matching_sequence): Use active_insn_p to determine
19829         what is counted.
19830         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
19831         counting change.
19832         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
19833         determine what is counted.
19834
19835         PR tree-optimization/59643
19836         * tree-predcom.c (split_data_refs_to_components): If one dr is
19837         read and one write, determine_offset fails and the write isn't
19838         in the bad component, just put the read into the bad component.
19839
19840 2014-01-07  Mike Stump  <mikestump@comcast.net>
19841             Jakub Jelinek  <jakub@redhat.com>
19842
19843         PR pch/59436
19844         * tree-core.h (struct tree_optimization_option): Change optabs
19845         type from unsigned char * to void *.
19846         * optabs.c (init_tree_optimization_optabs): Adjust
19847         TREE_OPTIMIZATION_OPTABS initialization.
19848
19849 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
19850
19851         PR target/59644
19852         * config/i386/i386.h (struct machine_function): Add
19853         no_drap_save_restore field.
19854         * config/i386/i386.c (ix86_save_reg): Use
19855         !cfun->machine->no_drap_save_restore instead of
19856         crtl->stack_realign_needed.
19857         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
19858         this function clears frame_pointer_needed.  Set
19859         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
19860         and DRAP reg is needed.
19861
19862 2014-01-06  Marek Polacek  <polacek@redhat.com>
19863
19864         PR c/57773
19865         * doc/implement-c.texi: Mention that other integer types are
19866         permitted as bit-field types in strictly conforming mode.
19867
19868 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
19869
19870         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
19871         is newly allocated.
19872
19873 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
19874
19875         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
19876
19877 2014-01-06  Martin Jambor  <mjambor@suse.cz>
19878
19879         PR ipa/59008
19880         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
19881         to int.
19882         * ipa-prop.c (ipa_print_node_params): Fix indentation.
19883
19884 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
19885
19886         PR debug/59350
19887         PR debug/59510
19888         * var-tracking.c (add_stores): Preserve the value of the source even if
19889         we don't record the store.
19890
19891 2014-01-06  Terry Guo  <terry.guo@arm.com>
19892
19893         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
19894
19895 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
19896
19897         PR bootstrap/59541
19898         * config/darwin.c (darwin_function_section): Adjust return values to
19899         correspond to optimisation changes made in r206070.
19900
19901 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
19902
19903         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
19904         from prefetch_block tune setting.
19905         (nocona_cost): Correct size of prefetch block to 64.
19906
19907 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19908
19909         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
19910         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
19911         used to save the static chain register in the computation of the offset
19912         from which the FP registers need to be restored.
19913
19914 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
19915
19916         PR tree-optimization/59519
19917         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
19918         ICE if get_current_def (current_new_name) is already non-NULL, as long
19919         as it is a phi result of some other phi in *new_exit_bb that has
19920         the same argument.
19921
19922         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
19923         or vmovdqu* for misaligned_operand.
19924         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
19925         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
19926         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
19927         aligned_mem for AVX512F masked aligned load and store builtins and for
19928         non-temporal moves.
19929
19930 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
19931
19932         PR tree-optimization/59651
19933         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19934         Address range for negative step should be added by TYPE_SIZE_UNIT.
19935
19936 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
19937
19938         * config/m68k/m68k.c (handle_move_double): Handle pushes with
19939         overlapping registers also for registers other than the stack pointer.
19940
19941 2014-01-03  Marek Polacek  <polacek@redhat.com>
19942
19943         PR other/59661
19944         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
19945         __builtin_FILE.
19946
19947 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
19948
19949         PR target/59625
19950         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
19951         asm goto as jump.
19952
19953         * config/i386/i386.md (MODE_SIZE): New mode attribute.
19954         (push splitter): Use <P:MODE_SIZE> instead of
19955         GET_MODE_SIZE (<P:MODE>mode).
19956         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
19957         (mov -1, reg peephole2): Likewise.
19958         * config/i386/sse.md (*mov<mode>_internal,
19959         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
19960         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
19961         *<code><mode>3, *andnot<mode>3<mask_name>,
19962         <mask_codefor><code><mode>3<mask_name>): Likewise.
19963         * config/i386/subst.md (mask_mode512bit_condition,
19964         sd_mask_mode512bit_condition): Likewise.
19965
19966 2014-01-02  Xinliang David Li  <davidxl@google.com>
19967
19968         PR tree-optimization/59303
19969         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
19970         (dump_predicates): Better output format.
19971         (pred_equal_p): New function.
19972         (is_neq_relop_p): Ditto.
19973         (is_neq_zero_form_p): Ditto.
19974         (pred_expr_equal_p): Ditto.
19975         (pred_neg_p): Ditto.
19976         (simplify_pred): Ditto.
19977         (simplify_preds_2): Ditto.
19978         (simplify_preds_3): Ditto.
19979         (simplify_preds_4): Ditto.
19980         (simplify_preds): Ditto.
19981         (push_pred): Ditto.
19982         (push_to_worklist): Ditto.
19983         (get_pred_info_from_cmp): Ditto.
19984         (is_degenerated_phi): Ditto.
19985         (normalize_one_pred_1): Ditto.
19986         (normalize_one_pred): Ditto.
19987         (normalize_one_pred_chain): Ditto.
19988         (normalize_preds): Ditto.
19989         (normalize_cond_1): Remove function.
19990         (normalize_cond): Ditto.
19991         (is_gcond_subset_of): Ditto.
19992         (is_subset_of_any): Ditto.
19993         (is_or_set_subset_of): Ditto.
19994         (is_and_set_subset_of): Ditto.
19995         (is_norm_cond_subset_of): Ditto.
19996         (pred_chain_length_cmp): Ditto.
19997         (convert_control_dep_chain_into_preds): Type change.
19998         (find_predicates): Ditto.
19999         (find_def_preds): Ditto.
20000         (destroy_predicates_vecs): Ditto.
20001         (find_matching_predicates_in_rest_chains): Ditto.
20002         (use_pred_not_overlap_with_undef_path_pred): Ditto.
20003         (is_pred_expr_subset): Ditto.
20004         (is_pred_chain_subset_of): Ditto.
20005         (is_included_in): Ditto.
20006         (is_superset_of): Ditto.
20007
20008 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
20009
20010         Update copyright years.
20011
20012 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
20013
20014         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
20015         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
20016         config/arc/arc.md, config/arc/arc.opt,
20017         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
20018         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
20019         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
20020         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
20021         config/linux-protos.h, config/linux.c, config/winnt-c.c,
20022         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
20023         vtable-verify.c, vtable-verify.h: Use the standard form for the
20024         copyright notice.
20025
20026 2014-01-02  Tobias Burnus  <burnus@net-b.de>
20027
20028         * gcc.c (process_command): Update copyright notice dates.
20029         * gcov-dump.c: Ditto.
20030         * gcov.c: Ditto.
20031         * doc/cpp.texi: Bump @copying's copyright year.
20032         * doc/cppinternals.texi: Ditto.
20033         * doc/gcc.texi: Ditto.
20034         * doc/gccint.texi: Ditto.
20035         * doc/gcov.texi: Ditto.
20036         * doc/install.texi: Ditto.
20037         * doc/invoke.texi: Ditto.
20038
20039 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20040
20041         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
20042
20043 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
20044
20045         * config/i386/sse.md (*mov<mode>_internal): Guard
20046         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
20047
20048         PR rtl-optimization/59647
20049         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
20050         new_rtx into UNSIGNED_FLOAT rtxes.
20051 \f
20052 Copyright (C) 2014 Free Software Foundation, Inc.
20053
20054 Copying and distribution of this file, with or without modification,
20055 are permitted in any medium without royalty provided the copyright
20056 notice and this notice are preserved.